/* ═══════════════════════════════════════════════════════════
   EBV.CSS — Escuela Bíblica Vacacional 2026
   Componentes visuales exclusivos para ebv-inscripcion.html
   Usa Inter + Poppins (cargados en el HTML)
═══════════════════════════════════════════════════════════ */

/* ── Variables EBV ──────────────────────────────────────── */
:root {
    --ebv-gold:       #f5a623;
    --ebv-gold-light: #ffd166;
    --ebv-gold-dark:  #c8832b;
    --ebv-blue:       #1e3c72;
    --ebv-blue-mid:   #2a5298;
    --ebv-blue-light: #4a7fd4;
    --ebv-green:      #2ecc71;
    --ebv-red:        #e74c3c;
    --ebv-bg:         #f0f4f8;
    --ebv-card-bg:    #ffffff;
    --ebv-text:       #1a2540;
    --ebv-text-muted: #5c6b73;
    --ebv-border:     #d6e0ea;
    --ebv-radius:     14px;
    --ebv-shadow-sm:  0 2px 8px rgba(30,60,114,0.08);
    --ebv-shadow-md:  0 6px 24px rgba(30,60,114,0.12);
    --ebv-shadow-lg:  0 16px 48px rgba(30,60,114,0.18);
    --ebv-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Body override ──────────────────────────────────────── */
.ebv-body {
    background: var(--ebv-bg);
    font-family: 'Inter', Arial, sans-serif;
    color: var(--ebv-text);
}

/* ── Container ──────────────────────────────────────────── */
.ebv-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ══════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════ */
.ebv-hero {
    position: relative;
    margin-top: 80px;          /* offset for fixed header */
    background: var(--ebv-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.ebv-hero-image-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: block;
    line-height: 0;
}

.ebv-hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 650px;
    padding: 2rem 1rem;
}

/* Fallback banner when image is missing */
.ebv-hero-fallback {
    width: 100%;
    min-height: 420px;
    background: linear-gradient(135deg, var(--ebv-blue) 0%, var(--ebv-blue-mid) 60%, #3a6cbf 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
}

.ebv-fallback-inner {
    color: white;
}

.ebv-fallback-icon {
    font-size: 5rem;
    color: var(--ebv-gold);
    margin-bottom: 1rem;
    display: block;
}

.ebv-fallback-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.ebv-fallback-title span {
    color: var(--ebv-gold-light);
}

.ebv-fallback-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    font-weight: 400;
}

/* Scroll hint */
.ebv-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: white;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 1rem 0;
    background: var(--ebv-blue);
    width: 100%;
    text-align: center;
    opacity: 0.9;
}

.ebv-bounce {
    animation: ebv-bounce 1.6s ease-in-out infinite;
}

@keyframes ebv-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}

/* ══════════════════════════════════════════════════════════
   INFO CARD
══════════════════════════════════════════════════════════ */
.ebv-info-section {
    padding: 2.5rem 0 2rem;
}

.ebv-info-card {
    background: var(--ebv-card-bg);
    border-radius: var(--ebv-radius);
    box-shadow: var(--ebv-shadow-lg);
    overflow: hidden;
    border: 1px solid var(--ebv-border);
    transition: var(--ebv-transition);
}

.ebv-info-card:hover {
    box-shadow: 0 20px 60px rgba(30,60,114,0.2);
    transform: translateY(-2px);
}

.ebv-info-card-header {
    background: linear-gradient(135deg, var(--ebv-blue) 0%, var(--ebv-blue-mid) 100%);
    color: white;
    padding: 1.4rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ebv-info-card-header i {
    font-size: 1.5rem;
    color: var(--ebv-gold-light);
}

.ebv-info-card-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.ebv-year-badge {
    background: var(--ebv-gold);
    color: var(--ebv-blue);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.ebv-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
    padding: 0;
}

.ebv-info-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.3rem 1.6rem;
    border-right: 1px solid var(--ebv-border);
    border-bottom: 1px solid var(--ebv-border);
    transition: background 0.2s ease;
}

.ebv-info-item:hover {
    background: #f7f9fc;
}

.ebv-info-item:last-child {
    border-right: none;
}

.ebv-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ebv-blue) 0%, var(--ebv-blue-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(30,60,114,0.2);
}

.ebv-info-icon .fa-whatsapp {
    color: #25D366;
    background: none;
}

#info-contacto .ebv-info-icon {
    background: #25D366;
}

.ebv-info-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

/* ── Cupos Badge ──────────────────────────────────────── */
.ebv-cupos-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 0.4rem;
    color: white;
}
.ebv-cupos-badge.disponible { background: var(--ebv-green); }
.ebv-cupos-badge.pocos { background: var(--ebv-gold-dark); }
.ebv-cupos-badge.agotado { background: var(--ebv-red); text-decoration: line-through; }

.ebv-info-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ebv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.ebv-info-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ebv-text);
    line-height: 1.3;
}

.ebv-phone-link {
    color: #1a7a4f;
    text-decoration: none;
    transition: color 0.2s;
}

.ebv-phone-link:hover {
    color: #25D366;
    text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════
   FORM SECTION
══════════════════════════════════════════════════════════ */
.ebv-form-section {
    padding: 2rem 0 4rem;
}

/* Form header */
.ebv-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ebv-form-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--ebv-gold), var(--ebv-gold-dark));
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
    box-shadow: 0 4px 12px rgba(245,166,35,0.3);
}

.ebv-form-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--ebv-blue);
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.ebv-form-subtitle {
    font-size: 0.95rem;
    color: var(--ebv-text-muted);
}

/* Main form container */
.ebv-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Fieldset */
.ebv-fieldset {
    background: var(--ebv-card-bg);
    border: 1px solid var(--ebv-border);
    border-radius: var(--ebv-radius);
    padding: 2rem;
    box-shadow: var(--ebv-shadow-sm);
    transition: box-shadow 0.3s ease;
}

.ebv-fieldset:focus-within {
    box-shadow: var(--ebv-shadow-md);
}

.ebv-legend {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ebv-blue);
    padding: 0 0.5rem;
    margin-bottom: 1.5rem;
}

.ebv-legend-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ebv-blue), var(--ebv-blue-mid));
    color: white;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Form grid row */
.ebv-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.ebv-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ebv-form-group.ebv-full-width {
    grid-column: 1 / -1;
}

/* Labels */
.ebv-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ebv-text);
    letter-spacing: 0.2px;
}

.ebv-required {
    color: var(--ebv-red);
    font-weight: 700;
}

.ebv-optional {
    color: var(--ebv-text-muted);
    font-weight: 400;
    font-size: 0.78rem;
}

/* Inputs */
.ebv-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--ebv-border);
    border-radius: 9px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: var(--ebv-text);
    background: #fafbfc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
    appearance: none;
}

.ebv-input:focus {
    border-color: var(--ebv-blue-light);
    box-shadow: 0 0 0 3px rgba(74,127,212,0.15);
    background: white;
}

.ebv-input::placeholder {
    color: #aab4c0;
    font-size: 0.87rem;
}

.ebv-input.ebv-input-error {
    border-color: var(--ebv-red);
    box-shadow: 0 0 0 3px rgba(231,76,60,0.12);
}

.ebv-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.5;
}

/* Spinners/number input */
input[type=number].ebv-input::-webkit-inner-spin-button,
input[type=number].ebv-input::-webkit-outer-spin-button {
    opacity: 1;
}

/* Field hint */
.ebv-field-hint {
    font-size: 0.73rem;
    color: var(--ebv-text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Error message */
.ebv-error-msg {
    font-size: 0.73rem;
    color: var(--ebv-red);
    font-weight: 500;
    min-height: 1em;
    display: block;
    animation: ebv-fadeIn 0.2s ease;
}

@keyframes ebv-fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Radio buttons ──────────────────────────────────────── */
.ebv-radio-group {
    display: flex;
    gap: 1.5rem;
    padding: 0.4rem 0;
}

.ebv-radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ebv-text);
    user-select: none;
}

.ebv-radio-label input[type="radio"] {
    display: none;
}

.ebv-radio-custom {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--ebv-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.ebv-radio-custom::after {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: white;
    transition: transform 0.2s ease;
    transform: scale(0);
}

.ebv-radio-label input[type="radio"]:checked + .ebv-radio-custom {
    border-color: var(--ebv-blue);
    background: var(--ebv-blue);
}

.ebv-radio-label input[type="radio"]:checked + .ebv-radio-custom::after {
    transform: scale(1);
}

.ebv-radio-label:hover .ebv-radio-custom {
    border-color: var(--ebv-blue-light);
}

/* ══════════════════════════════════════════════════════════
   NIÑOS BLOCKS
══════════════════════════════════════════════════════════ */
.ebv-nino-block {
    background: #f7f9fc;
    border: 1.5px solid var(--ebv-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ebv-nino-block:focus-within {
    border-color: var(--ebv-blue-light);
    box-shadow: 0 0 0 3px rgba(74,127,212,0.08);
}

.ebv-nino-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.ebv-nino-num {
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ebv-blue);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ebv-nino-num i {
    color: var(--ebv-gold);
    font-size: 0.85rem;
}

.ebv-remove-btn {
    background: none;
    border: 1.5px solid #e0e0e0;
    color: #e74c3c;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--ebv-transition);
    flex-shrink: 0;
}

.ebv-remove-btn:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    transform: scale(1.1);
}

/* Add child button */
.ebv-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: transparent;
    border: 2px dashed var(--ebv-blue-light);
    color: var(--ebv-blue-mid);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--ebv-transition);
    margin-top: 0.5rem;
}

.ebv-add-btn i {
    font-size: 1.1rem;
    color: var(--ebv-blue-light);
    transition: transform 0.2s ease;
}

.ebv-add-btn:hover {
    background: rgba(42,82,152,0.06);
    border-color: var(--ebv-blue);
    color: var(--ebv-blue);
}

.ebv-add-btn:hover i {
    transform: rotate(90deg);
}

/* ══════════════════════════════════════════════════════════
   SUBMIT BUTTON
══════════════════════════════════════════════════════════ */
.ebv-submit-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 0 0;
}

.ebv-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--ebv-blue) 0%, var(--ebv-blue-mid) 60%, var(--ebv-blue-light) 100%);
    color: white;
    border: none;
    padding: 1rem 2.8rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--ebv-transition);
    box-shadow: 0 8px 24px rgba(30,60,114,0.35);
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
}

.ebv-submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ebv-submit-btn:hover::before {
    opacity: 1;
}

.ebv-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(30,60,114,0.45);
}

.ebv-submit-btn:active {
    transform: translateY(-1px);
}

.ebv-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ebv-submit-note {
    font-size: 0.75rem;
    color: var(--ebv-text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ebv-submit-note i {
    color: var(--ebv-green);
}

/* ══════════════════════════════════════════════════════════
   SUCCESS MODAL
══════════════════════════════════════════════════════════ */
.ebv-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 50, 0.65);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: ebv-fadeIn 0.3s ease;
}

.ebv-success-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 72px rgba(0,0,0,0.3);
    animation: ebv-slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ebv-slideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.ebv-success-icon {
    font-size: 4rem;
    color: var(--ebv-green);
    margin-bottom: 1rem;
    animation: ebv-pop 0.5s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes ebv-pop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

.ebv-success-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ebv-blue);
    margin-bottom: 0.8rem;
}

.ebv-success-msg {
    font-size: 0.92rem;
    color: var(--ebv-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.ebv-success-close {
    background: linear-gradient(135deg, var(--ebv-blue), var(--ebv-blue-mid));
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ebv-transition);
}

.ebv-success-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46,204,113,0.3);
}

.ebv-submit-btn:disabled,
button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7;
}

/* ══════════════════════════════════════════════════════════
   ERROR TOAST
══════════════════════════════════════════════════════════ */
.ebv-toast {
    position: fixed;
    bottom: -120px;
    right: 1.5rem;
    background: #1a2540;
    color: white;
    padding: 1rem 1.4rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9998;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.87rem;
    font-weight: 500;
    border-left: 5px solid var(--ebv-red);
    max-width: 380px;
}

.ebv-toast i {
    color: var(--ebv-red);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ebv-toast.ebv-toast-visible {
    bottom: 1.5rem;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .ebv-form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ebv-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ebv-fieldset {
        padding: 1.5rem 1rem;
    }

    .ebv-nino-block {
        padding: 1.2rem 1rem;
    }

    .ebv-submit-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
    }

    .ebv-info-card-header h2 {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .ebv-info-grid {
        grid-template-columns: 1fr;
    }

    .ebv-info-item {
        border-right: none;
    }

    .ebv-form-title {
        font-size: 1.5rem;
    }

    .ebv-success-card {
        padding: 2rem 1.2rem;
    }

    .ebv-success-title {
        font-size: 1.3rem;
    }
}

/* ── Smooth hero image load ─────────────────────────────── */
.ebv-hero-img {
    animation: ebv-imgFade 0.6s ease both;
}

@keyframes ebv-imgFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Dynamic Condition Styles ───────────────────────────── */
.ebv-condicion-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    animation: ebv-fadeIn 0.3s ease;
}

.ebv-add-small-btn, .ebv-remove-small-btn {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--ebv-transition);
}

.ebv-add-small-btn {
    background: #eef2f6;
    color: var(--ebv-blue-light);
}

.ebv-add-small-btn:hover {
    background: var(--ebv-blue-light);
    color: white;
}

.ebv-remove-small-btn {
    background: #fdf2f2;
    color: var(--ebv-red);
}

.ebv-remove-small-btn:hover {
    background: var(--ebv-red);
    color: white;
    transform: scale(1.05);
}
