/* hipodromo-calendar.css */

.hipodromo-calendar-container {
    display: flex;
    max-width: 1350px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
}

/* Selector de hipódromos */
.hipodromo-selector {
    width: 300px;
    padding: 30px 20px;
    background: white;
    border-right: 1px solid #e1e5e9;
}

.hipodromo-selector h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.hipodromo-selector p {
    color: #7f8c8d;
    margin-bottom: 30px;
    line-height: 1.5;
}

.hipodromos-list {
    margin-bottom: 20px;
}

.hipodromo-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    border: solid 1px #e5e5e8;
}

.hipodromo-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.hipodromo-item.active {
    background-color: var(--hipodromo-color, #e74c3c);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.hipodromo-item.active .hipodromo-name{
    color: white;
    font-weight: 400;
}

.hipodromo-item.active .hipodromo-icon img{
    filter: none;
}

.hipodromo-icon {
    width: 75px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border-radius: 6px 0 0 6px;
}

.hipodromo-item.active .hipodromo-icon {
    background: white;
    color: white;
}

.hipodromo-name {
    font-weight: 300;
    color: #8c8c8d;
}

/* Información de contacto */
.contact-info {
    background: white;
    padding: 35px 30px;
    border: solid 1px #e5e5e8;
    border-radius: 10px;
    margin-top: 30px;
}

.fonotrak {
    background: #ffd700;
    border-radius: 40px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-icon {
    font-size: 24px;
}

.phone-number {
    font-size: 24px;
    font-weight: bold;
    color: #302C82;
    line-height: 1;
}

.d-flex.bg-white.icon-phone-white {
    width: 50px;
    height: 50px;
    border-radius: 50px;
}

.fonotrak small {
    color: #7f8c8d;
    font-size: 12px;
}

.fonotrak strong {
    color: #302C82;
    font-size: 18px;
    font-weight: 300;
}

/* Contenedor del calendario */
.calendar-container {
    flex: 1;
    padding: 30px;
    position: relative;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0px 2px 8px -2px rgba(156, 156, 156, 0.75);
    -webkit-box-shadow: 0px 2px 8px -2px rgba(156, 156, 156, 0.75);
    -moz-box-shadow: 0px 2px 8px -2px rgba(156,156,156,0.75);
}

.nav-btn {
    background: none;
    border: none;
    font-size: 30px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    color: #212529;
}

.month-title {
    font-size: 28px;
    font-weight: bold;
    color: #212529;
    margin: 0;
}

/* Grilla del calendario */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-out;
}

.day-header {
    color: #1d1d1d;
    padding: 0px 10px;
    text-align: center;
    font-weight: 400;
    font-size: 14px;
}

/* Estados básicos de los días del calendario */
.day-cell {
    background: white;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: default;
    transition: all 0.3s ease;
    border-radius: 9px;
    border: solid 1px #e5e5e8;
}

.day-cell.empty {
    background: #f8f9fa;
    cursor: default;
}

.day-cell:not(.empty):not(.has-race):hover {
    background: #ecf0f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.day-number {
    font-size: 16px;
    font-weight: 300;
    color: #1d1d1d;
    padding-top: 25px;
}

/* Todos los días con carrera son clickeables */
.day-cell.has-race {
    cursor: pointer !important;
    background-color: var(--race-color, #e74c3c) !important;
    color: white !important;
    border: 1px solid var(--race-color, #e74c3c) !important;
}

.day-cell.has-race .day-number {
    color: white !important;
    font-weight: bold;
}

.day-cell.has-race:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3) !important;
}

/* Solo los días con programa tienen icono de PDF */
.day-cell.selectable::after {
    content: "📄";
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 12px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Días con carrera SIN programa tienen icono de reloj */


/* Día seleccionado */
.day-cell.selected {
    background-color: #3498db !important;
    color: white !important;
    transform: scale(1.1) !important;
    z-index: 10;
    position: relative;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4) !important;
    cursor: pointer !important;
}

.day-cell.selected .day-number {
    color: white !important;
    font-weight: bold;
}

.day-cell.selected::after {
    content: "✓";
    background: rgba(255,255,255,1);
    color: #3498db;
    font-weight: bold;
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 12px;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card del hipódromo seleccionado */
.hipodromo-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.hipodromo-card .card-header {
    background: white;
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid #e1e5e9;
    height: 200px;
    display: flex;
}

.hipodromo-card .hipodromo-logo {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.hipodromo-card .hipodromo-logo img {
    max-width: 64px;
    max-height: 64px;
    border-radius: 8px;
    background: white;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: auto;
}

.hipodromo-card .hipodromo-logo .emoji-icon {
    background: white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hipodromo-card h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.hipodromo-card .card-body {
    padding: 0px;
    height: 350px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hipodromo-card .card-body p {
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 14px;
}

.hipodromo-card .hipodromo-imagen {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hipodromo-card .hipodromo-imagen img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hipodromo-card:hover .hipodromo-imagen img {
    transform: scale(1.05);
}

.hipodromo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Tooltips específicos */
.day-cell.selectable::before {
    content: 'Click para ver programa';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.day-cell.selectable:hover::before {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
}


/* Estados focus para accesibilidad */
.day-cell.has-race:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Estados de carga */
.calendar.loading {
    opacity: 0.6;
    pointer-events: none;
}

.calendar.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #e1e5e9;
    border-top: 4px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-20%, -20%) rotate(0deg); }
    100% { transform: translate(-20%, -20%) rotate(360deg); }
}



/* Imagen de carreras */
.race-image {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.race-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Semana de carreras */
.semana-carreras-container {
    padding: 20px 0 0 90px;
}

.semana-header {
    text-align: center;
    margin-bottom: 30px;
}

.semana-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.semana-header p {
    margin: 0;
    font-size: 14px;
}

.semana-schedule {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    top: -65px;
    z-index: 1;
}

.dia-carrera {
    background: white;
    border-radius: 8px;
    min-width: 135px;
    max-width: 150px;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dia-carrera:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dia-header {
    padding: 12px 10px 8px;
}

.dia-semana {
    display: block;
    font-size: 12px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dia-numero {
    display: block;
    font-size: 30px;
    font-weight: bold;
    line-height: 1;
    margin-top: 2px;
}

.carrera-info {
    padding: 15px 10px;
}

.hipodromo-icon {
    font-size: 32px;
}

.hipodromo-nombre {
    font-size: 15px;
    font-weight: 300;
    margin-bottom: 10px;
    line-height: 1.3;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrera-actions {
    margin-top: 10px;
    text-align: end;
}

.carrera-actions a {
    text-decoration: underline;
}

.btn-descargar,
.btn-ver-detalles {
    display: inline-block;
    padding: 6px 12px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-descargar:hover,
.btn-ver-detalles:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.sin-carrera-info {
    padding: 20px 10px;
    color: #9ca3af;
}

.sin-carrera-text {
    font-size: 12px;
    font-style: italic;
}

.dia-carrera.sin-carrera {
    cursor: default;
}

.dia-carrera.sin-carrera:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Modal para detalles (usado en semana de carreras) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e1e5e9;
    color: #2c3e50;
}

.modal-body {
    padding: 20px;
}

.carrera-detalle p {
    margin: 10px 0;
    color: #2c3e50;
}

.btn-link-hipodromo {
    display: inline-block;
    padding: 10px 20px;
    background: #4a6cf7;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-link-hipodromo:hover {
    background: #3b5ef5;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Paneles de detalles de carreras */
.race-details-panel,
.race-message-panel {
    position: absolute;
    top: 50%;
    right: -350px;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(-50%);
    transition: all 0.4s ease;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
}

.race-details-panel.show,
.race-message-panel.show {
    right: -340px;
    opacity: 1;
    visibility: visible;
}

.race-details-content,
.race-message-content {
    padding: 25px;
    position: relative;
}

.details-icon,
.message-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
}

.race-details-content h4,
.race-message-content h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    text-align: center;
}

.race-details-content p,
.race-message-content p {
    margin: 8px 0;
    color: #2c3e50;
    font-size: 14px;
}

.program-button {
    display: inline-block;
    padding: 10px 20px;
    background: #00853a;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    margin-top: 15px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.program-button:hover {
    background: #219a52;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.no-program-alert {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
    margin: 15px 0;
    border-left: 4px solid #f39c12;
}

.no-program-alert .small-text {
    font-size: 12px;
    color: #856404;
    margin-top: 5px;
}

.close-details,
.close-message {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-details:hover,
.close-message:hover {
    background: #e1e5e9;
    color: #2c3e50;
}

/* Hipódromos con colores específicos */
.hipodromo-item[data-color="#4CAF50"].active {
    --hipodromo-color: #4CAF50;
}

.hipodromo-item[data-color="#F44336"].active {
    --hipodromo-color: #F44336;
}

.hipodromo-item[data-color="#2196F3"].active {
    --hipodromo-color: #2196F3;
}

.hipodromo-item[data-color="#FF9800"].active {
    --hipodromo-color: #FF9800;
}

.hipodromo-item[data-color="#9C27B0"].active {
    --hipodromo-color: #9C27B0;
}

/* Estilos para iconos */
.hipodromo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    filter: grayscale(1);
}

.semana-carreras-container .hipodromo-icon img {
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
}

/* Estados adicionales */
.hipodromo-calendar-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    z-index: 999;
    border-radius: 0;
}

.fullscreen-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.fullscreen-toggle:hover {
    background: #e1e5e9;
    color: #2c3e50;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tema oscuro (opcional) */
.dark-theme {
    background: #2c3e50;
    color: white;
}

.dark-theme .hipodromo-selector {
    background: #34495e;
    border-color: #4a5a6b;
}

.dark-theme .day-cell {
    background: #34495e;
    color: white;
}

.dark-theme .day-header {
    background: #2c3e50;
}

/* CSS para el modal de programa no disponible */

/* Estilos específicos para el modal de "sin programa" */
#noProgramModal .modal-header {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    color: white !important;
    border-bottom: none;
}

#noProgramModal .modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
}

#noProgramModal .modal-title i {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

/* Contenido del modal sin programa */
.no-program-content .race-icon {
    color: #f39c12;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.no-program-content .info-item {
    margin-bottom: 1rem;
}

.no-program-content .info-item label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.no-program-content .info-item .fw-semibold {
    font-size: 1rem;
    line-height: 1.4;
}

/* Alerta personalizada para programa no disponible */
.no-program-content .alert-warning {
    background: linear-gradient(135deg, #fff3cd, #fef7e3);
    border: 1px solid #f39c12;
    border-left: 4px solid #f39c12;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.no-program-content .alert-warning i {
    color: #e67e22;
    flex-shrink: 0;
}

.no-program-content .alert-warning strong {
    color: #8b5a00;
    font-weight: 600;
}

.no-program-content .alert-warning small {
    color: #856404;
    line-height: 1.4;
}

/* Botón de enlace al hipódromo */
.no-program-content .btn-outline-primary {
    border-color: #f39c12;
    color: #f39c12;
    font-weight: 500;
    transition: all 0.3s ease;
}

.no-program-content .btn-outline-primary:hover {
    background-color: #f39c12;
    border-color: #f39c12;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

.no-program-content .btn-outline-primary i {
    margin-right: 0.5rem;
}

/* Estilos para mejorar la apariencia visual */
#noProgramModal .modal-content {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow: hidden;
}

#noProgramModal .modal-body {
    padding: 2rem;
}

#noProgramModal .modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1rem 2rem;
}

#noProgramModal .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

#noProgramModal .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Animación de entrada personalizada */
#noProgramModal.fade .modal-dialog {
    transform: translateY(-50px);
    transition: transform 0.3s ease-out;
}

#noProgramModal.show .modal-dialog {
    transform: translateY(0);
}

/* Responsive para el modal */
@media (max-width: 576px) {
    #noProgramModal .modal-body {
        padding: 1.5rem;
    }

    #noProgramModal .modal-footer {
        padding: 1rem 1.5rem;
    }

    .no-program-content .race-icon {
        font-size: 2.5rem !important;
    }

    .no-program-content .alert-warning {
        margin: 1rem 0;
    }

    .no-program-content .alert-warning i {
        font-size: 1rem;
    }
}

/* Estado hover para elementos interactivos */
.no-program-content .info-item:hover .fw-semibold {
    color: #f39c12;
    transition: color 0.2s ease;
}

/* Mejoras de accesibilidad */
#noProgramModal .btn-close-white:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

#noProgramModal .modal-title {
    font-size: 1.25rem;
}

/* Estilos para el icono de estado */
.no-program-content .text-warning i {
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hipodromo-calendar-container {
        flex-direction: column;
    }

    .hipodromo-selector {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e1e5e9;
    }

    .calendar-container {
        padding: 20px;
    }

    .hipodromo-card {
        margin-top: 20px;
    }

    .race-details-panel,
    .race-message-panel {
        position: fixed;
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: auto;
        transform: none;
    }

    .race-details-panel.show,
    .race-message-panel.show {
        right: 20px;
        bottom: 20px;
    }

    .race-image {
        position: static;
        width: 100%;
        height: 200px;
        margin-top: 20px;
    }

    .day-cell {
        height: 50px;
    }

    .day-number {
        font-size: 14px;
    }

    .semana-schedule{
        top: 0;
    }

    .semana-carreras-container {
        padding: 20px 15px;
    }

    .semana-schedule {
        gap: 10px;
    }

    .dia-carrera {
        min-width: 100px;
        max-width: none;
    }

    .dia-numero {
        font-size: 20px;
    }

    .hipodromo-nombre {
        font-size: 10px;
        height: 25px;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .day-cell::before {
        font-size: 10px;
        padding: 3px 6px;
    }

    .day-cell::after {
        font-size: 10px;
        width: 14px;
        height: 14px;
        top: 2px;
        right: 2px;
    }

    button.nav-btn:focus-visible{
        outline: none;
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        gap: 2px;
    }

    button.nav-btn:focus-visible{
        outline: none;
    }

    .hipodromo-selector {
        padding: 20px 15px;
    }

    .calendar-container {
        padding: 0px;
        padding-top: 15px;
    }

    .month-title {
        font-size: 24px;
    }

    .nav-btn {
        font-size: 24px;
        padding: 8px 12px;
    }

    .day-cell {
        height: 45px;
    }

    .semana-schedule {
        flex-direction: column;
        align-items: center;
    }

    .dia-carrera {
        width: 100%;
        max-width: none;
        display: flex;
        align-items: center;
        text-align: left;
    }

    .dia-header {
        flex: 0 0 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-bottom: none;
    }

    .carrera-info {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px;
    }

    .hipodromo-info {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
    }

    .hipodromo-icon {
        margin-bottom: 0;
    }

    .hipodromo-nombre {
        height: auto;
        text-align: left;
        margin-bottom: 0;
    }

    .carrera-actions {
        margin-top: 0;
        margin-left: 10px;
    }

    .btn-descargar,
    .btn-ver-detalles {
        width: auto;
        padding: 8px 12px;
        white-space: nowrap;
    }
}