/* ============================================================
   REGISTRO PÚBLICO CSS
   Sistema de Casting Ministerial – Palabra y Poder
   Paleta: Azul/Violeta profundo + glow + glass
   ============================================================ */

/* ── VARIABLES ── */
:root {
    --bg-page:    #0a0f1e;
    --bg-mid:     #0f172a;
    --primary:    #6366f1;
    --primary-h:  #818cf8;
    --primary-glow: rgba(99,102,241,0.25);
    --success:    #22c55e;
    --warning:    #f59e0b;
    --danger:     #ef4444;
    --text:       #e2e8f0;
    --text-muted: #94a3b8;
    --border:     rgba(255,255,255,0.10);
    --glass:      rgba(255,255,255,0.04);
    --glass2:     rgba(255,255,255,0.07);
    --radius:     16px;
    --radius-sm:  10px;
    --shadow:     0 20px 60px rgba(0,0,0,0.5);
    --shadow-sm:  0 4px 20px rgba(0,0,0,0.3);
    --font:       'Inter', system-ui, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-page);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ═══════════════════════════════════════════════
   HERO
════════════════════════════════════════════════ */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3rem 1.5rem 5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(99,102,241,0.35) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 80% 80%, rgba(49,46,129,0.4) 0%, transparent 50%);
}

/* Animated particles */
.hero-bg::before, .hero-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}
.hero-bg::before {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(99,102,241,0.15), transparent);
    top: 20%; left: 10%;
    animation-delay: -3s;
}
.hero-bg::after {
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(168,85,247,0.15), transparent);
    bottom: 20%; right: 15%;
}
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99,102,241,0.2);
    border: 1px solid rgba(99,102,241,0.4);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-h);
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
}
.hero-conv {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    text-align: left;
}
.hero-conv strong { display: block; }
.hero-conv small  { color: var(--text-muted); font-size: 0.78rem; }

.hero-wave {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    line-height: 0;
}
.hero-wave svg { display: block; }
var(--bg-page) { fill: var(--bg-page); }

/* ═══════════════════════════════════════════════
   LAYOUT
════════════════════════════════════════════════ */
.main-content {
    background: var(--bg-page);
    padding: 2rem 0 4rem;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.form-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.form-sidebar {
    flex: 0 0 260px;
    position: sticky;
    top: 1.5rem;
}
.form-card { flex: 1; min-width: 0; }

/* ═══════════════════════════════════════════════
   CARDS
════════════════════════════════════════════════ */
.card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.card-center {
    text-align: center;
    padding: 3rem 2rem;
}
.card-center h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.card-center p  { color: var(--text-muted); margin-bottom: 1rem; max-width: 480px; margin-inline: auto; }

/* ── INFO CARD (sidebar) ── */
.info-card {
    background: var(--glass2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
}
.info-card-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.info-card h3   { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.75rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.5rem; }

.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.steps-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.step-n {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(99,102,241,0.2);
    border: 1px solid rgba(99,102,241,0.4);
    color: var(--primary-h);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 700;
    flex-shrink: 0;
}
.info-list {
    list-style: none;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.info-list li {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-left: 1.1rem;
    position: relative;
}
.info-list li::before {
    content: '•';
    position: absolute; left: 0;
    color: var(--primary-h);
}

/* ── INFO BOX ── */
.info-box {
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 10px;
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: left;
}
.info-box strong { color: var(--primary-h); }

/* ═══════════════════════════════════════════════
   FORM STYLES
════════════════════════════════════════════════ */
.form-header {
    padding: 1.5rem 1.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(99,102,241,0.08), transparent);
}
.form-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.25rem; }
.form-desc  { font-size: 0.875rem; color: var(--text-muted); }

.form-section {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border);
}
.form-section:last-of-type { border-bottom: none; }
.form-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-h);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.span-full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}
.req { color: var(--danger); margin-left: 2px; }

.form-control {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    padding: 0.65rem 0.9rem;
    transition: all 0.2s ease;
    outline: none;
    -webkit-appearance: none;
}
.form-control:focus {
    border-color: var(--primary);
    background: rgba(99,102,241,0.08);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-control::placeholder { color: rgba(255,255,255,0.2); }
.form-control.is-invalid { border-color: var(--danger); }
.form-control option { background: #1a1832; }
.form-error {
    font-size: 0.78rem;
    color: var(--danger);
}

/* ── CHECKBOX CUSTOM ── */
.check-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.check-label input[type=checkbox] { display: none; }
.check-custom {
    width: 20px; height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    flex-shrink: 0;
    background: var(--glass);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
    margin-top: 1px;
}
.check-label input:checked + .check-custom {
    background: var(--primary);
    border-color: var(--primary);
}
.check-label input:checked + .check-custom::after {
    content: '✓';
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}
.large-check { align-items: flex-start; }

/* ── SUBMIT BUTTON ── */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: calc(100% - 3.5rem);
    margin: 0 1.75rem 1.75rem;
    padding: 0.95rem;
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: #fff;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #818cf8, var(--primary));
    opacity: 0;
    transition: opacity 0.25s ease;
}
.btn-submit:hover:not(:disabled)::before { opacity: 1; }
.btn-submit:hover:not(:disabled) {
    box-shadow: 0 8px 24px rgba(99,102,241,0.5);
    transform: translateY(-2px);
}
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-arrow { font-size: 1.1rem; position: relative; }
.btn-submit span { position: relative; }

/* ═══════════════════════════════════════════════
   ALERTS
════════════════════════════════════════════════ */
.alert {
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin: 1rem 1.75rem 0;
}
.alert-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
}

/* ═══════════════════════════════════════════════
   SUCCESS PAGE
════════════════════════════════════════════════ */
.success-card {
    border-color: rgba(34,197,94,0.3);
    background: linear-gradient(135deg, rgba(34,197,94,0.05), rgba(99,102,241,0.05));
}
.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce-in 0.6s cubic-bezier(0.68,-0.55,0.265,1.55);
}
@keyframes bounce-in {
    0%   { transform: scale(0); }
    80%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.codigo-display {
    background: rgba(99,102,241,0.12);
    border: 2px dashed rgba(99,102,241,0.4);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin: 1.25rem 0;
    text-align: center;
}
.codigo-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.codigo-value {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--primary-h);
    font-family: monospace;
}
.codigo-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ═══════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
.site-footer {
    background: rgba(0,0,0,0.4);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .form-layout { flex-direction: column; }
    .form-sidebar { flex: none; width: 100%; position: static; }
}
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .span-full  { grid-column: 1; }
    .form-section { padding: 1.25rem 1rem; }
    .form-header  { padding: 1.25rem 1rem; }
    .btn-submit   { width: calc(100% - 2rem); margin: 0 1rem 1.25rem; }
    .alert        { margin: 0.75rem 1rem 0; }
    .hero-title   { font-size: 1.75rem; }
}
