/* ======================================================================
   Dental Torres — Landing
   Paleta, tipografía y componentes
   ====================================================================== */

:root {
  --green:        #0E5C2F;  /* principal (logo, mural) */
  --green-deep:   #0A3D1F;  /* fondos profundos */
  --green-700:    #0C4A26;
  --mustard:      #D4A12A;  /* acento (butacas, luminarias) */
  --mustard-dark: #B5871E;
  --cream:        #FAF8F3;  /* fondos claros */
  --ink:          #1A1A1A;  /* texto alto contraste */
  --gray:         #6B6B6B;  /* texto secundario */
  --line:         #E6E2D8;  /* líneas finas */
  --white:        #ffffff;
  --wa:           #25D366;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 8px 30px rgba(10, 61, 31, .08);
  --shadow-hover: 0 16px 44px rgba(10, 61, 31, .14);
  --maxw: 1180px;
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: .2px; }

.eyebrow {
  font-family: var(--sans);
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mustard-dark); margin: 0 0 14px;
}
.eyebrow--light { color: var(--mustard); }

.u-mark { color: var(--green); position: relative; white-space: nowrap; }
.section--dark .u-mark, .hero .u-mark { color: var(--mustard); }
.u-mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .14em;
  background: var(--mustard); opacity: .5; border-radius: 2px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .18s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--mustard); color: var(--ink); }
.btn--primary:hover { background: var(--mustard-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(181,135,30,.32); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }

.link-arrow { color: var(--green); font-weight: 600; font-size: .92rem; transition: gap .2s, color .2s; display: inline-flex; gap: 4px; }
.link-arrow:hover { color: var(--mustard-dark); gap: 9px; }
.link-arrow--big { font-size: 1.05rem; }

/* ======================================================================
   Navegación
   ====================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.nav.is-scrolled { box-shadow: 0 4px 20px rgba(10,61,31,.07); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 18px; }
.nav__logo { flex-shrink: 0; }
.nav__logo img { height: 42px; width: auto; }
.nav__menu { display: flex; flex-wrap: nowrap; gap: 22px; }
.nav__menu a { font-size: .9rem; font-weight: 500; color: var(--ink); position: relative; padding: 4px 0; white-space: nowrap; }
.nav__menu a::after { content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px; background: var(--mustard); transition: width .22s ease; }
.nav__menu a:hover::after { width: 100%; }
.nav__cta { flex-shrink: 0; }
/* Selector de idioma — globo con desplegable (preparado para más idiomas) */
.lang { position: relative; flex-shrink: 0; }
.lang__toggle {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 10px; background: #fff; color: var(--ink);
  font: 600 .82rem var(--sans); line-height: 1;
  transition: border-color .2s, background .2s;
}
.lang__toggle:hover { border-color: var(--mustard); }
.lang__globe { color: var(--green); flex-shrink: 0; }
.lang__chevron { opacity: .55; transition: transform .2s; }
.lang.is-open .lang__chevron { transform: rotate(180deg); }
.lang__drop {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 152px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 30px rgba(10,61,31,.14);
  padding: 6px; z-index: 120;
  display: none; flex-direction: column; gap: 2px;
}
.lang.is-open .lang__drop { display: flex; }
.lang__btn {
  text-align: left; font: 500 .92rem var(--sans); padding: 9px 12px;
  border: 0; background: transparent; color: var(--ink); border-radius: 8px;
  transition: background .2s, color .2s;
}
.lang__btn:hover { background: var(--cream); }
.lang__btn.is-active { background: var(--green); color: #fff; }
/* Desplegable de especialidades en "Casos de éxito" */
.casos-nav { position: relative; }
.casos-nav__btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .9rem; font-weight: 500; color: var(--ink);
  background: transparent; border: 0; padding: 4px 0;
  cursor: pointer; font-family: var(--sans); position: relative;
  white-space: normal; line-height: 1.1; text-align: center;
}
.casos-nav__btn::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--mustard); transition: width .22s ease;
}
.casos-nav__btn:hover::after,
.casos-nav.is-open .casos-nav__btn::after { width: 100%; }
.casos-nav__chevron { opacity: .5; transition: transform .2s; flex-shrink: 0; }
.casos-nav.is-open .casos-nav__chevron { transform: rotate(180deg); }
.casos-nav__drop {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  min-width: 230px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(10,61,31,.14);
  padding: 6px; z-index: 200;
  display: none; flex-direction: column; gap: 2px;
}
.casos-nav.is-open .casos-nav__drop { display: flex; }
.casos-nav__item {
  display: flex; align-items: center; gap: 10px;
  font: 500 .9rem var(--sans); padding: 9px 14px;
  color: var(--ink); border-radius: 8px;
  transition: background .15s, color .15s; white-space: nowrap;
}
.casos-nav__item:hover { background: var(--cream); color: var(--green); }
.casos-nav__item--all { font-weight: 700; color: var(--green); }
.casos-nav__item--all:hover { background: rgba(14,92,47,.07); }
.casos-nav__divider { height: 1px; background: var(--line); margin: 4px 6px; }
.casos-nav__dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.casos-nav__dot--implantes { background: var(--green); }
.casos-nav__dot--estetica { background: var(--mustard); }
.casos-nav__dot--bruxismo { background: #E67E22; }
.casos-nav__dot--multi { background: #8E44AD; }
.casos-nav__dot--ortodoncia { background: #2980B9; }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav__burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ======================================================================
   Hero
   ====================================================================== */
.hero { position: relative; min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; overflow: hidden; }
.hero__media {
  position: absolute; inset: 0;
  background-color: var(--green-deep);
  background-image: url('../assets/img/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,61,31,.45), rgba(10,61,31,.55)); }
.hero__content { position: relative; z-index: 2; color: #fff; max-width: 820px; padding-top: 40px; padding-bottom: 60px; }
.hero__title { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 600; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: rgba(255,255,255,.92); max-width: 620px; margin: 22px 0 32px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__proof { margin-top: 26px; font-size: .92rem; color: rgba(255,255,255,.85); letter-spacing: .01em; }
.hero__stars { color: var(--mustard); letter-spacing: 2px; }
.hero__call { margin: 14px 0 0; font-size: 1rem; color: rgba(255,255,255,.9); }
.hero__call a { color: var(--mustard); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(212,161,42,.5); }
.hero__call a:hover { color: #fff; border-color: #fff; }

/* Barra de acciones fija (solo móvil): Llamar · WhatsApp · Pedir cita */
.actionbar { display: none; }
.actionbar__btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 9px 4px; font: 600 .72rem var(--sans); color: var(--ink); text-align: center;
}
.actionbar__btn span { line-height: 1; }
.actionbar__btn--wa { color: #128C4B; }
.actionbar__btn--cta { background: var(--mustard); color: var(--ink); }

/* ======================================================================
   Secciones genéricas
   ====================================================================== */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--green-deep); color: #fff; }
.section--dark .section__lead { color: rgba(255,255,255,.8); }

/* Sección con foto de fondo sutil. La ruta se define por sección (relativa a este CSS). */
.section--photobg { position: relative; isolation: isolate; }
.section--photobg::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
#servicios.section--photobg::before   { background-image: url('../assets/img/servicios-bg.jpg'); }
#testimonios.section--photobg::before { background-image: url('../assets/img/testimonios-bg.jpg'); background-position: center bottom; }
#blog.section--photobg::before        { background-image: url('../assets/img/testimonios-bg.jpg'); background-position: center bottom; }
#porque.section--photobg::before      { background-image: url('../assets/img/porque.jpg'); }
.section--photobg::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(250, 248, 243, .88);
}
.section--dark.section--photobg::after { background: rgba(10, 61, 31, .82); }

.section__head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__title { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.section__lead { color: var(--gray); font-size: 1.1rem; margin: 16px 0 0; }
.section__more { text-align: center; margin: 48px 0 0; }
.section__more-list { display: block; color: var(--gray); font-size: .88rem; margin-top: 10px; }
.section__note { text-align: center; color: var(--gray); max-width: 640px; margin: 40px auto 0; font-size: .98rem; }

.grid { display: grid; gap: 26px; }

/* ---------- Placeholder de imagen (verde marca hasta cargar la foto real) ---------- */
[data-img], .hero__media, .historia__media {
  background-color: var(--green-700);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
[data-img]::before {
  /* textura sutil cuando aún no hay foto */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.06), transparent 60%);
}

/* ======================================================================
   3. Perfiles
   ====================================================================== */
.profiles { padding: 28px 0; border-bottom: 1px solid var(--line); background: var(--white); }
.profiles__strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.profile-card {
  flex: 1 0 210px; min-width: 210px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px;
  display: flex; flex-direction: column; gap: 6px; background: var(--cream);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.profile-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--mustard); }
.profile-card__icon { font-size: 1.3rem; color: var(--green); }
.profile-card__t { font-weight: 600; font-size: .98rem; line-height: 1.3; }
.profile-card__a { color: var(--mustard-dark); font-size: .82rem; font-weight: 600; margin-top: auto; }

/* ======================================================================
   4. Servicios
   ====================================================================== */
.grid--services { grid-template-columns: repeat(4, 1fr); }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .22s, box-shadow .22s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service__media { position: relative; aspect-ratio: 3/4; background-size: contain; background-color: var(--cream); }
.service__body { padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service__body h3 { font-size: 1.4rem; }
.service__body p { color: var(--gray); font-size: .94rem; margin: 0; flex: 1; }

/* ======================================================================
   5. Razones (dark)
   ====================================================================== */
.grid--reasons { grid-template-columns: repeat(3, 1fr); }
.reason { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 30px 26px; transition: transform .2s, background .2s; }
.reason:hover { transform: translateY(-3px); background: rgba(255,255,255,.07); }
.reason__icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 1.5px solid var(--mustard); border-radius: 50%; color: var(--mustard); font-size: 1.4rem; margin-bottom: 16px; }
.reason h3 { font-size: 1.3rem; margin-bottom: 8px; }
.reason p { color: rgba(255,255,255,.78); font-size: .94rem; margin: 0; }

/* ======================================================================
   6. Casos
   ====================================================================== */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.case { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .22s, box-shadow .22s; }
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.case__imgs { display: grid; grid-template-columns: 1fr 1fr; }
.case__img { position: relative; aspect-ratio: 4/3; }
.case__img + .case__img { border-left: 2px solid #fff; }
.case__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(26,26,26,.78); color: #fff; font-size: .72rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
}
.case__tag--after { background: var(--mustard); color: var(--ink); }
.case__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.case__body h3 { font-size: 1.3rem; }
.case__body p { color: var(--gray); font-size: .92rem; margin: 0; flex: 1; }
.case__cta {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 14px;
  font: 600 .88rem var(--sans); color: var(--green);
  transition: gap .2s, color .2s;
}
.case__cta:hover { color: var(--mustard-dark); gap: 9px; }
.case__specialty {
  font: 600 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--mustard-dark); margin: 0;
}
.cases-more {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 36px; text-align: center;
}
.cases-more__link {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 1rem var(--sans); color: var(--green);
  padding: 12px 26px; border: 1.5px solid var(--green); border-radius: 999px;
  transition: background .2s, color .2s, transform .18s;
}
.cases-more__link:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.cases-more__sub { font-size: .82rem; color: var(--gray); margin: 0; letter-spacing: .06em; }

/* ======================================================================
   7. Equipo
   ====================================================================== */
/* Banner con la foto del equipo al completo (se ve la foto entera, sin recortar) */
.team-banner { position: relative; margin: 0 auto clamp(40px, 6vw, 56px); max-width: 900px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.team-banner img { width: 100%; display: block; }
.team-banner figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 28px 22px;
  font-family: var(--serif); font-weight: 600; line-height: 1.15;
  font-size: clamp(1.4rem, 3.4vw, 2.3rem); color: #fff;
  background: linear-gradient(transparent, rgba(10, 61, 31, .78));
}

.grid--team { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }
.member { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .22s, box-shadow .22s; }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.member__photo { position: relative; aspect-ratio: 4/5; background-size: cover; background-position: center top; }
.member__body { padding: 22px 22px 26px; }
.member__body h3 { font-size: 1.45rem; }
.member__role { color: var(--mustard-dark); font-weight: 600; font-size: .88rem; margin: 4px 0 10px; }
.member__body p:last-child { color: var(--gray); font-size: .93rem; margin: 0; }

/* ======================================================================
   Testimonios / reseñas
   ====================================================================== */
.grid--reviews { grid-template-columns: repeat(2, 1fr); }
.review {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 16px;
  position: relative; transition: transform .22s, box-shadow .22s;
}
.review::before {
  content: "“"; position: absolute; top: -22px; left: 22px;
  font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--mustard);
}
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.review__stars { color: var(--mustard); letter-spacing: .15em; font-size: 1rem; }
.review__text { font-family: var(--serif); font-size: 1.18rem; line-height: 1.5; color: var(--ink); margin: 0; font-weight: 500; }
.review__by { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.review__name { font-weight: 600; font-size: .94rem; }
.review__src { font-size: .82rem; color: var(--gray); }

/* ======================================================================
   Historia
   ====================================================================== */
.historia { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.historia__media { position: relative; border-radius: var(--radius); min-height: 380px; height: 100%; box-shadow: var(--shadow); background-position: center top; }
.historia__text h2 { margin-bottom: 18px; }
.historia__text p { color: var(--gray); margin: 0 0 16px; }
.historia__text .btn { margin-top: 10px; }

/* ======================================================================
   9. Blog
   ====================================================================== */
.grid--blog { grid-template-columns: repeat(3, 1fr); }
.post { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .22s, box-shadow .22s; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post__media { position: relative; aspect-ratio: 16/10; }
.post__body { padding: 22px 22px 24px; }
.post__cat { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mustard-dark); margin-bottom: 10px; }
.post__body h3 { font-size: 1.3rem; margin-bottom: 8px; }
.post__body p { color: var(--gray); font-size: .92rem; margin: 0 0 14px; }

/* ======================================================================
   10. Contacto
   ====================================================================== */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.contact__form { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: .98rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(14,92,47,.12); }
.field textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--gray); margin: 4px 0 20px; }
.check input { margin-top: 3px; accent-color: var(--green); width: 16px; height: 16px; flex-shrink: 0; }
.check a { color: var(--green); text-decoration: underline; }
.contact__formnote { font-size: .9rem; margin: 14px 0 0; text-align: center; }
.contact__formnote.is-ok { color: var(--green); }
.contact__formnote.is-err { color: #b3261e; }
.contact__legal { font-size: .76rem; line-height: 1.5; color: var(--gray); margin: 16px 0 0; }
.contact__legal a { color: var(--green); text-decoration: underline; }

.contact__info { display: flex; flex-direction: column; gap: 22px; }
.info-block h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; margin-bottom: 4px; }
.info-block p { margin: 0; color: var(--gray); }
.info-block a { color: var(--gray); transition: color .2s; }
.info-block a:hover { color: var(--green); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.hours li span:first-child { color: var(--ink); font-weight: 500; }
.hours li span:last-child { color: var(--gray); text-align: right; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 240px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ======================================================================
   Footer
   ====================================================================== */
.footer { background: var(--green-deep); color: rgba(255,255,255,.78); padding: 64px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand img { margin-bottom: 16px; }
.footer__logo { height: auto; width: 160px; }
.footer__brand p { font-size: .92rem; max-width: 320px; margin: 0; }
.footer__col h4 { font-family: var(--sans); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mustard); margin-bottom: 14px; }
.footer__col a { display: block; font-size: .92rem; padding: 5px 0; color: rgba(255,255,255,.78); transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__social { display: flex; gap: 12px; margin-top: 4px; }
.footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); transition: background .2s, color .2s, transform .2s; }
.footer__social a:hover { background: var(--mustard); color: var(--ink); transform: translateY(-2px); }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: .82rem; color: rgba(255,255,255,.6); }
.footer__legal a:hover { color: #fff; }

/* ======================================================================
   Páginas legales (texto largo)
   ====================================================================== */
.legal { max-width: 820px; margin: 0 auto; }
.legal__title { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal__updated { color: var(--gray); font-size: .9rem; margin: 0 0 36px; }
.legal h3 { font-size: 1.5rem; margin: 34px 0 10px; }
.legal h4 { font-family: var(--sans); font-size: 1.05rem; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--ink); font-size: 1rem; line-height: 1.75; }
.legal ul { list-style: disc; padding-left: 22px; margin: 10px 0; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--green); text-decoration: underline; }
.legal a:hover { color: var(--mustard-dark); }
.legal__data { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 18px 0; }
.legal__data p { margin: 4px 0; }

/* ======================================================================
   Banner de cookies + consentimiento del mapa
   ====================================================================== */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 760px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(10,61,31,.18);
  padding: 18px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cookie[hidden] { display: none; }
.cookie__msg { margin: 0; font-size: .9rem; color: var(--ink); flex: 1 1 280px; line-height: 1.55; }
.cookie__msg a { color: var(--green); text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie__actions .btn { padding: 10px 20px; font-size: .9rem; }
.cookie__reject { color: var(--ink); border-color: var(--line); background: transparent; }
.cookie__reject:hover { background: var(--cream); border-color: var(--gray); transform: none; }

.map { position: relative; }
.map-consent {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center;
  padding: 24px; background: var(--cream); border-radius: var(--radius); border: 1px solid var(--line);
}
.map-consent[hidden] { display: none; }
.map-consent__txt { margin: 0; max-width: 320px; font-size: .92rem; color: var(--gray); }

/* ======================================================================
   WhatsApp flotante
   ====================================================================== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float__tip {
  position: absolute; right: 70px; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 600;
  padding: 7px 13px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none;
  transform: translateX(8px); transition: opacity .2s, transform .2s;
}
.wa-float__tip::after { content:""; position:absolute; right:-5px; top:50%; transform:translateY(-50%); border:5px solid transparent; border-left-color: var(--ink); }
.wa-float:hover .wa-float__tip { opacity: 1; transform: translateX(0); }

/* ======================================================================
   Plan Bienestar 360º — pestaña destacada + overlay premium
   ====================================================================== */
/* Pestaña dorada en el nav */
.nav__plan {
  color: var(--mustard) !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
}
.nav__plan::after { background: var(--mustard); }

/* Overlay a pantalla completa (oculto hasta pulsar la pestaña) */
.plan360 {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0d0d0e;
  opacity: 0;
  transition: opacity .35s ease;
}
.plan360.is-open { opacity: 1; }
.plan360[hidden] { display: none; }
.plan360__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.plan360__close {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 210;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: background .2s, transform .2s;
}
.plan360__close:hover { background: var(--mustard); color: #0d0d0e; transform: rotate(90deg); }
/* Bloquea el scroll del fondo mientras el overlay está abierto */
body.plan360-open { overflow: hidden; }

/* ======================================================================
   Instagram flotante (lado izquierdo)
   ====================================================================== */
.ig-float {
  position: fixed; left: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(214,36,159,.45); transition: transform .2s, box-shadow .2s;
}
.ig-float:hover { transform: scale(1.08); }
.ig-float__tip {
  position: absolute; left: 70px; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 600;
  padding: 7px 13px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none;
  transform: translateX(-8px); transition: opacity .2s, transform .2s;
}
.ig-float__tip::after { content:""; position:absolute; left:-5px; top:50%; transform:translateY(-50%); border:5px solid transparent; border-right-color: var(--ink); }
.ig-float:hover .ig-float__tip { opacity: 1; transform: translateX(0); }

/* ======================================================================
   Animaciones (reveal on scroll)
   ====================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width: 980px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .grid--reasons  { grid-template-columns: repeat(2, 1fr); }
  .grid--team     { grid-template-columns: repeat(2, 1fr); }
  .grid--blog     { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .grid--reviews  { grid-template-columns: 1fr; }
  .historia       { grid-template-columns: 1fr; }
  .historia__media{ min-height: 280px; }
  .contact        { grid-template-columns: 1fr; }
  .footer__inner  { grid-template-columns: 1fr 1fr; }
}

/* Tablet / portátil: el menú tiene muchas pestañas; lo compactamos para que
   todas quepan en una sola línea sin aplastar el logo. */
/* Escritorio: las pestañas largas pasan a dos líneas para ahorrar ancho
   y mantener visible el botón «Pide tu cita». */
@media (min-width: 961px) {
  .nav__menu a.nav__multiline {
    white-space: normal; line-height: 1.1; text-align: center; max-width: 7.5em;
  }
  .casos-nav__btn.nav__multiline {
    white-space: normal; line-height: 1.1; text-align: center; max-width: 7.5em;
  }
}

/* Tablet / portátil estrecho: versión extra-compacta (todo sigue en una fila). */
@media (min-width: 961px) and (max-width: 1180px) {
  .nav__inner { gap: 12px; }
  .nav__logo img { height: 38px; }
  .nav__menu { gap: 10px; }
  .nav__menu a { font-size: .82rem; }
  .nav__menu a.nav__multiline { max-width: 6.6em; }
  .casos-nav__btn { font-size: .82rem; max-width: 6.6em; }
  .nav__cta { padding: 10px 15px; font-size: .84rem; }
  .lang__toggle { padding: 6px 8px; font-size: .76rem; gap: 4px; }
}

/* Tablet estrecho y móvil: el menú pasa a hamburguesa desplegable */
@media (max-width: 960px) {
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0; background: #fff; padding: 8px 0 16px;
    border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(10,61,31,.12);
    transform: translateY(-130%); transition: transform .3s ease; visibility: hidden;
  }
  .nav__menu.is-open { transform: translateY(0); visibility: visible; }
  .nav__menu a { padding: 14px 24px; border-bottom: 1px solid var(--line); white-space: normal; max-width: none; text-align: left; }
  .nav__menu a::after { display: none; }
  /* Casos dropdown en hamburger: comportamiento accordion */
  .casos-nav { width: 100%; }
  .casos-nav__btn {
    width: 100%; padding: 14px 24px; border-bottom: 1px solid var(--line);
    justify-content: space-between; border-radius: 0; font-size: .9rem;
  }
  .casos-nav__btn::after { display: none; }
  .casos-nav__drop {
    position: static; transform: none; box-shadow: none;
    border: 0; border-left: 3px solid var(--mustard); border-radius: 0;
    min-width: 0; padding: 0; background: var(--cream);
  }
  .casos-nav__item { padding: 12px 28px; border-bottom: 1px solid var(--line); border-radius: 0; white-space: normal; }
  .casos-nav__divider { display: none; }
  .nav__burger { display: flex; }
  /* "Pide tu cita" sigue visible junto al menú hamburguesa */
  .nav__cta { display: inline-flex; padding: 9px 16px; font-size: .85rem; }
}

@media (max-width: 760px) {
  /* En móvil el botón superior se oculta: la barra inferior ya ofrece "Pedir cita" */
  .nav__cta { display: none; }

  /* Barra de acciones fija abajo */
  .actionbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(10,61,31,.12);
  }
  body { padding-bottom: 60px; }
  .wa-float, .ig-float { display: none; }   /* en móvil se sustituye por la barra de acciones */
  .cookie { bottom: 72px; }      /* por encima de la barra de acciones */

  .hero { min-height: auto; padding: 56px 0; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }

  .grid--services, .grid--reasons, .grid--team { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .cases { grid-template-columns: 1fr; }
  .field-row, .info-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; }

  .wa-float { width: 62px; height: 62px; right: 16px; bottom: 16px; }
}
