﻿:root {
    --bg-page: #f5f5f7;
    --bg-card: #ffffff;
    --primary: #2563eb;
    --primary-soft: #dbeafe;
    --border-soft: #e5e7eb;
    --text-main: #111827;
    --text-muted: #6b7280;
    --danger: #dc2626;
    --success: #16a34a;
    --radius-lg: 14px;
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    padding: 24px;
    background-color: #f5f5f7;
    color: var(--text-main);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("/img/Elite.png");
    background-repeat: repeat;
    background-size: 220px;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
    transform: rotate(-30deg);
    transform-origin: center;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
}

.app-container {
    max-width: 980px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 29px;
    align-items: center;
    margin-bottom: 10px;
}

.header-subtitle {
    font-size: .9rem;
    color: var(--text-muted);
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    gap: 700px;
    padding: 0px 0px;
    background: linear-gradient(100deg, #ffffffdd, #f5f5f7dd);
    backdrop-filter: blur(1x);
    border-bottom: 1px solid #e5e7eb;
    z-index: 100;
}

.topbar-banner {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.badge {
    padding: 5px 10px;
    border-radius: 999px;
    background-color: var(--primary-soft);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
}

.card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 23px 22px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.12);
    margin-bottom: 18px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
}

.card-step {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.card-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

@media (max-width: 720px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

label {
    font-size: 0.85rem;
    font-weight: 500;
}

.hint {
    font-size: 0.73rem;
    color: var(--text-muted);
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
select {
    border-radius: 9px;
    border: 1px solid var(--border-soft);
    padding: 8px 10px;
    font-size: 0.9rem;
    background-color: #f9fafb;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
    width: 100%;
    max-width: 100%;
}

input:focus,
select:focus {
    outline: none;
    border-color: #4cd6fc;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
    background-color: #fff;
}

input[disabled],
select[disabled] {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.button-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

button {
    border-radius: 999px;
    border: none;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.08s ease, box-shadow 0.1s ease, background-color 0.15s, color 0.15s;
}

button:active {
    transform: translateY(1px);
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4cd6fc, #4cd6fc);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.btn-primary:disabled {
    background: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    color: #4cd6fc;
    border: 1px solid var(--primary-soft);
}

.btn-large {
    padding: 12px 24px;
    font-size: 1rem;
}

.btn-small {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.status-chip {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-ok {
    background-color: #dcfce7;
    color: #166534;
}

.status-error {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-pending {
    background-color: #e5e7eb;
    color: #374151;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-ok .status-dot {
    background-color: #16a34a;
}

.status-error .status-dot {
    background-color: #dc2626;
}

.status-pending .status-dot {
    background-color: #6b7280;
}

.alert {
    font-size: 0.8rem;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 9px;
    display: none;
}

.alert-info {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.alert-error {
    background-color: #fef2f2;
    color: #b91c1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #ecfdf5;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.divider {
    margin: 12px 0;
    border-top: 1px dashed #e5e7eb;
}

.footer {
    margin-top: 16px;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: right;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 40px;
}

.modal-box {
    background: white;
    padding: 28px 34px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.modal-message {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: left;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}



#modal-bienvenida.modal-overlay {
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.bienvenida-box {
    position: relative;
    width: min(92vw, 620px);
    max-width: 620px !important;
    max-height: min(88vh, 820px);
    padding: 0 !important;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

  
    .bienvenida-box::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url("/img/Elite.png");
        background-repeat: repeat;
        background-size: 180px;
        opacity: 0.035;
        transform: rotate(-28deg) scale(1.25);
        transform-origin: center;
        pointer-events: none;
        z-index: 0;
    }

    .bienvenida-box > * {
        position: relative;
        z-index: 1;
    }

.bienvenida-title {
    margin: 0;
    padding: 28px 28px 18px;
    font-size: 1.9rem;
    line-height: 1.15;
    text-align: center;
    font-weight: 800;
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    background: linear-gradient(to bottom, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
}


.bienvenida-content {
    max-height: 44vh;
    overflow-y: auto;
    padding: 22px 28px 8px;
    margin-bottom: 0;
    scrollbar-width: thin;
}


    .bienvenida-content p {
        margin: 0 0 18px;
        line-height: 1.6;
        font-size: 1rem;
        color: #1f2937;
    }

.bienvenida-list {
    gap: 16px;
    margin: 18px 0 22px;
}

.bienvenida-section {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 16px;
    padding: 16px 18px;
}

    .bienvenida-section h3 {
        margin: 0 0 10px;
        font-size: 1.06rem;
        font-weight: 700;
    }

    .bienvenida-section ul {
        margin: 0;
        padding-left: 20px;
    }

    .bienvenida-section li {
        margin-bottom: 6px;
        line-height: 1.5;
        color: #111827;
    }

.bienvenida-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 28px 24px;
    border-top: 1px solid rgba(229, 231, 235, 0.95);
    background: linear-gradient(to top, rgba(255,255,255,0.98), rgba(255,255,255,0.92));
}

.modal-acceptance {
    margin: 0;
    padding: 14px 16px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    font-size: 0.95rem;
    color: #374151;
}

.check-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    line-height: 1.45;
}

    .check-line:last-child {
        margin-bottom: 0;
    }

    .check-line input {
        margin: 3px 0 0;
        transform: scale(1.15);
        flex-shrink: 0;
    }

#btn-iniciar.btn-primary {
    min-height: 40px;
    border-radius: 14px;
    height: 50px;
    width: 350px;
    display: block; /* hace que ocupe toda la línea */
    margin: 0 auto;
}

.bienvenida-secondary-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2px;
}

    .bienvenida-secondary-buttons a {
        min-width: 120px;
        padding: 12px 18px;
        font-size: 0.95rem;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
        border-radius: 20px;
        background-color: #4CD6FC;
        color: #ffffff;
        border: 2px solid #4CD6FC;
        transition: all 0.3s ease;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

        .bienvenida-secondary-buttons a:hover {
            background-color: #ffffff;
            color: #4CD6FC;
            border-color: #4CD6FC;
            transform: scale(1.05);
        }
        .bienvenida-secondary-buttons a:focus {
            outline: none;
            box-shadow: 0 0 0 2px rgba(76, 214, 252, 0.5);
        }
        .bienvenida-secondary-buttons a .whatsapp-btn img {
            width: 24px;
            height: 24px;
            margin-right: 10px;
        }

/* ===== MÓVIL ===== */
@media (max-width: 480px) {
    #modal-bienvenida.modal-overlay {
        align-items: flex-start;
        padding: 11px;
        overflow-y: auto;
    }

    .bienvenida-box {
        width: 100%;
        max-width: 100% !important;
        max-height: calc(100dvh - 0.1px);
        margin: 0 auto;
        border-radius: 23px;
    }

        .bienvenida-box::before {
            background-size: 150px;
            opacity: 0.1;
        }

    .bienvenida-title {
        padding: 18px 18px 12px;
        font-size: 1.1rem;
        line-height: 0.9;
    }

    .bienvenida-content {
        max-height: calc(100dvh - 360px);
        overflow-y: auto;
        padding: 1px 20px 2px;
        margin-bottom: 0;
        scrollbar-width: thin;
    }

        .bienvenida-content p,
        .bienvenida-section li {
            font-size: 0.7rem;
        }

    .bienvenida-section {
        padding: 14px 14px;
        border-radius: 14px;
    }

        .bienvenida-section h3 {
            font-size: 1rem;
        }

    .bienvenida-buttons {
        position: sticky;
        bottom: 0;
        padding: 14px 18px 18px;
        gap: 1px;
    }

    .modal-acceptance {
        padding: 16px 15px;
        font-size: 0.92rem;
        border-radius: 14px;
    }


    .bienvenida-secondary-buttons {
        display: flex;
        justify-content: center;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 2px;
    }


        .bienvenida-secondary-buttons a {
            min-width: 120px;
            padding: 8px 10px;
            font-size: 0.82rem;
            font-weight: 600;
            text-align: center;
            text-decoration: none;
            border-radius: 20px;
            background-color: #4cd6fc00;
            color: #11182782;
            border: 2px solid #4cd6fce6;
            transition: all 0.3s ease;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            min-height: 38px;
            line-height: 1.2;
        }


.bienvenida-secondary-buttons a:hover {
    background-color: #ffffff;
    color: #4CD6FC;
    border-color: #4CD6FC;
    transform: scale(1.04);
}


.bienvenida-secondary-buttons a:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 214, 252, 0.5);
}


.bienvenida-secondary-buttons a .whatsapp-btn img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

    #btn-iniciar.btn-primary {
        min-height: 40px;
        border-radius: 14px;
        height: 24px;
        width: 280px;
        display: block; 
        margin: 0 auto;
    }
}

.btn-whatsapp {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp img {
    width: 34px;
    height: 34px;
}

.btn-whatsapp:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.help-icon {
    margin-left: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #2563eb;
    font-weight: 700;
    padding: 0;
    line-height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#razon {
    text-transform: uppercase;
}

.confirm-grid {
    text-align: left;
    font-size: 1.2rem;
    display: grid;
    gap: 8px;
    margin: 40px 0 28px;
}

.confirm-grid b {
    color: var(--text-main);
}

.confirm-grid span {
    color: var(--text-muted);
}

#modal-error .modal-title {
    color: #b91c1c;
}

.link-privacidad {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}

.link-privacidad:hover {
    text-decoration: none;
    opacity: 0.85;
}

.footer-whatsapp {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.footer-whatsapp:hover {
    text-decoration: underline;
}
.field-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220,38,38,.18) !important;
    background-color: #fff5f5 !important;
}
.hint-large {
    font-size: 1rem; 
    font-weight: 500;
    color: #4b5563; 
}
.bienvenida-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}
.modal-acceptance {
    margin-top: 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #374151;
}

.check-line {
    display: block;
    margin-bottom: 8px;
}

body.modal-bienvenida-open .btn-whatsapp {
    display: none;
}



