/* ==========================================================================
   AdelgaSane — capa corporativa del sitio de varias páginas.
   Se carga después de main.css (no en la landing /agenda/).
   ========================================================================== */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); }

:root {
	--f-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
	--radius-lg: 14px;
	--radius: 12px;
	--radius-sm: 8px;
	--bg-alt: #F3F6EE;
	--header-h: 72px;
	/* Sombras más discretas: las tarjetas se separan con un borde fino. */
	--shadow-sm: 0 1px 2px rgb(19 29 49 / .05);
	--shadow: 0 1px 2px rgb(19 29 49 / .04), 0 4px 14px rgb(19 29 49 / .05);
	--shadow-lg: 0 2px 4px rgb(19 29 49 / .05), 0 10px 28px rgb(19 29 49 / .08);
	--line: #E3E8DF;
}

/* ---------- Botones sobrios: azul marino de marca en lugar del verde WhatsApp ---------- */
.btn { box-shadow: none; }
.btn:hover { box-shadow: 0 6px 16px -8px rgb(19 29 49 / .35); }
.btn:active { box-shadow: none; }
.btn--ghost, .btn--ghost:active { box-shadow: inset 0 0 0 1.5px var(--sage); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--wa { background: var(--navy); color: #fff; }
.btn--wa:hover { background: var(--navy-deep); }
.btn--wa .btn__icon { color: #1DA851; }
.btn--primary { background: var(--navy); }
.btn--primary:hover { background: var(--navy-deep); }
/* Sobre fondos azules, el botón va en lima de marca para que se distinga. */
.price-card .btn--wa, .contact-main .btn--wa, .final-cta .btn--wa { background: var(--lime-light); color: var(--navy-deep); }
.price-card .btn--wa:hover, .contact-main .btn--wa:hover, .final-cta .btn--wa:hover { background: #E0EA5A; }
.price-card .btn--wa .btn__icon, .contact-main .btn--wa .btn__icon, .final-cta .btn--wa .btn__icon { background: var(--navy); color: #fff; }
@media (min-width: 768px) { :root { --header-h: 84px; } }

body { background: #fff; }
h1, h2 { font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h1 em, h2 em { font-style: normal; color: var(--olive); }
.on-dark h2 em { color: var(--lime-light); }
.eyebrow { letter-spacing: .16em; font-size: .75rem; color: var(--olive); }
.about__faith { font-family: var(--f-body); font-weight: 600; font-style: normal; }
.branch-card h3, .ear__name, .price-card__amount, .hero__chip strong, .stats-band strong, .promo-card h3, .avatar-initials { font-weight: 800; letter-spacing: -.02em; }

/* ---------- Barra superior de contacto ---------- */
.topbar { font-size: .8125rem; }
.topbar__inner { justify-content: space-between; gap: 10px 22px; min-height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: rgb(255 255 255 / .86); }
.topbar a.topbar__item { font-weight: 600; color: #fff; }
.topbar__item svg { width: 15px; height: 15px; flex: none; color: var(--lime-light); }
.topbar__branches, .topbar__price, .topbar__cities { display: none; }
.topbar__sep { display: none !important; }
@media (min-width: 640px) { .topbar__branches { display: inline-flex; } }
@media (min-width: 768px) {
	.topbar__inner { justify-content: flex-start; }
	.topbar__price { display: inline-flex; padding-left: 22px; border-left: 1px solid rgb(255 255 255 / .16); }
	.topbar__social { margin-left: auto; }
}
@media (min-width: 1024px) { .topbar__cities { display: inline; color: rgb(255 255 255 / .62); font-weight: 400; } }

/* ---------- Encabezado ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgb(19 29 49 / .35); }
@media (min-width: 1100px) {
	.site-nav ul { gap: 4px; }
	.site-nav a { padding-inline: 12px; font-size: .9375rem; color: var(--navy); border-radius: 8px; }
	.site-nav a::after { left: 12px; right: 12px; bottom: 4px; }
	.site-nav a.is-active { color: var(--olive); }
	.site-header .header-cta { margin-left: 12px; }
}
@media (max-width: 1099.98px) {
	.site-nav a.is-active { color: var(--olive); }
}

/* ---------- Cabecera de páginas internas ---------- */
.page-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(260px, 36vw, 380px); padding-block: 56px 48px; color: #fff; overflow: hidden; background: var(--navy-deep); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(19 29 49 / .94) 0%, rgb(19 29 49 / .8) 45%, rgb(19 29 49 / .35) 100%); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--g-lime); }
.page-hero h1 { margin-bottom: 12px; color: #fff; }
.page-hero__lead { max-width: 56ch; margin: 0; color: rgb(255 255 255 / .85); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.eyebrow--light { color: var(--lime-light); }
.eyebrow--light::before { background: var(--lime-light); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: .8125rem; color: rgb(255 255 255 / .7); }
.crumbs a { color: #fff; font-weight: 600; text-decoration: none; }
.crumbs a:hover { color: var(--lime-light); }

/* ---------- Submenú de la página Tratamientos ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.subnav__inner { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 8px 16px; border-radius: 999px; background: var(--bg-alt); color: var(--navy); font-size: .875rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.subnav a:hover { background: var(--navy); color: #fff; }

/* ---------- Encabezados de sección y enlaces «ver más» ---------- */
.section-head--split { max-width: none; display: grid; gap: 12px 48px; align-items: end; }
.section-head--split h2 { margin: 0; }
.section-head--split .lead { margin: 0; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.1fr 1fr; } }
.section-more { margin: 24px 0 0; }
.results .section-more { text-align: center; }
.more-link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--lime); padding-bottom: 2px; }
.more-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.more-link:hover svg { transform: translateX(4px); }
.notice { max-width: 640px; margin-inline: auto; padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-lg); background: var(--bg-alt); text-align: center; }
.notice h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.notice p { color: var(--ink-soft); }

/* ---------- Inicio: portada más institucional ---------- */
.hero { background: linear-gradient(180deg, #fff, var(--bg-alt)); }
.hero::before { opacity: .55; }
.hero__blob, .hero__leaf { display: none; }
.hero__media { padding: 0; }
.hero__arch { aspect-ratio: 4 / 4.3; border-radius: var(--radius-lg); }
.hero__chip { border-radius: 14px; }
.why { padding-block: clamp(32px, 5vw, 56px); background: var(--bg-alt); }
.why__list { background: #fff; box-shadow: var(--shadow-sm); }
.front-page .why { padding-top: 0; }

/* ---------- Inicio: tarjetas de tratamientos ---------- */
.treats { background: #fff; }
.treats__grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.treat-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.treat-card:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--shadow-lg); }
.treat-card__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.treat-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.treat-card:hover .treat-card__photo img { transform: scale(1.04); }
.treat-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.treat-card h3 { margin-bottom: 8px; font-size: 1.125rem; font-weight: 800; color: var(--navy); }
.treat-card p { flex: 1; margin-bottom: 16px; color: var(--ink-soft); font-size: .9375rem; line-height: 1.55; }
.treat-card__link { align-self: flex-start; } /* el estilo viene de .more-link */
.treat-card__link::before { content: ""; position: absolute; inset: 0; }
.treat-card { position: relative; }

/* ---------- Tratamientos: servicios en detalle ---------- */
.treat-rows { background: #fff; }
.treat-rows__list { display: grid; gap: clamp(56px, 8vw, 96px); }
.treat-row { display: grid; gap: 28px; align-items: center; scroll-margin-top: calc(var(--header-h) + 70px); }
.treat-row__photo { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.treat-row__photo img { width: 100%; height: 100%; object-fit: cover; }
.treat-row__copy p { color: var(--ink-soft); max-width: 52ch; }
@media (min-width: 900px) {
	.treat-row { grid-template-columns: 1fr 1fr; gap: 64px; }
	.treat-row:nth-child(even) .treat-row__photo { order: 2; }
}
#auriculoterapia, #sesion { scroll-margin-top: calc(var(--header-h) + 60px); }

/* ---------- Nosotros: misión, visión y valores ---------- */
.pillars { background: var(--bg-alt); }
.pillars__grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .pillars__grid { grid-template-columns: repeat(2, 1fr); } }
.pillar { padding: 32px 28px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); border-top: 4px solid var(--lime); }
.pillar__icon { display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 14px; background: var(--navy); color: var(--lime-light); }
.pillar__icon svg { width: 28px; height: 28px; }
.pillar h3 { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.pillar p { margin: 0; color: var(--ink-soft); }
.team-teaser__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-lg); background: var(--bg-alt); }
.team-teaser h2 { margin: 0; }

/* ---------- Médicos ---------- */
.doctors__grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.doctor-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.doctor-card__photo { display: grid; place-items: center; aspect-ratio: 4 / 4.2; background: var(--g-brand); overflow: hidden; }
.doctor-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.doctor-card__body { padding: 22px 24px 26px; }
.doctor-card__name { margin-bottom: 4px; font-size: 1.25rem; letter-spacing: -.01em; color: var(--navy); }
.doctor-card__specialty { margin-bottom: 12px; color: var(--olive); font-weight: 800; font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; }
.doctor-card__bio { color: var(--ink-soft); font-size: .9375rem; }
.doctor-card__meta { list-style: none; display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .875rem; }
.doctor-card__meta span { display: inline-block; min-width: 76px; color: var(--ink-soft); font-weight: 700; }

/* ---------- Testimonios ---------- */
.reviews__grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 18px; }
.reviews__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; margin-top: 40px; padding: 28px; border-radius: var(--radius-lg); background: var(--bg-alt); }
.reviews__cta p { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--navy); }

/* Fotos de antes y ahora: dos por fila, la foto entera (3:2, ya trae sus pestañas) y un pie sobrio. */
.photo-reviews .reviews__grid { grid-template-columns: 1fr; gap: 20px; max-width: 1040px; margin-inline: auto; }
@media (min-width: 720px) { .photo-reviews .reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.photo-reviews .testimonial { border-radius: var(--radius); }
.photo-reviews .testimonial__media { aspect-ratio: 3 / 2; }
.photo-reviews .testimonial__body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 16px 20px; border-top: 1px solid var(--line); }
.photo-reviews .testimonial__name { order: -1; color: var(--navy); }
.photo-reviews .testimonial__result { padding: 0; background: none; color: var(--lime-ink); font-size: .875rem; font-weight: 700; }
.photo-reviews .testimonial__result svg { color: var(--lime); }
.photo-reviews .testimonial__quote { flex-basis: 100%; }
.photo-reviews .results__note { margin-top: 24px; }

/* ---------- Contacto ---------- */
.contact__grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1.25fr; gap: 40px; } }
.contact-main { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--g-brand); color: rgb(255 255 255 / .85); }
.contact-main h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.contact-main__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 16px; background: var(--wa); color: #fff; }
.contact-main__icon svg { width: 30px; height: 30px; }
.contact-main__number { display: block; margin: 6px 0 22px; color: var(--lime-light); font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.contact-main__social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .14); }
.contact-main__social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #fff; font-weight: 700; text-decoration: none; }
.contact-main__social svg { width: 20px; height: 20px; }
.contact-dir__title { font-size: 1.5rem; margin-bottom: 14px; }
.contact-branch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-branch:first-of-type { border-top: 1px solid var(--line); }
.contact-branch h3 { margin-bottom: 4px; font-size: 1.1rem; }
.contact-branch h3 a { color: var(--navy); text-decoration: none; }
.contact-branch h3 a:hover { color: var(--olive); }
.contact-branch p { margin: 0; color: var(--ink-soft); font-size: .9375rem; }
.contact-branch__days { margin-top: 4px !important; font-size: .8125rem !important; }
.contact-branch__actions { display: flex; gap: 8px; flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--bg-alt); color: var(--navy); transition: transform .2s var(--ease), background-color .2s; }
.icon-btn:hover { transform: translateY(-2px); background: var(--navy); color: #fff; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn--wa { background: var(--wa); color: #fff; }
.icon-btn--wa:hover { background: #1DA851; }

/* ---------- Banda final y pie de página ---------- */
.footer-cta { background: #F3F5F2; border-top: 1px solid #E2E7DF; }
.footer-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-block: clamp(36px, 5vw, 52px); }
.footer-cta__inner > div { padding-left: 18px; border-left: 3px solid var(--lime); }
.footer-cta__title { margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 1.85rem); color: var(--navy); }
.footer-cta__text { margin: 0; color: var(--ink-soft); font-weight: 500; max-width: 56ch; }
.site-footer__brand .social { gap: 8px; margin-top: 18px; }
.site-footer__brand .social a { justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: rgb(255 255 255 / .08); }
.site-footer__brand .social a:hover { background: var(--lime); color: var(--navy-deep); }
.site-footer__brand .social svg { width: 18px; height: 18px; }
.site-footer__note { margin-top: 10px; font-size: .875rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1.2fr 1.1fr; gap: 40px; } }

/* ---------- Tarjetas más planas: borde fino y sombra mínima (va al final para ganar a lo anterior) ---------- */
.treat-card, .branch-card, .testimonial, .doctor-card, .pillar, .why__list, .service-card, .promo-card, .ear, .auriculo__real { border: 1px solid var(--line); box-shadow: none; }
.treat-card:hover, .branch-card:hover, .testimonial:hover, .doctor-card:hover { transform: translateY(-2px); border-color: var(--line); box-shadow: var(--shadow); }
.service-card--featured { border-color: var(--lime); }
.treat-row__photo, .collage img, .hero__arch, .price-card, .stats-band { box-shadow: none; }
.price-card::after { display: none; }

/* ---------- Testimonios en video ---------- */
.vtests { padding-bottom: 0; }
.vtests__grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); max-width: 1040px; margin-inline: auto; }
.vtest { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); }
.vtest video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: var(--navy-deep); }
@media (max-width: 520px) { .vtests__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* Nosotros y Sucursales son dos secciones blancas seguidas: sin el margen de arriba no se suma un hueco doble. */
#nosotros + #sucursales { padding-top: 0; }

/* Página no encontrada: dos botones separados; en el celular ocupan todo el ancho. */
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 600px) { .notfound__actions .btn { width: 100%; justify-content: space-between; } }

/* Aviso de salud del pie: discreto, sobre la línea de derechos. */
.site-footer__notice { margin-top: 32px; margin-bottom: 0; padding-bottom: 16px; font-size: .8125rem; line-height: 1.6; color: rgb(255 255 255 / .6); }

/* Sucursal con dos fotos del consultorio (Ibarra): la recepción grande y el área de spa al lado. */
.branch-card__media--two { display: grid; grid-template-columns: 3fr 2fr; gap: 4px; aspect-ratio: 16 / 8; background: var(--surface); }
.branch-card__media--two .branch-card__photo { position: relative; aspect-ratio: auto; min-height: 0; overflow: hidden; }
.branch-card__media--two .branch-card__photo img { position: absolute; inset: 0; }
.branch-card__media--two .branch-card__photo:first-child img { object-position: 50% 62%; }
.branch-card__media--two .branch-card__photo:nth-child(2) img { object-position: 50% 70%; }
