/* ============================================
   
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    background-image: url('images/fondo.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
}

/* --- Contenedor principal --- */
.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 15px 60px;
    min-height: 100vh;
}

/* --- Enlace login discreto arriba --- */
.login-link {
    align-self: flex-end;
    margin-bottom: 15px;
    padding: 8px 18px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
}
.login-link:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.03);
}
.login-link i { margin-right: 5px; }

/* --- Alertas --- */
.alert-box {
    width: 100%;
    max-width: 420px;
    margin-bottom: 15px;
}
.alert-box .alert-error {
    background: rgba(224, 45, 0, 0.9);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 8px;
}
.alert-box .alert-success {
    background: rgba(0, 200, 60, 0.9);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
}

/* --- Card del formulario --- */
.form-card {
    width: 100%;
    max-width: 420px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 30px 28px;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.form-card h3 {
    text-align: center;
    margin: 0 0 22px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

/* --- Flyer preview del evento --- */
.evento-preview {
    margin-top: 6px;
    font-size: 12px;
    color: #ddd;
    text-align: center;
}
.evento-preview img {
    max-width: 100%;
    max-height: 280px;
    border-radius: 10px;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* --- Select evento --- */
.select-wrapper {
    margin-bottom: 15px;
}
.select-wrapper select {
    width: 100%;
    height: 46px;
    padding: 8px 36px 8px 14px;
    font-size: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6.5 6.5-6.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}
.select-wrapper select:focus {
    border-color: rgba(140, 43, 231, 0.7);
    background: rgba(255,255,255,0.15);
}
.select-wrapper select option {
    background: #1a1a2e;
    color: #fff;
}

/* --- Campos de input con ícono --- */
.input-field {
    position: relative;
    margin-bottom: 15px;
}
.input-field input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 48px;
    font-size: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}
.input-field input::placeholder {
    color: rgba(255,255,255,0.5);
}
.input-field input:focus {
    border-color: rgba(140, 43, 231, 0.7);
    background: rgba(255,255,255,0.15);
}
.input-field input[readonly] {
    opacity: 0.7;
}
.input-field .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    opacity: 0.7;
    pointer-events: none;
    filter: brightness(0) invert(1);
}

/* --- Botón enviar --- */
.btn-submit {
    width: 100%;
    height: 48px;
    margin-top: 5px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #8c2be7 0%, #3d01f5 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(140, 43, 231, 0.5);
}
.btn-submit:active {
    transform: translateY(0);
}

/* --- Sección mapa --- */
.map-section {
    margin-top: 40px;
    width: 100%;
    max-width: 420px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.map-section h4 {
    text-align: center;
    margin: 0 0 12px;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}
.map-section iframe {
    width: 100%;
    height: 275px;
    border: 0;
    border-radius: 12px;
}

/* --- Botón WhatsApp flotante --- */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    padding: 7px 24px;
    background: #21ad55;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 12px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
.whatsapp-btn i { font-size: 18px; }

/* --- Facebook widget --- */
.fb-widget {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .page-wrapper {
        padding: 15px 10px 50px;
    }
    .form-card {
        padding: 22px 18px;
        border-radius: 14px;
    }
    .form-card h3 {
        font-size: 19px;
    }
    .login-link {
        font-size: 12px;
        padding: 6px 14px;
    }
    .map-section {
        padding: 15px;
    }
}
