/* =========================================================
   STEFANIA DI STEFANO — Counseling y Acompañamiento Terapéutico
   Sistema visual: bone luminoso, acento vino profundo,
   detalles en dorado. Fraunces para titulares con carácter,
   Inter para el cuerpo de texto.
   ========================================================= */

:root{
  --bone: #F4EEE2;
  --bone-deep: #EAE0CE;
  --espresso: #2A211B;
  --wine: #6F2A3A;
  --wine-deep: #4C1D29;
  --gold: #B4823F;
  --gold-soft: #D9B87C;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --max-width-narrow: 700px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.25rem;
  --space-5: 3.5rem;
  --space-6: 5rem;
  --space-7: 6.5rem;

  --radius: 4px;
  --header-height: 76px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

[id]{ scroll-margin-top: 100px; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  margin: 0;
  padding-top: var(--header-height);
  background: var(--bone);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video{
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-optical-sizing: auto;
  line-height: 1.08;
  margin: 0 0 var(--space-3);
  color: var(--wine);
  letter-spacing: -0.01em;
}

h1{ font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 600; }
h2{ font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3{ font-size: clamp(1.3rem, 2.2vw, 1.55rem); font-weight: 600; }

p{ margin: 0 0 var(--space-3); max-width: 62ch; color: var(--espresso); }

a{ color: inherit; }

.visually-hidden{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--wine);
  color: var(--bone);
  padding: 0.8rem 1.2rem;
  z-index: 300;
  font-family: var(--font-body);
  font-weight: 600;
}
.skip-link:focus{
  left: var(--space-2);
  top: var(--space-2);
}

:focus-visible{
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

/* =========================
   BOTONES
   ========================= */

.btn{
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  padding: 1.05rem 2.3rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  min-height: 50px;
}

.btn-primary{
  background: var(--gold);
  color: var(--espresso);
}
.btn-primary:hover, .btn-primary:focus-visible{
  background: var(--gold-soft);
}

.btn-secondary{
  background: transparent;
  color: var(--wine);
  border-color: var(--wine);
}
.btn-secondary:hover, .btn-secondary:focus-visible{
  background: var(--wine);
  color: var(--bone);
}

.microcopy{
  font-size: 0.9rem;
  color: var(--espresso);
  opacity: 0.68;
  margin-top: var(--space-2);
  max-width: 46ch;
}

.microcopy-light{
  color: var(--bone);
  opacity: 0.85;
}

/* =========================
   HEADER
   ========================= */

.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bone);
  border-bottom: 2px solid var(--wine);
  box-shadow: 0 2px 10px rgba(42, 33, 27, 0.12);
}

.header-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand{
  text-decoration: none;
  color: var(--wine);
  line-height: 1.2;
}

.brand-name{
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.brand-sub{
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--espresso);
  opacity: 0.75;
  margin-top: 0.1rem;
}

.site-nav{
  display: none;
  gap: var(--space-4);
}

.site-nav a{
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--espresso);
  padding: 0.4rem 0.1rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-nav a:hover, .site-nav a:focus-visible{
  border-bottom-color: var(--wine);
}

.nav-toggle{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar{
  display: block;
  width: 22px;
  height: 2px;
  background: var(--wine);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px){
  .site-nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bone);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 8px 20px rgba(42,33,27,0.12);
  }
  .site-nav.is-open{ display: flex; }
  .site-nav a{
    color: var(--espresso);
    padding: 1rem var(--space-3);
    border-bottom: 1px solid rgba(42, 33, 27, 0.08);
  }
}

@media (min-width: 768px){
  .nav-toggle{ display: none; }
  .site-nav{
    display: flex;
    position: static;
    box-shadow: none;
  }
}

/* =========================
   LAYOUT GENERAL
   ========================= */

.section-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-6) var(--space-3);
}

.section-inner.narrow{
  max-width: var(--max-width-narrow);
}

.section-intro{
  max-width: 56ch;
  font-size: 1.08rem;
}

/* =========================
   HERO — banner de video a pantalla completa
   ========================= */

.hero{
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(190deg, rgba(24, 17, 13, 0.78) 0%, rgba(24, 17, 13, 0.5) 42%, rgba(24, 17, 13, 0.22) 75%, rgba(24,17,13,0.35) 100%);
}

.hero-copy{
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: var(--space-7) var(--space-3) var(--space-6);
  color: var(--bone);
}

.hero-kicker{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--gold-soft);
  margin: 0 0 var(--space-2);
}

.hero-copy h1{
  color: var(--bone);
  max-width: 16ch;
  margin-bottom: var(--space-4);
}

.hero-text{
  font-size: 1.1rem;
  color: var(--bone);
  opacity: 0.92;
  max-width: 52ch;
}

@media (min-width: 700px){
  .hero-copy{ padding-top: var(--space-7); }
}

/* =========================
   NO HACE FALTA ESTAR EN CRISIS
   ========================= */

.section-crisis{
  background: var(--bone);
}

.section-crisis h2{ margin-bottom: var(--space-3); }

.section-crisis p{ font-size: 1.08rem; }

.section-crisis .lede{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: var(--wine);
  line-height: 1.28;
  margin: var(--space-4) 0;
  max-width: none;
}

/* =========================
   SERVICIOS
   ========================= */

.section-servicios{
  background: var(--bone-deep);
}

.servicios-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.servicio{
  padding: var(--space-5) var(--space-4);
  border-radius: var(--radius);
}

.servicio p{ max-width: 58ch; }

.servicio-counseling{
  background: var(--bone);
  border: 2px solid var(--wine);
}

.servicio-acompanamiento{
  background: var(--wine);
  color: var(--bone);
}

.servicio-acompanamiento h3{ color: var(--bone); }
.servicio-acompanamiento p{ color: var(--bone); opacity: 0.92; }

.servicio-lead{
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--wine);
}

.servicios-cta{
  margin-top: var(--space-4);
}

@media (min-width: 900px){
  .servicios-grid{
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }
  .servicio-counseling{ margin-top: 0; }
}

/* =========================
   MANERA DE ACOMPAÑAR (vino — momento fuerte)
   ========================= */

.section-escucha{
  background: var(--wine-deep);
  color: var(--bone);
  position: relative;
}

.section-escucha .section-inner::before{
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin-bottom: var(--space-4);
}

.section-escucha h2{ color: var(--bone); }
.section-escucha p{ color: var(--bone); }

.section-escucha .destacado{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  color: var(--gold-soft);
  margin-bottom: var(--space-3);
}

.section-escucha .linea-corta{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--bone);
}

/* =========================
   SOBRE MI — collage de fotografías
   ========================= */

.section-sobre-mi{ background: var(--bone); }

.sobre-mi-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}

.sobre-mi-media{
  position: relative;
}

.foto-principal{
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -28px rgba(42, 33, 27, 0.5);
}

.sobre-mi-media.img-fallback .foto-principal{
  background: var(--wine-deep);
  color: var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4);
  font-family: var(--font-body);
}

.sobre-mi-copy p{ }

@media (min-width: 900px){
  .sobre-mi-grid{
    grid-template-columns: 0.85fr 1.15fr;
    gap: var(--space-6);
  }
  .foto-principal{ aspect-ratio: 3 / 4; }
}

/* =========================
   COMO EMPEZAR
   ========================= */

.section-como-empezar{ background: var(--bone-deep); }

.section-como-empezar .section-intro{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--wine);
}

.pasos{
  list-style: none;
  margin: var(--space-5) 0 var(--space-3);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.paso{
  border-top: 2px solid var(--wine);
  padding-top: var(--space-3);
}

.paso-numero{
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.paso h3{ margin-bottom: 0.4rem; }
.paso p{ margin: 0; }

.pasos-final{
  color: var(--espresso);
  opacity: 0.7;
  font-size: 0.95rem;
}

@media (min-width: 900px){
  .pasos{ grid-template-columns: repeat(3, 1fr); }
}

/* =========================
   CIERRE
   ========================= */

/* =========================
   VIDEOS — carrusel horizontal
   ========================= */

.section-videos{
  background: var(--bone-deep);
}

.videos-carousel{
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-4) calc(var(--space-3) * -1) 0;
  padding: 4px var(--space-3) 12px;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE/Edge viejo */
}

.videos-carousel::-webkit-scrollbar{
  display: none;               /* Chrome, Safari, Edge modernos */
}

.video-card{
  flex: 0 0 200px;
  scroll-snap-align: start;
}

.video-el{
  width: 200px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--wine-deep);
  box-shadow: 0 18px 36px -20px rgba(42, 33, 27, 0.5);
}

.video-caption{
  font-size: 0.85rem;
  color: var(--espresso);
  opacity: 0.8;
  margin: 10px 0 0;
  max-width: 200px;
}

.videos-dots{
  display: flex;
  gap: 6px;
  margin-top: var(--space-2);
}

.videos-dots .dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bone);
  border: 1px solid var(--wine);
  transition: background-color 0.2s ease;
}

.videos-dots .dot.is-active{
  background: var(--wine);
}

@media (min-width: 700px){
  .video-card{ flex-basis: 220px; }
  .video-el{ width: 220px; }
}

.section-cierre{
  background: var(--bone);
}

.section-cierre .section-inner{
  padding-top: var(--space-6);
  padding-bottom: var(--space-7);
}

.section-cierre h2{
  color: var(--wine);
  font-style: italic;
}

/* Cierre lleva fondo claro: anulamos el estilo "light" pensado para el hero oscuro */
.section-cierre .microcopy-light{
  color: var(--espresso);
  opacity: 0.68;
}

/* =========================
   FOOTER
   ========================= */

.site-footer{
  background: var(--wine-deep);
  color: var(--bone);
}

.footer-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-name{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--bone);
  margin: 0;
}

.footer-role{
  font-size: 0.8rem;
  color: var(--bone);
  opacity: 0.8;
  margin: 0.2rem 0 0;
}

.footer-nav{
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-nav a{
  text-decoration: none;
  color: var(--bone);
  opacity: 0.9;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-nav a:hover, .footer-nav a:focus-visible{
  opacity: 1;
  text-decoration: underline;
}

@media (min-width: 640px){
  .footer-inner{
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* =========================
   ANIMACIONES SUAVES AL SCROLL
   ========================= */

.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}
