:root {
    --teal: #08a9b9;
    --teal-dark: #057d8c;
    --coral: #ff916d;
    --ink: #163540;
    --muted: #5e7480;
    --soft: #eef9fa;
    --white: #ffffff;
    --line: #dcecef;
    --shadow: 0 20px 60px rgba(8, 67, 78, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 46px;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.sr-only {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.container {
    width: min(990px, calc(100% - 44px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
}

.brand img {
    width: 118px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--muted);
    font-size: .95rem;
    font-weight: 700;
}

.nav-links a:hover {
    color: var(--teal-dark);
}

.nav-toggle {
    display: none;
    border: 0;
    background: var(--soft);
    color: var(--teal-dark);
    border-radius: 10px;
    font-size: 26px;
    padding: 6px 12px;
}

.mobile-pharmacy-link {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--teal);
    border-radius: 999px;
    background: var(--teal);
    color: var(--white);
    font-weight: 800;
    padding: 11px 19px;
    text-align: center;
    white-space: normal;
    box-shadow: 0 10px 30px rgba(8, 169, 185, .24);
    transition: .2s ease;
}

.btn:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--teal-dark);
    box-shadow: none;
}

.btn-small {
    padding: 7px 14px;
}

.btn-full {
    width: 100%;
}

.waitlist-trigger {
    position: relative;
    overflow: hidden;
    border-color: #ff7a45;
    background: linear-gradient(135deg, #ff7a45, #ffb347);
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(255, 122, 69, .32);
    animation: waitlistFloat 2.4s ease-in-out infinite;
}

.waitlist-trigger:hover {
    border-color: #e95f2d;
    background: linear-gradient(135deg, #e95f2d, #ff9e3d);
    box-shadow: 0 16px 38px rgba(255, 122, 69, .42);
}

.waitlist-trigger::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .35) 45%, transparent 70%);
    transform: translateX(-120%);
    animation: waitlistShine 3.2s ease-in-out infinite;
}

.waitlist-trigger:focus-visible {
    outline: 3px solid rgba(255, 122, 69, .35);
    outline-offset: 3px;
}

@keyframes waitlistFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes waitlistShine {
    0%,
    55% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(120%);
    }
}

.hero {
    overflow: hidden;
    padding: 48px 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 145, 109, .18), transparent 28%),
        linear-gradient(135deg, #f8feff 0%, #eaf9fb 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(280px, .92fr) minmax(340px, 1.08fr);
    gap: 28px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    color: var(--coral);
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
}

.hero-copy .hero-center-name {
    margin: 0 0 10px;
    color: #08a9b9;
    font-size: clamp(2rem, 4.4vw, 3.7rem);
    font-weight: 900;
    line-height: .95;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 560px;
    margin-bottom: 12px;
    font-size: clamp(1.7rem, 3.2vw, 2.45rem);
    line-height: 1.06;
    letter-spacing: -.04em;
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(1.65rem, 2.9vw, 2.45rem);
    line-height: 1.05;
    letter-spacing: -.04em;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.06rem;
}

.hero-copy p {
    max-width: 560px;
    color: var(--muted);
    font-size: .96rem;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.call-choice {
    position: relative;
}

.call-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 8;
    display: grid;
    min-width: 210px;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 10px;
}

.call-options[hidden] {
    display: none;
}

.call-options a {
    border-radius: 12px;
    color: var(--teal-dark);
    font-weight: 900;
    padding: 10px 12px;
}

.call-options a:hover {
    background: var(--soft);
}

.hero-card,
.hero-mural {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 36px;
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--shadow);
}

.hero-card::before,
.hero-mural::before {
    position: absolute;
    inset: -18px;
    z-index: -1;
    border-radius: 44px;
    background: linear-gradient(135deg, rgba(8, 169, 185, .18), rgba(255, 145, 109, .18));
    content: "";
}

.hero-card {
    padding: 38px;
}

.hero-card img {
    width: 100%;
    margin-bottom: 18px;
}

.hero-mural {
    overflow: hidden;
    min-height: 325px;
    padding: 0;
    aspect-ratio: 1.28 / 1;
    background:
        radial-gradient(circle at 20% 20%, rgba(8, 169, 185, .12), transparent 28%),
        linear-gradient(135deg, #ffffff, #eef9fa);
}

.mural-tile {
    overflow: hidden;
    min-height: 120px;
    margin: 0;
    border-radius: 26px;
    background: var(--white);
}

.mural-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mural-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .65s ease, transform 1.2s ease;
}

.mural-slide.active {
    opacity: 1;
    transform: scale(1);
}

.mural-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background:
        radial-gradient(circle at 80% 15%, rgba(255, 145, 109, .12), transparent 28%),
        linear-gradient(135deg, #ffffff, #eef9fa);
}

.carousel-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    color: var(--teal-dark);
    cursor: pointer;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%);
    box-shadow: 0 10px 30px rgba(8, 67, 78, .18);
}

.carousel-control:hover {
    background: var(--white);
    color: var(--coral);
}

.carousel-control.prev {
    left: 18px;
}

.carousel-control.next {
    right: 18px;
}

.carousel-dots {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.carousel-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .68);
    cursor: pointer;
    padding: 0;
}

.carousel-dots button.active {
    width: 28px;
    background: var(--coral);
}

.tile-1 {
    grid-column: span 4;
    grid-row: span 4;
}

.tile-2 {
    grid-column: span 2;
    grid-row: span 3;
}

.tile-3 {
    grid-column: span 2;
    grid-row: span 3;
}

.tile-4,
.tile-5,
.tile-6 {
    grid-column: span 2;
    grid-row: span 2;
}

.tile-full {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    width: 100%;
    height: 100%;
}

.mural-placeholder,
.mural-accent {
    display: grid;
    place-items: center;
    padding: 19px;
    text-align: center;
    font-weight: 900;
}

.mural-placeholder {
    background: var(--soft);
    color: var(--teal-dark);
}

.mural-accent {
    background: #fff3ee;
    color: #b95736;
}

.section {
    padding: 48px 0;
    scroll-margin-top: 46px;
}

#inicio,
#nosotros,
#servicios,
#equipo,
#farmacia,
#atencion,
#buzon,
#contacto {
    scroll-margin-top: 46px;
}

.section-soft {
    background: var(--soft);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 22px;
}

.section-heading.split {
    display: flex;
    max-width: none;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.section-heading.split p {
    max-width: 400px;
    color: var(--muted);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 30px;
    align-items: center;
}

.about-grid p {
    color: var(--muted);
    font-size: .98rem;
}

.about-panel,
.step-card,
.appointment-card,
.map-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.about-panel {
    padding: 24px;
}

.about-panel ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.about-panel li + li {
    margin-top: 12px;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.trust-row div,
.trust-row a {
    display: block;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fbfeff;
    padding: 15px;
    transition: .2s ease;
}

.trust-row a:hover {
    border-color: var(--teal);
    box-shadow: 0 14px 34px rgba(8, 169, 185, .16);
    transform: translateY(-2px);
}

.trust-row strong {
    display: block;
    color: var(--teal-dark);
    font-size: clamp(1.15rem, 2vw, 1.65rem);
    line-height: 1;
}

.trust-row span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
}

.story-block {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 28px;
    align-items: stretch;
    margin-top: 34px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(238, 249, 250, .92), rgba(255, 255, 255, .96));
    box-shadow: var(--shadow);
}

.story-copy h2 {
    margin-bottom: 14px;
}

.story-copy p {
    color: var(--muted);
    font-size: .98rem;
}

.story-copy blockquote {
    margin: 18px 0;
    padding: 16px 18px;
    border-left: 5px solid var(--coral);
    border-radius: 18px;
    background: var(--white);
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.45;
}

.story-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.35fr 1fr;
    gap: 12px;
    min-height: 360px;
}

.story-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 18px;
    border: 1px dashed rgba(8, 169, 185, .36);
    border-radius: 24px;
    background: rgba(255, 255, 255, .76);
    color: var(--teal-dark);
    text-align: center;
    font-weight: 900;
}

.story-photo-main {
    grid-column: span 2;
    flex-direction: column;
    gap: 12px;
    background: radial-gradient(circle at top, rgba(8, 169, 185, .13), rgba(255, 255, 255, .85));
}

.story-photo-main img {
    width: 128px;
    max-height: 120px;
    object-fit: contain;
}

.story-photo-placeholder.has-image {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-style: solid;
    background: var(--white);
}

.story-photo-placeholder.has-image img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.story-photo-button {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.story-photo-button img {
    display: block;
}

.story-gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s ease;
}

.story-gallery-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.story-gallery-center {
    grid-column: span 2;
    min-height: 240px;
    aspect-ratio: 16 / 9;
}

.story-gallery-center.has-image img {
    object-fit: contain;
    background: #ffffff;
}

.story-gallery-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    color: var(--teal-dark);
    font-size: .72rem;
    font-weight: 900;
    padding: 5px 9px;
    box-shadow: 0 8px 20px rgba(8, 67, 78, .14);
}

.cards-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
    gap: 16px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.promo-card {
    border: 1px solid rgba(8, 169, 185, .18);
    border-radius: 26px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 145, 109, .16), transparent 32%),
        var(--white);
    box-shadow: var(--shadow);
    padding: 20px;
}

.promo-card span,
.featured-product-card span {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--teal-dark);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.promo-card p {
    color: var(--muted);
}

.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
    gap: 14px;
}

.featured-product-card {
    display: grid;
    grid-template-rows: 150px 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.featured-product-card .product-photo-button {
    position: relative;
    width: 100%;
    height: 150px;
    border: 0;
    background: var(--soft);
    cursor: zoom-in;
    padding: 10px;
}

.featured-product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-photo-button em {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    border-radius: 999px;
    background: var(--coral);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(255, 145, 109, .28);
    font-size: .72rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .04em;
    padding: 6px 10px;
    text-transform: uppercase;
}

.featured-product-card div {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.featured-product-card h3 {
    margin: 0;
    font-size: .98rem;
}

.featured-product-card p {
    display: -webkit-box;
    min-height: 3.9em;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.featured-product-card strong {
    color: var(--teal-dark);
    font-size: 1.05rem;
}

.featured-product-card .offer-price-row,
.offer-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 0;
}

.offer-price-row del,
.catalog-price-stack del {
    color: var(--muted);
    font-size: .86rem;
    font-weight: 800;
}

.catalog-price-stack {
    display: grid;
    gap: 2px;
    padding: 0;
}

.product-stock {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
    padding: 5px 10px;
    white-space: normal;
}

.product-stock.in-stock {
    background: #e8f8f0;
    color: #157347;
}

.product-stock.out-stock {
    background: #fff3ee;
    color: #b95736;
}

.featured-product-card .product-stock {
    margin-bottom: 0;
    letter-spacing: 0;
    text-transform: none;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
}

body.modal-open {
    overflow: hidden;
}

.waitlist-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(3, 26, 36, .62);
    padding: 18px;
}

.waitlist-modal.open {
    display: flex;
}

.waitlist-dialog {
    position: relative;
    width: min(430px, 100%);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--white);
    box-shadow: 0 28px 80px rgba(3, 26, 36, .28);
    padding: 28px;
}

.waitlist-dialog h2 {
    margin: 6px 0 10px;
    color: var(--ink);
    font-size: clamp(1.45rem, 4vw, 2rem);
}

.waitlist-dialog p {
    margin: 0 0 18px;
    color: var(--muted);
}

.waitlist-dialog .waitlist-product-message {
    color: var(--ink);
    font-size: clamp(1.05rem, 3.6vw, 1.25rem);
    font-weight: 900;
    line-height: 1.42;
}

.waitlist-dialog form {
    display: grid;
    gap: 13px;
}

.waitlist-dialog label {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-weight: 900;
}

.waitlist-dialog label span {
    color: var(--muted);
    font-size: .78rem;
}

.waitlist-dialog input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfeff;
    color: var(--ink);
    font: inherit;
    padding: 12px 14px;
}

.waitlist-dialog small {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.5;
}

.waitlist-status {
    border: 1px solid #bfead4;
    border-radius: 18px;
    background: #e8f8f0;
    color: #177a4d;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.45;
    padding: 16px;
}

.waitlist-status.error {
    border-color: #ffd1d1;
    background: #fff0f0;
    color: #c43d3d;
}

.waitlist-dialog form[hidden],
.waitlist-status[hidden] {
    display: none !important;
}

.waitlist-dialog button[disabled] {
    cursor: wait;
    opacity: .72;
}

.waitlist-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: var(--soft);
    color: var(--teal-dark);
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
}

.center-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.service-card,
.product-card,
.contact-panel,
.notice {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.service-card {
    padding: 19px;
}

.service-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 18px;
    background: var(--soft);
    color: var(--teal);
    font-size: 1.8rem;
}

.service-photo {
    width: 100%;
    height: 145px;
    margin-bottom: 16px;
    border-radius: 18px;
    object-fit: cover;
    background: var(--soft);
}

.service-card p,
.product-card p,
.contact-grid p {
    color: var(--muted);
}

.service-team {
    margin-top: 14px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.service-prices {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    color: var(--muted);
    font-size: .9rem;
}

.service-prices strong {
    color: var(--ink);
}

.service-prices em {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    background: #fff3ee;
    color: #b95736;
    font-style: normal;
    font-weight: 900;
    padding: 4px 9px;
}

.service-team strong {
    display: block;
    margin-bottom: 7px;
    color: var(--teal-dark);
    font-size: .8rem;
    text-transform: uppercase;
}

.service-team ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: .9rem;
}

.service-team a {
    color: var(--teal-dark);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.service-team a:hover {
    color: var(--coral);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.team-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
    scroll-margin-top: 88px;
}

.team-card:target {
    border-color: var(--coral);
    box-shadow: 0 22px 60px rgba(255, 145, 109, .24);
}

.team-photo-button {
    display: block;
    width: 100%;
    border: 0;
    background: #eef9fa;
    cursor: zoom-in;
    padding: 0;
}

.team-photo-button img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    background: #eef9fa;
}

.team-card div {
    padding: 14px;
}

.team-card h3 {
    margin-bottom: 5px;
}

.team-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--coral);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.team-card p {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.45;
}

.team-bio-list {
    margin-top: 10px;
}

.team-bio-list ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 14px;
    margin: 0;
    padding-left: 16px;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.35;
}

.team-schedule,
.team-insurance {
    margin-top: 10px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.team-schedule strong,
.team-insurance strong {
    display: block;
    margin-bottom: 4px;
    color: var(--teal-dark);
    font-size: .8rem;
    text-transform: uppercase;
}

.team-schedule p,
.team-insurance p {
    margin-bottom: 0;
    font-size: .86rem;
}

.team-insurance ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 14px;
    margin: 0;
    padding-left: 16px;
    color: var(--muted);
    font-size: .86rem;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 28, 34, .82);
    padding: 28px;
}

.image-lightbox.open {
    display: flex;
}

.image-lightbox img {
    max-width: min(96vw, 1100px);
    max-height: 92vh;
    border-radius: 24px;
    background: var(--white);
    object-fit: contain;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: var(--white);
    color: var(--teal-dark);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
}

.step-card {
    padding: 19px;
}

.step-card span {
    display: inline-flex;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #fff3ee;
    color: var(--coral);
    font-weight: 900;
}

.step-card p {
    color: var(--muted);
}

.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 62px;
    overflow-y: auto;
    padding-right: 4px;
}

.catalog-sticky-tools {
    position: sticky;
    top: 64px;
    z-index: 12;
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 10px;
    align-items: start;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 28px rgba(8, 67, 78, .1);
    padding: 10px 12px;
    backdrop-filter: blur(12px);
}

.product-search {
    display: grid;
    gap: 5px;
    max-width: none;
}

.product-search label {
    color: var(--teal-dark);
    font-size: .82rem;
    font-weight: 900;
}

.product-search input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: .88rem;
    padding: 9px 14px;
    box-shadow: 0 10px 30px rgba(8, 67, 78, .06);
}

.catalog-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 14px 36px rgba(8, 67, 78, .08);
    margin: 0 0 22px;
    padding: 16px 18px;
}

.catalog-preview p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.catalog-toggle {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(8, 169, 185, .28);
    animation: catalogButtonPulse 1.9s ease-in-out infinite;
}

.catalog-toggle::after {
    position: absolute;
    inset: -40% auto -40% -55%;
    z-index: -1;
    width: 46%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
    content: "";
    transform: rotate(18deg);
    animation: catalogButtonShine 2.7s ease-in-out infinite;
}

.catalog-toggle:hover {
    animation-play-state: paused;
}

.catalog-panel[hidden] {
    display: none !important;
}

.catalog-panel {
    animation: catalogReveal .22s ease;
}

@keyframes catalogReveal {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes catalogButtonPulse {
    0%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 16px 34px rgba(8, 169, 185, .28);
    }

    50% {
        transform: translateY(-2px) scale(1.025);
        box-shadow: 0 22px 44px rgba(8, 169, 185, .38);
    }
}

@keyframes catalogButtonShine {
    0%,
    35% {
        left: -55%;
    }

    70%,
    100% {
        left: 115%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-toggle,
    .catalog-toggle::after,
    .mobile-pharmacy-link,
    .mobile-pharmacy-link::after {
        animation: none;
    }
}

.filter-btn {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--muted);
    cursor: pointer;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.1;
    padding: 7px 11px;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--teal);
    background: var(--teal);
    color: var(--white);
}

.filter-btn.offer-filter {
    border-color: rgba(255, 145, 109, .55);
    background: #fff3ee;
    color: #b95736;
}

.filter-btn.offer-filter.active,
.filter-btn.offer-filter:hover {
    border-color: var(--coral);
    background: var(--coral);
    color: var(--white);
}

.product-card {
    overflow: hidden;
}

.product-photo-button {
    position: relative;
    display: block;
    width: 100%;
    border: 0;
    background: #f7fbfc;
    cursor: zoom-in;
    padding: 0;
}

.product-card img,
.product-photo-button img {
    width: 100%;
    height: 165px;
    object-fit: contain;
    background: #f7fbfc;
}

.product-content {
    padding: 17px;
}

.product-category {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--coral);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0;
}

.product-meta strong {
    color: var(--teal-dark);
    font-size: 1.2rem;
}

.product-meta span {
    border-radius: 999px;
    background: #fff3ee;
    color: #b95736;
    font-size: .82rem;
    font-weight: 900;
    padding: 5px 10px;
    white-space: normal;
}

.product-meta .catalog-price-stack {
    min-width: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    padding: 0;
}

.notice {
    padding: 24px;
    color: var(--muted);
}

.catalog-note {
    margin-top: 24px;
    color: var(--muted);
    font-size: .95rem;
}

.appointment-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    background:
        radial-gradient(circle at 92% 20%, rgba(255, 145, 109, .18), transparent 30%),
        linear-gradient(135deg, #ffffff, #edfafa);
}

.appointment-card p {
    max-width: 650px;
    color: var(--muted);
}

.appointment-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 18px;
    max-width: 640px;
    margin: 0 0 14px;
    padding-left: 20px;
    color: var(--muted);
    font-weight: 700;
}

.appointment-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 260px;
}

.suggestion-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(360px, 1.15fr);
    gap: 32px;
    align-items: start;
}

.suggestion-grid > div p {
    color: var(--muted);
}

.suggestion-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 24px;
}

.suggestion-form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 900;
}

.suggestion-form label span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.suggestion-form input,
.suggestion-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfeff;
    color: var(--ink);
    font: inherit;
    padding: 11px 13px;
}

.suggestion-form textarea {
    resize: vertical;
}

.suggestion-form .full,
.suggestion-form .notice,
.suggestion-form button {
    grid-column: 1 / -1;
}

.hidden-field {
    position: absolute;
    left: -9999px;
}

.notice.success {
    border-color: #bfead4;
    background: #e8f8f0;
    color: #177a4d;
}

.notice.error {
    border-color: #ffd1d1;
    background: #fff0f0;
    color: #c43d3d;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 30px;
    align-items: start;
}

.map-card {
    overflow: hidden;
    margin-top: 28px;
}

.map-card iframe {
    display: block;
    width: 100%;
    height: 245px;
    border: 0;
}

.contact-panel {
    padding: 24px;
}

.contact-panel ul {
    margin: 0 0 24px;
    padding-left: 20px;
    color: var(--muted);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.whatsapp-links {
    display: grid;
    gap: 9px;
    margin: 8px 0 20px;
}

.whatsapp-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #bdebd0;
    border-radius: 999px;
    background: #e9fbf1;
    color: #14783f;
    font-weight: 900;
    padding: 10px 14px;
    transition: .2s ease;
}

.whatsapp-links a:hover {
    background: #25d366;
    border-color: #25d366;
    color: var(--white);
    transform: translateY(-1px);
}

.whatsapp-links img {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    object-fit: contain;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--soft);
    color: var(--teal-dark);
    font-weight: 900;
    padding: 9px 13px;
    transition: .2s ease;
}

.social-links a:hover {
    border-color: var(--teal);
    background: var(--teal);
    color: var(--white);
    transform: translateY(-1px);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.site-footer {
    padding: 28px 0;
    background: var(--ink);
    color: var(--white);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-grid p {
    margin: 0;
}

.footer-grid a {
    color: #aeeaf0;
}

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 30;
    display: grid;
    justify-items: end;
    gap: 10px;
}

.floating-whatsapp-hint {
    position: absolute;
    right: 74px;
    bottom: 17px;
    padding: 8px 12px;
    border: 1px solid rgba(37, 211, 102, .24);
    border-radius: 999px;
    background: var(--white);
    color: #126b38;
    box-shadow: 0 12px 30px rgba(18, 107, 56, .14);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .01em;
    pointer-events: none;
    animation: whatsappHintPulse 1.8s ease-in-out infinite;
    white-space: nowrap;
}

.floating-whatsapp-hint::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-top: 1px solid rgba(37, 211, 102, .24);
    border-right: 1px solid rgba(37, 211, 102, .24);
    background: var(--white);
    transform: translateY(-50%) rotate(45deg);
}

.floating-whatsapp:has(.floating-whatsapp-toggle[aria-expanded="true"]) .floating-whatsapp-hint {
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    animation: none;
}

@keyframes whatsappHintPulse {
    0%,
    100% {
        opacity: .82;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(-5px);
    }
}

.floating-whatsapp-toggle {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #25d366;
    box-shadow: 0 16px 40px rgba(37, 211, 102, .34);
    cursor: pointer;
    transition: .2s ease;
}

.floating-whatsapp-toggle:hover {
    transform: translateY(-2px) scale(1.02);
}

.floating-whatsapp-toggle img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.floating-whatsapp-menu {
    display: grid;
    width: min(300px, calc(100vw - 44px));
    gap: 8px;
    border: 1px solid rgba(37, 211, 102, .25);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 10px;
}

.floating-whatsapp-menu[hidden] {
    display: none !important;
}

.floating-whatsapp-menu a {
    display: grid;
    gap: 2px;
    border-radius: 16px;
    background: #ecfff4;
    color: #126b38;
    padding: 12px 14px;
}

.floating-whatsapp-menu strong {
    font-size: .95rem;
}

.floating-whatsapp-menu span {
    color: #418b5f;
    font-size: .82rem;
    font-weight: 700;
}

@media (min-width: 921px) and (max-width: 1366px) {
    html {
        scroll-padding-top: 34px;
    }

    body {
        font-size: 13px;
    }

    .container {
        width: min(1080px, calc(100% - 46px));
    }

    .navbar {
        min-height: 50px;
    }

    .brand img {
        width: 92px;
    }

    .nav-links {
        gap: 12px;
        font-size: .8rem;
    }

    .btn {
        padding: 9px 15px;
    }

    .btn-small {
        padding: 6px 12px;
    }

    .hero-actions,
    .contact-actions {
        gap: 10px;
        margin-top: 16px;
    }

    .hero-copy p {
        font-size: .88rem;
    }

    .hero {
        padding: 28px 0;
    }

    .hero-grid {
        grid-template-columns: minmax(300px, .88fr) minmax(360px, 1.12fr);
        gap: 24px;
    }

    h1 {
        font-size: clamp(1.35rem, 2.25vw, 1.8rem);
    }

    .hero-copy .hero-center-name {
        font-size: clamp(1.7rem, 3.3vw, 2.45rem);
    }

    .hero-mural {
        min-height: 255px;
    }

    .section {
        padding: 32px 0;
        scroll-margin-top: 34px;
    }

    h2 {
        font-size: clamp(1.45rem, 2.35vw, 2rem);
    }

    h3 {
        font-size: .98rem;
    }

    .section-heading {
        margin-bottom: 16px;
    }

    .cards-grid,
    .products-grid,
    .promo-grid,
    .featured-products-grid,
    .team-grid {
        gap: 12px;
    }

    .service-card,
    .step-card {
        padding: 15px;
    }

    .service-photo {
        height: 110px;
        margin-bottom: 12px;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
        font-size: 1.35rem;
    }

    .product-card img,
    .product-photo-button img {
        height: 135px;
    }

    .product-content {
        padding: 13px;
    }

    .about-grid,
    .contact-grid {
        gap: 24px;
    }

    .about-panel,
    .contact-panel,
    .appointment-card,
    .suggestion-form {
        padding: 18px;
    }

    .trust-row {
        gap: 10px;
        margin-top: 16px;
    }

    .trust-row div,
    .trust-row a {
        padding: 12px;
    }

    .map-card iframe {
        height: 210px;
    }

    #equipo {
        padding-top: 24px;
        padding-bottom: 28px;
    }

    #equipo .section-heading {
        margin-bottom: 16px;
    }

    #equipo h2 {
        font-size: clamp(1.45rem, 2.6vw, 2.05rem);
    }

    #equipo .team-grid {
        gap: 12px;
    }

    #equipo .team-photo-button img {
        height: 132px;
    }

    #equipo .team-card div {
        padding: 11px 12px;
    }

    #equipo .team-card h3 {
        font-size: .98rem;
        margin-bottom: 3px;
    }

    #equipo .team-card span {
        margin-bottom: 6px;
        font-size: .72rem;
    }

    #equipo .team-card p {
        font-size: .82rem;
        line-height: 1.35;
    }

    #equipo .team-schedule,
    #equipo .team-insurance {
        margin-top: 7px;
        padding-top: 7px;
    }

    #equipo .team-schedule p,
    #equipo .team-insurance p {
        font-size: .76rem;
    }

    #equipo .team-bio-list ul,
    #equipo .team-insurance ul {
        gap: 2px 10px;
        font-size: .74rem;
    }

    #inicio,
    #nosotros,
    #servicios,
    #equipo,
    #farmacia,
    #atencion,
    #buzon,
    #contacto {
        scroll-margin-top: 34px;
    }
}

@media (min-width: 1367px) {
    .container {
        width: min(1180px, calc(100% - 64px));
    }

    .hero-grid {
        grid-template-columns: minmax(360px, .9fr) minmax(470px, 1.1fr);
        gap: 34px;
    }

    .hero-mural {
        min-height: 360px;
    }

    .cards-grid,
    .products-grid,
    .featured-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
        gap: 18px;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (min-width: 921px) and (max-width: 1180px), (min-width: 921px) and (max-height: 760px) {
    html {
        scroll-padding-top: 30px;
    }

    body {
        font-size: 12.5px;
    }

    .container {
        width: min(1160px, calc(100% - 46px));
    }

    .navbar {
        min-height: 46px;
    }

    .brand img {
        width: 82px;
    }

    .nav-links {
        gap: 10px;
        font-size: .76rem;
    }

    .btn {
        padding: 8px 13px;
    }

    .btn-small {
        padding: 5px 10px;
    }

    .hero {
        padding: 22px 0 24px;
    }

    .hero-grid {
        grid-template-columns: minmax(280px, .86fr) minmax(330px, 1.14fr);
        gap: 18px;
    }

    .hero-copy .hero-center-name {
        margin-bottom: 7px;
        font-size: clamp(1.45rem, 3vw, 2.05rem);
    }

    h1 {
        margin-bottom: 8px;
        font-size: clamp(1.22rem, 2.05vw, 1.55rem);
    }

    h2 {
        margin-bottom: 8px;
        font-size: clamp(1.28rem, 2.1vw, 1.72rem);
    }

    h3 {
        margin-bottom: 7px;
        font-size: .92rem;
    }

    .hero-copy p,
    .about-grid p,
    .story-copy p {
        font-size: .84rem;
        line-height: 1.5;
    }

    .hero-actions,
    .contact-actions {
        gap: 8px;
        margin-top: 12px;
    }

    .hero-mural {
        min-height: 220px;
        border-radius: 28px;
    }

    .carousel-control {
        width: 38px;
        height: 38px;
        font-size: 1.55rem;
    }

    .section {
        padding: 24px 0;
        scroll-margin-top: 30px;
    }

    .section-heading {
        margin-bottom: 12px;
    }

    .section-heading.split {
        gap: 18px;
    }

    .section-heading.split p {
        max-width: 340px;
        font-size: .84rem;
    }

    .cards-grid,
    .products-grid,
    .featured-products-grid,
    .promo-grid,
    .steps-grid,
    .team-grid {
        gap: 10px;
    }

    .cards-grid,
    .products-grid,
    .featured-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .service-card,
    .promo-card,
    .step-card {
        padding: 12px;
        border-radius: 20px;
    }

    .service-photo {
        height: 92px;
        margin-bottom: 10px;
        border-radius: 14px;
    }

    .service-icon {
        width: 34px;
        height: 34px;
        margin-bottom: 8px;
        border-radius: 13px;
        font-size: 1.15rem;
    }

    .service-card p,
    .service-team ul,
    .service-prices,
    .product-card p {
        font-size: .78rem;
        line-height: 1.45;
    }

    .featured-product-card {
        grid-template-rows: 118px 1fr;
        border-radius: 20px;
    }

    .featured-product-card .product-photo-button,
    .product-card img,
    .product-photo-button img {
        height: 118px;
    }

    .featured-product-card div,
    .product-content {
        gap: 7px;
        padding: 11px;
    }

    .featured-product-card h3,
    .product-card h3 {
        font-size: .88rem;
    }

    .featured-product-card p {
        min-height: 3.4em;
        font-size: .76rem;
        -webkit-line-clamp: 3;
    }

    .catalog-sticky-tools {
        padding: 10px 12px;
    }

    .product-search input {
        max-width: 420px;
        padding: 9px 12px;
    }

    .filter-btn {
        font-size: .7rem;
        padding: 5px 9px;
    }

    .product-stock,
    .product-category,
    .product-photo-button em {
        font-size: .68rem;
        padding: 4px 8px;
    }

    .about-grid,
    .contact-grid,
    .story-block {
        gap: 18px;
    }

    .about-panel,
    .contact-panel,
    .appointment-card,
    .suggestion-form,
    .story-block {
        padding: 16px;
        border-radius: 22px;
    }

    .trust-row {
        gap: 8px;
        margin-top: 12px;
    }

    .trust-row div,
    .trust-row a {
        padding: 10px;
        border-radius: 17px;
    }

    .story-visual {
        min-height: 270px;
        gap: 9px;
    }

    .story-gallery-center {
        min-height: 175px;
    }

    #equipo {
        padding-top: 20px;
        padding-bottom: 22px;
    }

    #equipo .team-photo-button img {
        height: 112px;
    }

    #equipo .team-card div {
        padding: 10px;
    }

    #equipo .team-card p,
    #equipo .team-schedule p,
    #equipo .team-insurance p,
    #equipo .team-bio-list ul,
    #equipo .team-insurance ul {
        font-size: .72rem;
        line-height: 1.32;
    }

    .map-card iframe {
        height: 190px;
    }

    #inicio,
    #nosotros,
    #servicios,
    #equipo,
    #farmacia,
    #atencion,
    #buzon,
    #contacto {
        scroll-margin-top: 30px;
    }
}

@media (max-width: 920px) {
    .container {
        width: min(720px, calc(100% - 36px));
    }

    .hero-grid,
    .about-grid,
    .story-block,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .suggestion-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 40px 0 46px;
    }

    .story-visual {
        min-height: 300px;
    }

    .story-gallery-center {
        min-height: 260px;
    }

    .hero-grid {
        gap: 26px;
    }

    .hero-copy,
    .section-heading,
    .section-heading.split,
    .contact-grid > div:first-child,
    .appointment-card {
        text-align: center;
    }

    .hero-copy p,
    .section-heading,
    .section-heading.split p {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-actions,
    .contact-actions {
        justify-content: center;
    }

    .call-options {
        right: 0;
        left: auto;
        text-align: left;
    }

    .hero-mural {
        max-width: 680px;
        min-height: 410px;
        margin: 0 auto;
    }

    .cards-grid,
    .products-grid,
    .featured-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .section-heading.split {
        display: block;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .appointment-card {
        display: block;
    }

    .appointment-actions {
        align-items: center;
        margin-top: 22px;
    }

    .appointment-list {
        margin-right: auto;
        margin-left: auto;
        text-align: left;
    }

    .contact-panel {
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 720px) {
    html {
        scroll-padding-top: 66px;
    }

    #destacados-farmacia {
        display: none;
    }

    body {
        font-size: 15px;
    }

    .container {
        width: min(100% - 28px, 560px);
    }

    .site-header {
        box-shadow: 0 10px 30px rgba(8, 67, 78, .06);
    }

    .navbar {
        min-height: 64px;
    }

    .brand img {
        width: 104px;
    }

    .mobile-pharmacy-link {
        position: relative;
        isolation: isolate;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        margin-left: auto;
        margin-right: 10px;
        padding: 8px 14px;
        border: 2px solid var(--teal);
        border-radius: 999px;
        color: var(--teal-dark);
        font-size: .88rem;
        font-weight: 900;
        line-height: 1;
        background: rgba(255, 255, 255, .86);
        box-shadow: 0 10px 26px rgba(8, 169, 185, .12);
        animation: catalogButtonPulse 1.9s ease-in-out infinite;
    }

    .mobile-pharmacy-link::after {
        position: absolute;
        inset: -50% auto -50% -60%;
        z-index: -1;
        width: 48%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .78), transparent);
        content: "";
        transform: rotate(18deg);
        animation: catalogButtonShine 2.7s ease-in-out infinite;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        right: 14px;
        left: 14px;
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: var(--white);
        box-shadow: var(--shadow);
        text-align: center;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 8px 10px;
        border-radius: 14px;
    }

    .nav-links a:hover {
        background: var(--soft);
    }

    .nav-links .btn {
        width: 100%;
    }

    .hero {
        padding: 34px 0 42px;
    }

    h1 {
        font-size: clamp(1.65rem, 7vw, 2.25rem);
        line-height: 1.05;
    }

    .hero-copy .hero-center-name {
        font-size: clamp(1.55rem, 7vw, 2.35rem);
    }

    h2 {
        font-size: clamp(1.8rem, 8vw, 2.35rem);
    }

    .hero-copy p {
        font-size: 1rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: min(100%, 340px);
        margin-right: auto;
        margin-left: auto;
    }

    .btn {
        width: 100%;
        padding: 12px 18px;
    }

    .call-choice,
    .call-choice .btn {
        width: 100%;
    }

    .call-options {
        position: static;
        margin-top: 8px;
        width: 100%;
    }

    .hero-mural {
        width: 100%;
        min-height: 0;
        aspect-ratio: 1 / 1;
        border-radius: 26px;
    }

    .mural-tile {
        height: 230px;
    }

    .mural-tile + .mural-tile {
        margin-top: 14px;
    }

    .carousel-control {
        width: 38px;
        height: 38px;
        font-size: 1.6rem;
    }

    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }

    .carousel-dots {
        bottom: 12px;
    }

    .section {
        padding: 42px 0;
    }

    #inicio,
    #nosotros,
    #servicios,
    #equipo,
    #farmacia,
    #atencion,
    #buzon,
    #contacto {
        scroll-margin-top: 66px;
    }

    .about-panel,
    .story-block,
    .step-card,
    .appointment-card,
    .map-card,
    .service-card,
    .product-card,
    .team-card,
    .contact-panel {
        border-radius: 22px;
    }

    .cards-grid,
    .products-grid,
    .promo-grid,
    .featured-products-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .trust-row {
        grid-template-columns: 1fr;
    }

    .story-block {
        padding: 20px;
    }

    .story-visual {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        min-height: 0;
    }

    .story-photo-main {
        grid-column: auto;
    }

    .story-gallery-center {
        grid-column: auto;
        min-height: 230px;
        aspect-ratio: 16 / 9;
    }

    .trust-row div,
    .trust-row a,
    .service-card,
    .step-card {
        text-align: center;
    }

    .service-icon,
    .step-card span {
        margin-right: auto;
        margin-left: auto;
    }

    .team-card img,
    .team-photo-button img {
        height: 260px;
    }

    .product-card img {
        height: 190px;
    }

    .product-search {
        max-width: none;
        text-align: left;
    }

    .catalog-sticky-tools {
        grid-template-columns: 1fr;
        gap: 10px;
        top: 74px;
        border-radius: 20px;
        padding: 12px;
    }

    .catalog-toolbar {
        gap: 6px;
        max-height: 66px;
        overflow-y: auto;
        padding-bottom: 2px;
    }

    .filter-btn {
        font-size: .7rem;
        padding: 6px 9px;
    }

    .catalog-preview {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }

    .catalog-preview .btn {
        width: 100%;
    }

    .product-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .appointment-card {
        padding: 22px;
    }

    .appointment-actions {
        min-width: 0;
    }

    .appointment-list {
        grid-template-columns: 1fr;
    }

    .suggestion-form {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .map-card iframe {
        height: 250px;
    }

    .footer-grid {
        display: block;
        text-align: center;
    }

    .footer-grid a {
        display: inline-block;
        margin-top: 10px;
    }
}

@media (max-width: 420px) {
    .container {
        width: min(100% - 22px, 390px);
    }

    h1 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .hero-copy .hero-center-name {
        font-size: clamp(1.35rem, 6.2vw, 1.9rem);
    }

    .eyebrow {
        font-size: .7rem;
    }

    .hero-mural {
        aspect-ratio: 4 / 5;
    }

    .team-card img,
    .team-photo-button img {
        height: 230px;
    }

    .product-card img {
        height: 170px;
    }

    .image-lightbox {
        padding: 14px;
    }

    .image-lightbox img {
        border-radius: 18px;
    }
}
