/* Estilos para la sección de detalles expandible en tarjetas */
.expand-details-btn {
    width: 100%;
    padding: 10px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 6px;
    margin: 10px 0;
    font-weight: 600;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.expand-details-btn i {
    margin-right: 8px;
}

.expand-details-btn:hover {
    background-color: #e6e6e6;
}

/* Sección de detalles (parciales) */
.details-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin: 0;
}

.details-section.expanded {
    max-height: 500px;
    margin: 15px 0;
}

/* Parciales en tarjetas */
.parcials-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid #1d3557;
}

.parcial-box {
    background-color: white;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.parcial-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.parcial-time {
    font-family: monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color);
}

.parcial-pace {
    font-size: 11px;
    color: #888;
}

/* Hacer responsive los parciales */
@media (max-width: 480px) {
    .parcials-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Optimización del tamaño de letra */
@media (max-width: 360px) {
    .time-value-card {
        font-size: 18px;
    }
    
    .parcial-time {
        font-size: 15px;
    }
    
    .bib-number-card {
        font-size: 14px;
    }
}

/* Mejoras de accesibilidad */
.card-btn, .expand-details-btn {
    position: relative;
    overflow: hidden;
}

.card-btn:after, .expand-details-btn:after {
    content: "";
    background: rgba(255, 255, 255, 0.3);
    display: block;
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
    opacity: 0;
    transform: scale(0);
}

.card-btn:focus, .expand-details-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.card-btn:active:after, .expand-details-btn:active:after {
    animation: ripple 0.6s ease-out;
}

/* Animación de ondas al hacer click */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}
