/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header{
    background-color: white;
    padding: 20px;
}

.header-image{
    max-width: 200px;
    display: block;
    margin: 0 auto;
}

main {
    padding: 20px;
}

.h1{
    text-align: center;
    margin-bottom: 50px;
}

.h2{
    text-align: center;
    font-style: italic;
    font-weight: normal;
    opacity: 0.5;
    margin-bottom: 50px;
}

.rutas-acordeon {
    max-width: 800px;
    margin: 0 auto;
}

.escalon {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.escalon:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.escalon-titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    background-color: #11a318;
    color: white;
}

.escalon-titulo h2 {
    margin: 0;
    font-size: 1.5em;
}

.escalon-titulo .precio {
    font-size: 1.5em;
    font-weight: bold;
}

.escalon-contenido {
    padding: 15px;
    display: none;
    background-color: transparent;
}

.animacion-carrito {
    width: 100%;
    height: 100px;
    position: relative;
    overflow: hidden;
}

.animacion-carrito i {
    position: absolute;
    font-size: 3em;
    color: #11a318;
    top: 50%; /* Centrar verticalmente */
    transform: translateY(-50%); /* Ajustar posición vertical */
    left: -100%; /* Inicia fuera del contenedor a la izquierda */
    animation: moverCarrito 10s linear infinite;
}

@keyframes moverCarrito {
    0% {
        left: -100%; /* Comienza fuera del contenedor a la izquierda */
        transform: translateY(-50%) scaleX(1); /* Sin voltear */
    }
    49% {
        left: 100%; /* Llega al extremo derecho */
        transform: translateY(-50%) scaleX(1); /* Sin voltear */
    }
    50% {
        left: 100%; /* Cambia de dirección en el extremo derecho */
        transform: translateY(-50%) scaleX(-1); /* Se voltea */
    }
    99% {
        left: -100%; /* Regresa al extremo izquierdo */
        transform: translateY(-50%) scaleX(-1); /* Volteado */
    }
    100% {
        left: -100%; /* Vuelve a la posición inicial */
        transform: translateY(-50%) scaleX(1); /* Se voltea de nuevo */
    }
}

.tiempo-estimado {
    text-align: center;
    font-size: 1.1em;
    margin: 15px 0;
    font-style: italic;
    font-weight: normal;
    opacity: 0.8;
}

.btn-comprar {
    display: block;
    width: 90%;
    margin: 0 auto;
    padding: 10px;
    background-color: #11a318;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-comprar:hover {
    background-color: #45a049;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #11a318;
    border: solid white;
    color: white;
    position: relative;
    width: 100%;
    bottom: 0;
}