/* Estilos Principales - DorsalChip Entrega de Dorsales */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background-color: #f1f5f9;
}

h1, h2, h3, h4, h5, .brand-font {
    font-family: 'Outfit', sans-serif;
}

/* Dorsal Gigante de Carreras */
.bib-card {
    background: #ffffff;
    border: 3px solid #0f172a;
    border-radius: 18px;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bib-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.18);
}

/* Agujeros característicos de dorsal para imperdibles */
.bib-hole {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #e2e8f0;
    border: 2px solid #64748b;
    z-index: 2;
}
.bib-hole.top-left { top: 12px; left: 14px; }
.bib-hole.top-right { top: 12px; right: 14px; }
.bib-hole.bottom-left { bottom: 12px; left: 14px; }
.bib-hole.bottom-right { bottom: 12px; right: 14px; }

/* Cabecera del dorsal */
.bib-header {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    padding: 10px 20px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

/* Número gigante del dorsal */
.bib-number {
    font-family: 'Bebas Neue', 'Outfit', sans-serif;
    font-size: clamp(5.5rem, 15vw, 9.5rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: 3px;
    color: #0f172a;
    margin: 15px 0 10px 0;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.06);
}

/* Pie del dorsal */
.bib-footer {
    background: #f8fafc;
    border-top: 2px dashed #cbd5e1;
    padding: 12px 20px;
}

/* Tarjeta de participante no asignado */
.bib-pending {
    background: #fffbeb;
    border: 3px dashed #f59e0b;
    border-radius: 18px;
}

/* Botones Grandes de Acción */
.btn-action-lg {
    padding: 14px 28px;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 14px;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-action-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.btn-action-lg:active {
    transform: translateY(0);
}

/* Buscador Hero */
.search-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 24px;
}

.search-input-lg {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 14px;
    border: 2px solid #cbd5e1;
    transition: all 0.2s ease;
}

.search-input-lg:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.18);
    outline: none;
}

/* Tarjeta informativa del participante */
.participant-info-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px -2px rgba(0,0,0,0.05);
}

.info-badge {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
}

.animate-pop {
    animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.animate-pulse {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Adaptación para pantallas táctiles */
@media (max-width: 576px) {
    .bib-number {
        font-size: 4.8rem;
    }
    .btn-action-lg {
        width: 100%;
        font-size: 1.1rem;
        padding: 12px 18px;
    }
    .search-container {
        padding: 16px;
    }
}