/*
 * events.css — Estilos específicos del sistema de eventos
 * Depende de /common/css/lostnewbs.css (variables de marca)
 */

/* =============================================
   INFO DEL EVENTO (encabezado)
   ============================================= */
.event-info {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(242, 146, 116, 0.3);
}

.event-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.event-meta {
    font-size: 0.95rem;
    color: var(--color-text);
    opacity: 0.7;
}

/* =============================================
   ETIQUETA DE SECCIÓN
   El pequeño título gris que dice "Quiero asistir como:"
   ============================================= */
.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

/* =============================================
   ROLE CARDS — Asistente / Ponente / Patrocinador
   Son labels que envuelven un radio button escondido.
   display: flex en .role-cards los pone en fila.
   ============================================= */
.role-cards {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.role-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 1rem 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid #E0E0E0;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.role-card:hover {
    border-color: var(--color-salmon);
    background: white;
}

/* Cuando el radio dentro del label está checked → cambia el estilo del label.
   :has() selecciona el padre que contiene un hijo con esa condición. */
.role-card:has(input:checked) {
    border-color: var(--color-salmon);
    border-width: 3px;
    background: white;
    box-shadow: 0 4px 12px rgba(242, 146, 116, 0.25);
}

/* Esconder el radio button (el label hace de botón visual) */
.role-card input[type="radio"] {
    display: none;
}

.role-icon {
    font-size: 1.8rem;
}

.role-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

/* =============================================
   TIER CARDS — Tipos de entrada (Waitlist, General, etc.)
   Verticales, una por fila. Cada card tiene:
   - Input radio escondido
   - Nombre del tier
   - Precio
   - Descripción opcional
   ============================================= */
.tier-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.tier-card {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid #E0E0E0;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tier-card:hover:not(.disabled) {
    border-color: var(--color-salmon);
    background: white;
}

.tier-card:has(input:checked) {
    border-color: var(--color-salmon);
    border-width: 3px;
    background: white;
    box-shadow: 0 4px 12px rgba(242, 146, 116, 0.2);
}

/* Tier deshabilitado — gris, no se puede hacer click */
.tier-card.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: rgba(240, 240, 240, 0.5);
}

.tier-card input[type="radio"] {
    display: none;
}

.tier-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.tier-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
    min-width: 90px;
}

.tier-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
}

.tier-price.free {
    color: #2E7D32;
    background: rgba(46, 125, 50, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.tier-price.coming-soon {
    color: #999;
    font-weight: 400;
    font-size: 0.85rem;
}

.tier-price small {
    font-weight: 400;
    font-size: 0.8rem;
    opacity: 0.6;
}

.tier-desc {
    font-size: 0.8rem;
    color: var(--color-text);
    opacity: 0.55;
    margin-left: auto;
}

/* =============================================
   BANNER DE ÉXITO (waitlist)
   Se muestra después de registrarse en la lista de espera.
   ============================================= */
.success-banner {
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease;
}

.success-banner p {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.6;
    margin: 1rem 0 2rem;
}

/* =============================================
   CHECKMARK ANIMADO ✓
   Aparece con una animación de "pop" al completar el registro.
   @keyframes define los pasos de la animación.
   ============================================= */
.checkmark {
    width: 70px;
    height: 70px;
    background: #2E7D32;
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

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

/* =============================================
   BOTÓN VOLVER (en success.html)
   ============================================= */
.btn-back {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(45deg, var(--color-salmon), var(--color-salmon-hover));
    color: white;
    border: none;
    border-radius: 0.625rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.btn-back:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 480px) {
    .role-cards {
        gap: 6px;
    }
    .role-card {
        padding: 0.75rem 0.25rem;
    }
    .role-icon {
        font-size: 1.4rem;
    }
    .tier-content {
        flex-wrap: wrap;
        gap: 4px;
    }
    .tier-desc {
        margin-left: 0;
        width: 100%;
    }
}
