/* ============================================================
   FRANCISCO CONTRERAS — fcontreras.mx
   Brand system: Midnight Navy / Warm Gold / Ivory Cream
   Flat, precise, high contrast — no gradients, no shadows
   ============================================================ */

/* ── TOKENS ── */
:root {
  --navy:       #0A1F44;
  --navy-dark:  #070A11;
  --navy-mid:   #13203A;
  --gold:       #C9A84C;
  --gold-light: #E0D29A;
  --ivory:      #F0E6C8;
  --muted-1:    #4A5160;
  --muted-2:    #7D8595;

  --font-serif:  'EB Garamond', Georgia, serif;
  --font-sans:   'Cabin', system-ui, sans-serif;

  --max-w: 1200px;
  --section-pad: 5rem 1.5rem;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--navy-dark);
  color: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── SHARED UTILITIES ── */
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 2.5rem;
}
.section-title.gold  { color: var(--gold); }
.section-title.ivory { color: var(--ivory); }
.section-title.centered { text-align: center; }

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-gold:hover { background: var(--gold-light); }

/* ============================================================
   STICKY HEADER
============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy-dark);
  border-bottom: 1px solid var(--navy-mid);
  transform: translateY(-100%);
  transition: transform 0.25s ease;
}
.site-header.visible { transform: translateY(0); }

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.header-crosspoint {
  width: 24px;
  height: 24px;
  color: var(--gold);
  fill: currentColor;
}
.header-logo span {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: 0.03em;
}

.header-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.header-nav a {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.header-nav a:hover { color: var(--gold); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--ivory);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile nav ── */
@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    background: var(--navy-dark);
    border-top: 1px solid var(--navy-mid);
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 1.25rem;
  }
  .header-nav.open { display: flex; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   SECTION 1 — HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0.72;
}

/* Fallback: if hero.jpg missing, solid navy still looks intentional */

.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  gap: 2rem;
}

.hero-content {
  max-width: 560px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 0.95;
  color: var(--ivory);
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
}

.hero-cta {
  font-size: 0.875rem;
}

.hero-symbol {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.crosspoint-hero {
  width: clamp(160px, 22vw, 280px);
  height: auto;
  fill: var(--gold);
  opacity: 0.92;
}

/* Scroll indicator */
.scroll-indicator {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-bottom: 2rem;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: var(--gold);
  opacity: 0.5;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(0.5); opacity: 0.15; }
}

/* ── Hero mobile ── */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-top: 5rem;
  }
  .hero-symbol { order: -1; }
  .crosspoint-hero { width: 90px; }
  .hero-name { font-size: clamp(2.75rem, 14vw, 3.5rem); }
}

/* ============================================================
   SECTION 2 — SOBRE MÍ
============================================================ */
.sobre {
  background: var(--navy-mid);
  padding: var(--section-pad);
}

.sobre-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.sobre-photo-wrap { position: relative; }

.sobre-photo-placeholder {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--navy);
  overflow: hidden;
}
.sobre-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
/* Hide placeholder SVG when real photo loads */
.sobre-photo-placeholder:not(.no-photo) .placeholder-symbol { display: none; }

.placeholder-symbol {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-symbol svg {
  width: 80px;
  fill: var(--gold);
  opacity: 0.2;
}

.sobre-text .section-title { margin-bottom: 1.5rem; }

.bio {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.75;
  color: var(--ivory);
  margin-bottom: 1.25rem;
}

.stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.chip {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-dark);
  background: var(--gold);
  padding: 0.45rem 1rem;
}

@media (max-width: 768px) {
  .sobre-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .sobre-photo-placeholder {
    aspect-ratio: 4/3;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ============================================================
   SECTION 3 — SERVICIOS
============================================================ */
.servicios {
  background: var(--navy);
  padding: var(--section-pad);
}

.servicios-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;          /* razor-thin navy gap between cards */
  background: var(--navy);
}

.service-card {
  position: relative;
  background: var(--navy-mid);
  padding: 2.25rem 1.75rem 2rem;
  overflow: hidden;
  transition: background 0.15s;
}
.service-card:hover { background: #192d52; }

.card-accent-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}

.card-watermark {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 90px;
  opacity: 0.08;
  pointer-events: none;
}
.card-watermark svg { fill: var(--gold); }

.card-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.1875rem;
  color: var(--ivory);
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.card-desc {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--muted-2);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.servicios-cta {
  text-align: center;
  margin-top: 3rem;
}
.servicios-cta-link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.servicios-cta-link:hover { color: var(--gold-light); border-color: var(--gold-light); }

@media (max-width: 768px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .servicios-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION 4 — FILOSOFÍA
============================================================ */
.filosofia {
  background: var(--gold);
  padding: 5rem 1.5rem;
}

.filosofia-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.filosofia-quote {
  font-style: normal;
}
.filosofia-quote p {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  font-style: italic;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.filosofia-attr {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.7;
}

/* ============================================================
   SECTION 5 — BLOG / REFLEXIONES
============================================================ */
.blog {
  background: var(--navy-mid);
  padding: var(--section-pad);
}

.blog-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--navy-mid);
}

.blog-card {
  background: var(--navy);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.15s;
}
.blog-card:hover { background: #0e1b33; }

.blog-category {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.blog-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--ivory);
  line-height: 1.4;
  flex: 1;
}

.blog-date {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--muted-1);
}

.blog-read {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gold);
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.blog-read:hover { border-color: var(--gold); }

.blog-footer {
  text-align: center;
  margin-top: 2.5rem;
}
.blog-all {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.blog-all:hover { color: var(--gold-light); border-color: var(--gold-light); }

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION 6 — CONTACTO
============================================================ */
.contacto {
  background: var(--navy);
  padding: var(--section-pad);
}

.contacto-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contacto-sub {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--muted-2);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.contact-methods { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.contact-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-1);
}
.contact-link {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold);
  transition: color 0.15s;
}
a.contact-link:hover { color: var(--gold-light); }

.contact-schedule {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--muted-1);
  letter-spacing: 0.02em;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-mid);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  background: var(--navy-mid);
  border: 1px solid var(--muted-1);
  border-radius: 0;
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
}
.form-input::placeholder { color: var(--muted-1); }
.form-input:focus { border-color: var(--gold); }

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-submit {
  align-self: flex-start;
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .contacto-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================================
   SECTION 7 — FOOTER
============================================================ */
.site-footer {
  background: var(--navy-dark);
  border-top: 1px solid #0f1a2e;
}

.footer-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-crosspoint {
  width: 20px;
  height: 20px;
  fill: var(--gold);
}
.footer-name {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: 0.02em;
}

.footer-nav {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
}
.footer-nav a {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--gold); }

.footer-meta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--muted-1);
  text-align: right;
}

.footer-bottom {
  border-top: 1px solid #0f1a2e;
  padding: 1rem 1.5rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  color: var(--muted-1);
  letter-spacing: 0.03em;
}
.footer-bottom a { color: var(--muted-2); transition: color 0.15s; }
.footer-bottom a:hover { color: var(--gold); }

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .footer-brand { justify-content: center; }
  .footer-meta { text-align: center; }
  .footer-nav { flex-wrap: wrap; gap: 1rem; }
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 90;
  width: 52px;
  height: 52px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
}
.whatsapp-float:hover {
  background: var(--gold-light);
  transform: scale(1.05);
}
.whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: var(--navy-dark);
}

/* ============================================================
   BLOG COMING SOON
============================================================ */
.blog-soon {
  padding: var(--section-pad);
}
.blog-soon-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.blog-soon-text {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
}
.blog-soon-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
  opacity: 0.5;
}

/* ============================================================
   SOCIAL ICONS
============================================================ */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: color 0.2s;
}
.social-icon:hover { color: var(--ivory); }

/* Contact section */
.social-links {
  margin-top: 2rem;
}
.social-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.social-icons {
  display: flex;
  gap: 1rem;
}

/* Footer */
.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
  .footer-social { justify-content: center; }
  .social-icons  { justify-content: center; }
}

/* ============================================================
   SCROLL REVEAL (JS adds .revealed)
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}
