:root {
    /* Color azul */
    --mw-blue: #2322e8;
    --mw-blue-600: #2322e8;
    
    --steel: #6b7280; /* gray-500 */
    --bg: #ffffff;
    --ok: #10b981;
    --warn: #f59e0b;
    --danger: #ef4444;
    --white: #ffffff;
    --black: #111827;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html { height: 100%; }

body {
    margin: 0;
    font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
    color: var(--mw-blue);
    background: #ffffff;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Estilo de página para el asistente */
.page {
    display: none; /* Oculto por defecto */
}
.page.active {
    display: block; /* Visible */
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.stack {
    display: grid;
    gap: 16px;
}

/* Header adaptado para el asistente */
.wizard-header {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.wizard-header .logo {
    font-size: 48px;
    line-height: 1;
}

.wizard-header .logo svg { width: 36px; height: 36px; display: block; }

.wizard-header h1 {
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
}

/* El bloque de título ocupa el espacio disponible */
.wizard-header .logo + div { flex: 1; }

/* Enlace de Home dentro del header */
.home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mw-blue);
    text-decoration: none;
    background: transparent;
    border: none;
    box-shadow: none;
}

.home-link:hover { color: var(--mw-blue-600); }

/* Tamaño del ícono de la casa (igual al ícono Wi‑Fi de 36px) */
.home-link svg { width: 36px; height: 36px; }

p.lead {
    margin: 0 0 16px 0;
    color: var(--mw-blue);
    font-size: 16px;
}

.button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid var(--mw-blue);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    transition: transform .02s ease, box-shadow .2s ease, background .2s ease;
    background: #ffffff;
    color: var(--mw-blue);
}

.button.primary {
    background: #ffffff;
    color: var(--mw-blue);
    box-shadow: 0 8px 18px rgba(35, 34, 232, .25);
    border: 1px solid var(--mw-blue);
}

.button.primary:active { transform: translateY(1px); }
.button.primary:hover { background: #f3f4f6; border-color: var(--mw-blue-600); }

.button.secondary {
    background: #ffffff;
    color: var(--mw-blue);
    border: 1px solid var(--mw-blue);
}

.button.secondary:hover { background: #f3f4f6; border-color: var(--mw-blue-600); }

/* --- CSS DE LOGOS CON BOTÓN AJUSTADO --- */
.button-logo {
    /* Altura: 270px (logo) + 4px (padding) = 274px */
    height: 200px;
    /* Padding: 2px arriba/abajo (muy ajustado) */
    padding: 2px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    /* Altura mantenida en 270px */
    height: 180px; 
    width: auto;  /* Mantiene la proporción */
    max-width: 100%; /* Evita que el logo de Digitel se desborde */
}
/* --- FIN DE CORRECCIÓN --- */

/* Acordeón para requisitos */
.accordion { border-top: 1px solid #e5e7eb; margin-top: 6px; }
details { border-bottom: 1px solid #e5e7eb; padding: 14px 0; }
details > summary { cursor: pointer; font-weight: 600; list-style: revert; }
details[open] { background: #fbfbff; }
details ul {
    color: var(--mw-blue);
    font-size: 14px;
    padding-left: 20px;
    margin-top: 10px;
}
details li { margin-bottom: 5px; }

/* Toast (del archivo de estilos) */
.toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 90px;
    background: #111827;
    color: #fff;
    padding: 12px 16px;
    border-radius: 999px;
    display: none;
    z-index: 2000;
}

/* Modal (del archivo de estilos) */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: none; /* Cambiado a none por defecto */
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 1000;
}

.modal .dialog {
    background: #fff;
    max-width: 440px;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.modal .dialog header { margin: 0 0 12px; }
.modal .dialog h3 { margin: 0; font-size: 22px; text-align: center; }
.modal .dialog .content { display: grid; gap: 10px; color: #374151; }

.modal .dialog .content ol {
    padding-left: 20px;
    line-height: 1.6;
}
.modal .dialog .content strong {
    color: var(--mw-blue);
    font-weight: 700;
}

.modal .dialog .actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

footer {
    margin-top: 24px;
    color: var(--mw-blue);
    font-size: 13px;
    text-align: center;
}

/* Botón flotante de Home */
.home-button {
    position: fixed;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--mw-blue);
    border: 1px solid var(--mw-blue);
    border-radius: 9999px;
    box-shadow: var(--shadow);
    text-decoration: none;
    z-index: 3000;
}

.home-button:hover {
    background: #f3f4f6;
    border-color: var(--mw-blue-600);
}
