/* ============================================================
   Clínica Dental [Nombre] — Stylesheet
   Mobile-first | Playfair Display + Inter | Paleta crema/salvia
   ============================================================ */

/* 1. VARIABLES */
:root {
  /* Paleta */
  --bg:           #F4F9F9;
  --accent:       #2BA8A0;
  --accent-dark:  #1A7A74;
  --accent-hover: #228A83;
  --accent-light: #E8F7F6;
  --warm:         #1A2E35;
  --warm-light:   #E8F0F2;
  --text:         #1A2E35;
  --white:        #FFFFFF;
  --gray:         #5c6472;
  --light-gray:   #e5e7eb;
  --whatsapp:     #25D366;

  /* Aliases v2.0 */
  --color-bg:       var(--bg);
  --color-primary:  var(--accent);
  --color-text:     var(--text);
  --color-white:    var(--white);
  --color-whatsapp: var(--whatsapp);
  --color-error:    #D32F2F;
  --color-success:  #388E3C;

  /* Tipografía */
  --heading:      'Playfair Display', Georgia, serif;
  --body:         'DM Sans', system-ui, -apple-system, sans-serif;
  --font-heading: var(--heading);
  --font-body:    var(--body);

  /* Layout */
  --max-w:        1200px;

  /* Espaciado v2.0 */
  --space-xs:     0.5rem;
  --space-sm:     1rem;
  --space-md:     2rem;
  --space-lg:     4rem;
  --space-xl:     6rem;

  /* Radios — moderados (skill-sector-dental §10: 4–8px) */
  --radius:       8px;
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    14px;

  /* Sombras */
  --shadow:       0 4px 24px rgba(30,38,32,.10);
  --shadow-lg:    0 8px 40px rgba(30,38,32,.15);
  --shadow-sm:    0 1px 3px rgba(30,38,32,.08);
  --shadow-md:    var(--shadow);

  /* Transición — 150–200ms ease-out (skill-sector-dental §10) */
  --t:            .18s ease-out;
  --transition:   var(--t);
}

/* 2. RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--body); background: var(--bg); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Skip link — accesibilidad teclado */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--accent); color: var(--white);
  padding: .5rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem; z-index: 9999;
  transition: top var(--t);
}
.skip-link:focus { top: 1rem; }

/* 3. TIPOGRAFÍA */
h1, h2, h3, h4 { font-family: var(--heading); line-height: 1.2; }
h1  { font-size: clamp(2rem, 5vw, 3.5rem); }
h2  { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3  { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p   { max-width: 65ch; }

/* 4. LAYOUT */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.section { padding-block: 4rem; }

.section__header { text-align: center; margin-bottom: 3rem; }
.section__label  {
  display: inline-block;
  font-family: var(--body);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: .75rem;
}
.section__title    { margin-bottom: 1rem; }
.section__subtitle { color: var(--gray); font-size: 1.05rem; margin-inline: auto; }

/* 5. BOTONES */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .875rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn--primary {
  background: var(--text); color: var(--white);
  box-shadow: 0 4px 16px rgba(26,46,53,.25);
}
.btn--primary:hover { background: rgba(26,46,53,.82); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,46,53,.3); }
.btn--outline { background: transparent; border: 2px solid var(--accent); color: var(--accent-dark); }
.btn--outline:hover { background: var(--accent-dark); color: var(--white); }
.btn--white   { background: var(--white); color: var(--accent-dark); }
.btn--white:hover { background: var(--bg); transform: translateY(-2px); }
.btn--ghost   { background: transparent; border: 2px solid rgba(255,255,255,.65); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn--lg { padding: 1rem 2.25rem; font-size: 1.125rem; }
/* Focus visible accesible en todos los botones */
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* 6. NAVEGACIÓN */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(30,38,32,.08);
}
.nav__container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding-inline: 1.25rem;
  max-width: var(--max-w); margin-inline: auto;
}
.nav__logo { font-family: var(--heading); font-size: 1.2rem; font-weight: 700; color: var(--text); line-height: 1.15; }
.nav__logo span { color: var(--accent); display: block; font-size: .85rem; font-weight: 400; }

.nav__menu {
  display: none; flex-direction: column;
  position: absolute; top: 68px; left: 0; width: 100%;
  background: var(--white);
  padding: 1rem 1.25rem 1.5rem;
  box-shadow: 0 8px 24px rgba(30,38,32,.12);
}
.nav__menu.is-open { display: flex; }
.nav__link {
  display: block; padding: .75rem 0;
  font-size: 1rem; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--light-gray);
  transition: color var(--t);
}
.nav__link:last-child { border-bottom: none; }
.nav__link:hover, .nav__link.active { color: var(--accent); }
.nav__cta { display: none; }

.nav__burger {
  display: flex; flex-direction: column; gap: 5px;
  padding: 8px; width: 44px; height: 44px; justify-content: center;
}
.nav__burger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav__burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-active span:nth-child(2) { opacity: 0; }
.nav__burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Nav con sombra al hacer scroll */
.nav.scrolled { box-shadow: 0 4px 20px rgba(30,38,32,.14); }

/* 7. HERO — INDEX */
.hero {
  background:
    linear-gradient(105deg, rgba(26,46,53,.92) 0%, rgba(26,58,66,.75) 45%, rgba(30,74,82,.40) 100%),
    url('../img/galeria/equipo.jpg') center 25% / cover no-repeat;
  color: var(--white);
  padding-block: 6rem 5rem;
  position: relative; overflow: hidden;
  min-height: 85vh;
  display: flex; align-items: center;
}
@media (max-width: 767px) { .hero { min-height: auto; } }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(43,168,160,.15) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(43,168,160,.10) 0%, transparent 50%),
    linear-gradient(to top, rgba(26,46,53,.35) 0%, transparent 30%);
}
.hero__inner { position: relative; z-index: 1; max-width: var(--max-w); margin-inline: auto; padding-inline: 1.25rem; }

.hero__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(43,168,160,.25); border: 1px solid rgba(43,168,160,.4);
  color: #A8E6E2; font-size: .8rem; font-weight: 600; font-family: var(--body);
  letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .875rem; border-radius: 100px; margin-bottom: 1.5rem;
}
.hero__title { margin-bottom: 1.25rem; color: var(--white); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.1; }
.hero__title em { font-style: normal; color: #A8E6E2; text-shadow: 0 0 40px rgba(43,168,160,.35); }
.hero__subtitle { font-size: 1.1rem; color: rgba(255,255,255,.78); margin-bottom: 2.5rem; max-width: 52ch; }
.hero__actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.hero__note {
  margin-top: 1.75rem; font-size: .9rem; color: rgba(255,255,255,.80);
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
}

/* 8. SERVICIOS GRID — INDEX */
.services { padding-block: 5rem; background: var(--white); }
.services__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

/* 8b. STATEMENT STRIP — segunda lectura */
.statement-strip {
  background: var(--accent-dark);
  padding-block: 4rem;
  text-align: center;
  padding-inline: 1.5rem;
}
.statement-strip__text {
  font-family: var(--heading);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.3;
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: 0;
}
.statement-strip__sub {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 1.25rem;
}

.service-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow);
  transition: transform var(--t), box-shadow var(--t);
  position: relative;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card--featured {
  border: none;
  border-top: 3px solid var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}
.service-card--featured:hover { transform: translateY(-10px); }
.service-card__num {
  display: block;
  font-family: var(--heading);
  font-style: italic;
  font-size: 4.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  opacity: .13;
  margin-bottom: .5rem;
  letter-spacing: -.03em;
}
.service-card__title { font-family: var(--heading); font-size: 1.25rem; margin-bottom: .75rem; }
.service-card__text  { font-size: .95rem; color: var(--gray); line-height: 1.7; }
.service-card__link  {
  display: inline-flex; align-items: center; gap: .3rem;
  margin-top: 1.25rem; font-size: .9rem; font-weight: 600;
  color: var(--accent-dark); transition: gap var(--t);
}
.service-card__link:hover { gap: .6rem; }

/* 9. RAZONES DE CONFIANZA */
.trust { background: var(--text); color: var(--white); padding-block: 4.5rem; }
.trust__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
.trust-item__icon {
  width: 60px; height: 60px;
  background: rgba(43,168,160,.18); border-radius: 50%;
  border: 1.5px solid rgba(43,168,160,.45);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; color: #A8E6E2;
}
.trust-item__title { font-family: var(--heading); font-size: 1.2rem; margin-bottom: .5rem; color: var(--white); }
.trust-item__text  { font-size: .95rem; color: rgba(255,255,255,.82); margin-inline: auto; }

/* 10. WHATSAPP CTA (contacto.html) */
.form-wrapper--wa { display: flex; flex-direction: column; gap: 1.25rem; }
.form-wrapper--wa h3 { font-family: var(--heading); font-size: 1.4rem; color: var(--text); }
.form-wrapper--wa > p { font-size: .95rem; color: var(--gray); line-height: 1.7; }
.wa-cta__list {
  list-style: none; display: flex; flex-direction: column; gap: .6rem;
  padding: 1.25rem; background: var(--bg); border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.wa-cta__list li { font-size: .92rem; color: var(--text); padding-left: 1rem; position: relative; }
.wa-cta__list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.wa-cta__btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: 1rem; padding: .875rem 1.75rem; align-self: flex-start;
}

/* 11. CTA FINAL */
.cta-final { background: var(--text); color: var(--white); padding-block: 5rem; text-align: center; }
.cta-final__title    { color: var(--white); margin-bottom: .75rem; }
.cta-final__title::before {
  content: '';
  display: block;
  width: 3rem; height: 2px;
  background: rgba(255,255,255,.4);
  margin: 0 auto 1.5rem;
}
.cta-final__subtitle { font-size: 1.05rem; color: rgba(255,255,255,.8); margin-inline: auto; margin-bottom: 2.5rem; }
.cta-final__phone {
  font-family: var(--heading); font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700; color: var(--white); display: block;
  margin-bottom: 2rem; letter-spacing: -.02em;
  transition: opacity var(--t);
}
.cta-final__phone:hover { opacity: .85; }
.cta-final__actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.cta-final__hours {
  margin-top: 2.5rem; padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: .9rem; color: rgba(255,255,255,.7);
}

/* 12. FOOTER */
.footer { background: var(--text); color: rgba(255,255,255,.72); padding-block: 3rem 1.5rem; border-top: 4px solid var(--accent); }
.footer__grid  { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer__logo  { font-family: var(--heading); font-size: 1.25rem; color: var(--white); margin-bottom: .75rem; }
.footer__logo span { color: #A8E6E2; }
.footer__tagline { font-size: .9rem; margin-bottom: 1.25rem; max-width: 32ch; }
.footer__tel { display: inline-flex; align-items: center; gap: .5rem; color: #A8E6E2; font-size: .9rem; font-weight: 600; margin-top: .25rem; }
.footer__col-title { font-family: var(--heading); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.footer__list li + li { margin-top: .6rem; }
.footer__list a { font-size: .9rem; transition: color var(--t); }
.footer__list a:hover { color: #A8E6E2; }
.footer__contact-item { display: flex; align-items: flex-start; gap: .75rem; font-size: .9rem; margin-bottom: .75rem; }
.footer__contact-item svg { flex-shrink: 0; margin-top: 2px; color: #A8E6E2; }
.footer__contact-item a:hover { color: #A8E6E2; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex; flex-direction: column; gap: .75rem; font-size: .82rem;
}
.footer__legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--white); }

/* 13. WHATSAPP FLOTANTE */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  width: 60px; height: 60px; background: var(--whatsapp); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform var(--t), box-shadow var(--t);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.55); }
.whatsapp-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* Tooltip */
.whatsapp-float::after {
  content: 'WhatsApp';
  position: absolute; right: calc(100% + .6rem); top: 50%;
  transform: translateY(-50%) scale(.85); transform-origin: right center;
  background: var(--text); color: var(--white);
  font-size: .75rem; font-weight: 600; font-family: var(--body);
  padding: .3rem .65rem; border-radius: var(--radius-sm);
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity var(--t), transform var(--t);
}
.whatsapp-float:hover::after,
.whatsapp-float:focus-visible::after {
  opacity: 1; transform: translateY(-50%) scale(1);
}

/* 14. PAGE HERO (páginas interiores) */
.page-hero {
  background: linear-gradient(150deg, #1A2E35 0%, #1E4A52 100%);
  color: var(--white); padding-block: 4rem; text-align: center;
}
.page-hero__label   { display: inline-block; font-family: var(--body); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #A8E6E2; margin-bottom: .75rem; }
.page-hero__title   { color: var(--white); margin-bottom: 1rem; }
.page-hero__subtitle { color: rgba(255,255,255,.75); margin-inline: auto; }

/* 15. PÁGINA: SERVICIOS — detalle */
.services-detail { padding-block: 0; }

/* Feature row — split 50/50 edge-to-edge (patrón Corbella) */
.feature-row {
  display: flex;
  width: 100%;
  min-height: 500px;
  border-bottom: 1px solid var(--light-gray);
}
.feature-row:last-child { border-bottom: none; }
.feature-row__img {
  width: 50%; flex-shrink: 0;
  position: relative; overflow: hidden;
  background: var(--accent-light);
  max-height: 420px;
}
.feature-row__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-row__img-placeholder {
  width: 100%; height: 100%; min-height: 500px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .75rem; color: rgba(43,168,160,.5);
  text-align: center; font-size: .78rem; line-height: 1.5; padding: 2rem;
  border-right: 2px dashed rgba(43,168,160,.25);
}
.feature-row__text {
  width: 50%;
  padding: 4rem 5rem;
  display: flex; flex-direction: column;
  justify-content: center; gap: 1.25rem;
}
/* Alternancia: fila par → imagen a la derecha */
.feature-row:nth-child(even) .feature-row__img { order: 1; }
.feature-row:nth-child(even) .feature-row__img-placeholder { border-right: none; border-left: 2px dashed rgba(43,168,160,.25); }

.service-block {
  display: grid; gap: 2rem;
  padding-bottom: 4rem; margin-bottom: 4rem;
  border-bottom: 1px solid var(--light-gray);
}
.service-block:last-child { border-bottom: none; margin-bottom: 0; }
.service-block__icon {
  width: 72px; height: 72px; background: var(--accent-light);
  border-radius: 18px; display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 1.25rem;
}
.service-block__star {
  display: inline-block; background: var(--accent); color: var(--white);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .875rem; border-radius: 100px; margin-bottom: 1rem;
}
.service-block__title { margin-bottom: 1rem; }
.service-block__title--featured::before {
  content: '';
  display: block;
  width: 2.5rem; height: 2px;
  background: var(--accent);
  margin-bottom: 1rem;
}
.service-block__text { color: var(--gray); line-height: 1.8; margin-bottom: 1.25rem; max-width: 100%; }
.service-block__list { padding-left: 1.5rem; list-style: disc; }
.service-block__list li { font-size: .95rem; color: var(--gray); margin-bottom: .5rem; }
.service-block__list li::marker { color: var(--accent); }
.service-block__cta { margin-top: 1.5rem; }

/* FAQ */
.faq { padding-block: 5rem; background: var(--text); color: var(--white); }
.faq__list { max-width: 760px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid rgba(255,255,255,.1); }
.faq__btn {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  width: 100%; padding-block: 1.5rem; text-align: left;
  font-family: var(--heading); font-size: 1.1rem; color: var(--white);
  transition: color var(--t);
}
.faq__btn:hover { color: #A8E6E2; }
.faq__icon { flex-shrink: 0; transition: transform var(--t); color: var(--accent); }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__answer {
  display: none; padding-bottom: 1.5rem;
  font-size: .95rem; color: rgba(255,255,255,.68);
  line-height: 1.8; max-width: 100%;
}
.faq__item.is-open .faq__answer { display: block; }

/* 16. PÁGINA: SOBRE NOSOTROS */
.historia { padding-block: 5rem; }
.historia__grid { display: grid; gap: 2.5rem; }
.historia__num {
  font-family: var(--heading); font-size: 5rem; font-weight: 700;
  color: var(--accent); opacity: .15; line-height: 1; margin-bottom: -.5rem;
}
.historia__subtitle { font-size: 1.5rem; font-family: var(--heading); margin-bottom: 1rem; }
.historia__text { color: var(--gray); line-height: 1.8; max-width: 100%; }

.team { padding-block: 5rem; background: var(--text); color: var(--white); }
.team__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.team-card {
  background: rgba(255,255,255,.05); border-radius: var(--radius-lg);
  padding: 2rem; text-align: center;
  border: 1px solid rgba(255,255,255,.08);
}
.team-card__avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; font-family: var(--heading); font-size: 1.5rem; color: var(--white); font-weight: 700;
  overflow: hidden;
}
.team-card__avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
}
.team-card__name { font-family: var(--heading); font-size: 1.2rem; color: var(--white); margin-bottom: .25rem; }
.team-card__role { font-size: .85rem; color: #A8E6E2; margin-bottom: 1rem; }
.team-card__bio  { font-size: .9rem; color: rgba(255,255,255,.65); line-height: 1.7; max-width: 100%; }
.team__disclaimer { text-align: center; font-size: .8rem; color: rgba(255,255,255,.35); margin-top: 2.5rem; font-style: italic; }

.filosofia { padding-block: 5rem; }
.filosofia__grid { display: grid; gap: 2rem; }
.filo-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow);
}
.filo-card__num { display: block; font-family: var(--heading); font-size: 2.5rem; font-weight: 300; color: var(--accent); opacity: .4; line-height: 1; margin-bottom: .5rem; }
.filo-card__title { font-family: var(--heading); font-size: 1.15rem; margin-bottom: .5rem; }
.filo-card__text  { font-size: .9rem; color: var(--gray); line-height: 1.7; max-width: 100%; }

/* 17. PÁGINA: GALERÍA */
.galeria { padding-block: 5rem; }
.galeria__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
.galeria__item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.galeria__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease-out; }
.galeria__item:hover img { transform: scale(1.05); }
.galeria__item--wide { grid-column: span 2; aspect-ratio: 16/7; }
.galeria__caption { font-size: .85rem; color: var(--gray); text-align: center; margin-top: .4rem; }
.galeria__note { text-align: center; font-size: .8rem; color: var(--gray); margin-top: 2rem; font-style: italic; }

/* 18. PÁGINA: CONTACTO */
.contacto { padding-block: 5rem; }
.contacto__phone-block {
  text-align: center; background: var(--text); color: var(--white);
  border-radius: var(--radius-lg); padding: 3rem 2rem; margin-bottom: 3rem;
}
.contacto__phone-label {
  font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.75); margin-bottom: .75rem;
}
.contacto__phone-number {
  font-family: var(--heading); font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700; color: var(--white); display: block; margin-bottom: 1rem;
}
.contacto__grid { display: grid; gap: 2rem; }
.info-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.info-card h3 { font-family: var(--heading); font-size: 1.2rem; margin-bottom: 1.25rem; }
.horario-table { width: 100%; border-collapse: collapse; }
.horario-table td {
  padding: .65rem 0; font-size: .95rem;
  border-bottom: 1px solid var(--light-gray);
}
.horario-table td:first-child { font-weight: 500; }
.horario-table td:last-child   { text-align: right; color: var(--gray); }
.horario-table tr:last-child td { border-bottom: none; }
.mapa-wrapper { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.mapa-wrapper iframe { display: block; }
.contacto-form label {
  display: block; font-size: .9rem; font-weight: 500;
  color: var(--text); margin-bottom: .4rem; margin-top: 1.25rem;
}
.contacto-form label:first-of-type { margin-top: 0; }
.contacto-form input,
.contacto-form textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--light-gray); border-radius: var(--radius);
  font-family: var(--body); font-size: 1rem; color: var(--text);
  background: var(--bg); transition: border-color var(--t);
}
.contacto-form input:focus,
.contacto-form textarea:focus { outline: none; border-color: var(--accent); }
.contacto-form textarea { resize: vertical; min-height: 130px; }
.form-notice { font-size: .8rem; color: var(--gray); margin-top: .75rem; font-style: italic; }
.contacto-form .btn { margin-top: 1.25rem; width: 100%; justify-content: center; }

/* 19. PÁGINAS LEGALES */
.legal-page { padding-block: 5rem; }
.legal-content { max-width: 760px; margin-inline: auto; }
.legal-content h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.legal-content h3 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: .75rem; }
.legal-content p  { color: var(--gray); line-height: 1.8; margin-bottom: 1rem; max-width: 100%; }
.legal-content ul { padding-left: 1.5rem; list-style: disc; margin-bottom: 1rem; }
.legal-content ul li { color: var(--gray); line-height: 1.8; margin-bottom: .4rem; }
.legal-date { font-size: .85rem; color: var(--gray); margin-bottom: 2rem; }

/* ================================================================
   19b. CONTACTO — clases adicionales (antes inline styles)
   ================================================================ */
.contacto--phone-section { padding-bottom: 0; }
.contacto__phone-btns { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.contacto__right-col { display: flex; flex-direction: column; gap: 2rem; }
.contacto__section-title { font-family: var(--heading); font-size: 1.3rem; margin-bottom: 1rem; }
.contacto__transport-note { font-size: .82rem; color: var(--gray); margin-top: .75rem; }
.form-privacy { font-size: .8rem; color: var(--gray); margin-top: .75rem; }
.form-tel-link  { color: var(--accent); font-weight: 600; }
.form-privacy-link { color: var(--accent-dark); text-decoration: underline; }
.contacto-form__submit { width: 100%; justify-content: center; margin-top: 1.25rem; }
.icon-inline    { display: inline; vertical-align: -.2em; margin-right: .4rem; color: var(--accent); }
.icon-inline-sm { display: inline; vertical-align: -.1em; margin-right: .25rem; }
.horario-cerrado { color: #dc2626; font-weight: 500; }
.form-wrapper h3 { font-family: var(--heading); font-size: 1.2rem; margin-bottom: .5rem; }
.form-wrapper > p { font-size: .9rem; color: var(--gray); margin-bottom: 1.25rem; line-height: 1.6; max-width: 100%; }

/* ================================================================
   20. RESPONSIVE — TABLET (≥768px)
   ================================================================ */
@media (min-width: 768px) {
  .section { padding-block: 5rem; }

  /* Nav */
  .nav__menu {
    display: flex !important; position: static;
    flex-direction: row; width: auto; padding: 0;
    box-shadow: none; background: transparent; gap: .25rem;
  }
  .nav__link { padding: .5rem .75rem; border-bottom: none; font-size: .95rem; border-radius: var(--radius); }
  .nav__cta {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--text); color: var(--white);
    padding: .55rem 1.125rem; border-radius: var(--radius);
    font-size: .9rem; font-weight: 600; transition: background var(--t);
  }
  .nav__cta:hover { background: rgba(26,46,53,.82); }
  .nav__burger { display: none; }

  /* Hero dividido — Opción A 60/40 (skill-sector-dental §0 y §10) */
  .hero { padding-block: 9rem 7rem; }
  .hero__actions { flex-direction: row; }
  .hero__inner { display: block; }
  .hero__image-col { display: none; }
  .hero__content { max-width: 680px; }

  /* Services */
  .services__grid { grid-template-columns: repeat(2, 1fr); }

  /* Trust */
  .trust__grid { grid-template-columns: repeat(3, 1fr); }
  .trust-item { padding-inline: 2rem; border-right: 1px solid rgba(255,255,255,.08); }
  .trust-item:last-child { border-right: none; }

  /* CTA */
  .cta-final__actions { flex-direction: row; justify-content: center; }

  /* Footer */
  .footer__grid  { grid-template-columns: 2fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }

  /* Servicios detail */
  .service-block { grid-template-columns: 1fr 1fr; align-items: start; }

  /* Feature row — desktop ya es correcto (flex row). Nada que hacer aquí. */

  /* Team */
  .team__grid { grid-template-columns: repeat(2, 1fr); }

  /* Filosofia */
  .filosofia__grid { grid-template-columns: repeat(2, 1fr); }

  /* Galería */
  .galeria__grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .galeria__item { aspect-ratio: 4/3; }
  .galeria__item--wide { grid-column: span 3; aspect-ratio: 21/9; }

  /* Contacto */
  .contacto__grid { grid-template-columns: 1fr 1fr; }
  .contacto-form .btn { width: auto; }
}

/* ================================================================
   21. RESPONSIVE — DESKTOP (≥1024px)
   ================================================================ */
@media (min-width: 1024px) {
  /* Testimonial */
  .testimonial__wrapper { grid-template-columns: 1fr 2fr 1fr; max-width: none; }
  .testimonial__stat { display: block; }

  /* Services */
  .services__grid { grid-template-columns: repeat(4, 1fr); }

  /* Historia */
  .historia__grid { grid-template-columns: 1fr 1fr; align-items: center; }

  /* Team */
  .team__grid { grid-template-columns: repeat(3, 1fr); }

  /* Filosofia */
  .filosofia__grid { grid-template-columns: repeat(3, 1fr); }

  /* Galería */
  .galeria__grid { grid-template-columns: repeat(4, 1fr); }
  .galeria__item--wide { grid-column: span 2; aspect-ratio: 4/3; }
}

/* ================================================================
   22. PREFERS-REDUCED-MOTION — ACCESIBILIDAD OBLIGATORIA
   Desactiva todas las transiciones y animaciones para usuarios que
   han configurado "reducir movimiento" en su sistema operativo.
   Requerido por WCAG 2.1 criterio 2.3.3 y skill-sector-dental §10.
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration:       .01ms !important;
    animation-iteration-count: 1    !important;
    transition-duration:      .01ms !important;
    scroll-behavior:          auto  !important;
  }

  /* Eliminar transforms de hover — evitar movimiento brusco */
  .btn--primary:hover,
  .btn--white:hover   { transform: none; }
  .btn--outline:hover { transform: none; }

  .service-card:hover           { transform: none; box-shadow: var(--shadow); }
  /* La tarjeta destacada mantiene su elevación estática (no es animación) */
  .service-card--featured:hover { transform: translateY(-6px); }

  .whatsapp-float:hover   { transform: none; }
  .whatsapp-float::after  { opacity: 0; } /* desactivar tooltip animado */

  .galeria__item:hover img { transform: none; }

  /* El skip-link sigue siendo accesible (salta al contenido) */
  .skip-link { transition: none; top: auto; }
  .skip-link:focus { top: 1rem; }
}

/* ================================================================
   23. BARRA DE CONFIANZA
   ================================================================ */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  padding-block: .875rem;
}
.trust-bar__items {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: .75rem 2rem;
}
.trust-bar__item {
  display: flex; align-items: center; gap: .45rem;
  font-size: .85rem; font-weight: 500; color: var(--text);
}
.trust-bar__item svg { color: var(--accent); flex-shrink: 0; }

/* ================================================================
   24. STICKY CTA MÓVIL
   ================================================================ */
.sticky-cta-mobile {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--text);
  padding: .75rem 1.25rem;
  display: flex; gap: .625rem; align-items: center; justify-content: center;
  box-shadow: 0 -2px 12px rgba(30,38,32,.15);
}
.sticky-cta-mobile__btn {
  flex: 1; max-width: 180px;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1rem; border-radius: var(--radius);
  font-weight: 600; font-size: .9rem; color: var(--white);
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.35);
  transition: background var(--t);
  min-height: 44px;
}
.sticky-cta-mobile__btn--primary {
  background: var(--white); color: var(--accent-dark); border-color: transparent;
}
.sticky-cta-mobile__btn--primary:hover { background: var(--bg); }
.sticky-cta-mobile__btn:hover { background: rgba(255,255,255,.25); }
@media (min-width: 768px) { .sticky-cta-mobile { display: none; } }
@media (max-width: 767px) { .whatsapp-float { bottom: 5.5rem; } }

/* ================================================================
   25. HERO — COLUMNA IMAGEN Y MICROCOPY
   ================================================================ */
@media (max-width: 767px) {
  .hero__image-col { display: none; }
  .feature-row { flex-direction: column; min-height: auto; }
  .feature-row__img,
  .feature-row__text { width: 100%; }
  .feature-row__img { min-height: 260px; }
  .feature-row__img-placeholder { min-height: 260px; border-right: none; border-left: none; border-bottom: 2px dashed rgba(43,168,160,.25); }
  .feature-row__text { padding: 2.5rem 1.25rem; }
  .feature-row:nth-child(even) .feature-row__img { order: 0; }
}
.hero__image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 460px;
  background: rgba(43,168,160,.1);
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(43,168,160,.3);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .75rem; color: rgba(43,168,160,.55);
  text-align: center;
}
.hero__image-placeholder svg { opacity: .5; }
.hero__image-placeholder span { font-size: .78rem; line-height: 1.5; }
.hero__microcopy {
  margin-top: .875rem;
  font-size: .85rem; color: rgba(255,255,255,.7);
  max-width: 100%;
}

/* Hero imagen real */
.hero__image-placeholder:has(img) {
  background: none;
  border: none;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  aspect-ratio: auto;
  max-height: none;
  height: 100%;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}
.hero__image-placeholder:has(img)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #1A2E35 0%, transparent 30%),
              linear-gradient(to top, #1A2E35 0%, transparent 20%);
  pointer-events: none;
}
.hero__image-col {
  align-self: stretch;
  margin-right: -1.25rem;
}

/* ================================================================
   26. NAV — EFECTO SCROLL PREMIUM
   ================================================================ */
.nav.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(30,38,32,.12);
}

/* ================================================================
   27. SCROLL REVEAL — animación de entrada suave
   ================================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .4s ease-out, transform .4s ease-out;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  .reveal--delay-1 { transition-delay: .1s; }
  .reveal--delay-2 { transition-delay: .2s; }
  .reveal--delay-3 { transition-delay: .3s; }
  .reveal--delay-4 { transition-delay: .4s; }
}

/* ================================================================
   28. MEJORAS VISUALES — service cards, trust, footer
   ================================================================ */

/* Service card — acento izquierdo en hover */
.service-card::before {
  content: '';
  position: absolute; left: 0; top: 1.5rem; bottom: 1.5rem;
  width: 3px; border-radius: 2px;
  background: var(--accent);
  transform: scaleY(0); transform-origin: center;
  transition: transform var(--t);
}
.service-card:hover::before,
.service-card--featured::before { transform: scaleY(1); }

/* Trust items — hover sutil */
.trust-item { transition: transform var(--t); }
.trust-item:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
  .trust-item:hover { transform: none; }
}

/* Footer tel — hover */
.footer__tel:hover { color: var(--white); }

/* Testimonial card — sombra cálida */
.testimonial__card {
  box-shadow: 0 8px 40px rgba(176,117,64,.10), 0 2px 8px rgba(30,38,32,.06);
}

/* ================================================================
   29. PÁGINA: CONTACTO — clases faltantes
   ================================================================ */
.contact-grid {
  display: grid; gap: 3rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.contact-methods { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }

.contact-method {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t);
}
.contact-method:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-method__icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--accent-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.contact-method__label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); margin-bottom: .2rem; }
.contact-method__value { font-size: 1.05rem; font-weight: 600; color: var(--text); }
.contact-method__value a { color: var(--accent-dark); }
.contact-method__value a:hover { text-decoration: underline; }
.contact-method__note { font-size: .8rem; color: var(--gray); margin-top: .2rem; }

.urgency-banner {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--warm-light); border-left: 4px solid var(--warm);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem; margin-bottom: 2rem;
}
.urgency-banner__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--warm); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); margin-top: .1rem;
}
.urgency-banner__title { font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.urgency-banner__text  { font-size: .9rem; color: var(--gray); line-height: 1.6; max-width: 100%; }

/* Sección de horario en contacto */
.section-title-sm { font-family: var(--heading); font-size: 1.2rem; margin-bottom: 1.25rem; }

/* ================================================================
   PROMOS (CMS Fase 1) — banner, aviso de cierre, oferta destacada
   ================================================================ */
.promo-banner {
  background: var(--accent-dark);
  color: var(--white);
}
.promo-banner__inner {
  padding: .65rem 1.25rem;
  text-align: center;
  font-size: .875rem; font-weight: 600;
  line-height: 1.4;
}
@media (prefers-reduced-motion: no-preference) {
  .promo-banner { animation: promo-banner-in .3s ease; }
  @keyframes promo-banner-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

.cierre-aviso {
  display: flex; align-items: center; gap: .6rem;
  background: var(--warm-light); border-left: 4px solid var(--warm);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .75rem 1rem; margin-top: 1.25rem;
  font-size: .9rem; font-weight: 600; color: var(--text);
  max-width: fit-content;
}

.oferta-destacada {
  background: var(--accent-dark);
  padding: 2.5rem 0;
}
.oferta-destacada .container { text-align: center; max-width: 640px; }
.oferta-destacada__titulo {
  font-family: var(--heading); font-size: 1.6rem; font-weight: 700;
  color: var(--white); margin-bottom: .5rem;
}
.oferta-destacada__detalle {
  color: var(--white); font-size: 1rem; line-height: 1.6; opacity: .95;
}

