/* Estilos especificos de index.php */
.grid-circuitos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 30px auto;
}

.circuit-card {
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 4px;
}

.circuit-body {
    display: flex;
    flex-direction: column;
}

.pdf-icon {
    display: flex;
    align-items: center;
    gap: 4px;
    align-self: flex-end;
    margin: 12px 3% 12px 0;
    color: #c62828;
    font-size: 12px;
    font-weight: bold;
}

.pdf-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.img-responsive {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.circuit-title-bar {
    margin-top: 16px;
    padding: 10px 14px;
    background-color: #0056b3;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    border-radius: 16px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.titulo-primera-linea {
    font-size: 130%;
}

.descripcion {
    margin: 16px 3% 0;
    text-indent: 10%;
    text-align: justify;
}

.salidas-block {
    margin: 16px 3% 0;
    font-size: 150%;
}

.salidas-etiqueta {
    color: #0056b3;
}

.circuit-meta {
    display: flex;
    justify-content: space-between;
    margin: 16px 3% 0;
}

.circuit-meta span {
    width: 15%;
    padding: 6px 4px;
    background-color: #f28c28;
    color: #ffffff;
    border-radius: 16px;
    text-align: center;
}

.circuit-days {
    width: auto !important;
    padding-left: 3%;
    padding-right: 3%;
    background-color: #f28c28 !important;
    font-size: 150%;
    font-weight: bold;
}

.circuit-price {
    width: auto !important;
    background-color: #0056b3 !important;
    font-size: 160%;
    font-weight: 900;
}

.tabs-container {
    margin-top: 24px;
    width: 100%;
    font-size: 100%;
    font-weight: normal;
}

.tabs-header {
    display: flex;
    gap: 6px;
    width: auto;
    margin: 0 3%;
}

.tab-btn {
    flex: 1;
    font-size: inherit;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 16px;
    border: 1px solid #f28c28;
    background-color: #ffffff;
    color: #f28c28;
    cursor: pointer;
}

.tab-btn.active {
    background-color: #f28c28;
    color: #ffffff;
}

.tab-content {
    display: none;
    margin: 12px 3% 3%;
    padding-right: 3px;
    text-align: justify;
    text-indent: 0;
    overflow-y: auto;
}

.tab-content.active {
    display: block;
}

.tabla-dia {
    width: 100%;
    margin: 0;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 6px 0;
    table-layout: auto;
}

.tabla-dia td {
    padding: 10px 0 6px;
    vertical-align: middle;
}

.tabla-dia .linea-dia {
    display: inline-block;
    height: 32px;
    box-sizing: border-box;
    padding: 6px 10px;
    white-space: nowrap;
    background-color: #0056b3;
    color: #ffffff;
    border-radius: 16px;
}

.tabla-dia .texto-dia {
    width: 99%;
}

.dia-parrafo {
    display: inline-block;
}

@media (max-width: 768px) {
    .grid-circuitos {
        grid-template-columns: 1fr;
    }
}
