/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== VARIABLES ===== */
:root {
    --bg-main: #0b1c2c;
    --bg-card: #132f4c;
    --primary: #00c2ff;
    --secondary: #00e0a4;
    --text: #ffffff;
    --text-soft: #b0c4d6;
    --danger: #ff4d4d;
    --radius: 12px;
}

/* ===== BODY ===== */
body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(180deg, #081521, #0b1c2c);
    color: var(--text);
    min-height: 100vh;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 480px;
    margin: auto;
    padding: 20px;
}

/* ===== HEADER ===== */
.header {
    text-align: center;
    margin-bottom: 20px;
}

.banner {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin-bottom: 15px;
    object-fit: cover;
    display: block;
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.header p {
    font-size: 14px;
    color: var(--text-soft);
}

.fecha {
    font-size: 15px;
    color: var(--primary);
    margin-top: 5px;
}

.lugar {
    font-size: 13px;
    color: var(--text-soft);
}

/* ===== CARD ===== */
.card {
    background: rgba(19, 47, 76, 0.95);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.card h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

.section-note {
    font-size: 14px;
    color: var(--text-soft);
    margin-bottom: 15px;
    line-height: 1.4;
}

/* ===== INPUTS ===== */
label {
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 5px;
    display: block;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    margin-bottom: 15px;
    font-size: 15px;
    outline: none;
    background: #0f253a;
    color: white;
}

textarea {
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #6f879d;
}

/* ===== FOCUS ===== */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 194, 255, 0.15);
}

/* ===== CHECKBOXES ===== */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group label,
.consentimiento {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-group input,
.consentimiento input {
    width: auto;
    margin-top: 3px;
    margin-bottom: 0;
}

/* ===== BUTTON ===== */
button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    border-radius: var(--radius);
    color: #001018;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 20px;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ===== ERROR ===== */
.error {
    color: var(--danger);
    font-size: 12px;
    margin-bottom: 10px;
}

/* ===== SUCCESS ===== */
.success {
    text-align: center;
}

.success h2 {
    margin-bottom: 10px;
}

.qr {
    margin-top: 20px;
}

.qr img {
    width: 200px;
    max-width: 100%;
}

/* ===== RESPONSIVE TABLET / DESKTOP ===== */
@media (min-width: 768px) {
    .container {
        max-width: 760px;
        padding: 30px;
    }

    .header h1 {
        font-size: 30px;
    }

    .fecha {
        font-size: 17px;
    }

    .lugar {
        font-size: 15px;
    }

    .card {
        padding: 26px;
    }
}

/* ===== DESKTOP GRANDE ===== */
@media (min-width: 1024px) {
    .container {
        max-width: 920px;
    }
}
.warning {
    color: #ffd166;
}

.success {
    color: var(--text);
}
.error {
    background: #ff4d4d20;
    border: 1px solid #ff4d4d;
    padding: 12px;
    border-radius: 10px;
    color: #ff4d4d;
    font-size: 14px;
}
.marca-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 8px;
}

.cita-opcion {
    margin-left: 28px;
    font-size: 13px;
    color: var(--secondary);
}