﻿: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; /* fondo neutro */
    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; /* tamaño del logo en patrón */
        opacity: 0.1; /* intensidad del membrete (sube si lo quieres más fuerte) */
        pointer-events: none; /* que no bloquee clics */
        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: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.header-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.header-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0px 0px;
    background: linear-gradient(80deg, #ffffffdd, #f5f5f7dd);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 100;
}
.topbar-banner {
    height: 70px; /* Altura controlada */
    width: auto; /* Mantiene proporción */
    object-fit: contain; /* NO recorta la imagen */
    display: block;
    margin: 0 auto; /* Centrar */
}


.topbar-logo {
    height: 30px;
    width: 20px;
    border-radius: 30%;
}

.topbar-title {
    font-size: 1.2rem;
    font-weight: 600;
}


.badge {
    padding: 4px 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: 20px 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: 600;
}

.card-step {
    font-size: 0.8rem;
    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);
}

.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;
}

.alert-info {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.alert-error {
    background-color: #fef2f2;
    color: #b91c1c;
    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: 999;
}

.modal-box {
    background: white;
    padding: 20px 26px;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    max-width: 420px;
    width: 90%;
    text-align: center;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.modal-message {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .card {
        padding: 16px 14px;
        margin-bottom: 14px;
    }

    .app-container {
        padding-top: 110px;
        padding: 0 4px;
        max-width: 100%;
    }
}
.btn-whatsapp {
    position: fixed;
    bottom: 100px;
    right: 5px;
    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: .9rem;
    display: grid;
    gap: 8px;
    margin: 12px 0 18px;
}

    .confirm-grid b {
        color: var(--text-main);
    }

    .confirm-grid span {
        color: var(--text-muted);
    }

#modal-error .modal-title {
    color: #b91c1c;
}

#captcha-wrapper {
    display: none;
}
