/* =========================================================
   FERIA DE CARRERAS - WHITE RGB EDITION (ULTRA LLAMATIVO)
========================================================= */

.feria-rgb-section {
    position: relative;
    padding: 100px 0;
    background: #ffffff; /* Fondo Blanco */
    color: var(--dark);
    overflow: hidden;
}

/* Auroras de Luz Neón sobre Fondo Blanco */
.rgb-glow {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.35;
    pointer-events: none;
    animation: floatGlow 10s ease-in-out infinite alternate;
}

.glow-1 {
    top: -10%;
    left: -10%;
    background: #ff0055;
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    background: #00e1ff;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.2); }
}

.feria-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Badge En Vivo */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(227, 6, 19, 0.08);
    border: 1.5px solid rgba(227, 6, 19, 0.3);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.12);
}

.pulsing-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary);
    animation: pulseGlow 1.2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.8); opacity: 0.6; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.6; }
}

/* Título Impactante con Texto RGB Cambiante */
.rgb-title {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--dark);
}

.text-gradient {
    background: linear-gradient(90deg, #ff0055, #7000ff, #0077ff, #ff0055);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animatedTextRGB 4s ease infinite;
    display: inline-block;
}

@keyframes animatedTextRGB {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.feria-description {
    color: #475569;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Detalle del Evento (Tarjetas flotantes en fondo blanco) */
.event-details-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    background: #ffffff;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 35px;
    box-shadow: var(--shadow-md);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-icon {
    width: 44px;
    height: 44px;
    background: var(--light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 18px;
    box-shadow: var(--shadow-sm);
}

.detail-item strong {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 800;
}

.detail-item p {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--dark);
}

/* Contador Animado 3D */
.countdown-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.countdown-label {
    font-size: 13px;
    color: var(--dark-2);
    font-weight: 700;
}

.countdown-timer {
    display: flex;
    gap: 15px;
}

.time-box {
    background: #ffffff;
    border: 2px solid #f1f5f9;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    text-align: center;
    min-width: 75px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.time-box:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: #0077ff;
}

.time-box span {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: var(--dark);
}

.time-box small {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 800;
}

/* =========================================================
   FORMULARIO CON BORDES MULTICOLOR RGB ANIMADOS
========================================================= */

.rgb-border-box {
    position: relative;
    border-radius: 28px;
    padding: 4px;
    background: linear-gradient(60deg, #ff0055, #7000ff, #00f0ff, #ff0055);
    background-size: 300% 300%;
    animation: animatedRGB 5s ease infinite;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

@keyframes animatedRGB {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.feria-form {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ticket-tag {
    background: rgba(112, 0, 255, 0.08);
    color: #7000ff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.form-rgb-header h3 {
    margin: 8px 0 4px 0;
    font-size: 24px;
    color: var(--dark);
    font-weight: 800;
}

.form-rgb-header p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.feria-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feria-form label {
    font-size: 12px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feria-form label i {
    color: var(--primary);
}

.feria-form input,
.feria-form select {
    width: 100%;
    padding: 13px 16px;
    background: var(--light);
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius-sm);
    color: var(--dark);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-fast);
}

.feria-form input:focus,
.feria-form select:focus {
    border-color: #7000ff;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(112, 0, 255, 0.12);
}

/* Botón RGB con Ondas de Neón */
.btn-rgb-glow {
    margin-top: 10px;
    background: linear-gradient(90deg, #ff0055 0%, #7000ff 50%, #0077ff 100%);
    background-size: 200% auto;
    border: none;
    padding: 16px;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(112, 0, 255, 0.25);
    transition: all 0.4s ease;
}

.btn-rgb-glow:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 0, 85, 0.35);
}

.event-live-banner {
    background: var(--primary);
    color: #ffffff;
    padding: 15px;
    border-radius: var(--radius-md);
    font-weight: 800;
    text-align: center;
    animation: pulseGlow 1.5s infinite;
}

@media (max-width: 992px) {
    .feria-grid {
        grid-template-columns: 1fr;
    }
}