/*
==================================================
STYLES.CSS — VERSIÓN ORGANIZADA
==================================================

ÍNDICE
1. Reset y configuración global
2. Contenedor principal
3. Encabezado institucional
4. Navegación de plataformas
5. Pestañas e indicadores
6. Paneles y pasos
7. Tipografía de los pasos
8. Pasos con separador vertical
9. Tarjeta de descarga de Android
10. Tarjetas de descarga para PC
11. Capturas de pantalla
12. Detalles, etiquetas y avisos
13. Estado "Próximamente"
14. Diseño responsivo
==================================================
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f3;
    color: #1a1a18;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.root {
    width: min(1300px, calc(100% - 48px));
    margin: 32px auto;
}

.platform-description {
    text-align: center;
    margin: 32px auto;
    font-size: 25px;
}


/* ==================================================
   1. RESET Y CONFIGURACIÓN GLOBAL
   ================================================== */

/* El reset universal está al inicio del archivo. */


/* ==================================================
   2. CONTENEDOR PRINCIPAL
   ================================================== */

/* .root controla el ancho máximo y centra el contenido. */


/* ==================================================
   4. NAVEGACIÓN DE PLATAFORMAS
   ================================================== */

/* Barra fija que contiene Android, iOS y PC. */

.platform-nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    padding: 12px 16px;
    background: rgba(245, 245, 243, 0.97);
    backdrop-filter: blur(8px);

    transition:
        padding 0.25s ease,
        box-shadow 0.25s ease;
}

.tabs,
.tab,
.tab i {
    transition: all 0.25s ease;
}

.platform-nav.nav-small {
    padding: 6px 16px;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.1);
}

.platform-nav.nav-small .tabs {
    gap: 30px;
    margin: 0;
}

.platform-nav.nav-small .tab {
    width: 180px;
    height: 44px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 10px;
}

.platform-nav.nav-small .tab i {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.platform-nav.nav-small .coming-badge {
    top: -6px;
    right: -8px;
    font-size: 7px;
}

/* ==================================================
   3. ENCABEZADO INSTITUCIONAL
   ================================================== */

.site-header {
    width: 100%;
    margin: 0 0 2rem;
    background-color: #ffffff;
}

/* Complemento visual de .platform-nav.
   Esta regla se conserva separada porque ya existía así. */
.platform-nav {
    position: sticky;
    top: 0;
    z-index: 100;

    padding: 12px 16px;
    margin-bottom: 24px;

    background: rgba(245, 245, 243, 0.96);
    backdrop-filter: blur(8px);

    border-bottom: 1px solid #e3e0da;
}

/* ---------- Franja blanca superior ---------- */

.government-bar {
    width: 100%;
    min-height: 86px;
    padding: 10px 40px;

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

    background-color: #ffffff;
}

.government-logos {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-cdmx {
    width: auto;
    height: 80px;
    display: block;
    object-fit: contain;
}

.logo-adip {
    width: auto;
    height: 80px;
    display: block;
    object-fit: contain;
}

.government-name {
    margin: 0;

    color: #657083;
    font-size: 16px;
    font-weight: 600;
}

/* ---------- Imagen decorativa del encabezado ---------- */

.image.right {
    right: 0;
}

.header.image {
    top: 0;
}

.header.image,
.footer.image {
    position: absolute;
    pointer-events: none;
}

/* ---------- Franja guinda con título principal ---------- */

.hero {
    width: 100%;
    margin: 0;
    padding: 30px 40px;
    text-transform: uppercase;
    text-align: center;
    background-color: #9f2241;
}

.hero h1 {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 50px;
    font-weight: 600;
    line-height: 1.8;
    color: #ffffff;
}

.hero p {
    text-align: center;
    margin: 0 0 12px;
    font-size: 15px;
    color: #fff;
}

/* ==================================================
   5. PESTAÑAS E INDICADORES
   ================================================== */

/* Líneas que muestran qué plataforma está activa. */

.tab-indicator {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    margin-bottom: 30px;
}

.indicator-line {
    width: 70px;
    height: 3px;

    background-color: #e6c7cf;
    border-radius: 10px;

    transition:
        width 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.indicator-line.active {
    width: 48px;
    background-color: #9f2241;
    transform: scaleY(1.3);
}

.platform-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 16px;

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

    background-color: #faece7;
    border-radius: 50%;
    color: #9f2241;
}

.platform-icon i {
    font-size: 38px;
}

.tabs {
    display: flex;
    gap: 100px;
    /* separación entre Android, iOS y PC */
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab {
    width: 300px;
    height: 70px;
    padding: 0 16px;

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

    border-radius: 14px;
    border: 0.5px solid #d3d1c7;
    background: #fff;
    cursor: pointer;

    font-size: 20px;
    font-weight: 500;
    color: #5f5e5a;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.tab:hover {
    background: #f1efe8;
    border-color: #b4b2a9;
}

.tab.active-android {
    background: #faece7;
    border-color: #9F2241;
    color: #9F2241;
}

.tab.active-ios {
    background: #faece7;
    border-color: #9F2241;
    color: #9F2241;
}

.tab.active-pc {
    background: #faece7;
    border-color: #9F2241;
    color: #9F2241;
}

.tab.active-android,
.tab.active-ios,
.tab.active-pc {
    transform: translateY(-2px) scale(1.03);
}

.tab i {
    width: 50px;
    height: 50px;
    font-size: 50px;

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

    line-height: 1;
    flex-shrink: 0;
}

/* ==================================================
   6. PANELES Y PASOS
   ================================================== */

/* Solo el panel con la clase .visible se muestra. */

.panel {
    display: none;
}

.panel.visible {
    display: block;
    animation: panel-enter 1s ease both;
}


@keyframes panel-enter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

.steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 0.5px solid #d3d1c7;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
    margin-top: 2px;
}

.num-android {
    background: #9F2241;
    color: #fff;
    font-weight: bold;
}

.num-ios {
    background: #9F2241;
    color: #fff;
    font-weight: bold;
}

.num-pc {
    background: #9F2241;
    color: #fff;
    font-weight: bold;
}

/* Valores base del título.
   Más abajo se redefinen para el diseño final. */
.step-body h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 4px;
}

/* Valores base del párrafo.
   Más abajo se redefinen para el diseño final. */
.step-body p {
    font-size: 20px;
    color: #5f5e5a;
    line-height: 1.6;
}

.code-pill {
    display: inline;
    background: #f1efe8;
    border: 0.5px solid #d3d1c7;
    border-radius: 4px;
    padding: 1px 6px;
    font-family: monospace;
    font-size: 12px;
    color: #1a1a18;
}

.note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
    background: #faece7;
    border: 0.5px solid #9F2241;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #9F2241;
}

.note i {
    font-size: 16px;
    flex-shrink: 0;
}

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.badge-store {
    background: #e6f1fb;
    color: #185fa5;
}

/* ==================================================
   7. TIPOGRAFÍA Y CONTENIDO DE LOS PASOS
   ================================================== */

/*
Estas reglas aparecen después de las definiciones básicas de
.step-body h3 y .step-body p, por lo que sobrescriben sus tamaños.
*/

.step-body {
    flex: 1;
    min-width: 0;
}

/* Mismo tamaño de título para todos los pasos */

.step-body h3 {
    margin: 0 0 24px;
    color: #10233b;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.25;
}

/* Palabra destacada debajo del título */

.step-body h3 b {
    display: inline;
    margin-top: 3px;
    color: #9F2241;
}

/* Mismo tamaño de descripción para todos los pasos */

.step-body p {
    margin: 0;
    color: #657083;
    font-size: 25px;
    line-height: 1.6;
}

/* ==================================================
   8. PASOS CON SEPARADOR VERTICAL
   contenido | separador | contenido
   ================================================== */

/*
   Esta regla se aplica automáticamente a cualquier
   paso que contenga un .step-divider.

   No depende de que sea paso 1, 2, 3, 4, etc.
*/

.step-body:has(> .step-divider) {
    display: grid;

    /* Las mismas columnas para todos */
    grid-template-columns:
        minmax(0, 1fr) 1px 300px;

    align-items: stretch;
    column-gap: 32px;
}

/* Contenido izquierdo */

.step-body:has(> .step-divider)>.step-text {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Separadores exactamente en la misma posición */

.step-divider {
    width: 1px;
    min-height: 180px;
    height: 100%;

    align-self: stretch;

    background-color: #e0e4e8;
}

/* ==================================================
   9. TARJETA DE DESCARGA DE ANDROID
   ================================================== */

.app-download {
    width: 100%;
    max-width: 190px;
    min-height: 180px;
    padding: 20px;

    align-self: center;
    justify-self: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;

    text-decoration: none;

    background-color: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 22px;

    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.08),
        0 2px 4px rgba(15, 23, 42, 0.05);

    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease;
}

.app-download:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 24px rgba(15, 23, 42, 0.13),
        0 3px 6px rgba(15, 23, 42, 0.06);
}

.app-download img {
    width: 130px;
    height: 130px;
    display: block;
    object-fit: contain;
}

.app-download span {
    color: #9F2241;
    font-size: 18px;
    font-weight: 700;
}

/* ==================================================
   10. TARJETAS DE DESCARGA PARA PC
   ================================================== */

/* Diseño general de las tres tarjetas: Windows, macOS y Linux. */

.os-downloads {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 16px;
    width: 50%;
}

.os-download-card {
    min-height: 220px;
    padding: 24px 18px;
    border: 1px solid #d9d9d9;
    border-radius: 18px;
    background: #ffffff;
    color: #202124;
    text-decoration: none;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

/* ---------- Distribución especial del paso de PC ----------
   Texto arriba, separador horizontal y tres tarjetas abajo.
   Esta sección requiere la clase .step-pc-download en el HTML.
*/

.step-pc-download .step-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;

    flex: 1;
    min-width: 0;
}

.step-pc-download .step-text {
    width: 100%;
}

/* Título de PC en una sola línea */
.step-pc-download .step-body h3 b {
    display: inline;
    margin-top: 0;
    margin-left: 4px;
    margin-right: 4px;
}

.step-divider-horizontal {
    width: 100%;
    height: 1px;
    background-color: #e0e4e8;
}

.step-pc-download .os-downloads {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 135px);
    justify-content: center;
    gap: 18px;
}

.step-pc-download .os-download-card {
    width: 135px;
    min-height: 165px;
    padding: 14px 10px;
}

.step-pc-download .os-icon {
    font-size: 38px;
}

.step-pc-download .os-name {
    font-size: 16px;
}

.step-pc-download .os-description {
    font-size: 11px;
}

.step-pc-download .os-action {
    font-size: 12px;
}

.os-download-card:hover {
    transform: translateY(-5px);
    border-color: #a61b41;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

.os-download-card:focus-visible {
    outline: 3px solid rgba(166, 27, 65, 0.25);
    outline-offset: 3px;
}

.os-icon {
    font-size: 52px;
    color: #a61b41;
}

.os-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.os-name {
    font-size: 18px;
    font-weight: 700;
}

.os-description {
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
}

.os-action {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #a61b41;
    font-size: 14px;
    font-weight: 700;
}

.app-icon-only {
    cursor: default;
}

.app-icon-only:hover {
    transform: none;
}

.paso-2 h3 b {
    display: inline;
    margin: 0;
}

/* ==================================================
   11. CAPTURAS DE PANTALLA
   ================================================== */

.step-image-box,
.step-shot-box {
    box-sizing: border-box;
    width: 230px;
    max-width: 100%;
    padding: 8px;

    align-self: center;
    justify-self: center;

    background-color: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 18px;
    overflow: hidden;

    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.step-shot-box.apple {

    width: 230px;
    max-width: 100%;
    padding: 8px;

    align-self: center;
    justify-self: center;

    background-color: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 45px;
    overflow: hidden;

    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

/* La imagen del paso 2 lleva espacio superior */
.step-image-box {
    margin: 24px auto 0;
}

/* Las imágenes de los demás pasos no */
.step-shot-box {
    margin: 0 auto;
}

.step-image,
.step-shot {
    width: 100%;
    height: auto;
    display: block;

    border-radius: 12px;
}

/* ==================================================
   CAPTURAS GRANDES PARA PC
   ================================================== */

.step-pc-capture .step-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;

    flex: 1;
    min-width: 0;
}

.step-pc-capture .step-text {
    width: 100%;
}

/* Contenedor exterior de la captura */
.pc-shot-box {
    position: relative;

    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px;

    background-color: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 20px;

    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.12),
        0 3px 7px rgba(15, 23, 42, 0.07);

    overflow: hidden;
}

/* Línea decorativa detrás de la captura */
.pc-shot-box::before {
    content: "";
    position: absolute;
    inset: 6px -6px -6px 6px;
    z-index: -1;

    border: 1px solid #e6e2dd;
    border-radius: 20px;
    background-color: #f8f7f5;
}

/* Imagen */
.pc-shot {
    display: block;
    width: 100%;
    height: auto;

    border-radius: 13px;
}

/* ==================================================
   12. DETALLES, ETIQUETAS Y AVISOS
   ================================================== */

/* ---------- Icono de carpeta y texto descriptivo ---------- */

.step-detail {
    min-width: 0;
    align-self: center;

    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
}

.step-detail-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;

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

    color: #9F2241;
    background-color: #faece7;
    border-radius: 50%;
}

.step-detail-icon i {
    font-size: 25px;
}

.step-detail p {
    flex: 1;
    min-width: 0;
}

/* ---------- Etiqueta F-Droid.apk ---------- */

.step-detail .code-pill {
    display: inline-block;
    padding: 2px 8px;

    background-color: #faece7;
    color: #9F2241;

    border: none;
    border-radius: 10px;

    font-family: inherit;
    font-size: inherit;
    font-weight: 550;
}

.green-pill {
    display: inline-block;
    padding: 2px 8px;

    background-color: #faece7;
    color: #9F2241;

    border: none;
    border-radius: 20px;

    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
}

/* ==================================================
   13. ESTADO "PRÓXIMAMENTE"
   ================================================== */

.tab-coming {
    position: relative;
    cursor: not-allowed;
    opacity: 0.65;
}

.coming-badge {
    position: absolute;
    top: -11px;
    right: -24px;

    padding: 3px 7px;
    border-radius: 20px;

    background-color: #9f2241;
    color: #ffffff;

    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}


html,
body {
    overflow-x: clip;
    max-width: 100%;
}

/* ==================================================
   14. DISEÑO RESPONSIVO
   Pantallas de 820 px o menos
   ================================================== */

@media (max-width: 820px) {

    * {
        max-width: 100%;
    }

    body {
        padding: 0;
    }


    .root {
        width: calc(100% - 24px);
        margin: 24px auto;
        overflow: visible;
        position: static;
    }

    .platform-description {
        display: none;
    }

    .site-header {
        margin-bottom: 1.5rem;
    }

    .government-bar {
        width: 100%;
        min-height: 30px;
        padding: 1px 12px;

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

        background: #ffffff;
    }

    .government-logos {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
    }

    .logo-cdmx {
        width: auto;
        height: 55px;
        max-width: none;
        flex-shrink: 0;
    }

    .logo-adip {
        width: auto;
        height: 70px;
        max-width: none;
        flex-shrink: 0;
    }

    .header.image {
        display: none;
    }

    .hero {
        position: relative;
        z-index: 1;
        width: 100%;
        margin: 0;
        padding: 10px 16px;
        text-align: center;
    }

    .hero h1 {
        margin: 0;
        font-size: 20px;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .hero p {
        display: none;
    }

    .platform-icon {
        display: none;
    }

    .platform-nav {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 9999;

        width: 100%;
        padding: 10px 0;
        margin-bottom: 16px;

        background-color: rgba(245, 245, 243, 0.98);
        border-bottom: 1px solid #ddd8d2;

        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    }

    .tabs {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        margin: 0;
    }

    .tab {
        width: auto;
        height: auto;
        padding: 0 18px;

        border: 0;
        border-radius: 0;
        background: transparent;

        font-size: 14px;
        font-weight: 600;
        color: #777;
    }

    .tab+.tab {
        border-left: 1px solid #cfcac4;
    }

    .tab i,
    .coming-badge,
    .tab-indicator {
        display: none;
    }

    .tab.active-android,
    .tab.active-ios,
    .tab.active-pc {
        background: transparent;
        color: #9f2241;
    }


    .coming-badge {
        top: -8px;
        right: 2px;
        padding: 2px 4px;
        font-size: 6px;
    }

    .step {
        position: relative;
        display: block;
        width: 100%;
        padding: 16px 14px;
        border-radius: 14px;
    }

    .step-num {
        position: absolute;
        top: 16px;
        left: 14px;
        margin: 0;
        z-index: 1;
    }

    .step-body {
        width: 100%;
        min-width: 0;
    }

    .step-body h3 {
        width: 100%;
        min-height: 28px;
        padding-left: 44px;
        font-size: 25px;
        text-align: center;
    }

    .step-body p {
        font-size: 17px;
        line-height: 1.55;
        text-align: left;
        hyphens: none;
        overflow-wrap: break-word;
    }

    .step-body:has(> .step-divider) {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 18px;
    }

    .step-divider {
        width: 100%;
        height: 1px;
        min-height: 1px;
    }

    .app-download {
        width: 100%;
        max-width: none;
        min-height: 180px;
        padding: 20px;
        gap: 4px;
    }

    .app-download img {
        width: 110px;
        height: 110px;
    }

    .app-download span {
        margin-top: 0;
        font-size: 20px;
    }

    .step-image-box {
        width: 200px;
        max-width: 100%;
        margin: 18px auto 0;
    }

    .step-detail {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .step-detail p {
        width: 100%;
        margin: 0;
        text-align: left;
        hyphens: none;
        overflow-wrap: break-word;
    }

    .step-detail-icon {
        width: 65px;
        height: 65px;
        flex-basis: 62px;
    }

    .step-detail-icon i {
        font-size: 30px;
    }

    .step-shot-box.apple {
        width: 130px;
        padding: 6px;
        margin: 0 auto;
        border-radius: 28px;
    }

    .step-shot-box.apple .step-shot {
        width: 100%;
        height: auto;
        margin: 0;
        border-radius: 22px;
    }

    .note {
        align-items: center;
        flex-wrap: nowrap;
    }

    /* PC en celular*/

    .step-pc-download .os-downloads {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .step-pc-download .os-download-card {
        width: 100%;
        min-width: 0;
        min-height: 85px;
        padding: 12px 6px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;

        border-radius: 12px;
    }

    /* Icono de Windows, Apple y Linux */
    .step-pc-download .os-icon {
        font-size: 30px;
    }

    /* Oculta nombre y descripción */
    .step-pc-download .os-info {
        display: none;
    }

    /* Oculta las palabras Descargar e Instalar */
    .step-pc-download .os-action {
        font-size: 0;
        gap: 0;
    }

    /* Mantiene visible únicamente la flecha */
    .step-pc-download .os-action i {
        font-size: 18px;
    }

}