body {
    font-family: "Roboto", serif;
    font-weight: 400;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings:
            "wdth" 100;
}

/* Componentes header */
.header-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #3C763D;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /
}
.header-logo {
    height: 2em;
}
.nav-link {
    font-size: 1.1em;
    text-transform: uppercase;
    color: white;
    padding-left: 10px;
    padding-right: 10px;
    font-weight: 600;
}
.nav-top {
    font-weight: 300;
    font-size: 0.9em;
}
.nav-top a {
    color:#808080;
}
.nav-top div {
    padding-left: 5px;
}
.nav-top-img-info {
    margin-right: 4px;
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 30px; /* Espaciado personalizado */
        padding-left: 30px; /* Espaciado personalizado */
    }
}

/* Componentes footer */
.footer-web {
    background-color: #3C763D;
}
.footer-web a {
    color:white;
}
.copyright {
    color: white;
    font-size: 0.8em;
    font-weight: 300;
    padding-top: 3px;
}
.footer-redes div {
    padding-right: 5px;
}
.footer-texto-2 {
    font-size: 0.9em;
    font-weight: 300;
    color: white;
}
.footer-menus li a {
text-decoration: none;
}
.footer-menus li a:hover {
    color: #ddd8d8;
}

/* Pagina principal */

.hero-section {
    min-height: calc(70vh - 60px); /* Calcula la altura según el viewport menos el header */
    padding-top: 60px; /* Espacio para evitar que el contenido quede oculto por el header */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-section .container {
    z-index: 2;
    position: relative;
}
.portada-car h2  {
    font-size: 1.5em;
    font-weight: 500;
}
.portada-car i  {
    color: #3C763D;
}
.portada-car p  {
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 0;
}
.portada-car select {
    font-size: 1rem;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    appearance: none; /* Elimina el estilo por defecto del navegador */
    -webkit-appearance: none; /* Compatibilidad con navegadores WebKit */
    -moz-appearance: none; /* Compatibilidad con Firefox */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='292.362' height='292.362' viewBox='0 0 292.362 292.362'%3E%3Cpath fill='%23777777' d='M287.894 69.245c-3.806-3.806-8.372-5.709-13.693-5.709H18.162c-5.325 0-9.896 1.903-13.704 5.709C.659 73.049-.243 77.62.243 82.942c.483 5.33 2.378 9.899 5.709 13.704l127.988 127.99c3.617 3.617 7.898 5.424 12.847 5.424s9.233-1.807 12.847-5.424l127.988-127.99c3.617-3.617 5.424-7.898 5.424-12.847 0-4.948-1.807-9.233-5.424-12.847z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
}

.portada-car select:focus {
    border-color: #28a745;
    outline: none;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
}

.portada-car-2 {
    background-color: #3C763D;
    color: white;
    border-color: transparent;
}
.portada-car-2 h2  {
    font-size: 1.4em;
    font-weight: 500;
}

.portada-car-2 button {;
    color: #3C763D;
    font-weight: 500;
    background-color: white;
}
.portada-car-2 button,
.portada-car-2 a {
    display: inline-block;
    color: #3C763D;
    font-weight: 500;
    background-color: white;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #3C763D;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.portada-car-2 a:hover,
.portada-car-2 button:hover {
    color: #3C763D;
    background-color: #caf8bc;
}



.latest-news .card {
    display: flex;
    flex-direction: column; /* Asegura que los hijos se distribuyan verticalmente */
    height: 100%; /* Fuerza que todas las tarjetas ocupen el mismo alto */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-news h1  {
    font-size: 2.0em;
    font-weight: 700;
    color: #3C763D;
}

.latest-news .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.latest-news .card-img-top {
    height: 200px;
    object-fit: cover; /* Recorta y ajusta la imagen */
}

.latest-news .card-body {

    padding: 15px;
    display: flex;
    flex-direction: column; /* Asegura que el contenido dentro del cuerpo también esté alineado */
    justify-content: space-between; /* Distribuye el contenido dentro del cuerpo */
}

.latest-news .card-title {
    font-size: 1.25rem;
    font-weight: bold;

}
.latest-news .card-title a {
    color: #3C763D;
}

.latest-news .card-text {
    font-size: 0.9rem;
    color: #555;
    flex-grow: 1;
}

.latest-news .badge {
    margin-bottom: 10px;
}
.latest-news .text-muted {
    font-size: 0.8rem;
    padding-bottom: 2px;
}



.single-post {
    background-color: #f9f9f9;
}

.post-detail h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #3C763D;
}

.post-detail .text-primary {
    font-weight: 600;
    font-size: 0.85rem;
}

.post-detail .text-muted {
    font-size: 0.9rem;
    color: #777;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-content {
    line-height: 1.8;
    font-size: 1rem;
    color: #444;
    text-align: justify;
}

.post-content h2 {
    border-left-style: solid;
    border-left-width: 5px;
    border-left-color: #3C763D;
    padding-left: 10px;
    font-size: 1.3rem;
    color: #444;
    margin-bottom: 20px;
}

.post-navigation {
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.post-navigation .prev-post a,
.post-navigation .next-post a {
    font-size: 0.9rem;
    color: #007bff;
    text-decoration: none;
}

.post-navigation .prev-post a:hover,
.post-navigation .next-post a:hover {
    text-decoration: underline;
}

.btn-verde {
    display: inline-block;
    color: white;
    font-weight: 500;
    background-color: #3C763D;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #3C763D;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-verde:hover {
    background-color: green;
    color: white;
}

.btn-fixed-width {
    width: 160px; /* Mantén un ancho fijo para el botón */
    text-align: center;
}

/* Contenedor de la tabla */
.table-container {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Encabezado de la tabla */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.table-header h2 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #374151;
}

.table-header p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.add-user-btn {
    background-color: #6366f1;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-user-btn:hover {
    background-color: #4f46e5;
}

/* Tabla */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.875rem;
    text-align: left;
}

.custom-table th {
    background-color: #f9fafb;
    color: #374151;
    padding: 10px;
    font-weight: bold;
    border-bottom: 1px solid #e5e7eb;
}

.custom-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
}

.custom-table a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.custom-table a:hover {
    color: #4f46e5;
}

.custom-table .numero {
    font-size: 1.0em;
}
.custom-table .nombreparada {
    font-size: 1.2em;
}
.custom-table .parada-link {
    color: #3C763D;
    font-weight: bold;
}
.custom-table .parada-link:hover {
    color: black;
}

/* Contenedor de tabla (si quieres centrarlo o darle padding) */
.wp-block-table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
    margin: 2rem 0;
    overflow-x: auto; /* Para tablas muy anchas en dispositivos pequeños */
    border: 1px solid #e5e7eb;
}

/* Encabezado de la tabla */
.wp-block-table th {
    background-color: #f9fafb; /* Fondo claro */
    color: #3C763D;
    padding: 10px;
    font-weight: bold;
    text-align: left;
    border: 0px;

}

/* Filas de la tabla */
.wp-block-table td {
    padding: 6px;
    border: 0px solid #e5e7eb;
    color: #4b5563; /* Texto gris medio */
    font-size: 0.9rem;
    text-align: left;
}

/* Alternar colores en filas */
.wp-block-table tr:nth-child(even) {
    background-color: #f3f4f6; /* Fondo gris claro */
}

/* Enlaces en la tabla */
.wp-block-table a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.wp-block-table a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* Responsividad */
.wp-block-table {
    display: block;
    overflow-x: auto; /* Scroll horizontal en pantallas pequeñas */

}

.lineas .card-title {
    white-space: wrap;
    overflow: auto;
    text-overflow: unset;
}

.avisos-destacados {
    background-color: #fffbea; /* Fondo claro para destacarse */
}

.alert {
    background-color: #fff3cd;
    color: #856404;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.aviso-card {
    background-color: #ffe7e7; /* Fondo para cada aviso */
    border: 2px solid #dc3545; /* Borde rojo llamativo */
    color: #212529;
    transition: transform 0.3s, box-shadow 0.3s;
}

.aviso-card:hover {
    transform: scale(1.03); /* Ligeramente más grande al pasar el cursor */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

.aviso-titulo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #dc3545; /* Rojo llamativo */
}

.aviso-fecha {
    font-size: 0.9rem;
    color: #6c757d; /* Texto secundario */
}

.aviso-contenido {
    font-size: 0.9rem;
    line-height: 1.2;
    color: #333;
}

@media (max-width: 768px) {
    .avisos-destacados {
        padding: 20px 15px;
    }
    .aviso-card {
        padding: 15px;
    }
}
