/* =========================================================
   Andrea Diego · CSS base unificado
   Paleta:
   --primary: #4b7f86; --primary-2: #80afa6;
   --soft-1: #d2dfc2;  --soft-2: #e6d8b6;
   --ink: #404040;     --muted: #a6a6a6;
   --canvas: #ffffff;  --paper: #E1DCD6;
   ========================================================= */

/* =========================================================
   TOKENS / RESET / TIPOGRAFÍA / UTILIDADES
   ========================================================= */
:root{
  /* colores */
  --bg:#ffffff; --text:#404040; --muted:#a6a6a6;
  --primary:#4b7f86; --primary-2:#80afa6;
  --soft-1:#d2dfc2; --soft-2:#e6d8b6;
  --paper:#E1DCD6;  --card:#f7f7f7;

  /* layout */
  --header-h:78px; --radius:16px;

  /* sombras */
  --shadow-sm:0 2px 10px rgba(0,0,0,0.05);
  --shadow-md:0 10px 28px rgba(0,0,0,0.06);
  --shadow-lg:0 16px 40px rgba(0,0,0,0.08);
}

/* reset mínimo */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
img{ max-width:100%; height:auto; display:block; }

/* tipografía base */
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text); background:var(--bg); line-height:1.65;
  text-rendering:optimizeLegibility; -webkit-font-smoothing:antialiased;
  display:flex; flex-direction:column; min-height:100vh;
}
main{ flex:1; }

h1,h2,h3{ line-height:1.2; margin:0 0 .8rem; color:var(--text); }
h1{ font-size:clamp(30px,6vw,48px); letter-spacing:.2px; font-weight:700; }
h2{ font-size:clamp(22px,4.6vw,34px); font-weight:700; }
h3{ font-size:clamp(18px,3.5vw,22px); font-weight:700; }
p{ margin:.5rem 0 1rem; }
.muted{ color:var(--muted); }

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:none; opacity:.92; }

/* botón primario (única definición) */
.btn{
  display:inline-block; border:0; border-radius:10px;
  background:var(--primary); color:#fff !important;
  padding:12px 20px; font-weight:600; letter-spacing:.2px;
  transition:background .2s, transform .1s, box-shadow .2s;
}
.btn:hover{ background:var(--primary-2); transform:translateY(-1px); }
.btn:active{ transform:scale(.98); }
.btn:disabled{ opacity:.6; cursor:not-allowed; }

/* layout genérico */
.container{
  max-width:1180px; width:100%;
  margin-inline:auto;
  padding-inline:clamp(16px,4.5vw,28px);   /* márgenes laterales unificados */
}
.section{ padding:44px 0; }
.stack{ display:grid; gap:16px; }
.stack-lg{ display:grid; gap:24px; }

/* anti-overflow global */
html{ width:100%; overflow-x:hidden; }
body{ overflow-x:clip; } /* iOS/Android */

/* Evitar que hijos de grid/flex ensanchen el viewport */
.header-inner > *,
.testi-grid > *,
.terapia-op2-grid > *,
.cards-conoceme .card > *,
.blog-grid > * { min-width:0; }

/* safe-area iPhone */
@supports(padding:max(0px)){
  .container{ padding-left:max(16px, env(safe-area-inset-left));
              padding-right:max(16px, env(safe-area-inset-right)); }
}

/* =========================================================
   HEADER (logo centrado · nav izq/der) + móvil
   ========================================================= */
/* base desktop */
.site-header{ background:#fff; border-bottom:1px solid #eee; }
@media (min-width:961px){
  .site-header{ position:sticky; top:0; z-index:100; }
  .site-header .container{ max-width:none; width:100%; padding-inline:56px; }
  .header-inner{
    display:grid; grid-template-columns:1fr auto 1fr; align-items:center;
    column-gap:clamp(48px,8vw,180px); min-height:78px;
  }
  .nav-left,.nav-right{
    display:flex; align-items:center; justify-self:stretch; width:100%;
  }
  .nav-left{ justify-content:flex-start; gap:clamp(18px,2.4vw,56px); }
  .nav-right{ justify-content:flex-end;  gap:clamp(18px,2.4vw,56px); }
  .brand{ justify-self:center; }
  .brand img{ height:52px; }
  .header-link{ color:#222; word-spacing:.2em; letter-spacing:.02em; font-weight:100; }
  .header-link:hover{ opacity:.75; }
  .menu-toggle, .mobile-overlay, .mobile-drawer{ display:none; }
}

/* móvil */
@media (max-width:960px){
  .site-header{
    --header-h:78px; position:fixed; top:0; left:0; right:0; z-index:1000;
    padding-top: env(safe-area-inset-top);
  }
  body.has-fixed-header{ padding-top:calc(var(--header-h) + env(safe-area-inset-top)); }
  .header-inner{ display:flex; align-items:center; justify-content:space-between; column-gap:0; min-height:var(--header-h); }
  .brand{ flex:1 1 auto; min-width:0; }
  .brand img{ height:46px; max-width:58vw; }
  .nav-left,.nav-right{ display:none !important; }
  .menu-toggle{
    display:inline-flex; align-items:center; justify-content:center;
    width:44px; height:40px; margin-right:14px; background:transparent; border:0;
    font-size:22px; color:#111;
  }
  .mobile-drawer{
    position:fixed; top:var(--header-h); left: 0; right: 0; bottom: auto; height: auto;
    width:100%; max-height: calc(100dvh - var(--header-h) - 16px);  overflow:auto;
    background:#fff; border-top:1px solid #eee; color:var(--text);
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transform-origin:top; transform:scaleY(0); opacity:0; pointer-events:none;
    transition:transform .22s ease, opacity .22s ease; z-index:900; display:block;
  }
  .mobile-drawer.open{ transform:scaleY(1); opacity:1; pointer-events:auto; }
  .mobile-drawer nav{ display:grid; gap:18px; padding:16px; }
  .mobile-drawer a{ display:block; color:var(--text); font-size:18px; padding:8px 6px; border-radius:8px; }
  .mobile-drawer a:hover{ opacity:.75; }
  .mobile-drawer a.btn{ width:100%; padding:10px 14px; border-radius:10px; background:var(--primary); color:#fff; }
  .mobile-drawer a.btn:hover{ background:var(--primary-2); }
  .mobile-overlay{
    position:fixed; inset:0; background:rgba(0,0,0,.35); backdrop-filter:blur(2px);
    opacity:0; pointer-events:none; transition:opacity .22s ease; z-index:800;
  }
  .mobile-overlay.show{ opacity:1; pointer-events:auto; }
}

/* =========================================================
   HERO (full)
   ========================================================= */
.hero-full{ min-height:100dvh; display:grid; place-items:center; position:relative; overflow:hidden; }
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-media img, .hero-media picture { width:100%; height:100%; display:block; }
.hero-media img { object-fit:cover; object-position:center; }
.hero-content{
  position:relative; z-index:1; text-align:center; color:#222;
  padding:26px 22px; border-radius:20px; max-width:min(820px, 100%);
}
.hero-content > h1{ font-weight:800; color:#d8d8d8; font-size:45px;}
.hero-content p{ color:#d8d8d8; font-size:large; }
.hero-full::after{
  content:""; position:absolute; inset:0; z-index:0;
  background:linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35));
  pointer-events:none;
}

/* =========================================================
   CONÓCEME (card)
   ========================================================= */
.cards{ display:grid; gap:20px; }

.cards-conoceme .card{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  align-items:center; gap:clamp(24px,4vw,64px);
  max-width:1100px; margin-inline:auto; padding:18px 20px; margin:40px 0;
}
.cards-conoceme .card img{
  width:100%; height:auto; border-radius:2px; object-fit:cover; justify-self:end;
}
.section-conoceme .texto{ max-width:60ch; text-align:left; }
.section-conoceme .texto p,
.section-conoceme .texto a{
  font-family:"Quicksand", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size:1.08rem; line-height:1.75; color:var(--text);
}
.section-conoceme .texto a{ display:inline-block; margin:0; font-weight:700; }
.item-title{
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f1f1f;
  margin: 0;                
  line-height: 1.2;
}
.item-title .item-meta{
  display: block;           
  margin-top: 2px;
  font-weight: 400;
  font-size: .95rem;         
  color: #8b8b8b;           
  letter-spacing: .1px;
}

/* --- Responsive Conóceme --- */
@media (max-width:900px){
  .cards-conoceme .card{ grid-template-columns:1fr; justify-items:center; gap:20px; }
  .section-conoceme .texto{ width:min(66ch,100%); margin-inline:auto; }
  .cards-conoceme .card img{ width:min(66ch,100%); border-radius:12px; justify-self:center; }
}

/* =========================================================
   TERAPIA 
   ========================================================= */
.terapia-op2{ background:color-mix(in srgb, var(--paper) 60%, #fff 40%); overflow:hidden; padding:50px 0; }
.terapia-op2-grid{
  display:grid;
  grid-template-columns:minmax(380px,1fr) minmax(420px,1fr);
  align-items:stretch;                 /* ambas columnas a la misma altura */
  gap:clamp(24px,6vw,88px);
}
.terapia-op2-grid .saber-mas{ grid-column:1 / -1; justify-self:center; margin-top:clamp(10px, 2.5vw, 22px); }
.terapia-figure{
  margin:0;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 16px 40px rgba(0,0,0,.08);
  border:1px solid #eee;
  background:#fff;
  position:relative;                   /* clave para posicionar la img */
}
.terapia-figure img{
  position:absolute;                   /* sácala del flujo */
  inset:0;                             /* top/right/bottom/left: 0 */
  width:100%;
  height:100%;
  object-fit:cover;                    /* recorte elegante */
}
.terapia-op2-copy{ max-width:62ch; }
.terapia-op2-copy h2.serif-italic{
  font-family:"Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
  font-style:italic; font-weight:700; letter-spacing:.2px; font-size:clamp(28px,4.6vw,40px); margin:0 0 12px;
}
.terapia-op2-copy .intro{ margin:0 0 clamp(14px, 2.2vw, 18px); }
.terapia-op2-copy .steps{ list-style:none; padding:0; margin:clamp(12px, 2.2vw, 18px) 0 clamp(18px, 3vw, 24px); display:grid; gap:clamp(12px, 2.4vw, 16px); }
.terapia-op2-copy .steps li{
  /* display:grid; grid-template-columns:clamp(38px, 5.2vw, 64px) 1fr; */
  align-items:center;
  /* column-gap:clamp(12px, 2vw, 18px); */
  padding:clamp(14px, 2vw, 18px) 0; border-bottom:1px solid #848484;
}
.terapia-op2-copy .steps .n{
  font-family:"Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
  font-style:italic; font-weight:600; font-size:20px;
  line-height:1; justify-self:center; align-self:center;
}
.terapia-op2-copy .steps .n1{
border-top:1px solid #848484;
padding: 25px 0 15px 0;
margin-top: 20px;
}
.terapia-op2 .container{
  padding-inline: clamp(28px, 7vw, 72px);;  /* móvil ≈28px → tablet ≈40–60px → tope 72px */
}
/* --- Responsive Terapia --- */
@media (max-width:1024px){
  .terapia-op2-grid{ grid-template-columns:minmax(360px,1fr) 1fr; }
}
@media (max-width:900px){
  .terapia-op2-grid{ grid-template-columns:1fr; gap:clamp(18px,4vw,32px); }
  .terapia-op2-images{
    --w-main:clamp(220px,52vw,360px);
    --w-top:clamp(110px,26vw,180px);
    --w-bottom:clamp(120px,30vw,200px);
    --shift-top-x:-18%; --shift-top-y:-14%; --shift-bottom-x:14%; --shift-bottom-y:16%;
    padding-bottom:14vw;
  }
  .terapia-op2-copy{ max-width:66ch; margin-inline:auto; }
  .terapia-op2-grid .saber-mas{ margin-top:clamp(14px,4vw,26px); }
  .terapia-op2-grid{ grid-template-columns: 1fr; }
  .terapia-figure{
    min-height: clamp(360px, 82vw, 620px);  
  }
  .terapia-figure img{
    object-position: 50% 30%; 
  }
}
@media (max-width:520px){
  .terapia-op2-images{
    --w-main:clamp(200px,62vw,320px);
    --w-top:clamp(100px,34vw,160px);
    --w-bottom:clamp(110px,36vw,180px);
    --shift-top-x:-14%; --shift-top-y:-10%; --shift-bottom-x:12%; --shift-bottom-y:14%;
  }
}

/* =========================================================
   FRANJA · FONDO FIJO
   ========================================================= */
.fondo-fijo{
  --alto:clamp(300px, 52vh, 520px);
  min-height:var(--alto); display:grid; place-items:center;
  background:linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url("../media/imagen-fija.jpg") center/cover no-repeat fixed; 
}
.fondo-fijo__contenido{ text-align:center; color:#fff; text-shadow:0 2px 12px rgba(0,0,0,.35); padding-inline:clamp(16px,4vw,32px); }
.fondo-fijo .kicker{
  margin:0 0 8px; font-family:"Playfair Display", ui-serif, Georgia, serif;
  font-style:italic; letter-spacing:.06em; color:#cccccc; text-shadow:2px 2px 100px rgba(0,0,0,.35);
}
.fondo-fijo h2{
  margin:0; color:#ffffff; font-family:"Playfair Display", ui-serif, Georgia, serif; font-style:italic; font-weight:700;
  line-height:1.15; font-size:clamp(22px, 3.6vw, 44px);
}

/* =========================================================
   BLOG PREVIEW (cards)
   ========================================================= */
.blog-preview{ background:#f9f9f9; padding:80px 20px; text-align:center; }
.blog-title{ font-size:2rem; margin-bottom:10px; color:#222; }
.blog-subtitle{ color:#555; margin-bottom:50px; font-size:1.1rem; }
.blog-grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:30px; max-width:1200px; margin:0 auto;
}
.blog-card{
  background:#fff; border-radius:16px; overflow:hidden; box-shadow:0 6px 20px rgba(0,0,0,0.06);
  display:flex; flex-direction:column; transition:transform .25s ease, box-shadow .25s ease;
}
.blog-card:hover{ transform:translateY(-6px); box-shadow:0 10px 30px rgba(0,0,0,0.1); }
.blog-card img{ width:100%; height:180px; object-fit:cover; }
.blog-content{ padding:20px; text-align:left; }
.blog-content h3{ margin-top:0; font-size:1.25rem; }
.blog-content h3 a{ color:#222; }
.blog-content h3 a:hover{ color:var(--primary); }
.blog-content p{ margin:10px 0 20px; color:#555; line-height:1.5; }
.blog-link{ font-weight:600; color:var(--primary); }
.blog-link:hover{ text-decoration:underline; }
.blog-more{ margin-top:40px; }
.btn-more{ display:inline-block; padding:12px 28px; background:var(--primary); color:#fff; border-radius:30px; font-weight:600; transition:background .25s; }
.btn-more:hover{ background:#3d676d; }

/* =========================================================
   TESTIMONIOS (carrusel) — FIX columnas laterales fijas
   ========================================================= */
.testimonios{
  background: color-mix(in srgb, var(--paper) 60%, #fff 40%);
  padding: clamp(32px, 6vw, 56px) 0;

  /* tamaños controlados */
  --content-max: 860px;                 /* ancho máx. del texto */
  --btn-w: clamp(36px, 4.8vw, 52px);    /* ancho fijo columnas flechas */
  --slide-min-h: 130px;
  --dur: 650ms;
}

.testi-title{
  text-align:center;
  font-family:"Playfair Display", ui-serif, Georgia, serif;
  font-style:italic; font-weight:700; letter-spacing:.02em; color:#404040;
  margin:0 0 clamp(18px,3.2vw,26px);
}

/* Grid: [flecha] [contenido centrado y acotado] [flecha] */
.testi-grid{
  display:grid;
  grid-template-columns: var(--btn-w) minmax(0, var(--content-max)) var(--btn-w);
  align-items:center;
  justify-content:center;      /* centra el bloque completo */
  column-gap: 10px;
  width:100%;
}

.testi-viewport{ overflow:hidden; min-height: var(--slide-min-h); }
.testi-track{
  display:flex; will-change:transform;
  transition: transform var(--dur) cubic-bezier(.22,.61,.36,1);
}
.testi-item{ flex:0 0 100%; padding-inline: 4px; }

.testi-quote{
  margin:0; text-align:center;
  font-family:"Playfair Display", ui-serif, Georgia, serif;
  font-style:italic; font-size: clamp(18px, 2.2vw, 28px);
  line-height:1.6; color:#2e2e2e;
  text-wrap: balance; overflow-wrap:anywhere;
}

/* Botones siempre visibles y pegados al texto */
.testi-arrow{
  appearance:none; -webkit-appearance:none;
  background:transparent; border:none; color:var(--primary);
  font-size: clamp(24px, 1.4vw + 14px, 34px);
  line-height:1; padding:.25rem .35rem; cursor:pointer; user-select:none;
}
.testi-arrow.prev{ justify-self:center; }
.testi-arrow.next{ justify-self:center; }
.testi-arrow:hover{ transform: translateY(-1px); }
.testi-arrow:active{ transform: translateY(0); }
.testi-arrow:focus-visible{
  outline:2px solid color-mix(in srgb, var(--primary) 60%, transparent);
  outline-offset:2px;
}

/* --- Responsive (ajustes finos) --- */
@media (max-width: 640px){
  .testi-title{ font-size: clamp(18px, 5vw, 24px); }
  .testi-quote{ font-size: clamp(16px, 4.2vw, 20px); }
}
@media (prefers-reduced-motion: reduce){
  .testi-track{ transition:none; }
  .testi-arrow:hover{ transform:none; }
}


/* =========================================================
   CONÓCEME · PÁGINA (hero interno + bloques)
   ========================================================= */
.hero-inner{ position:relative; display:grid; place-items:center; overflow:hidden; min-height:clamp(300px,55vh,720px); }
.hero-inner .hero-media{ position:absolute; inset:0; z-index:0; }
.hero-inner .hero-media img{ width:100%; height:100%; object-fit:cover; object-position:center; }
.hero-inner .hero-content{ position:relative; z-index:1; padding:clamp(16px,3.5vw,28px); max-width:min(820px, 88vw); text-align:center; }
.descripcion{ padding:50px; }
.filosofia-grid{ display:grid; gap:2rem; grid-template-columns:repeat(auto-fit, minmax(240px,1fr)); margin-top:2rem; }
.filosofia-grid article{ background:#f9fafb; padding:1.5rem; border-radius:1rem; text-align:center; }
.filosofia h2{ text-align:center; }
.trayectoria-wrap{ max-width:900px; margin:0 auto; padding:3rem 1rem; }
.trayectoria-title{ text-align:center; font-size:2rem; font-weight:700; color:#222; margin-bottom:2.5rem; letter-spacing:-.5px; }
.trayectoria-list{
  list-style:none; margin:0; padding:0; display:grid; gap:2rem;
  border-left:2px solid #e0e0e0; padding-left:2rem;
}
.trayectoria-item{ position:relative; padding-left:1.5rem; }
.trayectoria-item::before{
  content:""; position:absolute; left:-1.1rem; top:.5rem; width:14px; height:14px;
  background:#6a8f88; border:3px solid #fff; border-radius:50%; box-shadow:0 0 0 2px #6a8f88;
}
.item-title{ font-size:1.25rem; font-weight:600; color:#1f1f1f; margin:0 0 .4rem; }
.item-desc{ margin:0 0 .8rem; color:#555; line-height:1.6; }
.item-tags{ display:flex; flex-wrap:wrap; gap:.4rem; margin:0; padding:0; list-style:none; }
.item-tag{ background:#f4f4f4; color:#444; padding:.3rem .65rem; border-radius:.3rem; font-size:.85rem; }

/* --- Responsive Conóceme página --- */
@media (max-width:600px){
  .hero-inner{ min-height:220px; }
}


/* =========================================================
   BLOG · ENTRADA (hero + tipografía + layout móvil)
   ========================================================= */
.hero-inner.paper-bg{
  min-height: clamp(220px, 42vh, 420px);
}
.hero-inner.paper-bg .hero-media img{
  object-position: center;     
  filter: brightness(0.95);
  opacity: .50;               
}
.hero-inner .hero-content{
  max-width: min(680px, 92vw);
  padding: 18px 16px;
}
.hero-inner .hero-content h1{
  color: #ffffff;
}
.hero-inner .kicker{
  margin: 0 0 6px;
  font-weight: 600;
  color:#444;
  letter-spacing: .02em;
}
.hero-inner .subtitulo{
  font-size: .95rem;
  color:#333;
}
article.stack{
  max-width: 72ch;
  margin-inline: auto;
}
article.stack h2{
  margin-top: .6rem;
}

@media (max-width: 768px){
  .hero-inner.paper-bg{
    min-height: 220px;       
  }
  .hero-inner .hero-content{
    max-width: min(640px, 94vw);
    padding: 16px 14px;
  }
  .hero-inner .serif-italic{
    font-size: clamp(20px, 6vw, 28px); 
    line-height: 1.2;
    margin: 0 0 8px;
  }
  .hero-inner .badge{         
    transform: translateY(-1px);
  }
  .container > .muted:first-child{
    margin-top: 0 !important;
  }
   article.stack{
    padding-left:  clamp(18px, 6vw, 26px);
    padding-right: clamp(18px, 6vw, 26px);
  }

  article.stack ul,
  article.stack ol{
    padding-left: 1.1em;     /* ajusta si quieres más/menos */
  }
}
.hero-inner > *, .hero-inner .hero-content > *, main > *{ min-width: 0; }


/* =========================================================
   TERAPIA · PÁGINA
   ========================================================= */
.hero-terapia{ background:color-mix(in srgb, var(--paper) 65%, #fff 35%); padding:clamp(28px,6vw,56px) 0; }
.hero-terapia-inner{ text-align:center; max-width:900px; margin-inline:auto; }
.hero-terapia .lead{ color:#2b2b2b; font-size:clamp(16px, 2.1vw, 20px); }
.hero-terapia-cta{ display:grid; gap:6px; place-items:center; margin-top:10px; }
.hero-terapia .kicker{ color:var(--primary); font-weight:600; font-size:.95rem; }

.beneficios-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(230px,1fr)); gap:clamp(14px,2.2vw,20px); margin-top:10px; }
.beneficio{ background:#fff; border:1px solid #ececec; border-radius:14px; padding:16px; box-shadow:var(--shadow-sm); }
.beneficio .icon{ width:44px; height:44px; border-radius:12px; display:grid; place-items:center; font-size:22px; background:color-mix(in srgb, var(--soft-1) 40%, #fff 60%); margin-bottom:8px; }

.paper-bg{ background:color-mix(in srgb, var(--paper) 60%, #fff 40%); }
.steps-line{ list-style:none; margin:12px 0 0; padding:0; display:grid; gap:10px; }
.steps-line li{ display:grid; grid-template-columns:clamp(38px,5vw,60px) 1fr; align-items:start; column-gap:14px; padding:12px 0; border-bottom:1px solid #d6d6d6; }
.steps-line .n{ font-family:"Playfair Display", ui-serif, Georgia, "Times New Roman", serif; font-style:italic; font-weight:700; font-size:clamp(24px,4vw,40px); line-height:1; color:#222; justify-self:center; }

.enfoque-cards{ display:grid; grid-template-columns:repeat(auto-fit, minmax(240px,1fr)); gap:clamp(14px, 2.2vw, 20px); }
.enfoque{ background:#fff; border:1px solid #ececec; border-radius:14px; padding:18px; box-shadow:var(--shadow-sm); }

.reserva-widget .muted{ margin-top:-6px; }
.booking-cards{ display:grid; grid-template-columns:repeat(auto-fit, minmax(230px,1fr)); gap:clamp(10px,2vw,18px); margin-top:12px; }
.booking-card{ position:relative; border:1px solid #e6e6e6; border-radius:14px; background:#fff; box-shadow:var(--shadow-sm); cursor:pointer; overflow:hidden; display:block; }
.booking-card input{ position:absolute; inset:0; opacity:0; }
.booking-card .content{ display:block; padding:14px; }
.booking-card strong{ display:block; }
.booking-card em{ display:block; color:#666; font-style:normal; margin:4px 0 8px; }
.booking-card b{ font-size:1.05rem; }
.booking-card .chip{ display:inline-block; margin-left:6px; padding:2px 8px; font-size:.8rem; border-radius:999px; background:color-mix(in srgb, var(--soft-2) 70%, #fff 30%); }
.booking-card:has(input:checked){ border-color:var(--primary); box-shadow:0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }

.reserva-widget .actions{ display:flex; gap:12px; align-items:center; margin-top:12px; }
.agenda-actions{ display:grid; justify-items:center; gap:8px; margin-top:12px; }
.agenda-cta{ display:inline-block; min-width:clamp(180px,22vw,240px); text-align:center; }
.pago-nota{ margin:0; color:var(--muted); font-size:.98rem; text-align:center; }

/* --- Responsive Terapia página --- */
@media (min-width:768px){ .agenda-actions{ margin-top:16px; gap:10px; } }

/* =========================================================
   CONTACTO · FORMULARIO
   ========================================================= */
.form-card{ background:#fff; border:1px solid #e8e8e8; border-radius:16px; padding:20px; box-shadow:0 2px 10px rgba(0,0,0,0.02); transition:box-shadow .2s; }
.form-card:hover{ box-shadow:0 4px 16px rgba(0,0,0,0.08); }
.form-grid{ display:grid; gap:14px; grid-template-columns:1fr; }
.input,.textarea{
  width:100%; padding:12px 14px; border:1px solid #d9d9d9; border-radius:10px; font:inherit; background:#fff;
  transition:border-color .15s, box-shadow .15s;
}
.textarea{ min-height:140px; resize:vertical; }
.input:focus,.textarea:focus{ outline:none; border-color:var(--primary); box-shadow:0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.field{ display:flex; flex-direction:column; gap:6px; }
.field-inline{ display:grid; gap:12px; grid-template-columns:1fr; }
.field-error{ color:#b00020; font-size:.9rem; }
.helper{ color:var(--muted); font-size:.95rem; }
.required{ color:#b00020; }
.actions{ display:flex; gap:12px; align-items:center; margin-top:4px; }
.badge{ display:inline-block; padding:6px 10px; border-radius:999px; background:var(--soft-1); color:#234; font-weight:600; font-size:.9rem; }
.alert{ margin-top:14px; padding:12px 14px; border-radius:10px; border:1px solid #dfe7e5; background:#f8fbfa; color:#2d463f; transition:background-color .3s, border-color .3s; }
.form-card.disabled-section{ opacity:.55; pointer-events:none; }
.sr-only{ position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
main:has(#contactForm) > h1,
main:has(#contactForm) > p{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width:768px){
  main:has(#contactForm) > p{
  max-width: 60ch;
  }
}

/* ================================
   RESERVA · WIDGET (NUEVO)
   ================================ */
#reserva-widget{ --shadow:0 10px 28px rgba(0,0,0,.06); }

.booking-wrap{
  display:grid; grid-template-columns:360px 1fr 340px;
  gap:22px; padding:18px; background:#fff;
  border:1px solid #ececec; border-radius:16px; box-shadow:var(--shadow);
}

/* Helpers mínimos por si no los tienes */
.center{text-align:center}
.muted{color:var(--muted)}
.card{ background:#fff; border:1px solid #ececec; border-radius:16px; box-shadow:0 2px 10px rgba(0,0,0,0.02); }

/* Sidebar */
#reserva-widget .rw-sidebar{ padding:16px }
#reserva-widget .rw-sidebar h2{ margin:0 0 4px; font-size:1.25rem }
#reserva-widget .rw-meta{ display:grid; gap:8px; margin-top:10px; color:#333 }
#reserva-widget .rw-hr{ height:1px; background:#eee; border:0; margin:12px 0 }

/* Centro (calendario) */
#reserva-widget .rw-center{ padding:12px 6px }
#reserva-widget .rw-sub{ margin:0 0 10px; font-size:1.05rem; color:#222; font-weight:700 }
#reserva-widget .rw-cal-head{
  display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:8px;
}
#reserva-widget .rw-title{ font-size:1.05rem }
#reserva-widget .rw-nav{
  display:inline-grid; place-items:center; width:32px; height:32px;
  border:1px solid #ddd; border-radius:10px; color:var(--primary); cursor:pointer; background:#fff;
}
#reserva-widget .rw-calendar{ --cell:42px }
#reserva-widget .rw-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px }
#reserva-widget .rw-dow,
#reserva-widget .rw-day{
  display:flex; align-items:center; justify-content:center; height:var(--cell);
  border:1px solid #e7e7e7; border-radius:10px; background:#fff;
}
#reserva-widget .rw-dow{ font-weight:600; background:#fafafa; color:#666 }
#reserva-widget .rw-day.muted{ color:#bbb; background:#fafafa; pointer-events:none }
#reserva-widget .rw-day.sel{ background:color-mix(in srgb, var(--primary) 16%, #fff 84%); border-color:var(--primary) }

/* Inputs y botones de horas */
#reserva-widget .rw-input{ width:100%; padding:12px 14px; border:1px solid #d9d9d9; border-radius:10px; font:inherit; background:#fff }
#reserva-widget .rw-right{ padding:12px }
#reserva-widget .rw-times{ display:grid; gap:10px }
#reserva-widget .rw-time{
  padding:12px; border:1px solid #e0e0e0; border-radius:12px; background:#fff; cursor:pointer; text-align:left;
}
#reserva-widget .rw-time:hover{ border-color:var(--primary) }
#reserva-widget .rw-time.active{ background:var(--primary); color:#fff; border-color:var(--primary) }

/* Formulario (paso 3) */
#reserva-widget .rw-form{ display:grid; gap:12px }
#reserva-widget .rw-label{ font-size:.95rem }
#reserva-widget .rw-textarea{ min-height:120px; resize:vertical }
#reserva-widget .rw-actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap }
#reserva-widget .rw-btn{
  display:inline-block; background:var(--primary); color:#fff; border:0; border-radius:10px;
  padding:12px 18px; font-weight:700; cursor:pointer;
}
#reserva-widget .rw-btn:hover{ background:var(--primary-2) }
#reserva-widget .rw-badge{
  display:inline-block; border-radius:999px; background:#e8f1ef; padding:6px 10px; font-weight:700; color:#2d463f; font-size:.9rem;
}

/* Responsive */
@media (max-width:980px){
  .booking-wrap{ grid-template-columns:1fr; gap:16px }
  #reserva-widget .rw-right{ padding:0 12px 14px }
  #reserva-widget .rw-calendar{ --cell:46px }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background:#fff; padding:40px 20px 20px; color:#333; border-top:1px solid #eee; }
.footer-container{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap;
  max-width:1180px; margin:0 auto; padding-inline:clamp(16px,4.5vw,28px);
}
.footer-left,.footer-right{ display:flex; flex-direction:column; gap:8px; }
.footer-left a,.footer-right a{ text-decoration:none; color:#333; font-style:italic; font-size:14px; transition:color .3s; }
.footer-left a:hover,.footer-right a:hover{ color:#a67c52; }
.footer-center{ display:flex; justify-content:center; align-items:center; margin:20px 0; }
.footer-logo{ max-height:60px; }
.footer-bottom{ text-align:center; margin-top:20px; font-size:13px; color:#777; }

/* --- Responsive Footer --- */
@media (max-width:768px){
  .footer-container{ flex-direction:column; text-align:center; gap:15px; }
  .footer-left,.footer-right{ flex-direction:row; gap:15px; justify-content:center; }
}

/* =========================================================
   FAQ
   ========================================================= */
details.faq{ background:#fff; border:1px solid #eee; border-radius:var(--radius); padding:12px; margin:10px 0; }
details.faq>summary{ cursor:pointer; font-weight:700; }
details.faq[open]{ background:#fafafa; }

/* =========================================================
   Reveal (scroll-in) + anchors
   ========================================================= */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}
:target{ scroll-margin-top:var(--header-h); }

/* =========================================================
   Burbuja flotante WhatsApp
   ========================================================= */
.wa-float{
  position: fixed;
  right: 18px; 
  bottom: 18px;
  width: 56px;                /* tamaño visual del botón */
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.18), 0 4px 10px rgba(0,0,0,.12);
  z-index: 1000;
  transform: translateZ(0);
}
.wa-float img{
  width: 100%;                /* la imagen ocupa el círculo */
  height: 100%;
  border-radius: 50%;
  display: block;
  pointer-events: none;
}
.wa-float:hover{ transform: translateZ(0) scale(1.05); }
.wa-float:active{ transform: translateZ(0) scale(0.98); }

@media (max-width:480px){
  .wa-float{ right:14px; bottom:14px; width:52px; height:52px; }
}
