/* ==========================================================================
   SOCIAS+ · Opción A
   Paleta y tipografías tomadas del Figma:
   - Navy:  #23223e   - Navy suave: #2c2b4a
   - Crema: #f3e9e4   - Rosa:       #c9aea7
   - Tinta: #4a4e69   - Gris cálido:#cfc8c4
   - WhatsApp: #25d366
   Tipos: DM Serif Display (títulos) / Montserrat (texto)
   ========================================================================== */

:root{
  --navy:#23223e;
  --navy-soft:#2c2b4a;
  --cream:#f3e9e4;
  --rose:#c9aea7;
  --rose-bg:#d6bdb3;
  --ink:#4a4e69;
  --warm-gray:#cfc8c4;
  --wa:#25d366;
  --serif:"DM Serif Display", Georgia, serif;
  --sans:"Montserrat", -apple-system, sans-serif;
  --ease:cubic-bezier(.22,.61,.36,1);
}

*{ -webkit-tap-highlight-color:transparent; }

html{ scroll-behavior:smooth; }

body{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--cream);
  overflow-x:hidden;
}

.wrap{
  max-width:1440px;
  margin:0 auto;
  padding-left:80px;
  padding-right:80px;
}
@media (max-width: 991px){
  .wrap{ padding-left:24px; padding-right:24px; }
}

/* ---------- utilidades tipográficas ---------- */
.eyebrow{
  font-size:11px;
  letter-spacing:3px;
  font-weight:500;
  color:var(--rose);
  margin-bottom:14px;
}
.eyebrow.rose{ color:var(--rose); }

.section-title{
  font-family:var(--serif);
  font-size:clamp(34px, 4vw, 48px);
  line-height:1.15;
  color:var(--navy);
  margin-bottom:18px;
}
.section-title.cream{ color:var(--cream); }
.section-title.italic{ font-style:italic; }
.section-title em{ font-style:italic; color:var(--rose); }

.section-sub{
  font-weight:300;
  font-size:16px;
  line-height:1.7;
  color:var(--ink);
  max-width:640px;
}

/* ---------- botones pill ---------- */
.btn-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:16px 32px;
  border-radius:999px;
  font-size:14px;
  font-weight:500;
  letter-spacing:.5px;
  text-decoration:none;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s, color .3s;
  will-change:transform;
}
.btn-pill:hover{ transform:translateY(-3px); box-shadow:0 12px 26px rgba(35,34,62,.18); }
.btn-pill:active{ transform:translateY(-1px); }

.btn-navy{ background:var(--navy); color:var(--cream); }
.btn-navy:hover{ background:var(--navy-soft); color:var(--cream); }

.btn-whatsapp{ background:var(--wa); color:#fff; }
.btn-whatsapp:hover{ background:#1fbf5b; color:#fff; box-shadow:0 12px 26px rgba(37,211,102,.35); }

.btn-outline-cream{ border-color:var(--cream); color:var(--cream); background:transparent; }
.btn-outline-cream:hover{ background:var(--cream); color:var(--navy); }

.btn-rose{ background:var(--rose); color:var(--navy); }
.btn-rose:hover{ background:#d8c0b9; color:var(--navy); }

/* ==========================================================================
   HEADER (Opción A: crema, sticky)
   ========================================================================== */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:var(--cream);
  padding:24px 0;
  transition:padding .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled{
  padding:12px 0;
  box-shadow:0 6px 24px rgba(35,34,62,.10);
}

.logo-img{
  height:53px;
  width:auto;
  transition:height .35s var(--ease);
}
.site-header.scrolled .logo-img{ height:42px; }

.main-nav{ gap:38px; }
.nav-link-item{
  position:relative;
  font-size:13.5px;
  letter-spacing:.5px;
  color:var(--ink);
  text-decoration:none;
  padding-bottom:4px;
  transition:color .25s;
}
.nav-link-item::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width:100%;
  height:1px;
  background:var(--navy);
  transform:scaleX(0);
  transform-origin:right;
  transition:transform .35s var(--ease);
}
.nav-link-item:hover,
.nav-link-item.is-active{ color:var(--navy); }
.nav-link-item:hover::after,
.nav-link-item.is-active::after{ transform:scaleX(1); transform-origin:left; }

/* hamburguesa */
.nav-toggle{
  width:42px; height:42px;
  border:1px solid rgba(74,78,105,.35);
  border-radius:50%;
  background:transparent;
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
}
.nav-toggle span{
  display:block;
  width:18px; height:1.5px;
  background:var(--navy);
  transition:transform .3s var(--ease), opacity .3s;
}
.nav-toggle.open span:nth-child(1){ transform:translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-6.5px) rotate(-45deg); }

.mobile-menu{
  display:none;
  flex-direction:column;
  gap:18px;
  padding:24px;
  border-top:1px solid rgba(74,78,105,.15);
  margin-top:16px;
}
.mobile-menu.open{ display:flex; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position:relative;
  background:var(--navy);
  padding:90px 0;
  overflow:hidden;
}
.hero-plus{
  position:absolute;
  font-family:var(--serif);
  line-height:1;
  color:var(--navy-soft);
  user-select:none;
  pointer-events:none;
  animation-name:plusDrift;
  animation-timing-function:ease-in-out;
  animation-iteration-count:infinite;
  animation-direction:alternate;
}
/* + grande, ancla original de la composición */
.hero-plus--1{
  top:-140px; left:72%;
  font-size:560px;
  opacity:.55;
  animation-duration:14s;
}
/* pocas más, pequeñas y tenues, a modo de partículas flotando en el fondo */
.hero-plus--2{
  top:64px; left:9%;
  font-size:46px;
  opacity:.16;
  animation-duration:11s;
  animation-delay:-2s;
}
.hero-plus--3{
  top:360px; left:40%;
  font-size:28px;
  opacity:.12;
  animation-duration:16s;
  animation-delay:-6s;
}
.hero-plus--4{
  bottom:30px; left:58%;
  font-size:80px;
  opacity:.1;
  animation-duration:19s;
  animation-delay:-4s;
}
@keyframes plusDrift{
  from{ transform:translateY(0) rotate(0deg); }
  to{ transform:translateY(26px) rotate(2deg); }
}

.hero-grid{
  display:flex;
  align-items:center;
  gap:70px;
}
.hero-text{ flex:1 1 auto; max-width:790px; position:relative; z-index:1; }

.badge-pill{
  display:inline-flex;
  align-items:center;
  padding:8px 16px;
  border:1px solid rgba(201,174,167,.6);
  border-radius:999px;
  color:var(--rose);
  font-size:10.5px;
  font-weight:500;
  letter-spacing:2.5px;
  margin-bottom:26px;
  white-space:nowrap;
}

.hero-title{
  font-family:var(--serif);
  font-size:clamp(38px, 4.6vw, 58px);
  line-height:1.12;
  color:var(--cream);
  margin-bottom:26px;
}
.hero-title em{ font-style:italic; color:var(--rose); }

.hero-sub{
  font-weight:300;
  font-size:17px;
  line-height:1.7;
  color:var(--warm-gray);
  max-width:640px;
  margin-bottom:26px;
}

.hero-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  padding-top:10px;
}

.hero-photo{
  flex:0 0 347px;
  width:347px;
  height:524px;
  margin:0;
  position:relative;
  z-index:1;
  overflow:hidden;
}
.hero-photo img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1.06);
  transition:transform 1.2s var(--ease);
}
.hero.loaded .hero-photo img{ transform:scale(1); }

@media (max-width: 991px){
  .hero{ padding:64px 0; }
  .hero-grid{ flex-direction:column; align-items:flex-start; gap:44px; }
  .hero-photo{ flex:none; width:100%; max-width:420px; height:auto; aspect-ratio:347/524; }
  .badge-pill{ white-space:normal; letter-spacing:2px; }
  .hero-title br{ display:none; }
  .hero-plus--1{ font-size:340px; left:60%; top:-80px; }
  .hero-plus--2, .hero-plus--3, .hero-plus--4{ display:none; }
}

/* animación de entrada del hero (activada por JS) */
.anim-hero{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .8s var(--ease), transform .8s var(--ease);
}
.hero.loaded .anim-hero{ opacity:1; transform:translateY(0); }
.hero.loaded .anim-hero[data-delay="1"]{ transition-delay:.15s; }
.hero.loaded .anim-hero[data-delay="2"]{ transition-delay:.3s; }
.hero.loaded .anim-hero[data-delay="3"]{ transition-delay:.45s; }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats{
  background:var(--cream);
  padding:44px 0;
}
.stat-number{
  font-family:var(--serif);
  font-size:48px;
  line-height:1.2;
  color:var(--navy);
}
.stat-label{
  font-size:11px;
  letter-spacing:2px;
  font-weight:500;
  color:var(--ink);
  margin-top:6px;
}

/* ==========================================================================
   SOBRE LA FIRMA
   ========================================================================== */
.about{
  background:var(--cream);
  padding:110px 0;
  border-top:1px solid rgba(74,78,105,.12);
}
.about-item{
  padding:26px 0;
  border-bottom:1px solid rgba(74,78,105,.15);
}
.about-item:first-child{ padding-top:0; }
.about-title{
  font-family:var(--serif);
  font-style:italic;
  font-size:28px;
  color:var(--navy);
  margin-bottom:10px;
  position:relative;
  display:inline-block;
}
.about-title::before{
  content:"+";
  color:var(--rose);
  margin-right:12px;
  font-style:normal;
}
.about-item p{
  font-weight:300;
  font-size:15px;
  line-height:1.7;
  margin:0;
  max-width:560px;
}

/* ==========================================================================
   TESTIMONIO
   ========================================================================== */
.testimonial{
  background:var(--rose-bg);
  padding:96px 0;
}
.quote-mark{
  font-family:var(--serif);
  font-size:96px;
  line-height:.6;
  color:var(--navy);
  margin-bottom:34px;
}
.quote-text{
  font-family:var(--serif);
  font-style:italic;
  font-size:clamp(22px, 2.6vw, 32px);
  line-height:1.5;
  color:var(--navy);
  max-width:1080px;
  margin:0 auto 28px;
}
.quote-label{
  font-size:11px;
  letter-spacing:2.5px;
  font-weight:500;
  color:var(--navy);
}

/* ==========================================================================
   ÁREAS DE PRÁCTICA
   ========================================================================== */
.areas{
  background:var(--navy);
  padding:110px 0;
}
.areas-head{ margin-bottom:40px; gap:16px; }
.areas-note{
  font-size:14px;
  color:var(--warm-gray);
  margin:0;
}

.area-row{
  display:grid;
  grid-template-columns:90px 480px 1fr 46px;
  align-items:center;
  gap:0;
  padding:26px 0;
  border-bottom:1px solid rgba(243,233,228,.12);
  cursor:pointer;
  transition:background-color .35s, padding-left .35s var(--ease);
}
.area-row:hover{
  background:rgba(243,233,228,.04);
  padding-left:14px;
}
.area-num{
  font-family:var(--serif);
  font-style:italic;
  font-size:20px;
  color:var(--rose);
}
.area-title{
  font-family:var(--serif);
  font-size:24px;
  color:var(--cream);
  margin:0;
  transition:color .3s;
}
.area-row:hover .area-title{ color:#fff; }
.area-desc{
  font-weight:300;
  font-size:14px;
  color:var(--warm-gray);
  margin:0;
  padding-right:24px;
}
.area-plus{
  width:46px; height:46px;
  border:1px solid rgba(243,233,228,.35);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--serif);
  font-size:22px;
  color:var(--cream);
  transition:transform .4s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.area-row:hover .area-plus{
  transform:rotate(90deg);
  background:var(--rose);
  border-color:var(--rose);
  color:var(--navy);
}

@media (max-width: 991px){
  .areas{ padding:72px 0; }
  .area-row{
    grid-template-columns:48px 1fr 40px;
    grid-template-areas:
      "num title plus"
      "num desc  plus";
    row-gap:6px;
  }
  .area-num{ grid-area:num; font-size:16px; }
  .area-title{ grid-area:title; font-size:20px; }
  .area-desc{ grid-area:desc; padding-right:0; }
  .area-plus{ grid-area:plus; width:40px; height:40px; }
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services{
  background:var(--cream);
  padding:110px 0;
}
.services-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:36px;
}
@media (max-width: 767px){
  .services-grid{ grid-template-columns:1fr; }
}
.service-chip{
  display:flex;
  align-items:center;
  gap:12px;
  background:#fff;
  border:1px solid rgba(74,78,105,.14);
  border-radius:999px;
  padding:14px 20px;
  font-size:13.5px;
  font-weight:400;
  color:var(--navy);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  cursor:pointer;
}
.service-chip span{
  font-family:var(--serif);
  color:var(--rose);
  font-size:18px;
  line-height:1;
}
.service-chip:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 22px rgba(35,34,62,.10);
  border-color:var(--rose);
}
.service-chip.active{
  background:var(--rose);
  color:#fff;
  border-color:var(--rose);
}
.service-chip.active span{
  color:#fff;
}

/* ---------- tarjetas de formulario ---------- */
.form-card{
  border-radius:16px;
  padding:40px 36px;
}
.form-card.dark{
  background:var(--navy);
  box-shadow:0 24px 60px rgba(35,34,62,.25);
}
.form-card.light{
  background:#fff;
  border:1px solid rgba(74,78,105,.14);
  box-shadow:0 18px 44px rgba(35,34,62,.08);
}
.form-title{
  font-family:var(--serif);
  font-size:28px;
  color:var(--cream);
  margin-bottom:6px;
}
.form-title.navy{ color:var(--navy); }
.form-sub{
  font-weight:300;
  font-size:13px;
  color:var(--warm-gray);
  margin-bottom:22px;
}
.field-label{
  display:block;
  font-size:10.5px;
  letter-spacing:2px;
  font-weight:500;
  color:var(--rose);
  margin:16px 0 8px;
}
.form-card.light .field-label{ color:var(--ink); }

.field-input{
  width:100%;
  border:1px solid rgba(243,233,228,.22);
  background:rgba(243,233,228,.06);
  border-radius:10px;
  padding:13px 16px;
  font-size:14px;
  color:var(--cream);
  font-family:var(--sans);
  transition:border-color .3s, box-shadow .3s, background-color .3s;
}
.field-input:focus{
  outline:none;
  border-color:var(--rose);
  box-shadow:0 0 0 3px rgba(201,174,167,.22);
}
.field-input.area{ resize:vertical; min-height:110px; }
.field-input option{ color:var(--navy); }

.form-card.light .field-input{
  border-color:rgba(74,78,105,.22);
  background:#fff;
  color:var(--navy);
}
.form-card.light .field-input:focus{
  border-color:var(--navy);
  box-shadow:0 0 0 3px rgba(35,34,62,.12);
}

.form-card .btn-pill{ margin-top:26px; }

.form-feedback{
  margin:14px 0 0;
  font-size:13px;
  color:var(--rose);
  min-height:1em;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .4s, transform .4s;
}
.form-feedback.show{ opacity:1; transform:translateY(0); }
.form-card.light .form-feedback{ color:var(--navy); }

/* estado de error */
.field-input.error{ border-color:#d46a6a !important; }

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact{
  background:#fbf6f3;
  padding:110px 0;
}
.contact-list{
  list-style:none;
  padding:0;
  margin:44px 0 24px;
}
.contact-list li{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:20px;
  font-size:14px;
}
.contact-list a{ color:var(--navy); text-decoration:none; transition:color .25s; }
.contact-list a:hover{ color:var(--rose); }
.cl-label{
  font-size:10.5px;
  letter-spacing:2px;
  font-weight:500;
  color:var(--ink);
  min-width:86px;
}
.cl-line{
  width:24px; height:1px;
  background:var(--rose);
}
.socials{ display:flex; gap:12px; flex-wrap:wrap; }
.social-pill{
  padding:8px 16px;
  border:1px solid rgba(74,78,105,.25);
  border-radius:999px;
  font-size:12.5px;
  color:var(--navy);
  text-decoration:none;
  transition:background-color .3s, color .3s, transform .3s var(--ease);
}
.social-pill:hover{
  background:var(--navy);
  color:var(--cream);
  transform:translateY(-2px);
}
.map-box {
    margin-top: 0;
    aspect-ratio: 4 / 3; /* O usa 1 / 1 si lo quieres completamente cuadrado */
    border-radius: 12px;
    background: #e6dcd6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(35,34,62,.08);
}
.map-box iframe{ width:100%; height:100%; border:0; border-radius:12px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer{
  background:var(--navy);
  padding:70px 0 40px;
}
.footer-big{
  font-family:var(--serif);
  font-style:italic;
  font-size:clamp(52px, 6vw, 80px);
  color:var(--cream);
  margin-bottom:40px;
}
.footer-logo{
  font-family:var(--serif);
  font-size:24px;
  letter-spacing:3px;
  color:var(--cream);
  text-decoration:none;
}
.footer-logo span{ color:var(--rose); }
.footer-nav, .footer-socials{ display:flex; gap:26px; flex-wrap:wrap; }
.footer-nav a, .footer-socials a{
  font-size:12.5px;
  color:var(--warm-gray);
  text-decoration:none;
  transition:color .25s;
}
.footer-nav a:hover, .footer-socials a:hover{ color:var(--cream); }
.footer-divider{
  height:1px;
  background:rgba(243,233,228,.15);
  margin:34px 0;
}
.footer-copy{
  font-size:11.5px;
  color:var(--warm-gray);
  margin:0;
}

/* ==========================================================================
   ÁREAS DE PRÁCTICA (sección con fondo oscuro)
   ========================================================================== */
.areas{
  background:var(--navy);
  padding:80px 0;
}

.areas-head{
  margin-bottom:60px;
}

.areas-note{
  font-size:14px;
  font-weight:400;
  color:rgba(243,233,228,.6);
  margin:0;
}

/* ==========================================================================
   ACORDEÓN DE ÁREAS DE PRÁCTICA
   ========================================================================== */
.areas-accordion{
  display:flex;
  flex-direction:column;
  gap:1.5rem;
}

.accordion-item{
  border:none;
  border-bottom:1px solid rgba(243,233,228,.1);
  border-radius:0;
  transition:all .3s ease;
}

.accordion-item.open{
  border-color:var(--rose);
  background-color:rgba(201, 174, 167, 0.12);
}

.accordion-header{
  display:flex;
  align-items:center;
  gap:2.5rem;
  width:100%;
  padding:28px 0;
  background:none;
  border:none;
  cursor:pointer;
  font-size:1rem;
  text-align:left;
  transition:all .3s ease;
  font-family:var(--sans);
  font-weight:500;
}

.accordion-header:hover{
  border-bottom-color:rgba(243,233,228,.2);
}

.accordion-header .area-num{
  font-weight:600;
  color:rgba(201, 174, 167, 0.7);
  min-width:2.8rem;
  font-size:0.95rem;
  font-family:var(--sans);
  letter-spacing:1px;
  flex-shrink:0;
}

.accordion-header .area-title{
  flex:1;
  margin:0;
  font-size:1.05rem;
  font-weight:500;
  color:var(--cream);
  font-family:var(--serif);
}

.accordion-header .area-plus{
  font-size:1.3rem;
  color:rgba(201, 174, 167, 0.6);
  transition:transform .3s ease, color .3s ease;
  flex-shrink:0;
  border:1px solid rgba(201, 174, 167, 0.4);
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:transparent;
}

.accordion-header:hover .area-plus{
  border-color:rgba(201, 174, 167, 0.7);
  color:rgba(201, 174, 167, 0.8);
}

.accordion-item.open .accordion-header .area-plus{
  transform:rotate(45deg);
  border-color:var(--rose);
  color:var(--rose);
}

.accordion-body{
  padding:0 0 24px 2.8rem;
  display:none;
  margin:0;
  max-height:300px;
}

.accordion-body .area-desc{
  margin:0;
  line-height:1.7;
  color:rgba(243,233,228,.8);
  font-size:0.95rem;
  max-width:600px;
}

@media (max-width:768px){
  .areas{
    padding:60px 0;
  }

  .areas-head{
    margin-bottom:40px;
  }

  .accordion-header{
    gap:1.5rem;
    padding:1.2rem 0;
  }

  .accordion-body{
    padding:0 0 1.2rem 2rem;
  }

  .accordion-header .area-title{
    font-size:1rem;
  }

  .accordion-header .area-num{
    min-width:2rem;
    font-size:1rem;
  }

  .accordion-header .area-plus{
    width:36px;
    height:36px;
    font-size:1.2rem;
  }
}

/* ==========================================================================
   WHATSAPP FLOTANTE
   ========================================================================== */
.wa-float{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:1100;
  width:60px; height:60px;
  border-radius:50%;
  background:var(--wa);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 28px rgba(37,211,102,.4);
  transition:transform .3s var(--ease);
  animation:waPulse 2.6s infinite;
}
.wa-float:hover{ transform:scale(1.1); color:#fff; }
@keyframes waPulse{
  0%{ box-shadow:0 10px 28px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.45); }
  70%{ box-shadow:0 10px 28px rgba(37,211,102,.4), 0 0 0 18px rgba(37,211,102,0); }
  100%{ box-shadow:0 10px 28px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,0); }
}

/* ==========================================================================
   REVEAL AL HACER SCROLL (activado por JS)
   ========================================================================== */
.reveal{
  opacity:0;
  transform:translateY(30px);
  transition:opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in{ opacity:1; transform:translateY(0); }
.reveal[data-delay="1"]{ transition-delay:.12s; }
.reveal[data-delay="2"]{ transition-delay:.24s; }
.reveal[data-delay="3"]{ transition-delay:.36s; }
.reveal[data-delay="4"]{ transition-delay:.48s; }
.reveal[data-delay="5"]{ transition-delay:.6s; }

/* accesibilidad: respetar reduce motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .reveal, .anim-hero{ opacity:1 !important; transform:none !important; transition:none !important; }
  .hero-plus, .wa-float{ animation:none !important; }
  .hero-photo img{ transform:none !important; }
}
