* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font: inherit;
    border: none;
    background: none;
}

a {
    text-decoration: none;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 18px;
}

.main-menu {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
}

.client-logo {
    width: 120px;
    margin-bottom: 16px;
}

.business-name {
    font-size: 1.7rem;
    line-height: 1.2;
    text-align: center;
}

.menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.menu-button {
    width: 100%;
    min-height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-button:hover {
    transform: translateY(-1px);
}

.menu-button:active {
    transform: scale(0.99);
}

.footer-brand {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.convoy-logo {
    width: 56px;
}

/* Tablet */
@media (min-width: 768px) {
    .main-menu {
        max-width: 520px;
    }

    .client-logo {
        width: 140px;
    }

    .business-name {
        font-size: 1.95rem;
    }

    .menu-button {
        min-height: 60px;
        font-size: 1.05rem;
    }

    .convoy-logo {
        width: 62px;
    }
}

/* Escritorio */
@media (min-width: 1024px) {
    .main-menu {
        max-width: 560px;
    }

    .client-logo {
        width: 150px;
    }

    .business-name {
        font-size: 2.1rem;
    }
}
.content-screen {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 20px 40px;
    box-sizing: border-box;
}

.screen-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
}

.back-button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 14px;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 600;
}

.screen-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}

.content-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 22px;
    padding: 22px 20px;
    margin-bottom: 18px;
    color: #ffffff;
}

.card-title {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.2rem;
    font-weight: 700;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-row:last-child {
    border-bottom: none;
}

.map-button {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    margin-top: 8px;
}

@media (max-width: 640px) {
    .content-screen {
        padding: 24px 16px 32px;
    }

    .screen-title {
        font-size: 1.6rem;
    }

    .schedule-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
.install-modal[hidden] {
    display: none !important;
}

.install-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 9999;
}

.install-content {
    width: 100%;
    max-width: 320px;
    background: #0b0f1a;
    border-radius: 16px;
    padding: 22px 20px;
    color: #ffffff;
    text-align: left;
}

.install-content h2 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.install-content p {
    margin-bottom: 12px;
    line-height: 1.4;
}

.install-content ol {
    margin: 0 0 18px 20px;
    padding: 0;
}

.install-content li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.install-content button {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}
/* ===== AUTH SCREEN ===== */

.auth-screen {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 12px;
}

/* Botón principal */
.auth-main-button {
    width: 100%;
}

/* Separador */
.auth-separator {
    width: 100%;
    text-align: center;
    margin: 18px 0 10px;
    font-size: 1rem;
    font-weight: 600;
}

/* Contenedor botón secundario */
.auth-secondary-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

/* Botón Regístrate */
.auth-register-button {
    min-height: 42px;
    padding: 8px 18px;
    border-radius: 12px;

    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;

    cursor: pointer;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;

    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* Checkbox */
.remember-me {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    font-size: 0.95rem;
    cursor: pointer;
    color: #ffffff;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ===== PRIVATE HOME ===== */

.private-screen {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.private-welcome {
    width: 100%;
    margin-bottom: 20px;
}

.private-welcome p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.modules-section {
    width: 100%;
    margin-bottom: 22px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.module-card {
    min-height: 92px;
    border-radius: 18px;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.module-card:hover {
    transform: translateY(-1px);
}

.module-card:active {
    transform: scale(0.99);
}

.private-footer-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.secondary-action-button {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.secondary-action-button:hover {
    transform: translateY(-1px);
}

.secondary-action-button:active {
    transform: scale(0.99);
}

@media (min-width: 768px) {
    .private-screen {
        max-width: 620px;
    }

    .modules-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}