/* General */


footer {
    clear: both;
    position: relative;
    z-index: 10;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    border: none;
    box-shadow: none;
    margin-top: 0;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100%;
}

html {
    box-sizing: border-box;
    height: 100%;
}

/* Contenedor Principal */
.contenedor-fichas {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Título de las fichas */
.titulo-fichas {
    text-align: left;
    color: white;
    font-size: 1.9rem;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(90deg, #54b435, #28a745);
    border-radius: 3px;
}

/* Contenedor del texto e imagen (Formulario e Imagen) */
.contenido-fichas {
    display: flex;
    flex-direction: row; /* Mostrar en fila en escritorio */
    gap: 20px;
    align-items: stretch;
}

/* Imagen destacada */
.imagen-ficha {
    flex: 2; /* Imagen ocupa el 60% */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
}

.imagen-destacada {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Contenedor del formulario */
.texto-explicativo {
    flex: 3; /* Formulario ocupa el 40% */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Tarjeta del formulario */
.tarjeta-formulario {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tarjeta-formulario h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #333;
}

/* Tarjetas de rutas */
.rutas-listado {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tres columnas */
    gap: 20px; /* Espaciado entre tarjetas */
    width: 100%; /* Ocupa todo el ancho */
}

/* Tarjeta individual con diseño horizontal */
.ruta-card {
    display: flex;
    flex-direction: column; /* Contenido en una sola columna */
    align-items: center;
    gap: 10px; /* Espaciado entre los elementos */
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center; /* Centra el contenido */
}

/* Tarjeta al pasar el ratón */
.ruta-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Imagen en la tarjeta */
.ruta-card img {
    width: 150px; /* Ajustar tamaño reducido */
    height: 150px; /* Mantener cuadrado */
    object-fit: cover; /* Ajusta la imagen sin deformar */
    border-radius: 8px;
    margin: 0 auto; /* Centrar en la tarjeta */
    display: block; /* Centrar visualmente */
}

/* Contenedor del contenido textual de la tarjeta */
.ruta-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px; /* Espaciado entre elementos */
}

/* Título de la tarjeta */
.ruta-card h3 {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    color: #54b435;
}

/* Texto dentro de la tarjeta */
.ruta-card-content p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #333;
}

/* Responsividad */
@media (max-width: 768px) {
    .contenido-fichas {
        flex-direction: column; /* Apilar imagen y formulario en móvil */
        gap: 15px;
    }

    .imagen-ficha {
        flex: 1;
        height: auto;
    }

    .texto-explicativo {
        flex: 1;
    }

    .rutas-listado {
        grid-template-columns: 1fr; /* Una tarjeta por fila */
    }

    .ruta-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .ruta-card img {
        width: 100%;
        height: auto;
    }
}
