* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul: #0057D9;
    --dorado: #D4AF37;
    --negro: #0D0D0D;
    --panel: #171717;
    --texto: #ffffff;
    --texto2: #c8d0dc;
    --borde: rgba(255, 255, 255, 0.11);
    --verde: #22c55e;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--negro);
    color: var(--texto);
    overflow-x: hidden;
}

a {
    color: inherit;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(14px);
    background: rgba(13, 13, 13, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
    width: min(100%, 1200px);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 12px 18px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dorado);
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 16px;
    min-width: 0;
}

.menu a,
.nav-dropdown summary {
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    transition: 0.2s ease;
}

.menu a:hover,
.nav-dropdown summary:hover {
    color: var(--dorado);
}

.registro-btn {
    background: var(--dorado);
    color: #000 !important;
    padding: 9px 14px;
    border-radius: 8px;
    font-weight: 900;
}

.policy-btn {
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--dorado) !important;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 900;
}

.policy-btn:hover {
    background: rgba(212, 175, 55, 0.12);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    user-select: none;
}

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

.nav-dropdown summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.nav-dropdown[open] summary::after {
    transform: rotate(225deg) translate(-1px, -1px);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    width: min(310px, calc(100vw - 32px));
    padding: 10px;
    border-radius: 14px;
    background: rgba(13, 13, 13, 0.96);
    border: 1px solid var(--borde);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
    transform: translateX(-50%);
    z-index: 1200;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 13px;
    border-radius: 10px;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dropdown-menu small {
    color: var(--dorado);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.page-hero {
    min-height: 42vh;
    display: flex;
    align-items: flex-end;
    padding: 122px 22px 58px;
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.17), transparent 34%),
        radial-gradient(circle at top left, rgba(0, 87, 217, 0.24), transparent 36%),
        #101010;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-inner,
.container {
    width: min(100%, 1200px);
    margin: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
    font-size: 0.82rem;
    font-weight: 900;
    margin-bottom: 18px;
}

h1 {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    letter-spacing: 0;
    line-height: 1.03;
    margin-bottom: 18px;
}

h1 span,
.section-title span {
    color: var(--dorado);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.26);
}

.page-hero p,
.section-copy {
    color: var(--texto2);
    line-height: 1.85;
    font-size: 1.06rem;
}

.page-hero p {
    max-width: 820px;
}

.plan-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.plan-switch {
    min-width: min(100%, 245px);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--borde);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    transition: 0.22s ease;
}

.plan-switch:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
}

.plan-switch img {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 11px;
    object-fit: contain;
    background: #fff;
}

.plan-switch span,
.plan-switch small {
    display: block;
}

.plan-switch small {
    margin-bottom: 3px;
    color: var(--texto2);
    font-size: 0.7rem;
    font-weight: 700;
}

.plan-switch-pharma {
    border-color: rgba(0, 87, 217, 0.48);
}

.plan-switch-abarrotes {
    border-color: rgba(249, 115, 22, 0.5);
}

.plans-section {
    scroll-margin-top: 92px;
}

.plans-section-abarrotes {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 12% 10%, rgba(34, 197, 94, 0.12), transparent 28%),
        radial-gradient(circle at 88% 15%, rgba(249, 115, 22, 0.13), transparent 30%),
        #101010;
}

.suite-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.suite-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.suite-brand img {
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    border-radius: 16px;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.suite-brand h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.1;
}

.suite-kicker {
    display: block;
    margin-bottom: 6px;
    color: #86efac;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.suite-jump {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid var(--borde);
    border-radius: 999px;
    color: var(--texto2);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 900;
}

.suite-jump:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.26);
}

.plans-section-abarrotes .card {
    border-color: rgba(249, 115, 22, 0.2);
}

.plans-section-abarrotes .price {
    color: #fb923c;
}

.card-recommended-abarrotes {
    border-color: rgba(34, 197, 94, 0.55) !important;
    box-shadow: 0 18px 48px rgba(34, 197, 94, 0.12);
}

.btn-abarrotes {
    background: linear-gradient(135deg, #15803d, #f97316);
    color: #fff;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.2);
}

.plans-footnote {
    margin-top: 24px;
    color: var(--texto2);
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: center;
}

section {
    padding: 82px 20px;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 18px;
    letter-spacing: 0;
}

.section-copy {
    text-align: center;
    max-width: 880px;
    margin: 0 auto 42px;
}

.cards,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: 24px;
}

.card,
.feature {
    min-width: 0;
    background: linear-gradient(180deg, #191919, #141414);
    border: 1px solid var(--borde);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card h3,
.feature h3 {
    font-size: 1.45rem;
}

.card p,
.feature p {
    color: var(--texto2);
    line-height: 1.72;
}

.card .download-meta {
    color: #d4af37;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.45;
}

/* Ficha de descarga: requisitos, novedades y hash de verificacion. */
.card .download-req {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .62);
    font-size: 0.78rem;
    line-height: 1.5;
}

.card .download-notes {
    margin: 10px 0 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    text-align: left;
}

.card .download-notes summary {
    cursor: pointer;
    color: rgba(255, 255, 255, .86);
    font-size: 0.8rem;
    font-weight: 700;
}

.card .download-notes ul {
    margin: 9px 0 0;
    padding-left: 18px;
    color: rgba(255, 255, 255, .68);
    font-size: 0.78rem;
    line-height: 1.62;
}

.card .download-hash {
    margin: 10px 0 0;
    text-align: left;
}

.card .download-hash span {
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, .5);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.card .download-hash code {
    display: block;
    color: rgba(255, 255, 255, .58);
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 0.62rem;
    line-height: 1.5;
    word-break: break-all;
}

.card-logo {
    display: block;
    width: 112px;
    height: 112px;
    object-fit: contain;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    margin: 6px 0 18px;
}

.badge {
    display: inline-flex;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
    font-size: 0.82rem;
    font-weight: 900;
}

.price {
    font-size: 2.35rem;
    font-weight: 900;
    color: var(--dorado);
}

.price small {
    font-size: 0.95rem;
    color: var(--texto2);
}

.feature-list {
    display: grid;
    gap: 9px;
    color: var(--texto2);
    line-height: 1.45;
}

.actions,
.card-actions,
.contact-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
    transition: 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--azul);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 87, 217, 0.35);
}

.btn-gold {
    background: var(--dorado);
    color: #0d0d0d;
}

.btn-soft {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: white;
}

.btn-disabled {
    background: #3a3a3a;
    color: #d8d8d8;
    pointer-events: none;
}

.contact {
    text-align: center;
}

.contact-links {
    justify-content: center;
    margin-top: 26px;
}

.official-channels {
    width: min(100%, 980px);
    margin: 64px auto 0;
    padding: clamp(24px, 5vw, 42px);
    text-align: left;
    border: 1px solid var(--borde);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(0, 87, 217, 0.2), transparent 40%),
        linear-gradient(180deg, #191919, #111);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.official-channels h3 {
    margin-top: 14px;
    font-size: clamp(1.55rem, 4vw, 2.35rem);
    line-height: 1.08;
}

.official-channels > p {
    margin-top: 10px;
    color: var(--texto2);
    line-height: 1.65;
}

.social-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.social-contact-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 16px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.055);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-contact-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.09);
}

.social-contact-card:focus-visible {
    outline: 3px solid var(--dorado);
    outline-offset: 3px;
}

.social-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
}

.social-icon svg {
    width: 27px;
    height: 27px;
    fill: currentColor;
}

.social-contact-card strong,
.social-contact-card small {
    display: block;
    overflow-wrap: anywhere;
}

.social-contact-card strong {
    font-size: 1.02rem;
}

.social-contact-card small {
    margin-top: 4px;
    color: var(--texto2);
    font-size: 0.82rem;
    line-height: 1.3;
}

.social-contact-card.whatsapp .social-icon { color: #fff; background: #25d366; }
.social-contact-card.facebook .social-icon { color: #fff; background: #1877f2; }
.social-contact-card.messenger .social-icon { color: #fff; background: #0084ff; }
.social-contact-card.email .social-icon { color: #101010; background: var(--dorado); }

.social-arrow {
    color: var(--dorado);
    font-size: 1.4rem;
    font-weight: 900;
}

.legal-layout {
    max-width: 980px;
}

.legal-card {
    background: linear-gradient(180deg, #191919, #141414);
    border: 1px solid var(--borde);
    border-radius: 18px;
    padding: clamp(22px, 4vw, 40px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.legal-card h2 {
    color: var(--dorado);
    font-size: 1.28rem;
    margin: 30px 0 10px;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card p,
.legal-card li {
    color: var(--texto2);
    line-height: 1.78;
}

.legal-card p + p {
    margin-top: 12px;
}

.legal-card ul {
    margin: 12px 0 0 20px;
    display: grid;
    gap: 8px;
}

.legal-card a,
footer a {
    color: #7db3ff;
    font-weight: 800;
}

footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--texto2);
}

@media (max-width: 820px) {
    nav {
        max-height: 100vh;
        overflow-y: auto;
    }

    .nav-container {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 10px 16px;
    }

    .logo {
        font-size: 1.25rem;
        white-space: normal;
    }

    .logo img {
        width: 34px;
        height: 34px;
    }

    .menu {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        overflow: visible;
        padding-bottom: 0;
    }

    .menu a,
    .nav-dropdown summary {
        width: 100%;
        min-height: 38px;
        justify-content: center;
        text-align: center;
        white-space: normal;
        font-size: 0.9rem;
        line-height: 1.12;
        padding: 8px 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.045);
    }

    .menu a.registro-btn {
        background: var(--dorado);
        border-color: rgba(212, 175, 55, 0.58);
        color: #000 !important;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown[open] {
        grid-column: 1 / -1;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 8px;
        transform: none;
        box-shadow: none;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.06);
    }

    .dropdown-menu a {
        align-items: flex-start;
        gap: 10px;
        justify-content: space-between;
        text-align: left;
    }

    .dropdown-menu small {
        line-height: 1.1;
        text-align: right;
        white-space: normal;
    }

    .page-hero {
        min-height: 48vh;
        padding-top: 220px;
    }

    .official-channels {
        margin-top: 44px;
        border-radius: 20px;
    }

    .social-contact-grid {
        grid-template-columns: 1fr;
    }

    .plan-switcher,
    .plan-switch {
        width: 100%;
    }

    .suite-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .suite-jump {
        align-self: flex-start;
    }
}

/* ==========================================================
   BARRA Y PIE CLAROS (azul y blanco)
   Se agregan al final como override para no tocar las reglas
   anteriores. El logo no cambia.
   ========================================================== */
:root {
    --rt-azul: #2563eb;
    --rt-azul-oscuro: #1d4ed8;
    --rt-tinta: #0f172a;
    --rt-gris: #64748b;
    --rt-linea: #e2e8f0;
}

nav {
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--rt-linea);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}

.logo {
    color: var(--rt-tinta);
}

.menu a,
.nav-dropdown summary {
    color: var(--rt-tinta);
}

.menu a:hover,
.nav-dropdown summary:hover {
    color: var(--rt-azul);
}

.registro-btn {
    background: var(--rt-azul);
    color: #fff !important;
}

.registro-btn:hover {
    background: var(--rt-azul-oscuro);
}

.policy-btn {
    border: 1px solid var(--rt-linea);
    color: var(--rt-tinta) !important;
}

.policy-btn:hover {
    background: #f1f5f9;
    border-color: var(--rt-azul);
}

.dropdown-menu {
    background: #ffffff;
    border: 1px solid var(--rt-linea);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
}

.dropdown-menu a {
    color: var(--rt-tinta);
}

.dropdown-menu a:hover {
    background: #f1f5f9;
    color: var(--rt-azul);
}

.dropdown-menu small {
    color: var(--rt-gris);
}

/* El menu movil hereda el fondo claro. */
@media (max-width: 900px) {
    .menu {
        background: #ffffff;
        border-top: 1px solid var(--rt-linea);
    }
}
