/* =========================================================
   VARIABLES GENERALES
   ========================================================= */
:root {
    --background: #061521;
    --background-deep: #03101a;
    --background-light: #0b2940;

    --white: #ffffff;
    --text: #eaf8ff;
    --muted: #adc4d1;
    --dark-text: #17232d;

    --blue: #27a8df;
    --blue-light: #71d7f8;
    --green: #39b86c;
    --green-light: #64dd8f;
    --yellow: #ffc322;

    --border: rgba(162, 212, 237, 0.20);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);

    --container: 1180px;
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
}


/* =========================================================
   NORMALIZACIÓN
   ========================================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);

    background:
        radial-gradient(
            circle at 12% 5%,
            rgba(39, 168, 223, 0.18),
            transparent 32rem
        ),
        radial-gradient(
            circle at 90% 25%,
            rgba(100, 221, 143, 0.08),
            transparent 29rem
        ),
        linear-gradient(
            145deg,
            var(--background-deep) 0%,
            var(--background) 48%,
            #0a2c45 100%
        );

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin-inline: auto;
}


/* =========================================================
   BARRA SUPERIOR
   ========================================================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;

    border-bottom: 1px solid var(--border);
    background: rgba(3, 16, 26, 0.80);
    backdrop-filter: blur(18px);
}

.topbar__inner {
    min-height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.topbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 850;
}

.brand-dots {
    display: inline-grid;
    grid-template-columns: repeat(3, 10px);
    gap: 5px;
}

.brand-dots span {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.brand-dots span:nth-child(1) {
    background: var(--blue);
}

.brand-dots span:nth-child(2) {
    background: var(--yellow);
}

.brand-dots span:nth-child(3) {
    background: var(--green);
}

.topbar__right {
    color: #91aebe;
    font-size: 0.87rem;
}


/* =========================================================
   PORTADA
   ========================================================= */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    margin-top: 34px;
    padding: clamp(34px, 6vw, 68px);

    text-align: center;

    border: 1px solid var(--border);
    border-radius: var(--radius-xl);

    background:
        linear-gradient(
            145deg,
            rgba(13, 50, 75, 0.97),
            rgba(5, 23, 36, 0.98)
        );

    box-shadow: var(--shadow);
}

.hero__glow {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
}

.hero__glow--one {
    width: 320px;
    height: 320px;
    top: -185px;
    right: -70px;
    background: rgba(39, 168, 223, 0.16);
}

.hero__glow--two {
    width: 260px;
    height: 260px;
    left: -70px;
    bottom: -190px;
    background: rgba(255, 195, 34, 0.10);
}

.hero__logo {
    display: block;
    width: min(650px, 94%);
    margin: 0 auto 8px;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.25));
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-top: 4px;
    padding: 8px 15px;

    border: 1px solid rgba(113, 215, 248, 0.28);
    border-radius: 999px;

    color: #b9ecff;
    background: rgba(39, 168, 223, 0.10);

    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.status::before {
    content: "";

    width: 8px;
    height: 8px;

    border-radius: 50%;
    background: var(--green-light);
    box-shadow: 0 0 0 6px rgba(100, 221, 143, 0.10);
}

.hero h1 {
    margin: 20px 0 0;

    color: var(--white);
    font-size: clamp(2.5rem, 7vw, 5.2rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.hero__lead {
    max-width: 760px;
    margin: 20px auto 0;

    color: var(--muted);
    font-size: clamp(1rem, 2.2vw, 1.18rem);
}

.hero__lead strong {
    color: var(--white);
}

.hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    margin-top: 26px;
    padding: 0 24px;

    border-radius: 999px;

    color: #032031;
    background: linear-gradient(135deg, var(--blue-light), var(--blue));

    text-decoration: none;
    font-weight: 900;

    box-shadow: 0 12px 32px rgba(39, 168, 223, 0.24);

    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.hero__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 17px 38px rgba(39, 168, 223, 0.31);
}


/* =========================================================
   ENCABEZADO DE SECCIONES
   ========================================================= */
.section-heading {
    max-width: 790px;
    margin: 0 auto 30px;
    text-align: center;
}

.section-heading__eyebrow,
.download-header__eyebrow {
    display: block;

    margin-bottom: 7px;

    color: var(--blue-light);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading h2,
.download-header h2 {
    margin: 0;

    color: var(--white);
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.section-heading p {
    margin: 14px auto 0;
    color: var(--muted);
}


/* =========================================================
   CATÁLOGOS
   ========================================================= */
.catalog-section {
    padding: 80px 0 10px;
}

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

.catalog-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 330px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);

    background: #0a2234;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);

    text-decoration: none;

    transition:
        transform 210ms ease,
        box-shadow 210ms ease,
        border-color 210ms ease;
}

.catalog-card:hover {
    transform: translateY(-7px);
    border-color: rgba(113, 215, 248, 0.52);
    box-shadow: 0 28px 55px rgba(0, 0, 0, 0.34);
}

.catalog-card img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 450ms ease,
        filter 300ms ease;
}

.catalog-card:hover img {
    transform: scale(1.065);
    filter: saturate(1.08);
}

.catalog-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.02) 28%,
            rgba(3, 15, 24, 0.38) 58%,
            rgba(3, 15, 24, 0.96) 100%
        );
}

.catalog-card__content {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;

    min-height: 105px;
    padding: 22px;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.catalog-card__number {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 13px;

    color: var(--white);
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(10px);

    font-size: 0.77rem;
    font-weight: 900;
}

.catalog-card__text {
    min-width: 0;
}

.catalog-card__text strong,
.catalog-card__text small {
    display: block;
}

.catalog-card__text strong {
    overflow: hidden;
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.catalog-card__text small {
    margin-top: 4px;
    color: #afc7d4;
    font-size: 0.80rem;
}

.catalog-card__arrow {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    color: #042234;
    background: var(--blue-light);

    font-size: 1.25rem;
    font-weight: 900;

    transition:
        transform 180ms ease,
        background 180ms ease;
}

.catalog-card:hover .catalog-card__arrow {
    transform: translateX(4px);
    background: var(--yellow);
}


/* =========================================================
   DESCARGA DE APLICACIONES
   ========================================================= */
.download-section {
    margin-top: 80px;
    padding: clamp(25px, 5vw, 42px);

    border: 1px solid var(--border);
    border-radius: var(--radius-xl);

    background: rgba(8, 30, 46, 0.88);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.23);
    backdrop-filter: blur(14px);
}

.download-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.download-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.download-contact a {
    color: var(--green-light);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 850;
}

.download-contact a:first-child {
    color: var(--white);
}

.download-contact a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.stores {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;

    width: min(100%, 790px);
    margin: 24px auto 0;
}

.store-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 168px;
    padding: 16px;

    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 18px;

    color: var(--dark-text);
    background: linear-gradient(180deg, #ffffff 0%, #f6fbfd 100%);

    text-align: center;
    text-decoration: none;

    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.20);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.store-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue-light);
    box-shadow: 0 23px 42px rgba(0, 0, 0, 0.28);
}

.store-card__badge {
    width: min(100%, 260px);
    min-height: 64px;
    padding: 9px 14px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    border: 2px solid #313131;
    border-radius: 12px;

    color: var(--white);
    background: #050505;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 7px 17px rgba(0, 0, 0, 0.18);
}

.store-card__icon {
    display: grid;
    place-items: center;

    width: 41px;
    height: 41px;
    flex: 0 0 41px;
}

.store-card__icon svg {
    width: 100%;
    height: 100%;
}

.store-card__copy {
    min-width: 0;
    text-align: left;
}

.store-card__copy small,
.store-card__copy strong {
    display: block;
}

.store-card__copy small {
    color: #f1f1f1;
    font-size: 0.63rem;
    line-height: 1.05;
}

.store-card__copy strong {
    color: var(--white);
    font-size: clamp(1.08rem, 2vw, 1.43rem);
    font-weight: 520;
    line-height: 1.08;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.store-card__status {
    min-width: 150px;
    min-height: 29px;
    margin-top: 11px;
    padding: 4px 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    color: var(--white);
    background: var(--green);

    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.store-card__status--soon {
    background: #438fc4;
}

.store-card__description {
    margin-top: 6px;
    color: #5c646b;
    font-size: 0.74rem;
}


/* =========================================================
   PIE DE PÁGINA
   ========================================================= */
.footer {
    padding: 28px 0 36px;

    color: #88a5b5;
    text-align: center;
    font-size: 0.82rem;
}

.footer strong {
    color: #b8d2df;
}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */
a:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 5px;
}


/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 950px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .download-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .download-contact {
        align-items: flex-start;
    }
}


/* =========================================================
   CELULAR
   ========================================================= */
@media (max-width: 640px) {
    .topbar__right {
        display: none;
    }

    .hero {
        margin-top: 22px;
        padding-inline: 20px;
        border-radius: 24px;
    }

    .hero__logo {
        width: 100%;
    }

    .catalog-section {
        padding-top: 58px;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .catalog-card {
        min-height: 290px;
        border-radius: 19px;
    }

    .catalog-card__content {
        padding: 18px;
    }

    .download-section {
        margin-top: 58px;
        border-radius: 24px;
    }

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

    .store-card {
        min-height: 158px;
    }
}


/* =========================================================
   MOVIMIENTO REDUCIDO
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .catalog-card,
    .catalog-card img,
    .catalog-card__arrow,
    .hero__button,
    .store-card {
        transition: none;
    }
}

/* =========================================================
   AJUSTE COMPACTO SOLICITADO
   - Portada/título más pequeño
   - Tarjetas de catálogos más pequeñas
   - Descarga de aplicaciones más pequeña
   ========================================================= */

/* PORTADA MÁS COMPACTA */
.hero {
    margin-top: 24px;
    padding: clamp(20px, 3.5vw, 36px);
    border-radius: 22px;
}

.hero__logo {
    width: min(470px, 86%);
    margin-bottom: 4px;
}

.status {
    margin-top: 2px;
    padding: 6px 12px;
    gap: 7px;
    font-size: 0.64rem;
}

.status::before {
    width: 7px;
    height: 7px;
}

/* TÍTULO DE CATÁLOGOS MÁS PEQUEÑO */
.catalog-section {
    padding: 48px 0 8px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 20px;
}

.section-heading__eyebrow,
.download-header__eyebrow {
    margin-bottom: 5px;
    font-size: 0.66rem;
}

.section-heading h2,
.download-header h2 {
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.section-heading p {
    margin-top: 9px;
    font-size: 0.92rem;
}

/* CARDS DE CATÁLOGOS MÁS PEQUEÑAS */
.catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.catalog-card {
    min-height: 235px;
    border-radius: 17px;
}

.catalog-card:hover {
    transform: translateY(-5px);
}

.catalog-card:hover img {
    transform: scale(1.05);
}

.catalog-card__content {
    min-height: 78px;
    padding: 13px;
    gap: 9px;
}

.catalog-card__number {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 0.66rem;
}

.catalog-card__text strong {
    font-size: 0.91rem;
}

.catalog-card__text small {
    margin-top: 2px;
    font-size: 0.68rem;
}

.catalog-card__arrow {
    width: 30px;
    height: 30px;
    font-size: 1rem;
}

/* DESCARGA DE APPS MÁS PEQUEÑA */
.download-section {
    margin-top: 48px;
    padding: clamp(18px, 3vw, 26px);
    border-radius: 22px;
}

.download-header {
    gap: 20px;
    padding-bottom: 16px;
}

.download-contact a {
    font-size: 0.82rem;
}

.stores {
    width: min(100%, 680px);
    margin-top: 17px;
    gap: 14px;
}

.store-card {
    min-height: 128px;
    padding: 11px;
    border-radius: 14px;
}

.store-card__badge {
    width: min(100%, 220px);
    min-height: 52px;
    padding: 7px 11px;
    gap: 9px;
    border-radius: 10px;
}

.store-card__icon {
    width: 33px;
    height: 33px;
    flex-basis: 33px;
}

.store-card__copy small {
    font-size: 0.55rem;
}

.store-card__copy strong {
    font-size: clamp(0.95rem, 1.6vw, 1.18rem);
}

.store-card__status {
    min-width: 128px;
    min-height: 24px;
    margin-top: 8px;
    padding: 3px 10px;
    font-size: 0.60rem;
}

.store-card__description {
    margin-top: 4px;
    font-size: 0.64rem;
}

.footer {
    padding: 22px 0 28px;
}

/* TABLET */
@media (max-width: 1050px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* CELULAR */
@media (max-width: 640px) {
    .hero {
        margin-top: 18px;
        padding: 18px 16px;
        border-radius: 20px;
    }

    .hero__logo {
        width: min(380px, 94%);
    }

    .catalog-section {
        padding-top: 40px;
    }

    .catalog-card {
        min-height: 225px;
        border-radius: 16px;
    }

    .catalog-card__content {
        padding: 13px;
    }

    .download-section {
        margin-top: 42px;
        border-radius: 20px;
    }

    .store-card {
        min-height: 126px;
    }
}

@media (max-width: 430px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .catalog-card {
        min-height: 220px;
    }
}