/* Farmacias La Paz · interfaz tipo "tablero" con los verdes del logo
   verde oscuro #40a643 · verde #40a643 · verde LA #aed143 · lima #aed143 · gris #686870 */
:root {
    --g-950: #40a643;
    --g-800: #40a643;
    --g-700: #40a643;
    --g-600: #40a643;
    --g-500: #40a643;
    --la: #aed143;
    --lime: #aed143;
    --gray: #686870;
    --ink: #1f2421;
    --text: #fff;
    --muted: rgba(255, 255, 255, .74);
    --glass: #40a643;
    --glass-2: #40a643;
    --stroke: rgba(255, 255, 255, .28);
    --radius: 28px;
    --shadow: 0 24px 50px -26px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; min-height: 100vh; padding-bottom: 120px;
    font-family: 'Poppins', system-ui, sans-serif; line-height: 1.6; color: var(--ink);
    background-color: #f5faf2;
    background-image:
        radial-gradient(900px 600px at 88% -6%, rgba(174, 209, 67, .30), transparent 62%),
        radial-gradient(800px 700px at -10% 32%, rgba(64, 166, 67, .16), transparent 62%),
        linear-gradient(180deg, #ffffff 0%, #f1f8ec 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: #1f2421; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(36px, 6vw, 72px) 0; }
.eyebrow { padding: 4px 12px; border-radius: 999px; background: #aed143; color: #1f2421 !important; display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #40a643; margin-bottom: 10px; }
.lead { font-size: 1.1rem; color: #4a524c; max-width: 58ch; margin: 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botones */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lime); color: var(--ink); box-shadow: 0 14px 28px -12px rgba(174, 209, 67, .8); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn-ghost:hover { background: var(--glass-2); }
.btn svg { width: 20px; height: 20px; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .25s, box-shadow .25s; }
.site-header.scrolled { background: rgba(255, 255, 255, .85); backdrop-filter: blur(16px); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .3); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.head-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--stroke);
    backdrop-filter: blur(12px); font-size: .85rem; font-weight: 600; color: #fff; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(174, 209, 67, .6); animation: pulse 1.8s infinite; }
.dot.off { background: #9aa39d; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(174, 209, 67, 0); } }

/* Barra inferior (dock) */
.dock { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; display: flex; gap: 4px; padding: 8px; border-radius: 999px;
    background: rgba(64, 166, 67, .9); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--stroke); box-shadow: 0 22px 44px -14px rgba(0, 0, 0, .7); }
.dock a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 76px; padding: 9px 14px; border-radius: 999px;
    color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 600; transition: background .2s, color .2s, transform .2s; }
.dock a svg { width: 24px; height: 24px; }
.dock a:hover { color: #fff; background: var(--glass-2); }
.dock a.active { background: var(--lime); color: var(--ink); }
.dock a.dock-wa { background: #25d366; color: #fff; }
.dock a.dock-wa:hover { transform: translateY(-3px); }

/* Widgets */
.hero { padding: 8px 0 12px; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.w { position: relative; overflow: hidden; border-radius: var(--radius); padding: 26px; background: var(--glass); border: 1px solid var(--stroke);
    backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.w-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffffff; }
.w-label svg { width: 16px; height: 16px; }

.w-hello { grid-column: span 5; grid-row: span 2; min-height: 520px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
    background: #40a643; }
.w-hello .copy { position: relative; z-index: 2; max-width: 62%; }
.w-hello h1 { margin: 0 0 8px; font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; }
.w-hello .sub { margin: 0; color: var(--muted); font-size: .98rem; }
.w-hello .mascot { position: absolute; right: 6px; top: 138px; height: 50%; width: auto; max-width: none; z-index: 1; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .4)); pointer-events: none; }
.w-hello .foot { position: relative; z-index: 2; display: grid; gap: 10px; }
.chip { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 18px; background: rgba(0, 0, 0, .18); border: 1px solid var(--stroke);
    font-size: .82rem; font-weight: 600; backdrop-filter: blur(8px); }
.chip small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
.w-hello .btn { justify-self: start; }

.w-campaign { grid-column: span 7; padding: clamp(18px, 3vw, 30px); border: 0; display: grid; gap: 14px; align-content: center;
    background: linear-gradient(135deg, #0a7cff, #0062d8); box-shadow: 0 30px 60px -30px rgba(0, 60, 150, .8); }
.w-campaign::after { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .1); pointer-events: none; }
.w-campaign img { position: relative; z-index: 1; width: 100%; height: auto; }
.w-campaign .title { max-width: 560px; }

.w-clock { grid-column: span 3; display: flex; flex-direction: column; justify-content: center; }
.clock { font-size: clamp(2.6rem, 4.4vw, 3.4rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.clock-date { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.clock-date::first-letter { text-transform: uppercase; }
.w-today { grid-column: span 4; }
.today-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--stroke); font-size: .9rem; }
.today-row:last-child { border: 0; padding-bottom: 0; }
.today-row b { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.today-row span { color: #ffffff; font-weight: 600; white-space: nowrap; }

/* Accesos rápidos: verde "LA" del logo, sin degradado */
.quick { padding-top: 6px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.quick-card { border: 1px solid rgba(255, 255, 255, .45); display: flex; flex-direction: column; gap: 10px; min-height: 220px; padding: 24px; border-radius: var(--radius); text-decoration: none;
    background: #aed143; color: var(--ink); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .6); transition: transform .3s, box-shadow .3s; }
.quick-card:hover { transform: translateY(-8px); box-shadow: 0 34px 48px -24px rgba(0, 0, 0, .7); }
.quick-card .ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: rgba(31, 36, 33, .14); color: var(--ink); }
.quick-card .ico svg { width: 30px; height: 30px; }
.quick-card h3 { margin: 6px 0 0; font-size: 1.15rem; color: var(--ink); }
.quick-card p { margin: 0; font-size: .88rem; color: rgba(31, 36, 33, .82); }
.quick-card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .88rem; }
.quick-card .go::after { content: '→'; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--lime); transition: transform .3s; }
.quick-card:hover .go::after { transform: translateX(6px); }

/* Banners y ofertas */
.banners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.banners > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.banners img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.promo { border-radius: var(--radius); overflow: hidden; background: var(--glass); border: 1px solid var(--stroke); box-shadow: var(--shadow); transition: transform .25s; }
.promo:hover { transform: translateY(-6px); }
.promo div { padding: 16px 18px 20px; }
.promo p { margin: 0; color: var(--muted); font-size: .9rem; }
.empty { padding: 32px; border: 2px dashed var(--stroke); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* Sucursales */
.branch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.branch { position: relative; overflow: hidden; padding: 26px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.branch-map { margin: -26px -26px 20px; height: 220px; background: #40a643; }
.branch-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: saturate(.85) contrast(.95); }
.branch header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.branch h3 { margin: 0; font-size: 1.25rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge.open { background: var(--lime); color: var(--ink); }
.badge.open::before { animation: pulse 1.8s infinite; }
.badge.closed { background: rgba(255, 255, 255, .16); color: #e4ebe6; }
.branch .meta { display: grid; gap: 8px; margin: 14px 0 18px; color: var(--muted); font-size: .95rem; }
.branch .meta a { color: inherit; text-decoration: none; }
.branch .meta a:hover { color: var(--lime); }
.branch .meta div { display: flex; gap: 10px; align-items: flex-start; }
.branch .meta svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--lime); }
.schedule { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 18px; }
.schedule th { text-align: left; font-weight: 500; color: var(--muted); }
.schedule td { text-align: right; font-weight: 600; }
.schedule tr { border-bottom: 1px dashed var(--stroke); }
.schedule th, .schedule td { padding: 7px 0; }
.schedule tr.today { background: rgba(174, 209, 67, .16); }
.schedule tr.today th, .schedule tr.today td { padding-inline: 10px; color: var(--lime); }
.branch .row { display: flex; gap: 10px; flex-wrap: wrap; }
.branch .btn { padding: 10px 18px; font-size: .9rem; }

/* Valores */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { --c: var(--g-500); position: relative; overflow: hidden; padding: 26px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--stroke);
    backdrop-filter: blur(14px); box-shadow: var(--shadow); transition: transform .3s, background .3s; }
.value:hover { transform: translateY(-6px); background: var(--glass-2); }
.value .n { position: absolute; right: 18px; top: 6px; font-size: 4.2rem; font-weight: 800; line-height: 1; color: #fff; opacity: .08; }
.v-ico { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 16px; border-radius: 18px; background: var(--c); color: #fff; transition: transform .3s; }
.v-ico svg { width: 30px; height: 30px; }
.value:hover .v-ico { transform: scale(1.08) rotate(-6deg); }
.value h3 { margin: 0 0 4px; font-size: 1.3rem; }
.value p { margin: 0; color: var(--muted); font-size: .96rem; }
.c-dark { --c: #40a643; }
.c-mid { --c: #40a643; }
.c-light { --c: #aed143; }
.c-lime { --c: #aed143; }
.c-gray { --c: #686870; }
.c-forest { --c: #40a643; }
.c-light .v-ico, .c-lime .v-ico { color: var(--ink); }

/* CTA */
.cta { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 5vw, 56px);
    border-radius: 36px; background: #40a643; border: 1px solid var(--stroke); backdrop-filter: blur(14px); }
.cta::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.cta h2 { margin: 0 0 8px; }
.cta p { margin: 0; color: var(--muted); max-width: 48ch; }
.cta .btn { position: relative; z-index: 1; background: var(--lime); color: var(--ink); }

/* Páginas interiores */
.page-hero { padding: clamp(28px, 5vw, 56px) 0 10px; }
.page-hero h1 { margin-bottom: 12px; }
.prose { max-width: 760px; font-size: 1.05rem; color: #2f3631; }
.prose h2 { margin-top: 1.6em; }
.prose p { color: inherit; }
.section.tint { background: rgba(64, 166, 67, .07); }
.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.story-quote { position: sticky; top: 96px; padding: 32px 30px; border-radius: var(--radius); background: #aed143; color: var(--ink); box-shadow: var(--shadow); }
.story-year { display: block; font-size: 3.4rem; font-weight: 800; line-height: 1; opacity: .85; margin-bottom: 10px; }
.story-quote p { margin: 0 0 14px; font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.story-quote small { font-size: .95rem; }
.story-text h2 { margin-top: 0; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mv-card { padding: 34px 32px; border-radius: var(--radius); color: #fff; box-shadow: var(--shadow); border: 1px solid var(--stroke); }
.mv-mission { background: #40a643; }
.mv-vision { background: #40a643; }
.mv-label { display: inline-block; margin-bottom: 12px; padding: 5px 14px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mv-card p { margin: 0; font-size: 1.12rem; line-height: 1.55; }
.benefits { display: grid; gap: 18px; }
.benefit { --c: var(--g-500); position: relative; padding: 30px 30px 26px 38px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: blur(14px); box-shadow: var(--shadow); overflow: hidden; }
.benefit::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--c); }
.benefit header { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.benefit header .v-ico { margin: 0; }
.benefit h2 { margin: 0; font-size: 1.7rem; }
.benefit p { margin: 0 0 12px; color: rgba(255, 255, 255, .86); max-width: 82ch; }
.benefit .highlight { padding: 14px 18px; border-radius: 16px; background: rgba(174, 209, 67, .16); color: #fff; font-weight: 600; }
.benefit-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.benefit .btn { padding: 11px 20px; font-size: .92rem; }
.cenabast-banner { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 36px; }
.cenabast-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.cenabast-side { display: grid; gap: 12px; padding: 30px 26px; border-radius: var(--radius); background: #aed143; color: var(--ink); box-shadow: var(--shadow); }
.cenabast-side .big { font-size: 4.2rem; font-weight: 800; line-height: 1; }
.cenabast-side .big-sub { margin-top: -6px; font-weight: 600; }
.cenabast-side .btn { background: var(--ink); color: var(--lime); text-align: center; }
.cenabast-side .btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.cenabast-side .btn-outline:hover { background: rgba(31, 36, 33, .12); }

/* Formularios */
.form-card { max-width: 680px; padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.form-card form > div { margin-bottom: 18px; }
.form-card form > div > div { margin-bottom: 18px; }
.form-card label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: #fff; }
.form-card input, .form-card select, .form-card textarea { width: 100%; padding: 13px 16px; border: 1.5px solid var(--stroke); border-radius: 16px; font: inherit; color: #fff; background: rgba(0, 0, 0, .18); transition: border-color .2s, box-shadow .2s; }
.form-card input::placeholder, .form-card textarea::placeholder { color: rgba(255, 255, 255, .45); }
.form-card select option { color: var(--ink); }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: 0; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(174, 209, 67, .22); }
.form-card button { width: 100%; justify-content: center; }
.form-card ul { margin: 6px 0 0; padding: 0; list-style: none; color: #ffb4ab; font-size: .85rem; }
.hp { position: absolute !important; left: -9999px; }
.flash { padding: 14px 18px; border-radius: 16px; margin: 0 0 20px; font-weight: 500; }
.flash-success { background: var(--lime); color: var(--ink); }
.flash-error { background: #ffd9d4; color: #7a1710; }
.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }

/* Ventajas y pie */
.advantages { padding: clamp(32px, 5vw, 56px) 0; }
.advantages h2 { text-align: center; font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 26px; }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.adv-card { display: flex; align-items: center; gap: 16px; padding: 22px 20px; border-radius: 24px; background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: blur(14px);
    font-weight: 600; font-size: 1rem; line-height: 1.25; transition: transform .25s, background .25s; }
.adv-card:hover { transform: translateY(-5px); background: var(--glass-2); }
.adv-card svg { flex: none; width: 44px; height: 44px; padding: 9px; border-radius: 14px; background: var(--lime); color: var(--ink); stroke-width: 1.8; }
.site-footer { margin-top: 24px; padding: 52px 0 24px; background: #40a643; border-top: 0; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 28px; }
.site-footer h4 { margin: 22px 0 8px; font-size: .9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #ffffff; }
.footer-grid > div > h4:first-child { margin-top: 0; }
.site-footer p { margin: 0 0 6px; font-size: .93rem; color: var(--muted); }
.site-footer p strong { color: #fff; }
.site-footer ul { margin: 0; padding-left: 18px; color: var(--muted); }
.site-footer li { padding: 2px 0; }
.site-footer a { color: #fff; text-decoration: none; display: block; padding: 3px 0; }
.site-footer ul a { display: inline; padding: 0; }
.site-footer a.inline { display: inline; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--lime); }
.site-footer .brand { margin-bottom: 18px; }
.site-footer .brand img { height: 52px; }
.social-icons { display: flex; gap: 12px; }
.social-icons a { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: var(--lime); color: var(--ink); }
.social-icons a:hover { background: #fff; color: var(--ink); }
.social-icons svg { width: 20px; height: 20px; }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--stroke); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }

/* Aviso de sucursal cerrada */
#wa-closed { border: 1px solid var(--stroke); border-radius: 28px; padding: 32px; max-width: 440px; width: calc(100% - 32px); color: #fff;
    background: #40a643; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7); }
#wa-closed::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
#wa-closed h2 { font-size: 1.6rem; margin-bottom: 12px; }
#wa-closed p { margin: 0 0 12px; color: var(--muted); }
#wa-closed [data-next] { color: var(--lime); font-weight: 600; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Aparición */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1000px) {
    .w-hello { grid-column: span 12; grid-row: auto; min-height: 440px; }
    .w-campaign { grid-column: span 12; }
    .w-clock { grid-column: span 5; }
    .w-today { grid-column: span 7; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .values { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .adv-grid { grid-template-columns: repeat(2, 1fr); }
    .story, .mv, .cenabast-grid, .contact-layout { grid-template-columns: 1fr; }
    .story-quote { position: static; }
}
@media (max-width: 640px) {
    .w-clock, .w-today { grid-column: span 12; }
    .w-hello { min-height: 0; }
    .w-hello .copy { max-width: 60%; }
    .w-hello .mascot { height: 200px; right: 4px; top: 84px; }
    .w-hello .copy { margin-bottom: 70px; }
    .head-pill span.long { display: none; }
    .dock { width: calc(100% - 20px); bottom: 10px; justify-content: space-between; gap: 0; padding: 6px; }
    .dock a { flex: 1; min-width: 0; padding: 8px 2px; font-size: .62rem; }
    .dock a svg { width: 22px; height: 22px; }
}
@media (max-width: 520px) {
    .quick-grid, .values, .footer-grid, .adv-grid { grid-template-columns: 1fr; }
    .quick-card { min-height: 0; }
}

/* Fondo blanco: textos claros solo dentro de tarjetas verdes */
.w h1, .w h2, .w h3, .branch h3, .value h3, .benefit h2, .benefit h3, .cta h2, .promo h3, #wa-closed h2, .mv-card h2, .mv-card h3 { color: #fff; }
.advantages h2 { color: var(--ink); }
.empty { color: #4a524c; border-color: rgba(64, 166, 67, .35); }
.value .n { opacity: .12; }
.site-footer { margin-top: 0; }
.head-pill { background: #40a643; border-color: transparent; }
.site-header.scrolled { border-bottom: 1px solid rgba(64, 166, 67, .12); }

/* Menú superior */
body { padding-bottom: 0; }
.dock { display: none; }
.site-header { background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(64, 166, 67, .1); }
.site-header .container { gap: 24px; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; padding: 5px; border-radius: 999px; background: rgba(64, 166, 67, .08); }
.nav a { padding: 9px 18px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600; transition: background .2s, color .2s; }
.nav a:hover { background: rgba(64, 166, 67, .14); }
.nav a.active { background: #40a643; color: #fff; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .3); }
.head-right { display: flex; align-items: center; gap: 12px; }
.head-wa { padding: 10px 20px; font-size: .9rem; }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: #40a643; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { content: ''; display: block; width: 20px; height: 2px; background: #fff; position: relative; margin: auto; }
.burger span::before { position: absolute; top: -6px; left: 0; }
.burger span::after { position: absolute; top: 6px; left: 0; }
@media (max-width: 900px) {
    .burger { display: block; }
    .head-wa span { display: none; }
    .head-wa { padding: 10px 12px; }
    .nav { position: absolute; inset: 100% 16px auto 16px; display: none; flex-direction: column; align-items: stretch; margin: 8px 0 0; padding: 10px; border-radius: 24px;
        background: #fff; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .3); border: 1px solid rgba(64, 166, 67, .12); }
    .nav.open { display: flex; }
    .nav a { padding: 13px 18px; }
}
@media (max-width: 520px) { .head-pill { display: none; } .brand img { height: 40px; } }

/* Foto de Ovalle difuminada detrás del loro */
.w-hello { isolation: isolate; background: #40a643; }
.w-hello::before { content: ''; position: absolute; inset: -24px; z-index: -2; background: url('../img/ovalle.webp') center / cover no-repeat; filter: blur(6px) saturate(1.15); transform: scale(1.05); }
.w-hello::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(170deg, rgba(64, 166, 67, .62), rgba(64, 166, 67, .30) 50%, rgba(64, 166, 67, .88)); }
.w, .branch, .value, .benefit, .form-card, .cta, .promo, .adv-card { color: #fff; }

/* Solo dos verdes: medio #40A643 y lima #AED143 */
:root { --glass-2: #40a643; }
.value:hover, .adv-card:hover, .nav a:hover { filter: brightness(1.06); }
.mv-vision { background: #aed143; color: #1f2421; }
.mv-vision .mv-label { background: rgba(31, 36, 33, .12); }
.mv-vision p { color: #1f2421; }
.v-ico, .c-dark .v-ico, .c-mid .v-ico, .c-forest .v-ico { background: #fff; color: #40a643; }
.c-light .v-ico, .c-lime .v-ico, .c-mid .v-ico { background: #aed143; color: #1f2421; }
.c-gray .v-ico { background: #fff; color: #686870; }
.benefit::before { background: #aed143; }
.benefit .highlight { background: rgba(255, 255, 255, .2); }
.w-label, .site-footer h4 { color: #fff; }
.today-row span { color: #fff; }
.schedule tr.today th, .schedule tr.today td { color: #fff; }
.nav a.active { background: #40a643; }
.site-header { border-bottom-color: rgba(64, 166, 67, .25); }

/* Sucursales y valores: tarjetas blancas con tintes suaves */
.branch, .value { color: #1f2421; background: #fff; border: 1px solid rgba(64, 166, 67, .22); box-shadow: 0 18px 36px -24px rgba(0, 0, 0, .35); backdrop-filter: none; }
.branch { background: linear-gradient(180deg, #fff 55%, #f1f9ee); }
.branch h3, .value h3 { color: #1f2421; }
.branch .meta, .value p { color: #4a524c; }
.branch .meta svg { color: #40a643; }
.branch .meta a:hover { color: #40a643; }
.branch .btn-ghost { border-color: #40a643; color: #2f6f31; }
.branch .btn-ghost:hover { background: rgba(64, 166, 67, .12); }
.branch .badge.closed { background: #eceeec; color: #4a524c; }
.schedule th { color: #4a524c; }
.schedule tr { border-bottom-color: rgba(64, 166, 67, .25); }
.schedule tr.today { background: rgba(174, 209, 67, .35); }
.schedule tr.today th, .schedule tr.today td { color: #1f2421; }
.branch-map { background: #e9f4e6; }
.value { --tint: #f1f9ee; background: var(--tint); }
.value.c-light, .value.c-lime, .value.c-mid { --tint: #f6fbe3; }
.value.c-gray { --tint: #f1f2f2; }
.value .n { color: #40a643; opacity: .14; }
.value:hover { background: var(--tint); filter: none; }
.value .v-ico, .value.c-dark .v-ico, .value.c-forest .v-ico { background: #40a643; color: #fff; }
.value.c-light .v-ico, .value.c-lime .v-ico, .value.c-mid .v-ico { background: #aed143; color: #1f2421; }
.value.c-gray .v-ico { background: #686870; color: #fff; }

/* Prueba: accesos rápidos con texto blanco */
.quick-card, .quick-card h3, .quick-card p, .quick-card .ico { color: #fff; }
.quick-card h3, .quick-card p, .quick-card .go { text-shadow: 0 1px 3px rgba(0, 0, 0, .28); }
.quick-card .ico { background: rgba(255, 255, 255, .28); }
.quick-card .go::after { background: #fff; color: #40a643; text-shadow: none; }

.quick-card { background: #8bc53f; border-color: rgba(255, 255, 255, .4); }
.quick-card .go::after { color: #8bc53f; }

/* Horario de hoy: rojo cereza */
.w-today { background: #d62839; border-color: rgba(255, 255, 255, .25); box-shadow: 0 24px 44px -24px rgba(214, 40, 57, .75); }
.w-today .today-row { border-bottom-color: rgba(255, 255, 255, .3); }
.w-today .dot.off { background: #ffd0d4; }

/* La foto de Ovalle pasa al widget de la hora */
.w-hello::before, .w-hello::after { content: none; }
.w-hello { background: #40a643; }
.w-clock { isolation: isolate; background: #40a643; }
.w-clock::before { content: ''; position: absolute; inset: -12px; z-index: -2; background: url('../img/ovalle.webp') center / cover no-repeat; filter: blur(4px) saturate(1.15); }
.w-clock::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(170deg, rgba(64, 166, 67, .55), rgba(64, 166, 67, .35) 50%, rgba(64, 166, 67, .8)); }
.w-clock .clock, .w-clock .clock-date, .w-clock .w-label { text-shadow: 0 1px 4px rgba(0, 0, 0, .35); }

/* Efecto Ken Burns infinito en la foto de la hora */
.w-clock::before { animation: kenburns 22s ease-in-out infinite alternate; will-change: transform; }
@keyframes kenburns {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.22) translate(-3%, -2%); }
    100% { transform: scale(1.35) translate(3%, 3%); }
}
.head-pill { white-space: nowrap; }

.head-wa.btn-primary { background: #008040; color: #fff; box-shadow: 0 12px 24px -12px rgba(0, 128, 64, .8); }
.head-wa.btn-primary:hover { filter: brightness(1.12); }

/* Selector de sucursal para WhatsApp */
#wa-choose { border: 0; border-radius: 28px; padding: 30px; max-width: 460px; width: calc(100% - 32px); color: #1f2421; background: #fff; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5); }
#wa-choose::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
#wa-choose h2 { font-size: 1.5rem; margin-bottom: 6px; }
#wa-choose p { margin: 0 0 18px; color: #4a524c; }
.wa-options { display: grid; gap: 10px; }
.wa-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; text-decoration: none; color: #1f2421; background: #f1f9ee; border: 1px solid rgba(64, 166, 67, .3); transition: transform .2s, background .2s; }
.wa-option:hover { transform: translateY(-2px); background: #e4f3de; }
.wa-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: #008040; color: #fff; }
.wa-ico svg { width: 24px; height: 24px; }
.wa-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.wa-text small { color: #4a524c; font-size: .8rem; }
#wa-choose .dialog-actions { margin-top: 16px; }
#wa-choose .btn-ghost { border-color: #40a643; color: #2f6f31; }
#wa-choose .badge.closed { background: #eceeec; color: #4a524c; }

/* Diapositivas de las fachadas detrás del saludo */
.w-hello { isolation: isolate; }
.hello-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #40a643; }
.hello-slides::after { content: ''; position: absolute; inset: 0; background: linear-gradient(170deg, rgba(64, 166, 67, .55), rgba(20, 60, 25, .38) 55%, rgba(64, 166, 67, .85)); }
.hello-slide { position: absolute; inset: -14px; background-size: cover; background-position: center 55%; filter: blur(3px) saturate(1.1); opacity: 0; transform: scale(1.04); transition: opacity 1.6s ease; }
.hello-slide.is-active { opacity: 1; animation: kenburns 24s ease-in-out infinite alternate; }

/* Barra gris sobre la cabecera: direcciones en slider y teléfono de Damián Heredia */
.infobar { background: #2b2f2c; color: #fff; font-size: .85rem; }
.infobar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.addr-slider { position: relative; flex: 1; height: 40px; overflow: hidden; min-width: 0; }
.addr { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(100%); transition: opacity .6s, transform .6s; }
.addr.is-active { opacity: 1; transform: none; }
.addr.was-active { opacity: 0; transform: translateY(-100%); }
.addr svg { flex: none; width: 16px; height: 16px; color: #aed143; }
.addr b { font-weight: 600; }
.infobar-phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.infobar-phone svg { width: 16px; height: 16px; color: #aed143; }
.infobar-phone:hover { color: #aed143; }
@media (max-width: 520px) { .infobar { font-size: .78rem; } }
.w-hello .btn-primary { background: #008040; color: #fff; box-shadow: 0 14px 28px -12px rgba(0, 128, 64, .85); }
.w-hello .btn-primary:hover { filter: brightness(1.12); }

/* Más aire bajo la cabecera (el doble) y velo negro sobre las fotos del saludo */
.hero { padding-top: 16px; }
.hello-slides::after { background: linear-gradient(170deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .65)); }

/* Separación entre "¿Necesitas algo ahora?" y "Ventajas": la tercera parte */
.section:has(.cta) { padding-bottom: clamp(24px, 3.56vw, 36px); }
.advantages { padding-top: clamp(10.7px, 1.667vw, 18.7px); }

.addr .tag { flex: none; margin-left: 4px; padding: 2px 10px; border-radius: 999px; font-style: normal; font-size: .72rem; font-weight: 700; }
.addr .tag.open { background: #aed143; color: #1f2421; }
.addr .tag.closed { background: #d62839; color: #fff; }


/* Todos los botones de acción iguales al de WhatsApp de la cabecera */
.btn-primary, .cta .btn, .w-hello .btn-primary, .head-wa.btn-primary { background: #008040; color: #fff; font-size: .9rem; font-weight: 600; padding: 10px 20px; box-shadow: 0 12px 24px -12px rgba(0, 128, 64, .8); }
.btn-primary:hover, .cta .btn:hover { background: #008040; color: #fff; filter: brightness(1.12); }
.branch .btn-ghost { border-color: #008040; color: #008040; }
.branch .btn-ghost:hover { background: rgba(0, 128, 64, .1); }
.cta .btn, #wa-closed .btn-primary { border-color: rgba(255, 255, 255, .55); }

/* "¿Necesitas algo ahora?": franja a todo el ancho pegada al pie, contenido dentro de .container */
.cta-band { background: #40a643; color: #fff; padding: clamp(32px, 5vw, 56px) 0; margin-top: 24px; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; color: #fff; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .92); max-width: 48ch; }
.site-footer { margin-top: 0; }
.advantages { padding-bottom: 8px; }

/* Franja CTA en un verde más oscuro que el pie */
.cta-band { background: #2d8638; }
.cta-band .btn-primary { border-color: rgba(255, 255, 255, .85); background: #00632f; }

/* Sucursal en dos columnas: mapa a un lado, datos al otro */
.branch-grid { grid-template-columns: 1fr; gap: 20px; }
.branch:has(.branch-map) { display: grid; grid-template-columns: 1.15fr 1fr; padding: 0; }
.branch:has(.branch-map) .branch-map { margin: 0; height: auto; min-height: 300px; }
.branch-body { padding: 26px; display: flex; flex-direction: column; justify-content: center; }
.branch:not(:has(.branch-map)) .branch-body { padding: 0; }
@media (max-width: 760px) {
    .branch:has(.branch-map) { grid-template-columns: 1fr; }
    .branch:has(.branch-map) .branch-map { min-height: 0; height: 220px; }
}

/* Cada sucursal ocupa la mitad del ancho menos 6 px (separación de 12 px) */
.branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.branch:has(.branch-map) { grid-template-columns: 1fr 1fr; }
.branch:has(.branch-map) .branch-map { min-height: 280px; }
.branch-body { padding: 20px; }
.branch-body .btn { padding: 9px 14px; }
@media (max-width: 900px) { .branch-grid { grid-template-columns: 1fr; } }
.branch:has(.branch-map) { grid-template-columns: 1.2fr 1fr; } .branch-body { padding: 18px; } .branch-body .row { gap: 8px; }

/* Mapa Leaflet discreto */
.branch-map[data-map] { background: #eef1ee; z-index: 0; }
.map-pin span { display: block; width: 28px; height: 28px; border-radius: 50%; background: #40a643; border: 4px solid #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.leaflet-container { font-family: inherit; }
.leaflet-container .leaflet-control-attribution { font-size: .62rem; background: rgba(255, 255, 255, .7); }
.leaflet-bar a { color: #1f2421; }
.branch-map[data-map] .leaflet-tile-pane { filter: grayscale(1) contrast(.82) brightness(1.1); opacity: .9; }

/* Accesos rápidos: estética del sitio original (tarjeta blanca, borde verde grueso, icono de línea + título verde) */
.quick .quick-grid { gap: 16px; }
.quick .quick-card { flex-direction: row; align-items: center; gap: 16px; min-height: 0; padding: 18px 20px; border: 4px solid #12a84a; border-radius: 22px;
    background: #fff; color: #12a84a; box-shadow: none; text-shadow: none; }
.quick .quick-card:hover { transform: translateY(-4px); box-shadow: 0 16px 28px -18px rgba(18, 168, 74, .7); }
.quick .quick-card .ico { flex: none; width: 64px; height: 64px; border-radius: 0; background: none; color: #12a84a; }
.quick .quick-card .ico svg { width: 58px; height: 58px; stroke-width: 1.4; }
.quick .quick-card h3 { margin: 0; color: #12a84a; font-size: 1.25rem; line-height: 1.15; font-weight: 700; text-shadow: none; }
.quick .quick-card p, .quick .quick-card .go { display: none; }
@media (max-width: 1100px) { .quick .quick-card h3 { font-size: 1.1rem; } .quick .quick-card .ico { width: 52px; height: 52px; } .quick .quick-card .ico svg { width: 48px; height: 48px; } }

/* Mismo formato horizontal, sin borde y con el verde anterior (#8BC53F), texto blanco */
.quick .quick-card { border: 0; background: #8bc53f; color: #fff; box-shadow: 0 18px 30px -22px rgba(0, 0, 0, .55); }
.quick .quick-card:hover { box-shadow: 0 22px 34px -22px rgba(0, 0, 0, .65); }
.quick .quick-card .ico, .quick .quick-card h3 { color: #fff; }
.quick .quick-card h3 { text-shadow: 0 1px 3px rgba(0, 0, 0, .25); }

/* Banner de Cenabast bajo los accesos rápidos */
.cenabast-strip { padding: 18px 0 0; }
.cenabast-strip a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 30px -22px rgba(0, 0, 0, .5); transition: transform .3s, box-shadow .3s; }
.cenabast-strip a:hover { transform: translateY(-4px); box-shadow: 0 24px 36px -22px rgba(0, 0, 0, .6); }
.cenabast-strip img { width: 100%; height: auto; }

/* Temperatura junto a la hora */
.clock-row { display: flex; align-items: center; gap: 14px; }
.temp { padding-left: 14px; border-left: 2px solid rgba(255, 255, 255, .45); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; line-height: 1; text-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.temp[hidden] { display: none; }

/* Widget de la hora: cielo según el clima y la temperatura actuales */
.w-clock::before, .w-clock::after { content: none; animation: none; }
.w-clock { background: #4aa8ff; }
.sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(180deg, #3d9bff 0%, #8fd0ff 100%); transition: background 1s; }
.sky::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .1); }
.sky i { position: absolute; display: none; }
.sky .sun { top: -26px; right: -18px; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle, #fff7c2 0 35%, #ffd54a 60%, rgba(255, 213, 74, 0) 72%); box-shadow: 0 0 60px 20px rgba(255, 213, 74, .55); animation: sunpulse 6s ease-in-out infinite alternate; }
.sky .moon { top: 14px; right: 22px; width: 38px; height: 38px; border-radius: 50%; background: #f3f6ff; box-shadow: inset -9px -3px 0 0 #c9d3ee, 0 0 26px 8px rgba(190, 205, 255, .45); }
.sky .stars { inset: 0; background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent), radial-gradient(1.5px 1.5px at 38% 12%, #fff, transparent), radial-gradient(1px 1px at 62% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 80% 62%, #fff, transparent), radial-gradient(1px 1px at 24% 70%, #fff, transparent), radial-gradient(1px 1px at 52% 80%, #fff, transparent); animation: twinkle 3.5s ease-in-out infinite alternate; }
.sky .cloud { height: 28px; width: 92px; border-radius: 40px; background: rgba(255, 255, 255, .92); filter: blur(.4px); }
.sky .cloud::before, .sky .cloud::after { content: ''; position: absolute; border-radius: 50%; background: inherit; }
.sky .cloud::before { width: 40px; height: 40px; left: 14px; top: -20px; }
.sky .cloud::after { width: 30px; height: 30px; left: 46px; top: -13px; }
.sky .c1 { top: 22%; left: -110px; animation: drift 38s linear infinite; }
.sky .c2 { top: 56%; left: -110px; transform: scale(.75); animation: drift 52s linear -20s infinite; opacity: .85; }
.sky .c3 { top: 8%; left: -110px; transform: scale(1.2); animation: drift 66s linear -40s infinite; opacity: .8; }
.sky .rain { inset: -40px 0 0 0; background-image: repeating-linear-gradient(105deg, rgba(255, 255, 255, .55) 0 1px, transparent 1px 11px); background-size: 120px 80px; animation: fall .7s linear infinite; }
@keyframes drift { to { left: calc(100% + 110px); } }
@keyframes fall { to { background-position: -40px 80px; } }
@keyframes twinkle { to { opacity: .45; } }
@keyframes sunpulse { to { transform: scale(1.08); } }

.w-clock[data-sky="clear-day"] .sun, .w-clock[data-sky="partly-day"] .sun, .w-clock[data-sky="hot-day"] .sun { display: block; }
.w-clock[data-sky="partly-day"] .c1, .w-clock[data-sky="partly-day"] .c2 { display: block; }
.w-clock[data-sky="hot-day"] .sky { background: linear-gradient(180deg, #ff8a3d 0%, #ffd27a 100%); }
.w-clock[data-sky="cloudy-day"] .sky, .w-clock[data-sky="fog"] .sky { background: linear-gradient(180deg, #7f95aa 0%, #c3cfda 100%); }
.w-clock[data-sky="cloudy-day"] .cloud, .w-clock[data-sky="fog"] .cloud { display: block; }
.w-clock[data-sky="fog"] .sky { background: linear-gradient(180deg, #a9b6bd 0%, #dfe5e8 100%); }
.w-clock[data-sky="rain"] .sky { background: linear-gradient(180deg, #4d6176 0%, #8294a6 100%); }
.w-clock[data-sky="storm"] .sky { background: linear-gradient(180deg, #2f3947 0%, #566273 100%); }
.w-clock[data-sky="rain"] .cloud, .w-clock[data-sky="storm"] .cloud, .w-clock[data-sky="rain"] .rain, .w-clock[data-sky="storm"] .rain { display: block; }
.w-clock[data-sky="clear-night"] .sky, .w-clock[data-sky="cloudy-night"] .sky { background: linear-gradient(180deg, #08142e 0%, #1d3b73 100%); }
.w-clock[data-sky="clear-night"] .moon, .w-clock[data-sky="clear-night"] .stars, .w-clock[data-sky="cloudy-night"] .moon { display: block; }
.w-clock[data-sky="cloudy-night"] .cloud { display: block; background: rgba(160, 175, 205, .7); }
.w-clock[data-sky="cloudy-night"] .c3 { display: none; }
.w-clock[data-sky="cold-day"] .sky { background: linear-gradient(180deg, #6fa7d6 0%, #d3e6f5 100%); }
.w-clock[data-sky="cold-day"] .sun { display: block; }
.w-clock { border: 0; }
.w-hello .mascot { z-index: 3; }
.w-hello .mascot { top: 210px; }
.infobar-right { display: flex; align-items: center; gap: 16px; }
.infobar-social { display: flex; align-items: center; gap: 6px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .2); }
.infobar-social a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; transition: background .2s, color .2s; }
.infobar-social a:hover { background: #aed143; color: #1f2421; }
.infobar-social svg { width: 16px; height: 16px; }

/* Campañas en slideshow */
.w-campaign { display: block; padding: 0; }
.w-campaign .camp-slide { display: grid; gap: 14px; align-content: center; padding: clamp(18px, 3vw, 30px); opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.w-campaign .camp-slide:first-child { position: relative; }
.w-campaign .camp-slide + .camp-slide { position: absolute; inset: 0; padding: 0; }
.w-campaign .camp-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.w-campaign .camp-slide a { display: block; height: 100%; }
.w-campaign .camp-slide + .camp-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.w-campaign .camp-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.w-campaign .camp-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); cursor: pointer; }
.w-campaign .camp-dots button.is-active { background: #fff; width: 22px; border-radius: 6px; }
.w-campaign .camp-slide + .camp-slide img { object-position: center 8%; }
.w-campaign .camp-slide + .camp-slide img { object-position: center; }

/* Slide de beneficios */
.w-campaign .camp-benefits { background: linear-gradient(135deg, #40a643, #2f8a33); }
.w-campaign .camp-benefits a { display: grid; align-content: center; justify-items: start; gap: 14px; padding: clamp(18px, 3vw, 34px); color: #fff; text-decoration: none; position: relative; overflow: hidden; }
.w-campaign .camp-benefits a::after { content: ''; position: absolute; right: -70px; bottom: -90px; width: 300px; aspect-ratio: 1; border-radius: 50%; background: rgba(174, 209, 67, .35); }
.w-campaign .camp-benefits img { position: relative; width: clamp(120px, 28%, 190px); height: auto; }
.w-campaign .camp-benefits strong { position: relative; z-index: 1; font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.1; font-weight: 700; max-width: 80%; }
.w-campaign .camp-benefits strong em { font-style: normal; color: #aed143; }
.w-campaign .camp-benefits .btn-pill { position: relative; z-index: 1; padding: 10px 22px; border-radius: 999px; background: #fff; color: #2f8a33; font-weight: 700; }
.w-campaign .camp-slide.camp-benefits img { position: relative; inset: auto; width: clamp(120px, 28%, 190px); height: auto; object-fit: contain; }

/* Sucursales integradas al tablero de arriba */
.branches-band { padding: 16px 0 0; }
.branches-band .branch-grid { gap: 16px; }
.branch { border: 0; border-radius: var(--radius); box-shadow: 0 18px 30px -22px rgba(0, 0, 0, .55); }
.branch-body { position: relative; padding: 0 !important; justify-content: flex-start !important; }
.branch-body header { padding: 14px 20px; background: #40a643; align-items: center; }
.branch-body header h3 { color: #fff; font-size: 1.05rem; }
.branch-body .badge { background: #fff; color: #2f6f31; }
.branch-body .badge.closed { background: rgba(255, 255, 255, .25); color: #fff; }
.branch-body .meta { margin: 14px 20px 14px; }
.branch-body .row { padding: 0 20px 20px; margin-top: auto; }
.branch-body .schedule { margin: 0 20px 14px; width: calc(100% - 40px); }
.branch:has(.branch-map) .branch-map { min-height: 300px; }
.branches-band { padding-bottom: clamp(36px, 6vw, 64px); }

/* En el home el mapa es solo decoración */
.branches-band .branch-map { pointer-events: none; }
.branches-band .branch-map .leaflet-control-zoom { display: none; }

/* Home: datos de cada sucursal sobre su mapa */
.branches-band .branch:has(.branch-map) { display: block; min-height: 340px; padding: 0; }
.branches-band .branch .branch-map { position: absolute; inset: 0 auto 0 0; width: 150%; height: 100%; min-height: 0; margin: 0; }
.branches-band .branch .branch-body { position: relative; z-index: 2; width: min(300px, calc(100% - 28px)); margin: 14px; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .5); padding-bottom: 0 !important; }
.branches-band .branch .branch-body .row { padding-bottom: 16px; }
@media (max-width: 900px) {
    .branches-band .branch .branch-map { width: 100%; }
    .branches-band .branch:has(.branch-map) { min-height: 380px; }
}
.branches-band .branch .branch-body { width: min(340px, calc(100% - 28px)); } .branches-band .branch .branch-body header h3 { white-space: nowrap; }
.branches-band .branch:has(.branch-map) { min-height: 0; height: 216px; } .branches-band .branch .branch-body { margin: 14px; } @media (max-width: 900px) { .branches-band .branch:has(.branch-map) { height: auto; min-height: 240px; } }

/* Valores: carrusel de 1 fila × 4 columnas */
.values-carousel { position: relative; }
.values.is-carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 28px; margin-bottom: -22px; }
.values.is-carousel::-webkit-scrollbar { display: none; }
.values.is-carousel .value { flex: 0 0 calc((100% - 48px) / 4); scroll-snap-align: start; }
.vc-btn { position: absolute; top: 50%; transform: translateY(-60%); z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #40a643; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .5); }
.vc-btn:hover { background: #2f8a33; }
.vc-btn.prev { left: -14px; }
.vc-btn.next { right: -14px; }
@media (max-width: 900px) { .values.is-carousel .value { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 520px) { .values.is-carousel .value { flex-basis: 100%; } .vc-btn.prev { left: -6px; } .vc-btn.next { right: -6px; } }
.values.is-carousel { padding-left: 0; padding-right: 0; } .values.is-carousel .value { flex-basis: calc((100% - 48px) / 4); }
.vc-btn { width: 21px; height: 21px; font-size: .95rem; padding: 0 0 2px; display: grid; place-items: center; }
.vc-btn.prev { left: -34px; }
.vc-btn.next { right: -34px; }
@media (max-width: 1300px) { .vc-btn.prev { left: -2px; } .vc-btn.next { right: -2px; } }

/* Carrusel de valores: todas las tarjetas con el estilo de "Profesionalismo" */
.values.is-carousel .value { --tint: #f1f9ee; background: #f1f9ee; }
.values.is-carousel .value .v-ico { background: #40a643; color: #fff; }
.clock-row { justify-content: space-between; } .temp { border-left: 0; padding-left: 0; }
.temp { border-left: 2px solid rgba(255, 255, 255, .45); padding-left: 14px; }
.w-today .w-label { font-size: .9rem; }

/* Línea de tiempo tipo descarga: llena al abrir, se vacía hasta el cierre */
.w-today .today-row { border-bottom: 0; padding-bottom: 6px; }
.w-today .today-row:last-of-type { padding-bottom: 6px; }
.tl { height: 8px; margin-bottom: 8px; border-radius: 999px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.tl i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #aed143, #fff); transition: width 1s linear; }
.tl { height: 3px; margin-bottom: 6px; background: rgba(255, 255, 255, .14); } .tl i { background: rgba(255, 255, 255, .55); }

/* Header contenido: caja blanca del ancho del sitio, con curvas abajo a izquierda y derecha */
.site-header, .site-header.scrolled { background: transparent; backdrop-filter: none; border-bottom: 0; box-shadow: none; }
.site-header .container { background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); padding: 12px 24px; border-radius: 0 0 30px 30px; box-shadow: 0 16px 30px -22px rgba(0, 0, 0, .45); }
.site-header.scrolled .container { background: rgba(255, 255, 255, .96); }
@media (max-width: 520px) { .site-header .container { padding: 10px 16px; border-radius: 0 0 22px 22px; } }

/* Encabezado de valores dentro de un bloque curvo, como los de arriba */
.values-head { margin: 0 0 16px; padding: 22px 24px; border-radius: var(--radius); background: #f1f9ee; border: 1px solid rgba(64, 166, 67, .22); box-shadow: 0 18px 30px -22px rgba(0, 0, 0, .35); }
.values-head h2 { margin: 6px 0 0; }
.values-head { max-width: none; width: 100%; }
.branches-band { padding-bottom: 0; } .values-head { margin-bottom: 10px; }
.branches-band + .section .values-head { margin-top: 16px; } .quick { padding-top: 4px; }
.values-head, .values.is-carousel .value { border: 0; }

/* Valores: título en la primera columna, carrusel de 3 tarjetas en las otras 3 */
.values-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.values-row .values-head { margin: 0 !important; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px 16px; }
.values-row .values-head h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.15; }
.values-row .values-carousel { grid-column: span 3; min-width: 0; }
.values-row .values.is-carousel { margin-bottom: 0; padding-bottom: 0; padding-top: 0; }
.values-row .values.is-carousel .value { flex-basis: calc((100% - 32px) / 3); }
.values-row .vc-btn.prev { left: -18px; }
@media (max-width: 900px) {
    .values-row { grid-template-columns: 1fr; }
    .values-row .values-carousel { grid-column: auto; }
    .values-row .values.is-carousel .value { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 520px) { .values-row .values.is-carousel .value { flex-basis: 100%; } }
.branches-band + .section .values-row { margin-top: 48px; } .branches-band + .section .values-head { margin-top: 0 !important; }
.branches-band + .section .values-row { margin-top: 16px; }

/* Valores: título verde (curvas a la izquierda) + carrusel (curvas a la derecha), una sola pieza */
.values-row { gap: 0; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .16)); }
.values-row .values-head { background: #40a643; color: #fff; border-radius: var(--radius) 0 0 var(--radius); box-shadow: none; }
.values-row .values-head h2 { color: #fff; }
.values-row .values-carousel { background: #f1f9ee; border-radius: 0 var(--radius) var(--radius) 0; }
.values-row .values.is-carousel { gap: 0; border-radius: 0 var(--radius) var(--radius) 0; }
.values-row .values.is-carousel .value { border-radius: 0; box-shadow: none; background: transparent; border-left: 1px solid rgba(64, 166, 67, .18); }
.values-row .values.is-carousel .value:hover { transform: none; }
.values-row .values.is-carousel .value { flex-basis: calc(100% / 3); }
@media (max-width: 900px) {
    .values-row .values-head { border-radius: var(--radius) var(--radius) 0 0; }
    .values-row .values-carousel, .values-row .values.is-carousel { border-radius: 0 0 var(--radius) var(--radius); }
    .values-row .values.is-carousel .value { flex-basis: 50%; }
}
@media (max-width: 520px) { .values-row .values.is-carousel .value { flex-basis: 100%; } }
.values-head .eyebrow { background: #fff; color: #40a643; }
.values-head .eyebrow { background: #fff; color: #40a643 !important; }

/* Ventajas: carrusel a la izquierda (curvas izquierdas) y título verde a la derecha (curvas derechas) */
.advantages h2 { text-align: center; text-transform: none; letter-spacing: 0; margin-bottom: 0; }
.advantages .values-head h2 { color: #fff; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 700; line-height: 1.15; }
.adv-row .values-carousel { grid-column: span 3; border-radius: var(--radius) 0 0 var(--radius); }
.adv-row .values.is-carousel { border-radius: var(--radius) 0 0 var(--radius); }
.adv-row .values.is-carousel .value { border-left: 0; border-right: 1px solid rgba(64, 166, 67, .18); min-height: 0; }
.adv-row .values-head { border-radius: 0 var(--radius) var(--radius) 0; }
.adv-row .value h3 { margin: 0; font-size: 1.05rem; }
.adv-row .vc-btn.next { right: 10px; }
@media (max-width: 900px) {
    .adv-row .values-carousel, .adv-row .values.is-carousel { border-radius: var(--radius) var(--radius) 0 0; }
    .adv-row .values-head { border-radius: 0 0 var(--radius) var(--radius); }
}
.branches-band + .section { padding-bottom: 0; } .advantages { padding-top: 16px; }
.branches-band + .section { padding-bottom: 16px; }

/* Pie: links de interés y documentos legales en dos columnas */
.footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .3); }
.footer-links h4 { margin-top: 0; }
.footer-links ul { color: #fff; }
.footer-links span { color: #fff; opacity: .9; }
@media (max-width: 700px) { .footer-links { grid-template-columns: 1fr; } }
.footer-links { border-top: 0; padding-top: 0; margin-top: 28px; }
.footer-grid { grid-template-columns: 1.3fr repeat(2, 1fr); }
.footer-links { grid-template-columns: 1fr; } .site-footer ul span { color: #fff; opacity: .9; }
.footer-grid { grid-template-columns: 1.3fr 1fr; }

/* Pie reordenado en 4 columnas, con listas más pequeñas */
.footer-grid { grid-template-columns: 1.1fr 1fr 1fr 1.1fr; gap: 32px; }
.site-footer p, .site-footer ul, .site-footer li, .site-footer li a, .site-footer li span, .site-footer ul a { font-size: .8rem; line-height: 1.35; }
.site-footer li { padding: 1px 0; }
.site-footer ul { padding-left: 16px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid > div > a:not(.brand) { font-size: .8rem; }

/* ===== Página Farmacia: misma estética del inicio ===== */
.fa-bento .fa-hero { grid-column: span 7; grid-row: auto; min-height: 420px; }
.fa-bento .fa-hero .copy { max-width: 60%; }
.fa-bento .fa-hero .mascot { top: 120px; height: 62%; }
.fa-quote { grid-column: span 5; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 32px; border: 0; background: #8bc53f; color: #fff; box-shadow: 0 24px 44px -26px rgba(0, 0, 0, .45); }
.fa-quote .story-year { font-size: 4rem; font-weight: 800; line-height: 1; opacity: .9; }
.fa-quote p { margin: 0; font-size: 1.3rem; font-weight: 600; line-height: 1.4; color: #fff; }
.fa-quote small { font-size: .95rem; color: rgba(255, 255, 255, .92); }
.fa-stats .quick-card { cursor: default; }
.fa-stats .quick-card:hover { transform: none; }
.fa-stats h3 { display: grid; gap: 2px; font-size: .95rem; line-height: 1.2; }
.fa-stats .stat { font-size: 1.7rem; font-weight: 800; line-height: 1; }

.fa-story-band, .fa-mv-band, .fa-values-band { padding-top: 16px; }
.fa-story { display: grid; grid-template-columns: 5fr 7fr; gap: 16px; align-items: stretch; }
.fa-photo { position: relative; margin: 0; min-height: 360px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 30px -22px rgba(0, 0, 0, .55); }
.fa-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fa-photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 8px 16px; border-radius: 999px; background: #40a643; color: #fff; font-weight: 600; font-size: .85rem; }
.fa-text { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); background: #f1f9ee; box-shadow: 0 18px 30px -22px rgba(0, 0, 0, .35); color: #2f3631; }
.fa-text h2 { margin: 6px 0 14px; color: #1f2421; }
.fa-text p { margin: 0 0 12px; font-size: .98rem; line-height: 1.6; color: #2f3631; }
.fa-text p:last-child { margin-bottom: 0; }

.fa-mv { display: grid; grid-template-columns: 1fr 1fr; gap: 0; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .16)); }
.fa-mv-card { padding: clamp(24px, 3vw, 36px); }
.fa-mv-card p { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.fa-mission { background: #40a643; color: #fff; border-radius: var(--radius) 0 0 var(--radius); }
.fa-mission p { color: #fff; }
.fa-vision { background: #aed143; color: #1f2421; border-radius: 0 var(--radius) var(--radius) 0; }
.fa-vision p { color: #1f2421; }
.fa-vision .mv-label { background: rgba(31, 36, 33, .12); }

.fa-values-band { padding-bottom: 16px; }
@media (max-width: 900px) {
    .fa-bento .fa-hero, .fa-quote { grid-column: span 12; }
    .fa-story, .fa-mv { grid-template-columns: 1fr; }
    .fa-photo { min-height: 240px; }
    .fa-mission { border-radius: var(--radius) var(--radius) 0 0; }
    .fa-vision { border-radius: 0 0 var(--radius) var(--radius); }
}

/* Farmacia: encabezado sobrio, sin competir con el inicio */
.fa-head-band { padding-top: 16px; }
.fa-head { display: grid; grid-template-columns: 5fr 7fr; gap: 0; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .16)); }
.fa-head-title { padding: clamp(24px, 3vw, 36px); background: #40a643; color: #fff; border-radius: var(--radius) 0 0 var(--radius); display: flex; flex-direction: column; justify-content: center; }
.fa-head-title .eyebrow { align-self: flex-start; background: #fff; color: #40a643 !important; }
.fa-head-title h1 { margin: 0 0 8px; color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.fa-head-title p { margin: 0; color: rgba(255, 255, 255, .92); }
.fa-head-quote { padding: clamp(24px, 3vw, 36px); background: #f1f9ee; border-radius: 0 var(--radius) var(--radius) 0; display: flex; align-items: center; gap: 22px; }
.fa-head-quote .story-year { font-size: 3.4rem; font-weight: 800; line-height: 1; color: #40a643; }
.fa-head-quote p { margin: 0; font-size: 1.1rem; font-weight: 600; line-height: 1.45; color: #1f2421; }
@media (max-width: 900px) {
    .fa-head { grid-template-columns: 1fr; }
    .fa-head-title { border-radius: var(--radius) var(--radius) 0 0; }
    .fa-head-quote { border-radius: 0 0 var(--radius) var(--radius); flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Misión y Visión: más sobrias */
.fa-mission, .fa-vision { background: #fff; color: #1f2421; }
.fa-mission { border-left: 6px solid #40a643; }
.fa-vision { border-right: 6px solid #aed143; box-shadow: inset 1px 0 0 rgba(64, 166, 67, .18); }
.fa-mission p, .fa-vision p { color: #2f3631; }
.fa-mission .mv-label, .fa-vision .mv-label { background: #f1f9ee; color: #2f6f31; }

/* ===== Beneficios: mismo lenguaje sobrio de Farmacia ===== */
.bn-band { padding: 16px 0; }
.bn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.bn-card { display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 30px); border-radius: var(--radius); background: #f1f9ee; box-shadow: 0 18px 30px -22px rgba(0, 0, 0, .35); color: #2f3631; border-top: 6px solid #40a643; }
.bn-card:nth-child(2) { border-top-color: #8bc53f; }
.bn-card:nth-child(3) { border-top-color: #aed143; }
.bn-card header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.bn-card header .v-ico { margin: 0; background: #40a643; color: #fff; }
.bn-card h2 { margin: 0; font-size: 1.4rem; color: #1f2421; }
.bn-card p { margin: 0 0 12px; font-size: .95rem; line-height: 1.6; color: #2f3631; }
.bn-highlight { padding: 14px 16px; border-radius: 16px; background: #fff; color: #2f6f31 !important; font-weight: 600; }
.bn-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: auto; padding-top: 10px; }
.bn-actions .btn { padding: 10px 18px; font-size: .88rem; }
.bn-actions .btn-ghost { border-color: #008040; color: #008040; }
@media (max-width: 1000px) { .bn-grid { grid-template-columns: 1fr; } }

/* ===== Cenabast: mismo lenguaje sobrio ===== */
.cb-band { padding: 16px 0 0; }
.cb-band:last-of-type { padding-bottom: 16px; }
.cb-banner { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 18px 30px -22px rgba(0, 0, 0, .55); }
.cb-row { display: grid; grid-template-columns: 7fr 5fr; gap: 0; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .16)); }
.cb-text { padding: clamp(22px, 3vw, 36px); background: #f1f9ee; border-radius: var(--radius) 0 0 var(--radius); color: #2f3631; }
.cb-text p { margin: 0 0 12px; font-size: .98rem; line-height: 1.6; color: #2f3631; }
.cb-text p:last-child { margin-bottom: 0; }
.cb-side { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(22px, 3vw, 36px); background: #40a643; color: #fff; border-radius: 0 var(--radius) var(--radius) 0; }
.cb-side h2 { margin: 0 0 4px; color: #fff; font-size: 1.5rem; }
.cb-side .btn { background: #fff; color: #2f6f31; text-align: center; justify-content: center; }
.cb-side .btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .8); }
.cb-side .btn-outline:hover { background: rgba(255, 255, 255, .15); }
@media (max-width: 900px) {
    .cb-row { grid-template-columns: 1fr; }
    .cb-text { border-radius: var(--radius) var(--radius) 0 0; }
    .cb-side { border-radius: 0 0 var(--radius) var(--radius); }
}

/* ===== Sucursales: datos sobre el mapa (mapa interactivo) ===== */
.bp-band { padding: 16px 0; }
.bp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: stretch; }
.bp-grid .branch:has(.branch-map) { display: block; position: relative; min-height: 520px; padding: 0; border: 0; border-radius: var(--radius); box-shadow: 0 18px 30px -22px rgba(0, 0, 0, .55); }
.bp-grid .branch .branch-map { position: absolute; inset: 0 auto 0 0; width: 150%; height: 100%; min-height: 0; margin: 0; }
.bp-grid .branch .branch-body { position: relative; z-index: 2; width: min(340px, calc(100% - 28px)); margin: 14px; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .5); padding: 0 0 4px !important; }
.bp-grid .branch .branch-body .row { padding-bottom: 16px; }
.bp-grid .branch .branch-body .schedule { margin: 0 20px 14px; width: calc(100% - 40px); font-size: .85rem; }
.bp-grid .branch .branch-body .schedule th, .bp-grid .branch .branch-body .schedule td { padding: 5px 0; }
@media (max-width: 900px) {
    .bp-grid { grid-template-columns: 1fr; }
    .bp-grid .branch .branch-map { width: 100%; }
}

/* ===== Contacto: formulario + contacto directo en una sola pieza ===== */
.fa-head-quote .story-year svg { width: 54px; height: 54px; stroke-width: 1.6; }
.ct-band { padding: 16px 0; }
.ct-row { display: grid; grid-template-columns: 7fr 5fr; gap: 0; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .16)); }
.ct-form { padding: clamp(22px, 3vw, 36px); background: #f1f9ee; border-radius: var(--radius) 0 0 var(--radius); color: #2f3631; }
.ct-form form > div { margin-bottom: 16px; }
.ct-form form > div > div { margin-bottom: 16px; }
.ct-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: #1f2421; }
.ct-form input, .ct-form select, .ct-form textarea { width: 100%; padding: 12px 16px; border: 1.5px solid rgba(64, 166, 67, .3); border-radius: 16px; font: inherit; color: #1f2421; background: #fff; transition: border-color .2s, box-shadow .2s; }
.ct-form input::placeholder, .ct-form textarea::placeholder { color: rgba(31, 36, 33, .45); }
.ct-form input:focus, .ct-form select:focus, .ct-form textarea:focus { outline: 0; border-color: #40a643; box-shadow: 0 0 0 4px rgba(64, 166, 67, .18); }
.ct-form ul { margin: 6px 0 0; padding: 0; list-style: none; color: #c0392b; font-size: .85rem; }
.ct-form button { width: 100%; justify-content: center; }
.ct-side { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(22px, 3vw, 36px); background: #40a643; color: #fff; border-radius: 0 var(--radius) var(--radius) 0; }
.ct-side h2 { margin: 0; color: #fff; font-size: 1.5rem; }
.ct-branch { padding: 0 0 16px; border-radius: 18px; overflow: hidden; background: #fff; color: #1f2421; }
.ct-branch header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 16px; background: #f1f9ee; }
.ct-branch h3 { margin: 0; font-size: 1rem; color: #1f2421; }
.ct-branch .meta { display: grid; gap: 6px; margin: 12px 16px; font-size: .9rem; color: #4a524c; }
.ct-branch .meta div { display: flex; gap: 8px; align-items: flex-start; }
.ct-branch .meta svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: #40a643; }
.ct-branch .meta a { color: inherit; text-decoration: none; }
.ct-branch .btn { margin: 0 16px; padding: 9px 16px; font-size: .88rem; }
@media (max-width: 900px) {
    .ct-row { grid-template-columns: 1fr; }
    .ct-form { border-radius: var(--radius) var(--radius) 0 0; }
    .ct-side { border-radius: 0 0 var(--radius) var(--radius); }
}
.ct-side { justify-content: flex-start; }
.ct-branch .badge.open { background: #aed143; color: #1f2421; }
.ct-branch .badge.closed { background: #e9ecea; color: #4a524c; }

/* Headers interiores: verde claro */
.fa-head { grid-template-columns: 5fr 7fr; }
.fa-head-title { position: relative; overflow: hidden; background: #aed143; color: #1f2421; padding: clamp(28px, 3.4vw, 44px); }
.fa-head-title::after { content: ""; position: absolute; right: -60px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .22); pointer-events: none; }
.fa-head-title::before { content: ""; position: absolute; right: 70px; top: -50px; width: 110px; height: 110px; border-radius: 50%; background: rgba(64, 166, 67, .16); pointer-events: none; }
.fa-head-title > * { position: relative; z-index: 1; }
.fa-head-title .eyebrow { background: #40a643; color: #fff !important; }
.fa-head-title h1 { color: #1f2421; font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -.01em; }
.fa-head-title p { color: #2f3a2c; font-size: 1.02rem; }
.fa-head-quote { position: relative; background: #fff; border-left: 0; padding-left: clamp(28px, 3.4vw, 44px); }
.fa-head-quote::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 4px; border-radius: 4px; background: #aed143; }
.fa-head-quote .story-year { color: #40a643; }
.fa-head-quote .story-year svg { color: #40a643; }

.fa-head-quote::before { display: none; }

/* Farmacia: gráfica de equipo */
.fa-team-band { padding-top: 16px; }
.fa-team { margin: 0; background: #f1f9ee; border-radius: var(--radius); padding: clamp(16px, 3vw, 32px) clamp(16px, 4vw, 48px) 0; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .16)); overflow: hidden; }
.fa-team img { display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto; }

/* Línea de tiempo: barra de progreso que se llena (estilo descarga), delgada */
.tl { height: 4px; border-radius: 2px; background: #aed143; margin-bottom: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.tl i { background: #fff; border-radius: 2px 0 0 2px; transition: width 1s linear; }

/* Farmacia: gráfica pequeña dentro del texto */
.fa-team-img { display: block; width: min(300px, 70%); height: auto; margin: 14px 0 0; opacity: .9; }

/* Slideshow: Cenabast primero, sin padding; Primavera conserva el suyo */
.w-campaign .camp-slide:first-child { padding: 0; }
.w-campaign .camp-slide.camp-primavera { padding: clamp(18px, 3vw, 30px); align-content: center; }
.w-campaign .camp-slide.camp-primavera img { position: relative; inset: auto; width: 100%; height: auto; object-fit: contain; }
.w-campaign .camp-slide.camp-primavera .title { max-width: 560px; }
.w-campaign .camp-slide:first-child img { display: block; }

/* Beneficios: logos de cada programa */
.bn-card > header { min-height: 64px; align-items: center; }
.bn-logo { display: block; height: 52px; width: auto; max-width: 100%; }

/* Pie y banda CTA: ancho de contenedor, no pantalla completa */
.cta-band { background: transparent; border-bottom: 0; padding: 0; margin-top: 16px; }
.cta-band .cta-inner { background: #2d8638; border-radius: var(--radius); padding: clamp(28px, 4vw, 44px) clamp(24px, 3vw, 40px); }
.site-footer { background: transparent; padding: 16px 0 0; }
.site-footer > .container { background: #40a643; border-radius: 30px 30px 0 0; padding: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 40px) 24px; }
@media (max-width: 520px) { .site-footer > .container { border-radius: 22px 22px 0 0; } }

.bn-seguros { display: block; width: 100%; max-width: 420px; height: auto; margin-top: 14px; }

/* Widgets del hero sin borde */
.w, .w-hello { border: 0; }

/* Valores: iconos con fondo rojo e icono blanco */
.values .value .v-ico, .values.is-carousel .value .v-ico, .value[class*="c-"] .v-ico { background: #d62839; color: #fff; }
.values .value .n, .values.is-carousel .value .n { color: #d62839; opacity: .22; }

/* Línea de tiempo: sucursal cerrada = rojo más oscuro */
.tl.is-closed { background: #8f1824; }

/* Usabilidad: salto al contenido, barra móvil, accesibilidad y volver arriba */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 0 0 12px 12px; background: #1f2421; color: #fff; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 0; }
main:focus { outline: 0; }
:focus-visible { outline: 3px solid #1f6f23; outline-offset: 2px; }

.mobile-bar { display: none; }
.a11y { position: fixed; left: 16px; bottom: 16px; z-index: 90; }
.a11y-toggle, .to-top { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: #1f2421; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); cursor: pointer; }
.a11y-toggle svg, .to-top svg { width: 24px; height: 24px; }
.a11y-toggle:hover, .to-top:hover { background: #40a643; }
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 90; }
.to-top[hidden] { display: none; }
.a11y-panel { position: absolute; left: 0; bottom: 58px; width: 210px; padding: 14px; border-radius: 18px; background: #fff; color: #1f2421; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); display: grid; gap: 8px; }
.a11y-panel[hidden] { display: none; }
.a11y-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-panel button { padding: 10px; border: 1px solid #cfe3c8; border-radius: 12px; background: #f1f9ee; color: #1f2421; font: inherit; font-weight: 700; cursor: pointer; }
.a11y-panel button:hover, .a11y-panel button[aria-pressed="true"] { background: #40a643; color: #fff; border-color: #40a643; }
html.hc { filter: contrast(1.3) saturate(1.1); }
html.hc body { background: #fff; }
html.hc .site-footer > .container, html.hc .cta-band .cta-inner { background: #1f5a22; }

@media (max-width: 760px) {
    .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .35); box-shadow: 0 -10px 28px -10px rgba(0, 0, 0, .4); }
    .mobile-bar a { display: grid; justify-items: center; gap: 2px; padding: 9px 4px calc(9px + env(safe-area-inset-bottom)); background: #40a643; color: #fff; font-size: .74rem; font-weight: 700; text-decoration: none; }
    .mobile-bar a:nth-child(2) { background: #008040; }
    .mobile-bar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
    body { padding-bottom: 66px; }
    .a11y { bottom: 78px; }
    .to-top { bottom: 78px; }
}
@media print { .mobile-bar, .a11y, .to-top, .skip-link { display: none !important; } }

/* Portada: preguntas frecuentes */
.faq-band { padding-top: 16px !important; }
.faq-wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 0; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .16)); }
.faq-head { padding: clamp(24px, 3vw, 36px); background: #40a643; color: #fff; border-radius: var(--radius) 0 0 var(--radius); display: flex; flex-direction: column; justify-content: center; }
.faq-head .eyebrow { align-self: flex-start; background: #fff; color: #40a643 !important; }
.faq-head h2 { margin: 8px 0 0; color: #fff; }
.faq-list { padding: clamp(16px, 2.4vw, 28px); background: #f1f9ee; border-radius: 0 var(--radius) var(--radius) 0; display: grid; gap: 8px; align-content: center; }
.faq-item { background: #fff; border-radius: 16px; padding: 0 18px; }
.faq-item summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: #1f2421; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: #40a643; font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 14px; color: #3a423c; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } .faq-head { border-radius: var(--radius) var(--radius) 0 0; } .faq-list { border-radius: 0 0 var(--radius) var(--radius); } }

/* Botón de modo nocturno (header) */
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #f1f9ee; color: #1f2421; cursor: pointer; transition: background .2s, transform .2s; }
.theme-toggle:hover { background: #aed143; transform: rotate(-12deg); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .ico-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

/* ========== Modo nocturno ========== */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body {
    color: #e6eee7; background-color: #0e1410;
    background-image: radial-gradient(900px 600px at 88% -6%, rgba(174, 209, 67, .10), transparent 62%), radial-gradient(800px 700px at -10% 32%, rgba(64, 166, 67, .10), transparent 62%), linear-gradient(180deg, #0e1410 0%, #121a14 100%);
}
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] h4 { color: #f1f6f2; }
html[data-theme="dark"] .lead { color: #aebbb0; }

/* Cabecera */
html[data-theme="dark"] .site-header .container, html[data-theme="dark"] .site-header.scrolled .container { background: rgba(22, 31, 25, .94); box-shadow: 0 16px 30px -22px rgba(0, 0, 0, .8); }
html[data-theme="dark"] .site-header, html[data-theme="dark"] .site-header.scrolled { background: transparent; border-bottom-color: transparent; }
html[data-theme="dark"] .nav a:not(.active) { color: #e6eee7; }
html[data-theme="dark"] .burger span, html[data-theme="dark"] .burger span::before, html[data-theme="dark"] .burger span::after { background: #e6eee7; }
html[data-theme="dark"] .theme-toggle { background: #243229; color: #aed143; }
html[data-theme="dark"] .theme-toggle:hover { background: #aed143; color: #1f2421; }
@media (max-width: 900px) { html[data-theme="dark"] .nav { background: #161f19; } }

/* Superficies claras -> oscuras */
html[data-theme="dark"] :is(.fa-text, .fa-head-quote, .bn-card, .cb-text, .ct-form, .fa-team, .faq-list, .values-row .values-carousel, .values.is-carousel .value, .wa-option, .ct-branch header, .a11y-panel button) { background: #18221b; }
html[data-theme="dark"] :is(.branch, .value, .fa-mission, .fa-vision, .bn-highlight, .ct-branch, .faq-item, .a11y-panel, #wa-choose, .ct-form input, .ct-form select, .ct-form textarea) { background: #202c24; color: #e6eee7; }
html[data-theme="dark"] .values.is-carousel .value { background: #18221b; }
html[data-theme="dark"] .branches-band .branch .branch-body, html[data-theme="dark"] .bp-grid .branch .branch-body { background: rgba(22, 31, 25, .9); color: #e6eee7; }
html[data-theme="dark"] .fa-mission .mv-label, html[data-theme="dark"] .fa-vision .mv-label { background: #18221b; color: #aed143; }

/* Texto sobre superficies oscuras */
html[data-theme="dark"] :is(.fa-text, .cb-text, .ct-form, .bn-card, .faq-list, .fa-head-quote, .branch, .value, .fa-mission, .fa-vision, .ct-branch, .faq-item, .a11y-panel, .branch-body, #wa-choose, .wa-option) :is(p, li, h2, h3, h4, strong, summary, label, td, th, small, span, dt, dd) { color: #e6eee7; }
html[data-theme="dark"] :is(.fa-text, .cb-text, .bn-card, .faq-item, .ct-form) p { color: #cdd8cf; }
html[data-theme="dark"] .fa-head-quote p { color: #f1f6f2; }
html[data-theme="dark"] .bn-highlight { color: #aed143 !important; }
html[data-theme="dark"] .ct-form input::placeholder, html[data-theme="dark"] .ct-form textarea::placeholder { color: rgba(230, 238, 231, .45); }
html[data-theme="dark"] .ct-form input, html[data-theme="dark"] .ct-form select, html[data-theme="dark"] .ct-form textarea { border-color: rgba(174, 209, 67, .35); }
html[data-theme="dark"] .prose, html[data-theme="dark"] .prose a { color: #e6eee7; }
html[data-theme="dark"] .a11y-panel button { border-color: #2f4136; color: #e6eee7; }
html[data-theme="dark"] .a11y-panel button:hover, html[data-theme="dark"] .a11y-panel button[aria-pressed="true"] { background: #40a643; color: #fff; }
html[data-theme="dark"] .a11y-toggle, html[data-theme="dark"] .to-top { background: #243229; color: #aed143; }

/* Textos que deben seguir oscuros por estar sobre verde claro */
html[data-theme="dark"] .fa-head-title h1 { color: #1f2421; }
html[data-theme="dark"] .fa-head-title p { color: #2f3a2c; }
html[data-theme="dark"] :is(.btn-primary, .eyebrow) { color: #1f2421; }
html[data-theme="dark"] .head-wa.btn-primary, html[data-theme="dark"] .mobile-bar a { color: #fff; }
html[data-theme="dark"] .badge.open { background: #aed143; color: #1f2421; }
html[data-theme="dark"] .badge.closed { background: #33423a; color: #cbd6cd; }
html[data-theme="dark"] .values-head .eyebrow, html[data-theme="dark"] .faq-head .eyebrow { color: #40a643 !important; }
html[data-theme="dark"] .fa-head-title .eyebrow { color: #fff !important; }
html[data-theme="dark"] .values.is-carousel .value .n { color: #ff5a68; }
html[data-theme="dark"] .skip-link { background: #aed143; color: #1f2421; }

/* Mapas y gráficas */
html[data-theme="dark"] .branch-map[data-map] .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.75) contrast(.9); opacity: .85; }
html[data-theme="dark"] .fa-team img { filter: invert(.75) brightness(1.1); }
html[data-theme="dark"] .bn-logo { background: #f1f6f2; border-radius: 12px; padding: 8px 12px; box-sizing: content-box; }
html[data-theme="dark"] .bn-seguros { background: #f1f6f2; border-radius: 12px; padding: 10px 14px; box-sizing: border-box; }

/* Logo del header sobre fondo oscuro */
html[data-theme="dark"] .site-header .brand img { content: url("/img/logo-white.png"); }
html[data-theme="dark"] .site-header .brand img { width: 177px; height: 46px; object-fit: contain; flex-shrink: 0; }
@media (max-width: 520px) { html[data-theme="dark"] .site-header .brand img { width: 154px; height: 40px; } }
html[data-theme="dark"] .fa-head-quote .story-year, html[data-theme="dark"] .fa-head-quote .story-year svg { color: #aed143; }
html[data-theme="dark"] .btn-primary, html[data-theme="dark"] .ct-branch .btn-primary { color: #fff; }
html[data-theme="dark"] :is(.ct-branch, .branch-body, .fa-text, .cb-text, .bn-card, .faq-item, .prose) a:not(.btn) { color: #aed143; }
html[data-theme="dark"] .btn-ghost { color: #aed143; border-color: rgba(174, 209, 67, .6); }

/* Menú pegado al logo; acciones a la derecha */
@media (min-width: 901px) { .nav { margin-inline: 0 auto; } }

/* Portada interactiva: loro, vista previa de tarjetas y cuenta regresiva */
.mascot-btn { position: absolute; right: 6px; top: 210px; height: 50%; z-index: 3; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; transform: rotate(var(--tilt, 0deg)); transition: transform .35s ease; -webkit-tap-highlight-color: transparent; }
.mascot-btn .mascot { position: static; top: auto; right: auto; height: 100%; width: auto; max-width: none; pointer-events: none; }
.mascot-btn:hover { transform: rotate(var(--tilt, 0deg)) scale(1.03); }
.mascot-btn:focus-visible { outline: 3px solid #aed143; outline-offset: 4px; border-radius: 16px; }
.mascot-btn.hop { animation: parrot-hop .5s ease; }
@keyframes parrot-hop { 0% { transform: translateY(0); } 35% { transform: translateY(-22px) rotate(-4deg); } 70% { transform: translateY(0) rotate(3deg); } 100% { transform: translateY(0); } }
.parrot-bubble { position: absolute; z-index: 4; right: 16px; top: 128px; max-width: 220px; margin: 0; padding: 11px 14px; border-radius: 18px 18px 4px 18px; background: #fff; color: #1f2421; font-size: .85rem; font-weight: 600; line-height: 1.35; box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .55); animation: bubble-in .25s ease; }
.parrot-bubble[hidden] { display: none; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }

.quick .quick-card { position: relative; }
.quick-card .peek { position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); z-index: 20; padding: 10px 14px; border-radius: 14px; background: #1f2421; color: #fff !important; font-size: .82rem; font-weight: 500; line-height: 1.35; text-shadow: none !important; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .2s; }
.quick-card .peek::before { content: ""; position: absolute; left: 28px; top: -6px; width: 12px; height: 12px; background: #1f2421; transform: rotate(45deg); }
.quick-card:hover .peek, .quick-card:focus-visible .peek { opacity: 1; transform: none; }
@media (hover: none) { .quick-card .peek { display: none; } }

.w-today .cd { margin: -2px 0 8px; font-size: .74rem; font-weight: 500; color: rgba(255, 255, 255, .85); }
.w-today .cd:empty { display: none; }
html[data-theme="dark"] .parrot-bubble { background: #202c24; color: #e6eee7; }
@media (max-width: 760px) { .mascot-btn { top: 84px; height: 200px; right: 4px; } .parrot-bubble { top: 60px; max-width: 180px; } }
@media (prefers-reduced-motion: reduce) { .mascot-btn, .mascot-btn.hop { animation: none; transition: none; } }
.parrot-bubble { max-width: 170px; top: 120px; right: 12px; }

/* La vista previa de las tarjetas rápidas debe quedar sobre el mapa de abajo */
.quick { position: relative; z-index: 2; }
.branches-band { position: relative; isolation: isolate; z-index: 1; }

/* Aviso de cierre: sitio en escala de grises + ventana que se cierra sola a los 10 s */
body > :not(dialog) { transition: filter .6s ease; }
html.closed-gray body > :not(dialog):not(script) { filter: grayscale(1); }
#closed-notice { border: 1px solid var(--stroke); border-radius: 28px; padding: 32px; max-width: 460px; width: calc(100% - 32px); color: #fff; background: #40a643; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7); }
#closed-notice::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
#closed-notice h2 { font-size: 1.7rem; margin-bottom: 10px; color: #fff; }
#closed-notice p { margin: 0 0 12px; color: rgba(255, 255, 255, .92); }
.notice-list { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.notice-list li { padding: 10px 14px; border-radius: 14px; background: rgba(0, 0, 0, .16); font-weight: 600; color: #fff; }
.notice-bar { height: 4px; margin-top: 16px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.notice-bar i { display: block; height: 100%; background: #aed143; transform-origin: left; }
#closed-notice .dialog-actions { align-items: center; margin-top: 16px; }
.notice-count { font-size: .85rem; color: rgba(255, 255, 255, .85); }
#closed-notice .btn-primary { background: #aed143; color: #1f2421; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { body > :not(dialog) { transition: none; } .notice-bar i { transition: none !important; } }

/* Barra de horario: sin bordes blancos, 1px más gruesa */
.tl { height: 5px; box-shadow: none; border: 0; }
.tl.is-closed { box-shadow: none; }

/* Slide Primavera: imagen única a sangre */
.w-campaign .camp-slide.camp-primavera { padding: 0; }
.w-campaign .camp-slide.camp-primavera img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Sello Cenabast en el footer */
.footer-cenabast { display: inline-block; margin-top: 16px; }
.footer-cenabast img { display: block; width: 104px; height: 104px; }

/* Slide Beneficios: la cruz de La Paz reemplaza el circulo decorativo */
.w-campaign .camp-benefits a::after { right: clamp(16px, 4%, 44px); bottom: clamp(16px, 8%, 40px); width: clamp(110px, 24%, 190px); background: url('../img/cruz-lapaz.png') center / contain no-repeat; border-radius: 0; opacity: .95; pointer-events: none; }

/* Cruz grande, sangrando por la esquina inferior derecha */
.w-campaign .camp-benefits a::after { right: -14%; bottom: -34%; width: clamp(260px, 52%, 420px); opacity: 1; }

/* Cruz vectorial (nitida), pegada al borde inferior */
.w-campaign .camp-benefits { overflow: hidden; }
.w-campaign .camp-benefits a::after { content: none; }
.w-campaign .camp-benefits::after { content: ''; position: absolute; right: -9%; bottom: -24%; width: clamp(260px, 52%, 420px); aspect-ratio: 1; background: url('../img/cruz-lapaz.svg') center / contain no-repeat; pointer-events: none; z-index: 0; }

/* Banda CTA: cruz vectorial centrada en vertical, recortada por el borde derecho */
.cta-band .cta-inner { position: relative; overflow: hidden; padding-right: clamp(24px, 17%, 240px); }
.cta-band .cta-inner::after { content: ''; position: absolute; top: 50%; right: -70px; width: 230px; aspect-ratio: 1; transform: translateY(-50%); background: url('../img/cruz-lapaz.svg') center / contain no-repeat; pointer-events: none; }
.cta-band .cta-inner > * { position: relative; z-index: 1; }
@media (max-width: 700px) { .cta-band .cta-inner { padding-right: clamp(24px, 3vw, 40px); } .cta-band .cta-inner::after { width: 150px; right: -50px; opacity: .3; } }

/* Consulta de medicamentos por WhatsApp */
.medsearch { padding: 8px 0 24px; }
.med-form { display: grid; grid-template-columns: 1fr minmax(280px, 1.1fr); gap: 14px 28px; align-items: center; padding: clamp(20px, 3vw, 30px); background: #f1f9ee; border-radius: var(--radius); box-shadow: 0 18px 40px -26px rgba(31, 36, 33, .35); }
.med-copy { display: flex; align-items: center; gap: 16px; }
.med-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #40a643; color: #fff; }
.med-ico svg { width: 26px; height: 26px; }
.med-copy h2 { margin: 0 0 4px; font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: #1f2421; }
.med-copy p { margin: 0; color: #4a544c; font-size: .95rem; }
.med-field { display: flex; gap: 10px; }
.med-field input { flex: 1; min-width: 0; padding: 13px 18px; border: 2px solid #40a643; border-radius: 999px; background: #fff; color: #1f2421; font: inherit; }
.med-field input:focus { outline: 3px solid rgba(64, 166, 67, .35); outline-offset: 2px; }
.med-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.med-chips button { padding: 6px 14px; border: 1px solid #40a643; border-radius: 999px; background: transparent; color: #2d8638; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.med-chips button:hover { background: #40a643; color: #fff; }
@media (max-width: 760px) { .med-form { grid-template-columns: 1fr; } .med-field { flex-direction: column; } }
html[data-theme="dark"] .med-form { background: #16221a; }
html[data-theme="dark"] .med-copy h2 { color: #f3f7f1; }
html[data-theme="dark"] .med-copy p { color: #b8c4ba; }
html[data-theme="dark"] .med-field input { background: #0f1511; color: #f3f7f1; }
html[data-theme="dark"] .med-chips button { color: #aed143; border-color: #aed143; }
html[data-theme="dark"] .med-chips button:hover { background: #aed143; color: #14210f; }

/* Microanimaciones: entrada escalonada y respuesta al pasar/pulsar (solo sin "reducir movimiento") */
@media (prefers-reduced-motion: no-preference) {
    .quick-grid > .reveal:nth-child(2), .branch-grid > .reveal:nth-child(2), .values > .reveal:nth-child(2) { transition-delay: .08s; }
    .quick-grid > .reveal:nth-child(3), .branch-grid > .reveal:nth-child(3), .values > .reveal:nth-child(3) { transition-delay: .16s; }
    .quick-grid > .reveal:nth-child(4), .values > .reveal:nth-child(4) { transition-delay: .24s; }
    .values > .reveal:nth-child(5) { transition-delay: .32s; }
    .values > .reveal:nth-child(6) { transition-delay: .4s; }
    .btn, .med-chips button, .wa-option { transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background-color .2s, color .2s; }
    .quick-card { transition: opacity .7s, transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
    .quick-card.in:hover { transform: translateY(-4px); }
    .btn:hover { transform: translateY(-2px); }
    .btn:active, .med-chips button:active { transform: translateY(0) scale(.98); }
    .med-chips button:hover { transform: translateY(-2px); }
    .wa-option:hover { transform: translateX(3px); }
}

/* ===== Móvil: más elegancia y orden ===== */
@media (max-width: 900px) {
    /* El bloque 5fr/7fr de los encabezados interiores se re-declaraba después y rompía el apilado. */
    .fa-head { grid-template-columns: 1fr; }
    .fa-head-title { border-radius: var(--radius) var(--radius) 0 0; }
    .fa-head-quote { border-radius: 0 0 var(--radius) var(--radius); }
}
@media (max-width: 640px) {
    .bento { gap: 14px; }

    /* Encabezados interiores: título arriba, dato destacado en una fila compacta */
    .fa-head-band { padding-top: 12px; }
    .fa-head-title { padding: 24px 22px 26px; }
    .fa-head-title h1 { font-size: 2rem; line-height: 1.1; }
    .fa-head-title p { font-size: .95rem; }
    .fa-head-title::after { width: 160px; height: 160px; right: -50px; bottom: -60px; }
    .fa-head-quote { flex-direction: row; align-items: center; gap: 16px; padding: 18px 22px; }
    .fa-head-quote .story-year { flex: none; font-size: 2.4rem; }
    .fa-head-quote .story-year svg { width: 40px; height: 40px; }
    .fa-head-quote p { font-size: .98rem; line-height: 1.4; }

    /* Portada */
    .w-hello h1 { font-size: 2.1rem; line-height: 1.08; }
    .w-hello .sub { font-size: .92rem; }
    .w-clock .clock { font-size: 2.6rem; }
    .w-clock .clock, .w-clock .clock-date, .w-clock .w-label, .w-clock .temp { text-shadow: 0 1px 6px rgba(0, 0, 0, .28); }

    /* Tarjetas rápidas: cuadrícula 2 x 2 en vez de cuatro barras */
    .quick { padding-top: 0; }
    .quick .quick-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .quick .quick-card { min-height: 108px; padding: 16px; gap: 10px; border-radius: 22px; justify-content: space-between; }
    .quick .quick-card .ico { width: 42px; height: 42px; border-radius: 14px; }
    .quick .quick-card .ico svg { width: 28px; height: 28px; }
    .quick .quick-card h3 { margin: 0; font-size: .98rem; line-height: 1.2; }

    /* Buscador de medicamentos */
    .medsearch { padding: 4px 0 18px; }
    .med-form { padding: 20px 18px; gap: 14px; border-radius: 22px; }
    .med-copy { align-items: flex-start; gap: 14px; }
    .med-ico { width: 44px; height: 44px; }
    .med-copy h2 { font-size: 1.15rem; }
    .med-copy p { font-size: .88rem; }
    .med-field { gap: 10px; }
    .med-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -18px; padding: 2px 18px 6px; scrollbar-width: none; }
    .med-chips::-webkit-scrollbar { display: none; }
    .med-chips button { flex: none; }

    /* Barra inferior: píldora flotante en lugar de franja pegada al borde */
    .mobile-bar { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); gap: 0; background: #40a643; border-radius: 24px; overflow: hidden; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .55); }
    .mobile-bar a { padding: 10px 4px; font-size: .72rem; letter-spacing: .01em; }
    .mobile-bar a + a { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .22); }
    .mobile-bar svg { width: 21px; height: 21px; }
    body { padding-bottom: 92px; }
    .a11y { bottom: 92px; left: 12px; }
    .to-top { bottom: 92px; right: 12px; }
    .a11y-toggle, .to-top { width: 42px; height: 42px; }

    /* Pie */
    .site-footer > .container { padding: 28px 22px 22px; }
    .footer-grid { gap: 24px; }
    .legal { flex-direction: column; gap: 6px; text-align: left; }
}
@media (max-width: 640px) {
    /* Barra superior: dirección con estado + teléfono como ícono; redes sociales ya están en el pie */
    .infobar .container { gap: 10px; }
    .infobar-social { display: none; }
    .infobar-phone { font-size: 0; gap: 0; width: 30px; height: 30px; justify-content: center; border-radius: 50%; background: rgba(174, 209, 67, .16); }
    .infobar-phone svg { width: 16px; height: 16px; }
    .addr { font-size: .74rem; }
}
@media (max-width: 640px) { .addr { font-size: .7rem; gap: 6px; } .addr > svg { display: none; } }
.addr-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr .tag { flex: none; }

/* Móvil angosto: nada debe ensanchar la página. */
html, body { overflow-x: clip; }
@media (max-width: 640px) {
    .quick .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-card { min-width: 0; padding-inline: 14px; }
    .quick-card h3 { font-size: .95rem; overflow-wrap: anywhere; hyphens: auto; }
}
