/* =========================================================
   BASE
========================================================= */
:root {
    --bg: #ffffff;
    --soft: #f8fafc;

    --text: #0f172a;
    --muted: #64748b;

    --border: #e5e7eb;

    --primary: #0586c8;
    --primary-600: #b1d0e1;

    --accent: #66c251;
    --accent-600: #a3c36f;

    --resaltado: #f43f5e;
    --highlighter: #fef08a;
    --highlighter-green: #b8ff7a7c;

    --background: rgb(14, 42, 73);
    --hover-bg: rgba(14, 42, 73, 0.85);
    --hover-border: #0b223a;
    --hover-text: #a4ff7a;
    --hover-accent: #074570;
    --hover-accent-bg: #a4ff7a;

    --shadow: 0 10px 25px rgba(2, 6, 23, 0.08);
    --shadow2: 0 18px 50px rgba(2, 6, 23, 0.12);

    --radius: 18px;
    --radius-sm: 14px;

    --max: 1200px;
    --header-h: 78px;

    --font: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
        sans-serif;

    --nav-offset: 90px;

    /* Reveal */
    --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --reveal-dur: 2500ms;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: var(--nav-offset);
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    color: inherit;
}

h2 {
    font-weight: 900;
    text-transform: uppercase;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 2rem;
}

.main {
    min-height: 60vh;
}

.section {
    padding: 72px 0;
    background: transparent;
}

.section--soft {
    background: linear-gradient(180deg, #64748bab, var(--soft));
}

.section__head {
    margin-bottom: 1rem;
}

.section__head h2 {
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.section__head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    max-width: 64ch;
}

/* =========================================================
BOTONES
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border-radius: 999px;
    padding: 12px 18px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.01em;

    border: 1px solid transparent;
    box-shadow: none;
    transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease,
        color 0.2s ease;
    cursor: pointer;
}

.btn--primary {
    background: var(--primary-600);
    color: var(--text);
    box-shadow: var(--shadow);
}

.btn--primary:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

.btn--accent {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow);
}

.btn--accent:hover {
    background: var(--accent-600);
    transform: translateY(-1px);
    color: #074570;
}

.btn--ghost {
    background: transparent;
    border-color: var(--border);
    color: #fff;
}

.btn--ghost:hover {
    transform: translateY(-1px);
    border-color: var(--border);
    color: var(--primary-600);
}

/* =========================================================
     WHATSAPP FLOAT
  ========================================================= */
.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;

    display: flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 12px;
    box-shadow: var(--shadow2);
}

.wa-float img {
    width: 34px;
    height: 34px;
}

.wa-float span {
    font-weight: 800;
    color: var(--text);
    font-size: 0.92rem;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .wa-float span {
        display: none;
    }
}

/* =========================================================
HEADER + NAV
========================================================= */

header.sticky-top {
    z-index: 1030;
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 60;
    background: rgb(14, 42, 73);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(11, 34, 58, 0.664);
}

.header__wrap {
    padding: 1rem 2rem 1.5rem;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.brand img {
    width: 38px;
    height: auto;
    margin-right: 1rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav a {
    background: #15365adc;
    box-shadow: 0 4px 12px rgba(11, 34, 58, 0.437);
    border-bottom: 1px solid rgba(229, 231, 235, 0.258);
    padding: 0.5rem 1.2rem;
    border-radius: 13px;
    text-transform: uppercase;

    text-decoration: none;
    font-weight: 600;
    color: #fff;
    opacity: 0.86;
    font-size: 0.7rem;
    letter-spacing: 0.001em;
}

.nav a:hover {
    border-bottom: 1px solid var(--accent-600);
    line-height: 3;
    color: #a4ff7a;
    padding: 0 1.2rem;
}

/* Botón menú (hamburger) */
.navbtn {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow);
    cursor: pointer;

    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
}

.navbtn span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
}

/* Buscador en nav */
.nav-search {
    display: flex;
    align-items: center;
}

.nav-search input {
    width: 200px;
    max-width: 28vw;
    padding: 5px 14px;
    padding-left: 38px; /* <- espacio para el icono */
    margin-right: 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.96);
    color: #0b223a;
    outline: none;
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1;
}

.nav-search input::placeholder {
    color: rgba(11, 34, 58, 0.55);
    font-size: 0.8rem;
}

/* contenedor del input + icono */

.nav-search__field {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* icono dentro del pill */
.nav-search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.7;
    font-size: 1rem;
    color: rgba(11, 34, 58, 0.55);
    z-index: 2;
}

/* =========================================================
DRAWER MENÚ SOLO VISIBLE EN MÓVIL (TABLET + PHONE)
========================================================= */

.drawer {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-start;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    padding: 10px;
    z-index: 9998;
}

.drawer.is-open {
    display: flex;
}

.drawer__panel {
    width: min(820px, 100%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow2);
    overflow: hidden;
    margin: 0 1rem;
}

.drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 12px 20px;
    border-bottom: 1px solid var(--border);
}

.drawer__links {
    padding: 12px 20px 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-icons {
    margin-right: 8px;
    font-size: 1.1rem;
    color: var(--muted);
}

.drawer__links a {
    text-decoration: none;
    padding: 12px 12px;
    border-radius: 14px;
    font-weight: 800;
}

.drawer__links a:hover {
    background: #f1f5f9;
}



/* =========================================================
CARRITO DRAWER (visual)
========================================================= */

/* ✅ FIX: overlay realmente invisible cuando está cerrado */
.cart-drawer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.586);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.cart-drawer.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

/* Panel */
.cart-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;

    transform: translateX(100%);
    transition: transform 0.35s ease;

    height: 100dvh;
    max-height: 100dvh;
}

.cart-drawer.is-open .cart-drawer__panel {
    transform: translateX(0);
}

/* Header */
.cart-drawer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 1px solid #eee;
}

/* Content */
.cart-drawer__content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cart-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

/* Footer */

.cart-drawer__footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cart-drawer__content {
    padding-bottom: 1.25rem;
}



/* =========================
SEARCH DRAWER (IZQUIERDA)
========================= */

.search-drawer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.586);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9999;
}

.search-drawer.is-open {
    opacity: 1;
    pointer-events: auto;
    height: 100vh;
}

/* Panel: LEFT */
.search-drawer__panel {
    position: absolute;
    top: 0;
    left: 0;

    /* “toda la pantalla de la izquierda”:
    ajusta si quieres 100% en móvil y 70% en desktop */
    width: min(720px, 92vw);
    height: 100%;

    background: #fff;
    display: flex;
    flex-direction: column;

    transform: translateX(-100%);
    transition: transform 0.35s ease;

    box-shadow: 12px 0 40px rgba(11, 34, 58, 0.3);
    overflow: hidden;
}

.search-drawer.is-open .search-drawer__panel {
    transform: translateX(0);
}

/* Header */
.search-drawer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 1.1rem 0.7rem 0.75rem;
    border-bottom: 1px solid #eee;
}

/* Slot del input (aquí se mete #navSearch) */
.search-drawer__inputSlot {
    padding: 0.9rem 1.1rem 0.2rem;
}

/* Cuando el input se mueve al drawer, lo hacemos “full” y bonito */
.search-drawer__inputSlot #navSearch {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 14px !important;
    margin: 0 !important;

    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    outline: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
}

.search-drawer__inputSlot #navSearch::placeholder {
    color: rgba(11, 34, 58, 0.45);
}

/* Meta */
.search-drawer__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 1.5rem 1.1rem 1.5rem 1.1rem;
    margin: auto 1rem;
    color: var(--muted);

    border-bottom: 1px solid #eee;
}

.search-count {
    font-weight: 700;
    color: var(--text);
    background-color: var(--highlighter-green);
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    
    font-size: 0.85rem;

}

.search-drawer__hint {
    opacity: 0.85;
    font-size: 0.75rem;
}

/* Resultados: que ocupen casi todo */
.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 0.5rem 1.5rem;
    margin: 0 1.1rem;
}

/* Cards */
.search-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 12px 12px;
    background: #fff;

    display: flex;
    gap: 10px;
    align-items: flex-start;

    cursor: pointer;
    margin-bottom: 10px;
    transition: transform 0.16s ease, border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.search-card:hover {
    transform: translateY(-1px);
    border-color: var(--accent-600);
    box-shadow: 0 14px 30px rgba(2, 23, 6, 0.1);
}



mark.search-mark {
    background: #b8ff7a7c; /* Resaltado al encontrar coincidencias de palabras, Para verlo, busca algo como "Hemoglobina" */
    color: inherit;
    padding: 0 1px; 
    border-radius: 2px;
}

/* Estilos del SEARCH EMPTY
Para verlos, ir al buscador y escribe una especialidad sin coincidencias
*/

.search-empty {
    border: 1px dashed var(--hover-accent);
    color: var(--muted);
    border-radius: 16px;
    padding: 14px;
    line-height: 1.55;
    background: rgba(248, 250, 252, 0.7);
    margin-top: 0.8rem;
}

.search-empty .search-empty-notice {
    font-weight: 600;
}

.search-empty strong {
    color: var(--resaltado);
    font-weight: 700;
    text-decoration: 1.5px dashed underline;
}

.search-error-icon {
    color: var(--resaltado);
    display: inline-block;
    padding-left: 2px;
}

.search-error-wsp-icon {
    color: var(--accent);
    display: inline-block;
    padding-left: 2px;
    text-decoration: none;
    font-weight: 600;
}

/* Footer sticky (iPad safe-area) */
.search-drawer__footer {
    position: sticky;
    background: #fff;   
    border-top: 1px solid var(--border);

    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    padding: 1rem;
    margin-bottom: 0.5rem;
}

/* En móvil, el panel que sea full width */
@media (max-width: 560px) {
    .search-drawer__meta {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 12px;
    }

    .search-results {
        padding: 1rem 0.25rem 1rem;
        margin: 0 0.75rem;
    }

}

/* =========================================================
CARRITO ICON + BADGE
========================================================= */

/* Carrito Nav (usa esto si pones id/cartBtn + class carrito-icon) 
Estilo Carrito-badge */
.carrito-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    position: relative;
    text-decoration: none;
    color: #fff;
    font-size: 1.6rem;
}

.carrito-icon:hover {
    transform: scale(1.06);
}

.carrito-badge {
    position: absolute;
    top: -4px;
    right: -6px;

    min-width: 18px;
    height: 18px;
    padding: 0 5px;

    background-color: var(--resaltado);
    color: #fff;

    font-size: 0.8rem;
    font-weight: bold;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
Menu, Buscador y Carrito Estilos Similares
========================================================= */



.search-drawer-icon,
.cart-drawer-icon,
.menu-drawer-icon {
    font-size: 0.9rem;
    padding: 0.5rem 0.5rem;
    background-color: var(--text);
    color: #fff;
    border-radius: 15px;
    margin-right: 5px;
    display: inline-flex;
}

/* Botones de cerrar (x) para Menu, Buscardor y carrito */

.drawer__close, 
.cart-drawer__close,
.search-drawer__close {
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 1.6rem;
    line-height: 1;
    text-align: center;

}

/* Titulos del Menu, Buscardor y carrito */
.search-drawer__title,
.drawer__title,
.cart-drawer__title {
    color: var(--text);
    font-weight: 900;
    font-size: 1.4rem;
    line-height: 1;
    text-transform: uppercase;
}

/* iconos de especialidades para Buscardor y carrito */

.cart-item__icon,
.search-card__icon {
    font-size: 1.6rem;
    width: 48px;
    height: 48px;
    border-radius: 30px;
    display: grid;
    place-items: center;
    background: #0b223a2c;
    flex: 0 0 auto;
}

/* Nombre de las especialidades para Buscardor y carrito */

.cart-item__name,
.search-card__title {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: capitalize;
}

/* Descripción de las especialidades para Buscardor y carrito */

.cart-item__price,
.search-card__desc {
    font-size: 0.80rem;
    color: #666;
    line-height: 1.4;

}

/* Botones del footer para el Buscador y carrito */

.cart-checkout,
.search-all-btn,
.drawer__cta {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-top: 6px;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-weight: 700;

    background: var(--text);
    color: #fff;
    box-shadow: var(--shadow);
    transition: transform 0.16s ease, background 0.16s ease;
    }

    .cart-checkout:hover,
    .search-all-btn:hover,
    .drawer__cta:hover {
        transform: translateY(-1px);
        background: #0b223af6 !important;
    }

    .nav-wtp-icon {
        font-size: 1rem;
        padding: 4px 6px;
        background-color: var(--accent);
        color: #fff;
        border-radius: 30%;
        margin-right: 8px;
        display: inline-flex;
    }


/* MEDIA QUERIES 
para textos, iconos y botones del Buscador y Carrito
ajustados en telefonos */

/* Telefonos */
@media (max-width: 560px) {

    .search-drawer__panel,
    .cart-drawer__panel {
        width: 90vw;
        height: 100dvh;
    }

    /* Botones de cerrar (x) para Menu, Buscardor y carrito */
    .drawer__close, 
    .cart-drawer__close,
    .search-drawer__close {
        width: 34px;
        height: 34px;
        font-size: 1.4rem;
    }

    /* iconos de especialidades para Buscardor y carrito */
    .cart-item__icon,
    .search-card__icon {
        font-size: 1.4rem;
        width: 40px;
        height: 40px;
    }

    /* Titulos del Menu, Buscardor y carrito */
    .search-drawer__title,
    .drawer__title,
    .cart-drawer__title {
        display: inline;
        line-height: 1.9;
    }

    /* Nombre de las especialidades para Buscardor y carrito */
    .cart-item__name,
    .search-card__title {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    /* Descripción de las especialidades para Buscardor y carrito */
    .cart-item__price,
    .search-card__desc {
        font-size: 0.75rem;
    }



}




/* =========================================================
HERO
========================================================= */
.hero {
    background-color: rgb(14, 42, 73);
    margin-bottom: 0;
}

.hero__wrap {
    max-width: var(--max);
    padding-top: 7rem;
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 5rem;
    overflow: hidden;
}

.hero__logo img {
    width: 330px;
    height: auto;
}

.hero__copy {
    position: relative;
    margin: auto 1.5rem;
}

.hero__copy h1 {
    margin: 0 0 20px;
    font-size: clamp(3.1rem, 4.2vw, 4.1rem);
    letter-spacing: -0.01em;
    line-height: 0.9;
    color: #a2d26e;
    font-weight: 600;
}

.hero__copy p {
    margin: 0 0 18px;
    color: rgb(226, 236, 247);
    line-height: 1.7;
    max-width: 62ch;
    font-size: 0.8rem;
    border-top: 3px solid #c5c6c30f !important;
    padding: 1rem 0;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 18px;
}

/* Hero media */
.hero__media {
    position: relative;
    overflow: hidden;
}

.mediaCard {
    margin-top: 2.1rem;
}

.mediaCard__img {
    width: 80%;
    height: auto;
    margin-bottom: -1.5rem;
}

@media (max-width: 999px) {

    /* En tablet/móvil: stack (texto arriba, imagen abajo) */
    .hero__wrap {
        display: flex;
        flex-direction: column;
        gap: 2.25rem;
        padding-top: 6.5rem;
    }

    .hero__copy {
        width: 100%;
        margin: 0 1.25rem;
        text-align: center;
    }

    .hero__copy h1 {
        font-size: clamp(2.2rem, 5vw, 3.4rem);
        margin-bottom: 18px;
    }

    .hero__copy p {
        font-size: 0.95rem;
        margin-bottom: 22px;
        padding-bottom: 0;
    }

    .hero__logo img {
        width: 240px;
        margin: 0 auto;
    }

    .hero__actions {
        flex-direction: column;
        gap: 14px;
        margin: 0;
        align-items: stretch;
    }

    .hero__actions a {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 0;
    }

    .hero__media {
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 0;
    }

    .mediaCard {
        margin-top: 0.25rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .mediaCard__img {
        width: min(520px, 92%);
        margin: 0 auto;
    }

    /* Evita overflow horizontal por márgenes antiguos */
    .hero__media img {
        margin: 0;
        max-width: 100%;
        height: auto;
    }
}




@media (max-width: 560px) {
    .hero__copy {
        width: 100%;
        margin: auto;
        text-align: center;
    }

    .hero__copy h1 {
        font-size: clamp(1.8rem, 4.2vw, 3.2rem);
    }

    .hero__logo img {
        width: 180px;
    }
}

/* =========================================================
     Scrolling Banner!
  ========================================================= */
.stock-ticker {
    font-size: 1rem;
    padding-block: 1rem;
    overflow: hidden;
    user-select: none;

    --gap: 20rem;
    display: flex;
    gap: var(--gap);
    background-color: var(--bg);
}

.stock-ticker ul {
    list-style: none;
    flex-shrink: 0;
    min-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap);

    animation: scroll 20s linear infinite;
}

.stock-ticker:hover ul {
    animation-play-state: running;
}

@keyframes scroll {
    to {
        transform: translateX(calc(-100% - var(--gap)));
    }
}

.stock-ticker .company,
.stock-ticker .price {
    font-weight: bold;
}

.stock-ticker .price {
    margin-inline: 4px;
}

.stock-ticker .plus::before {
    content: "+";
}

.stock-ticker .plus .change,
.stock-ticker .plus::before {
    color: #089981;
}

.stock-ticker .minus .change,
.stock-ticker .minus::before {
    color: #f23645;
}

/* =========================================================
STEPS
  ========================================================= */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.step {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

.step__num {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    background: var(--accent);
    box-shadow: var(--shadow);
    margin-bottom: 10px;
}

.step h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 980px) {
    .steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
     COBERTURA (CP)
  ========================================================= */
.coverage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}

.coverage__form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field span {
    display: block;
    font-weight: 900;
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    outline: none;
    font-size: 1rem;
}

.field input:focus {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.coverage__result {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    display: flex;
    align-items: center;
}

.hint {
    color: var(--muted);
    line-height: 1.6;
}

.badge-ok,
.badge-no {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    font-weight: 900;
}

.badge-ok {
    background: rgba(16, 185, 129, 0.1);
}

.badge-no {
    background: rgba(244, 63, 94, 0.1);
}

@media (max-width: 980px) {
    .coverage {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
     GRID CARDS (especialidades)
  ========================================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card__icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.card__icon img {
    width: 34px;
    height: auto;
}

.card h3 {
    margin: 2px 0 0;
    font-size: 1.05rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
}

@media (max-width: 1100px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
     TECH BLOCK
  ========================================================= */
.tech {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    align-items: center;
    margin-top: 16px;
}

.tech__copy h2 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    letter-spacing: -0.02em;
}

.tech__copy p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.65;
}

.tech__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tech__list li {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 12px;
    box-shadow: var(--shadow);
    font-weight: 800;
    color: var(--text);
}

.tech__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.tech__media {
    display: flex;
    justify-content: center;
}

.tech__img {
    width: min(420px, 100%);
    border-radius: 26px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow2);
    background: #fff;
    padding: 10px;
    opacity: 0.95;
}

@media (max-width: 980px) {
    .tech {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
     VALUES (mision/vision/valores)
  ========================================================= */
.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.vcard {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

.vcard__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.vcard__top img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.vcard__top span {
    font-weight: 900;
    font-size: 1.05rem;
}

.vcard p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

@media (max-width: 980px) {
    .values {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
    Mas Info
  ========================================================= */
.cta {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--shadow2);
    padding: 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cta__copy h2 {
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.cta__copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    max-width: 60ch;
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.faq {
    margin-top: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--shadow2);
    padding: 20px;
}

.faq h3 {
    margin: 0 0 10px;
}

.faq details {
    border-top: 1px solid var(--border);
    padding: 12px 0;
}

.faq details:first-of-type {
    border-top: 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 900;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

@media (max-width: 980px) {
    .cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================
   Contacto con background
========================= */

.contacto {
    position: relative;
    padding: 8rem 0;
    background-image: url("../recursos/img/wtc-cdmx.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    margin-top: 2rem;
}

/* Overlay oscuro para legibilidad */
.contacto::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 30, 0.75);
    /* ajusta intensidad */
    z-index: 0;
}

.contacto__wrap {
    position: relative;
    z-index: 1;
    text-align: center;
}

.contacto__title {
    color: #ffffff;
    margin-bottom: 4rem;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
}

/* Grid sigue igual */
.contacto__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Cards sobre imagen */
.contacto__item {
    background: rgba(255, 255, 255, 0.152);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contacto__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.contacto__item i {
    font-size: 2rem;
    color: #a4ff7a;
    /* acento azul */
    margin-bottom: 1rem;
}

.contacto__item h3 {
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.contacto__item p,
.contacto__item a {
    color: #f1f5f9;
}

.contacto__item a:hover {
    text-decoration: underline;
}

.contacto__muted {
    color: rgba(255, 255, 255, 0.75);
}

/* Responsive */
@media (max-width: 992px) {
    .contacto {
        padding: 4rem 0;
    }

    .contacto__grid {
        grid-template-columns: 1fr;
    }

    .contacto__item {
        max-width: 420px;
        margin: 0 auto;
    }
}

/* =========================================================
     FOOTER
  ========================================================= */
.footer {
    background: #0b1220;
    color: #e5e7eb;
    padding: 52px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.9fr;
    gap: 18px;
    padding-bottom: 28px;
}

.footer__brand img {
    width: 64px;
    height: auto;
    margin-bottom: 10px;
}

.footer__brand p {
    margin: 0;
    color: rgba(229, 234, 235, 0.78);
    line-height: 1.7;
    max-width: 40ch;
}

.footer__brand span {
    margin-top: 20px;
    display: inline-block;
    font-size: 0.85rem;
}

.footer__col h4 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.footer__col a {
    display: block;
    text-decoration: none;
    color: #e5e7eb;
    opacity: 0.9;
    margin: 10px 0;
    font-weight: 500;
}

.footer__col a:hover {
    opacity: 1;
    text-decoration: underline;
    color: #a2d26e;
}

.footer__muted {
    display: block;
    color: rgba(229, 231, 235, 0.7);
    line-height: 1.7;
    margin-top: 8px;
    font-weight: 600;
}

.footer__bottom {
    border-top: 1px solid rgba(229, 231, 235, 0.12);
    padding: 16px 0;
    display: flex;
    justify-content: center;
}

.footer__bottomwrap {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer__bottomwrap span {
    color: rgba(229, 231, 235, 0.78);
    font-weight: 400;
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
     REVEAL PRO (stagger + direcciones + wipe)
  ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--reveal-dur) var(--reveal-ease),
        transform var(--reveal-dur) var(--reveal-ease);
    will-change: opacity, transform;
}

.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* Variantes dirección */
.reveal--left {
    transform: translateX(-22px);
}

.reveal--right {
    transform: translateX(22px);
}

.reveal--fade {
    transform: none;
}

.reveal--left.is-in,
.reveal--right.is-in {
    transform: translateX(0);
}

/* Pequeño “lift” elegante en cards/steps si quieres luego */
.reveal--lift {
    transform: translateY(18px) scale(0.985);
}

.reveal--lift.is-in {
    transform: translateY(0) scale(1);
}

/* WIPE (barrida tipo presentación para imagen del hero) */
.wipe {
    clip-path: inset(0 100% 0 0);
    transform: translateX(-14px) scale(1.01);
    transition: clip-path 780ms var(--reveal-ease),
        transform 780ms var(--reveal-ease);
    will-change: clip-path, transform;
}

.reveal.is-in .wipe,
.wipe.is-in {
    clip-path: inset(0 0 0 0);
    transform: translateX(0) scale(1);
}

/* Accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .wipe {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
        clip-path: inset(0 0 0 0) !important;
    }
}

/* Accesibilidad: texto solo para lectores de pantalla */
.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;
}

/* Highlight corto cuando el buscador te lleva a una sección */
.search-hit {
    animation: searchHit 900ms ease-out;
}

@keyframes searchHit {
    0% {
        text-shadow: 0 0 0 rgba(0, 0, 0, 0);
        transform: translateY(0);
    }

    30% {
        text-shadow: 0 10px 28px rgba(14, 165, 233, 0.35);
        transform: translateY(-1px);
    }

    100% {
        text-shadow: 0 0 0 rgba(0, 0, 0, 0);
        transform: translateY(0);
    }
}

/* =========================
   Clientes y alianzas
========================= */

.clientes-alianzas {
    padding: 4rem 0;
    background: #f6f8fa;
    /* ajusta si quieres otro fondo */
}

.clientes-alianzas__wrap {
    text-align: center;
}

.clientes-alianzas__title {
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.clientes-alianzas__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* Contenedor visual uniforme */
.clientes-alianzas__logos img {
    max-height: 60px;
    /* 🔑 controla el tamaño */
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: all 0.25s ease;
}

/* Hover elegante */
.clientes-alianzas__logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.clientes-alianzas__text {
    font-size: 0.95rem;
    opacity: 0.75;
}

/* Responsive */
@media (max-width: 768px) {
    .clientes-alianzas__logos {
        gap: 2rem;
    }

    .clientes-alianzas__logos img {
        max-height: 50px;
        max-width: 120px;
    }
}


/* =========================================================
   RESPONSIVE NAV
   <= 999px: ☰ + buscador a la izquierda, carrito a la derecha
   <= 560px: ajustes finos (padding, tamaños)
========================================================= */

@media (max-width: 999px) {

    /* Oculta la navegación horizontal y muestra hamburger */
    .nav {
        display: none;
    }

    .navbtn {
        display: inline-flex;
    }

    /* Header: todo en una fila */
    .header__wrap {
        justify-content: flex-start;
        gap: 12px;
        padding: 1rem 1.25rem 1.25rem;
    }

    /* Orden: ☰, buscador, carrito */
    .navbtn {
        order: 1;
        flex: 0 0 auto;
    }

    .nav-search {
        order: 2;
        flex: 1 1 auto;
        /* ocupa el espacio */
        min-width: 0;
        /* evita overflow */
    }

    /* En tablet/móvil el logo dentro del label no conviene */
    .nav-search .brand {
        display: none;
    }

    .nav-search__field {
        width: 100%;
        min-width: 0;
        display: flex;
        align-items: center;
    }

    .nav-search input {
        display: block;
        /* por si alguna regla lo escondía */
        width: 100%;
        max-width: 100%;
        margin-right: 0;
    }

    .carrito-icon {
        order: 3;
        margin-left: auto;
        /* empuja a la derecha */
        flex: 0 0 auto;
    }
}

@media (max-width: 560px) {

    .header__wrap {
        padding: 0.9rem 1rem 1.1rem;
        gap: 10px;
    }

    /* input más cómodo en teléfono */
    .nav-search input {
        height: 38px;
        font-size: 0.9rem;
    }

    .nav-search__icon {
        left: 14px;
        font-size: 1rem;
    }

    .nav-search__field input {
        padding-left: 36px !important;
    }
}