/* ==========================================================================
   Farmacia Blanco — estilos del sitio
   Sin frameworks ni dependencias externas. Pensado para funcionar en
   navegadores actuales y también en celulares con algunos años encima.
   ========================================================================== */

/* ---------- Tipografías (alojadas en el propio sitio) ---------- */
@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/archivo.woff2") format("woff2");
}

/* ---------- Variables ---------- */
:root {
    color-scheme: light;

    /* Colores del logo: verde #00603A y gris #677078 */
    --verde-950: #012616;
    --verde-900: #01331f;
    --verde-800: #024327;
    --verde-700: #00603a;
    --verde-600: #0a7a4a;
    --verde-500: #1b9a5d;
    --verde-300: #86d1a8;
    --verde-200: #bfe3cf;
    --verde-100: #dcefe4;
    --verde-50: #eef7f2;
    --gris-logo: #677078;

    --tinta: #23282a;
    --texto: #3d4448;
    --suave: #5f686f;
    --borde: #e2e5e6;
    --borde-fuerte: #ccd2d4;
    --fondo: #f5f6f5;
    --blanco: #ffffff;

    --ambar-fondo: #fff7e6;
    --ambar-borde: #f1d9a4;
    --ambar-texto: #6b4500;
    --ambar-icono: #b7791f;
    --rojo-fondo: #fdeceb;
    --rojo-texto: #a1281e;
    --whatsapp: #25d366;

    --fuente-texto: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --fuente-titulos: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --radio: 16px;
    --radio-grande: 22px;
    --sombra-suave: 0 1px 2px rgba(16, 32, 25, 0.05), 0 4px 12px -6px rgba(16, 32, 25, 0.12);
    --sombra-media: 0 2px 4px rgba(16, 32, 25, 0.04), 0 14px 32px -14px rgba(16, 32, 25, 0.22);
    --sombra-grande: 0 4px 10px rgba(16, 32, 25, 0.04), 0 28px 60px -24px rgba(16, 32, 25, 0.3);

    --alto-cabecera: 68px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--alto-cabecera) + 16px);
}

body {
    margin: 0;
    background-color: var(--fondo);
    color: var(--texto);
    font-family: var(--fuente-texto);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
svg,
iframe {
    max-width: 100%;
}

img {
    display: block;
    height: auto;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--tinta);
    font-family: var(--fuente-titulos);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

h3 {
    font-family: var(--fuente-texto);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--verde-700);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--verde-800);
}

strong {
    font-weight: 700;
    color: var(--tinta);
}

/* Que los números de teléfono no se corten en dos renglones */
a[href^="tel:"],
a[href^="https://wa.me/"] strong,
.dato__principal {
    white-space: nowrap;
}

::-moz-selection {
    background: var(--verde-100);
    color: var(--tinta);
}

::selection {
    background: var(--verde-100);
    color: var(--tinta);
}

/* Foco visible para quien navega con teclado */
a:focus,
button:focus,
summary:focus {
    outline: 3px solid var(--verde-500);
    outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
summary:focus:not(:focus-visible) {
    outline: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.saltar {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 200;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--verde-900);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.saltar:focus {
    top: 12px;
    color: #fff;
}

.icono {
    display: inline-block;
    flex-shrink: 0;
    width: 1.25em;
    height: 1.25em;
    vertical-align: -0.22em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contenedor {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}

.contenedor--angosto {
    max-width: 840px;
}

.centrado {
    margin-top: 40px;
    text-align: center;
}

/* ---------- Botones ---------- */
.btn {
    display: -webkit-inline-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75em 1.35em;
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn .icono {
    margin-right: 0.55em;
}

.btn .icono--fin {
    margin-right: 0;
    margin-left: 0.55em;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primario {
    background-color: var(--verde-700);
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 8px 18px -8px rgba(0, 96, 58, 0.6);
}
.btn--primario:hover {
    background-color: var(--verde-800);
    color: #fff;
}

.btn--secundario {
    background-color: #fff;
    border-color: var(--borde-fuerte);
    color: var(--tinta);
}
.btn--secundario:hover {
    border-color: var(--verde-700);
    color: var(--verde-800);
}

.btn--claro {
    background-color: #fff;
    color: var(--verde-900);
}
.btn--claro:hover {
    background-color: var(--verde-50);
    color: var(--verde-900);
}

.btn--grande {
    min-height: 56px;
    padding: 0.9em 1.6em;
    font-size: 1.0625rem;
}

.btn--chico {
    min-height: 42px;
    padding: 0.55em 1.05em;
    font-size: 0.9375rem;
}

.btn--bloque {
    display: flex;
    width: 100%;
}

.botones {
    display: flex;
    flex-wrap: wrap;
    margin: -6px;
}

.botones > .btn {
    margin: 6px;
}

@media (max-width: 479px) {
    .botones > .btn {
        flex: 1 1 100%;
    }
    .centrado .btn,
    .resenas__caja .btn {
        display: flex;
        width: 100%;
    }
}

.enlace-flecha {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    text-decoration: none;
}
.enlace-flecha .icono {
    width: 1.1em;
    height: 1.1em;
    margin-left: 0.35em;
    transition: transform 0.2s ease;
}
.enlace-flecha:hover .icono {
    transform: translateX(3px);
}

/* ---------- Estado abierto / cerrado ---------- */
.estado {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0.3em 0.8em 0.3em 0.65em;
    border-radius: 999px;
    background: var(--verde-50);
    color: var(--verde-800);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.estado[hidden] {
    display: none;
}

.estado__punto {
    position: relative;
    width: 8px;
    height: 8px;
    margin-right: 0.5em;
    border-radius: 50%;
    background: currentColor;
}

.estado--abierto .estado__punto {
    background: var(--verde-500);
}

.estado--abierto .estado__punto::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--verde-500);
    -webkit-animation: latido 2s ease-out infinite;
    animation: latido 2s ease-out infinite;
}

.estado--pronto {
    background: var(--ambar-fondo);
    color: var(--ambar-texto);
}
.estado--pronto .estado__punto {
    background: var(--ambar-icono);
}

.estado--cerrado {
    background: var(--rojo-fondo);
    color: var(--rojo-texto);
}

.estado--claro {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.estado--claro.estado--cerrado .estado__punto {
    background: #ff8a80;
}
.estado--claro.estado--pronto .estado__punto {
    background: #ffc65c;
}

@-webkit-keyframes latido {
    0% { -webkit-transform: scale(1); opacity: 0.7; }
    100% { -webkit-transform: scale(2.6); opacity: 0; }
}
@keyframes latido {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2.6); opacity: 0; }
}

/* ---------- Cabecera ---------- */
.cabecera {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--borde);
    transition: box-shadow 0.25s ease;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .cabecera {
        background: rgba(255, 255, 255, 0.86);
        -webkit-backdrop-filter: saturate(160%) blur(14px);
        backdrop-filter: saturate(160%) blur(14px);
    }
}

.cabecera.con-sombra {
    box-shadow: 0 6px 20px -12px rgba(16, 32, 25, 0.35);
}

.cabecera__fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--alto-cabecera);
}

/* Marca / logo (las variables permiten la versión clara del pie) */
.marca {
    --logo-verde: #00603a;
    --logo-gris: #677078;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.marca__logo {
    display: block;
    width: 133px;
    height: 45px;
}

.logo-verde {
    fill: #00603a;
    fill: var(--logo-verde, #00603a);
}

.logo-gris {
    fill: #677078;
    fill: var(--logo-gris, #677078);
}

.marca--clara {
    --logo-verde: #86d1a8;
    --logo-gris: #ffffff;
}

/* Navegación de escritorio */
.nav {
    display: none;
}

.nav__lista {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav__lista a {
    position: relative;
    display: block;
    padding: 8px 12px;
    color: var(--texto);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav__lista a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--verde-600);
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    transition: -webkit-transform 0.25s ease;
    transition: transform 0.25s ease;
}

.nav__lista a:hover {
    color: var(--verde-700);
}

.nav__lista a:hover::after {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}

/* WhatsApp de la cabecera: se oculta mientras se ve el botón de la portada */
.cabecera__wa {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: 260px;
    margin-left: auto;
    margin-right: 10px;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-width 0.35s ease, margin 0.35s ease, opacity 0.25s ease, visibility 0s;
}

.cta-oculto .cabecera__wa {
    max-width: 0;
    margin-right: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-width 0.35s ease, margin 0.35s ease, opacity 0.25s ease, visibility 0s linear 0.35s;
}

.cabecera__cta {
    display: none;
    white-space: nowrap;
    box-shadow: none;
}

.cabecera__wa-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--verde-700);
    color: #fff;
    -webkit-tap-highlight-color: transparent;
}

.cabecera__wa-icono:hover {
    background: var(--verde-800);
    color: #fff;
}

.cabecera__wa-icono .icono {
    width: 24px;
    height: 24px;
}

.menu-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--borde-fuerte);
    border-radius: 12px;
    background: #fff;
    color: var(--tinta);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.menu-boton .icono {
    width: 24px;
    height: 24px;
}

.menu-boton__cerrar,
.menu-boton[aria-expanded="true"] .menu-boton__abrir {
    display: none;
}

.menu-boton[aria-expanded="true"] .menu-boton__cerrar {
    display: inline-block;
}

/* Menú móvil desplegable */
.menu-movil {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--alto-cabecera));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-bottom: 1px solid var(--borde);
    box-shadow: 0 24px 40px -20px rgba(16, 32, 25, 0.35);
}

.menu-movil[hidden] {
    display: none;
}

.menu-movil__lista {
    margin: 0;
    padding: 8px 0;
    list-style: none;
}

.menu-movil__lista a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--borde);
    color: var(--tinta);
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
}

.menu-movil__lista a:hover {
    color: var(--verde-700);
}

.menu-movil__acciones {
    padding: 16px 0 24px;
}

.menu-movil__acciones .btn {
    display: flex;
    width: 100%;
}

.menu-movil__acciones .btn + .btn {
    margin-top: 10px;
}

@media (min-width: 640px) {
    .cabecera__cta {
        display: inline-flex;
    }
    .cabecera__wa-icono {
        display: none;
    }
}

@media (min-width: 800px) {
    :root {
        --alto-cabecera: 76px;
    }
    .marca__logo {
        width: 151px;
        height: 51px;
    }
}

@media (min-width: 1100px) {
    .nav {
        display: block;
        margin-left: auto;
    }
    .cabecera__wa {
        margin-left: 16px;
        margin-right: 0;
    }
    .cta-oculto .cabecera__wa {
        margin-left: 0;
    }
    .menu-boton,
    .menu-movil {
        display: none !important;
    }
}

/* ---------- Portada ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 48px 0 64px;
    background:
        radial-gradient(ellipse 60% 70% at 88% 18%, rgba(27, 154, 93, 0.13), rgba(27, 154, 93, 0) 70%),
        radial-gradient(ellipse 50% 60% at 0% 100%, rgba(27, 154, 93, 0.07), rgba(27, 154, 93, 0) 70%),
        var(--fondo);
}

/* Patrón sutil de cruces de farmacia */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M20 15h4v5h5v4h-5v5h-4v-5h-5v-4h5z' fill='%2300603A' fill-opacity='.07'/%3E%3C/svg%3E");
    -webkit-mask-image: linear-gradient(to left, #000 20%, transparent);
    mask-image: linear-gradient(to left, #000 20%, transparent);
    pointer-events: none;
}

.hero__grilla {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-row-gap: 40px;
    row-gap: 40px;
    align-items: center;
}

.etiqueta {
    display: inline-flex;
    align-items: center;
    margin: 0 0 20px;
    padding: 6px 14px 6px 10px;
    border: 1px solid var(--borde);
    border-radius: 999px;
    background: #fff;
    color: var(--verde-800);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: var(--sombra-suave);
}

.etiqueta__cruz {
    width: 13px;
    height: 13px;
    margin-right: 9px;
    background:
        linear-gradient(var(--verde-500), var(--verde-500)) center / 100% 34% no-repeat,
        linear-gradient(var(--verde-500), var(--verde-500)) center / 34% 100% no-repeat;
}

.hero h1 {
    max-width: 14em;
    font-size: 2.5rem;
    font-size: clamp(2.35rem, 1.3rem + 4vw, 4.1rem);
    line-height: 1.06;
    letter-spacing: -0.022em;
    text-wrap: balance;
}

.hero__bajada {
    max-width: 34em;
    margin: 20px 0 32px;
    font-size: 1.125rem;
    line-height: 1.6;
}

.hero__ventajas {
    display: flex;
    flex-wrap: wrap;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.hero__ventajas li {
    display: inline-flex;
    align-items: center;
    margin: 10px 22px 0 0;
    color: var(--tinta);
    font-size: 0.9375rem;
    font-weight: 600;
}

.hero__ventajas .icono {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    padding: 4px;
    border-radius: 50%;
    background: var(--verde-100);
    color: var(--verde-700);
    stroke-width: 3;
}

/* Tarjeta de horarios y contacto */
.tarjeta-info {
    position: relative;
    padding: 24px;
    border: 1px solid var(--borde);
    border-radius: var(--radio-grande);
    background: #fff;
    box-shadow: var(--sombra-grande);
}

.tarjeta-info::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 24px;
    right: 24px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--verde-700), var(--verde-500));
}

.tarjeta-info__cabeza {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin: -6px -6px 12px;
}

.tarjeta-info__cabeza > * {
    margin: 6px;
}

.tarjeta-info__titulo {
    display: inline-flex;
    align-items: center;
    font-family: var(--fuente-texto);
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0;
}

.tarjeta-info__titulo .icono {
    margin-right: 8px;
    color: var(--verde-700);
}

.tarjeta-info__nota {
    margin: 10px 0 8px;
    color: var(--suave);
    font-size: 0.8125rem;
}

.tarjeta-info__contacto {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tarjeta-info__contacto li {
    display: flex;
    align-items: center;
    padding: 14px 0 0;
    margin-top: 14px;
    border-top: 1px solid var(--borde);
}

.tarjeta-info__contacto a {
    color: var(--tinta);
    text-decoration: none;
}

.tarjeta-info__contacto a:hover strong {
    color: var(--verde-700);
}

.tarjeta-info__contacto strong {
    font-size: 1.0625rem;
    transition: color 0.2s ease;
}

.tarjeta-info__contacto small {
    display: block;
    color: var(--suave);
    font-size: 0.8125rem;
    line-height: 1.4;
}

.tarjeta-info__icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    margin-right: 14px;
    border-radius: 12px;
    background: var(--verde-50);
    color: var(--verde-700);
}


/* Tabla de horarios */
.horarios {
    margin: 0;
}

.horarios__fila {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 10px;
}

.horarios__fila + .horarios__fila {
    margin-top: 2px;
}

.horarios dt {
    color: var(--tinta);
    font-weight: 600;
}

.horarios dd {
    margin: 0 0 0 16px;
    color: var(--texto);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.horarios__fila.es-hoy {
    background: var(--verde-50);
}

.horarios__fila.es-hoy dt::after {
    content: "Hoy";
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--verde-700);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
    vertical-align: 2px;
}

@media (max-width: 419px) {
    .horarios {
        font-size: 1rem;
    }
    .horarios__fila {
        padding: 8px 10px;
    }
    .horarios__fila.es-hoy dt::after {
        margin-left: 6px;
        padding: 2px 6px;
    }
    .horarios dd {
        margin-left: 10px;
    }
    .tarjeta-info {
        padding: 22px 18px;
    }
}

@media (max-width: 359px) {
    .horarios__fila.es-hoy dt::after {
        display: none;
    }
}

.horarios--compacto .horarios__fila {
    margin-left: -10px;
    margin-right: -10px;
    padding: 6px 10px;
}

@media (min-width: 640px) {
    .tarjeta-info {
        padding: 30px;
    }
    .hero__bajada {
        font-size: 1.25rem;
    }
}

@media (min-width: 960px) {
    .hero {
        padding: 80px 0 96px;
    }
    .hero__grilla {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
        grid-column-gap: 64px;
        column-gap: 64px;
    }
}

/* ---------- Franja de promoción ---------- */
.promo {
    background: var(--verde-50);
    border-top: 1px solid var(--verde-100);
    border-bottom: 1px solid var(--verde-100);
}

.promo__fila {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding-top: 14px;
    padding-bottom: 14px;
    text-align: center;
}

.promo__icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 12px;
    border-radius: 50%;
    background: var(--verde-700);
    color: #fff;
}

.promo__icono .icono {
    width: 18px;
    height: 18px;
}

.promo__texto {
    margin: 4px 0;
    color: var(--texto);
}

.promo__texto strong {
    color: var(--verde-800);
}

/* ---------- Secciones ---------- */
.seccion {
    padding: 72px 0;
}

.seccion--clara {
    background: #fff;
}

.seccion--oscura {
    position: relative;
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, rgba(27, 154, 93, 0.25), rgba(27, 154, 93, 0) 70%),
        var(--verde-900);
    color: #c8ded0;
}

.seccion--oscura h2,
.seccion--oscura h3 {
    color: #fff;
}

.seccion__encabezado {
    max-width: 680px;
    margin: 0 auto 44px;
    text-align: center;
}

.seccion__encabezado h2,
.seccion h2 {
    font-size: 2rem;
    font-size: clamp(1.9rem, 1.35rem + 2vw, 2.75rem);
    text-wrap: balance;
}

.seccion__bajada {
    margin: 14px 0 0;
    color: var(--suave);
    font-size: 1.0625rem;
}

.sobretitulo {
    margin: 0 0 12px;
    color: var(--verde-700);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.seccion--oscura .sobretitulo {
    color: var(--verde-300);
}

@media (min-width: 960px) {
    .seccion {
        padding: 104px 0;
    }
    .seccion__encabezado {
        margin-bottom: 56px;
    }
}

/* ---------- Productos ---------- */
.grilla-productos {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-gap: 14px;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.producto {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-column-gap: 16px;
    column-gap: 16px;
    height: 100%;
    padding: 20px;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    background: #fff;
    color: var(--texto);
    box-shadow: var(--sombra-suave);
}

.producto__icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-row: 1 / span 2;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--verde-50);
    color: var(--verde-700);
}

.producto__icono .icono {
    width: 24px;
    height: 24px;
}

.producto h3 {
    margin: 2px 0 4px;
}

.producto p {
    margin: 0;
    color: var(--suave);
    font-size: 0.96875rem;
    line-height: 1.55;
}

@media (min-width: 560px) {
    .grilla-productos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .producto {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 26px;
    }
    .producto h3 {
        margin: 18px 0 6px;
    }
}

@media (min-width: 960px) {
    .grilla-productos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-gap: 20px;
        gap: 20px;
    }
}

/* ---------- Servicios ---------- */
.servicios {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-row-gap: 40px;
    row-gap: 40px;
}

.servicios__intro p {
    max-width: 30em;
    margin: 16px 0 0;
    font-size: 1.0625rem;
}

.servicios__lista {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-gap: 14px;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.servicio {
    display: flex;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radio);
    background: rgba(255, 255, 255, 0.05);
}

.servicio__icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    margin-right: 16px;
    border-radius: 13px;
    background: rgba(143, 216, 169, 0.14);
    color: var(--verde-300);
}

.servicio__icono .icono {
    width: 23px;
    height: 23px;
}

.servicio h3 {
    margin: 2px 0 6px;
}

.servicio p {
    margin: 0;
    font-size: 0.96875rem;
    line-height: 1.55;
}

@media (min-width: 640px) {
    .servicios__lista {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .servicios {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        grid-column-gap: 64px;
        column-gap: 64px;
        align-items: center;
    }
}

/* ---------- Cómo pedir ---------- */
.pasos {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-gap: 16px;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.paso {
    position: relative;
    padding: 28px;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    background: #fff;
    box-shadow: var(--sombra-suave);
    overflow: hidden;
}

.paso__icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--verde-700);
    color: #fff;
    box-shadow: 0 0 0 6px var(--verde-50);
}

.paso__icono .icono {
    width: 25px;
    height: 25px;
}

.paso__numero {
    position: absolute;
    top: 6px;
    right: 22px;
    color: var(--verde-100);
    font-family: var(--fuente-titulos);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
}

.paso h3 {
    position: relative;
    margin-bottom: 8px;
    font-size: 1.1875rem;
}

.paso p {
    position: relative;
    margin: 0;
    color: var(--suave);
}

@media (min-width: 800px) {
    .pasos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-gap: 24px;
        gap: 24px;
    }
    .paso {
        padding: 32px;
    }
}

/* ---------- Obras sociales ---------- */
/* Cada cobertura ocupa dos medias columnas, así la última fila se puede centrar si queda incompleta */
.coberturas {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-gap: 12px;
    gap: 12px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.cobertura {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 132px;
    padding: 22px 12px 14px;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    background: #fff;
    box-shadow: var(--sombra-suave);
    text-align: center;
    grid-column: span 2;
}

.cobertura:nth-child(2n+1):last-child {
    grid-column: 2 / span 2;
}

/* Cada logo tiene su ancho para que todos se vean de un tamaño parecido */
.cobertura__logo {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: auto;
    margin-bottom: auto;
}

.cobertura__logo--apross { width: 112px; }
.cobertura__logo--osde { width: 88px; }
.cobertura__logo--swiss { width: 118px; }
.cobertura__logo--omint { width: 106px; }
.cobertura__logo--sancor { width: 140px; }
.cobertura__logo--prevencion { width: 152px; }
.cobertura__logo--galeno { width: 122px; }
.cobertura__logo--medife { width: 116px; }
.cobertura__logo--cpce { width: 66px; }

.cobertura__nombre {
    margin-top: 14px;
    color: var(--suave);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
}

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

.obras__consulta,
.solidario {
    padding: 24px;
    border-radius: var(--radio-grande);
}

.obras__consulta {
    border: 1px solid var(--borde);
    background: var(--fondo);
}

.aviso {
    display: flex;
    align-items: flex-start;
    margin: 0 0 14px;
    padding: 14px 16px;
    border: 1px solid var(--ambar-borde);
    border-radius: 12px;
    background: var(--ambar-fondo);
    color: var(--ambar-texto);
    font-size: 0.96875rem;
}

.aviso .icono {
    margin: 1px 10px 0 0;
    color: var(--ambar-icono);
}

.aviso strong {
    color: inherit;
}

.obras__nota {
    margin: 0;
    color: var(--suave);
    font-size: 0.96875rem;
}

.solidario {
    display: flex;
    align-items: flex-start;
    border: 1px solid var(--verde-100);
    background: var(--verde-50);
}

.solidario__icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    margin-right: 16px;
    border-radius: 50%;
    background: var(--verde-700);
    color: #fff;
}

.solidario__icono .icono {
    width: 24px;
    height: 24px;
}

.solidario h3 {
    margin: 4px 0 6px;
}

.solidario p {
    margin: 0 0 12px;
}

@media (max-width: 419px) {
    .obras__consulta,
    .solidario {
        padding: 20px 18px;
    }
    .solidario {
        flex-direction: column;
    }
    .solidario__icono {
        margin: 0 0 14px;
    }
    .btn {
        padding-left: 1.1em;
        padding-right: 1.1em;
    }
}

@media (min-width: 720px) {
    .coberturas {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        grid-gap: 16px;
        gap: 16px;
    }
    .cobertura {
        min-height: 148px;
    }
    .cobertura:nth-child(2n+1):last-child {
        grid-column: auto / span 2;
    }
    .cobertura:nth-child(4n+1):nth-last-child(3) {
        grid-column: 2 / span 2;
    }
    .cobertura:nth-child(4n+1):nth-last-child(2) {
        grid-column: 3 / span 2;
    }
    .cobertura:nth-child(4n+1):last-child {
        grid-column: 4 / span 2;
    }
}

@media (min-width: 860px) {
    .obras {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-gap: 24px;
        gap: 24px;
    }
    .obras__consulta,
    .solidario {
        padding: 28px 32px;
    }
}

/* ---------- Nosotros ---------- */
.nosotros {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-row-gap: 40px;
    row-gap: 40px;
    align-items: center;
}

.nosotros__foto {
    margin: 0;
}

.nosotros__marco {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    padding: 10px;
    border: 1px solid var(--borde);
    border-radius: var(--radio-grande);
    background: #fff;
    box-shadow: var(--sombra-grande);
}

.nosotros__marco img {
    width: 100%;
    border-radius: 14px;
}

.nosotros__sello {
    position: absolute;
    left: -6px;
    bottom: 26px;
    margin: 0;
    padding: 10px 18px;
    border-radius: 14px;
    background: var(--verde-800);
    color: #fff;
    line-height: 1;
    text-align: center;
    box-shadow: var(--sombra-media);
}

.nosotros__sello small {
    display: block;
    margin-bottom: 4px;
    color: var(--verde-200);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nosotros__sello strong {
    display: block;
    color: #fff;
    font-family: var(--fuente-titulos);
    font-size: 1.75rem;
}

.nosotros__foto figcaption {
    max-width: 560px;
    margin: 14px auto 0;
    color: var(--suave);
    font-size: 0.875rem;
    text-align: center;
}

.nosotros__texto h2 {
    margin-bottom: 20px;
}

.datos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-gap: 12px;
    gap: 12px;
    margin: 32px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--borde);
}

.datos__item {
    display: flex;
    flex-direction: column-reverse;
}

.datos dd {
    margin: 0 0 6px;
    color: var(--verde-800);
    font-family: var(--fuente-titulos);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}

.datos dt {
    color: var(--suave);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
}

@media (min-width: 480px) {
    .datos dd {
        font-size: 2.1rem;
    }
}

@media (min-width: 960px) {
    .nosotros {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-column-gap: 72px;
        column-gap: 72px;
    }
    .nosotros__sello {
        left: -18px;
    }
}

/* ---------- Reseñas ---------- */
.resenas {
    padding: 0 0 72px;
}

.resenas__caja {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-row-gap: 18px;
    row-gap: 18px;
    justify-items: center;
    padding: 32px 24px;
    border: 1px solid var(--borde);
    border-radius: var(--radio-grande);
    background: #fff;
    text-align: center;
    box-shadow: var(--sombra-suave);
}

.resenas__estrellas {
    display: flex;
    color: #f4b400;
}

.resenas__estrellas .icono {
    width: 26px;
    height: 26px;
}

.resenas__texto h2 {
    margin-bottom: 6px;
    font-size: 1.6rem;
}

.resenas__texto p {
    margin: 0;
    color: var(--suave);
}

@media (min-width: 860px) {
    .resenas__caja {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-column-gap: 32px;
        column-gap: 32px;
        align-items: center;
        justify-items: start;
        padding: 32px 40px;
        text-align: left;
    }
}

@media (min-width: 960px) {
    .resenas {
        padding-bottom: 104px;
    }
}

/* ---------- Preguntas frecuentes ---------- */
.faq {
    border-top: 1px solid var(--borde);
}

.faq__item {
    border-bottom: 1px solid var(--borde);
}

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 4px;
    color: var(--tinta);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::marker {
    content: "";
}

.faq__item summary:hover {
    color: var(--verde-700);
}

.faq__item summary .icono {
    width: 22px;
    height: 22px;
    margin-left: 16px;
    color: var(--verde-700);
    transition: -webkit-transform 0.25s ease;
    transition: transform 0.25s ease;
}

.faq__item[open] summary .icono {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.faq__respuesta {
    padding: 0 40px 22px 4px;
}

.faq__respuesta p {
    margin: 0;
}

.faq__mas {
    margin: 28px 0 0;
    color: var(--suave);
    text-align: center;
}

.faq__mas a {
    font-weight: 700;
}

/* ---------- Contacto ---------- */
.contacto {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-row-gap: 32px;
    row-gap: 32px;
}

.datos-contacto {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dato {
    display: flex;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--borde);
}

.dato:first-child {
    padding-top: 0;
}

.dato:last-child {
    border-bottom: 0;
}

.dato > div {
    -webkit-box-flex: 1;
    flex: 1 1 auto;
    min-width: 0;
}

.dato__icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-right: 16px;
    border-radius: 12px;
    background: var(--verde-50);
    color: var(--verde-700);
}

.dato__icono--wa {
    color: #1a9e4f;
}

.dato h3 {
    margin: 0 0 4px;
    color: var(--suave);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dato p {
    margin: 0 0 6px;
    color: var(--tinta);
    font-weight: 500;
}

.dato__principal {
    color: var(--tinta);
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.dato__principal:hover {
    color: var(--verde-700);
}

.dato__qr,
.dato__qr-texto {
    display: none;
}

.dato__correo {
    font-weight: 700;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.mapa {
    position: relative;
    height: 340px;
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid var(--borde);
    border-radius: var(--radio-grande);
    background: var(--verde-50);
    box-shadow: var(--sombra-media);
}

.mapa iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (min-width: 960px) {
    .contacto {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        grid-column-gap: 56px;
        column-gap: 56px;
        align-items: start;
    }
    .contacto__mapa {
        position: -webkit-sticky;
        position: sticky;
        top: calc(var(--alto-cabecera) + 24px);
    }
    .mapa {
        height: 480px;
    }
}

@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
    .dato__qr {
        display: block;
        flex-shrink: 0;
        margin-left: 16px;
        padding: 5px;
        border: 1px solid var(--borde);
        border-radius: 10px;
        background: #fff;
    }
    .dato .dato__qr-texto {
        display: block;
        margin: 6px 0 0;
        color: var(--suave);
        font-size: 0.875rem;
        font-weight: 400;
    }
}

/* ---------- Pie de página ---------- */
.pie {
    padding-top: 64px;
    background: var(--verde-950);
    color: #b5cdbf;
    font-size: 0.96875rem;
}

.pie__grilla {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-gap: 36px;
    gap: 36px;
}

.pie__marca p {
    max-width: 22em;
    margin: 18px 0 0;
}

.pie__nav ul {
    display: grid;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    grid-template-columns: repeat(2, minmax(0, max-content));
    grid-column-gap: 48px;
    column-gap: 48px;
    grid-row-gap: 10px;
    row-gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pie__nav a,
.pie__legal a {
    color: #d9e8df;
    text-decoration: none;
}

.pie__nav a:hover,
.pie__legal a:hover {
    color: #fff;
    text-decoration: underline;
}

.pie__legal {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 22px;
    padding-bottom: 28px;
    color: #8fb09d;
    font-size: 0.8125rem;
}

.pie__legal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    left: max(20px, env(safe-area-inset-left));
    right: max(20px, env(safe-area-inset-right));
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.pie__legal p {
    margin: 4px 24px 4px 0;
}

.pie__legal p:last-child {
    margin-right: 0;
}

@media (min-width: 760px) {
    .pie__grilla {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }
    .pie__nav ul {
        grid-template-columns: repeat(2, max-content);
        column-gap: 64px;
    }
}

/* ---------- Animación de aparición (solo si hay JavaScript) ---------- */
.anim .revelar {
    opacity: 0;
    -webkit-transform: translateY(18px);
    transform: translateY(18px);
    transition: opacity 0.6s ease, -webkit-transform 0.6s ease;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim .revelar.visible {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        -webkit-animation: none !important;
        animation: none !important;
        transition: none !important;
    }
    .anim .revelar {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Impresión ---------- */
@media print {
    .nav,
    .cabecera__cta,
    .menu-boton,
    .menu-movil,
    .mapa,
    .dato__qr,
    .botones,
    .centrado {
        display: none !important;
    }
    body,
    .hero,
    .seccion--oscura {
        background: #fff !important;
        color: #000;
    }
    .cabecera {
        position: static;
    }
    .anim .revelar {
        opacity: 1;
        transform: none;
    }
    .seccion--oscura h2,
    .seccion--oscura h3 {
        color: #000;
    }
}

/* ---------- Página 404 ---------- */
.pagina-error {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 48px 0;
    background:
        radial-gradient(ellipse 60% 70% at 88% 18%, rgba(27, 154, 93, 0.13), rgba(27, 154, 93, 0) 70%),
        var(--fondo);
}

.pagina-error__caja {
    max-width: 640px;
}

.pagina-error .marca {
    margin-bottom: 48px;
}

.pagina-error .marca img {
    width: 151px;
    height: auto;
}

.pagina-error h1 {
    margin-bottom: 16px;
    font-size: 2.25rem;
    font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem);
}

.pagina-error h1 + p {
    margin-bottom: 32px;
    font-size: 1.125rem;
}

/* Celulares muy angostos (320 px) */
@media (max-width: 359px) {
    .btn {
        font-size: 0.9375rem;
    }
    .btn .icono--fin {
        display: none;
    }
    .obras__consulta,
    .solidario {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 419px) {
    .resenas__caja {
        padding: 28px 16px;
    }
}

.pie__lema {
    margin: 14px 0 0;
    color: var(--verde-300);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
