/* Estilos generales y reinicio */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
}

.container {
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Contenedor 1: Título (Fondo verde hierba) */
.header-container {
    background-color: #4e844a; /* <-- Nuevo verde */
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.header-container h1 {
    font-size: 3em;
    margin: 0 0 10px;
}

.header-container h2 {
    font-style: italic;
    font-weight: normal;
    font-size: 1.2em;
    margin: 0;
}

/* Contenedor 2: Texto El Recorrido (Fondo verde claro) */
.recorrido-container {
    background-color: #e0f2e0;
    padding: 50px 20px;
}

.recorrido-container .content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.recorrido-container h2 {
    font-size: 2em;
    display: inline-block;
    border-bottom: 2px solid #4e844a; /* <-- Nuevo verde */
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.recorrido-container p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.recorrido-container p strong {
    font-weight: bold;
}

/* Contenedor 3: Audioguía (Fondo blanco) */
.audioguia-container {
    background-color: white;
    padding: 50px 20px;
    text-align: center;
}

.audioguia-container h2 {
    font-size: 2em;
    display: inline-block;
    border-bottom: 2px solid #4e844a; /* <-- Nuevo verde */
    padding-bottom: 5px;
    margin-bottom: 40px;
}

.puntos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.punto-item {
    border: 1px solid #ddd;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.punto-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.punto-item h3 {
    margin-top: 0;
}

.punto-item p {
    font-size: 0.9em;
    line-height: 1.5;
    min-height: 80px;
}

/* Estilo para el reproductor de audio */
.audio-player {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: #e0e0e0;
    border-radius: 10px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.control-btn {
    width: 40px;
    height: 40px;
    background: #6a6a6a;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.control-btn:hover {
    background-color: #8c8c8c;
}

.control-btn:active {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid white;
}

.pause-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-left: 4px solid white;
    border-right: 4px solid white;
}

.stop-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: white;
}

.time-display {
    color: #333;
    font-size: 0.9em;
    font-family: monospace;
    flex-grow: 1;
    text-align: center;
}

/* --- Contenedor 4: Mapas y texto --- */
.mapas-container {
    background-color: #7d5c3a; /* <-- Nuevo marrón */
    padding: 50px 20px;
    color: white;
    text-align: center;
}

.mapas-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto 30px;
    overflow: hidden;
}

.mapa-slide {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mapa-slide.active {
    display: flex;
}

.mapa {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Estilo para los nuevos botones del carrusel */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.6);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* Flechas de navegación más gruesas */
.arrow {
    width: 12px;
    height: 12px;
    border-style: solid;
    border-color: white;
    border-width: 0 4px 4px 0;
    display: inline-block;
    padding: 3px;
}

.right-arrow {
    transform: rotate(-45deg);
}

.left-arrow {
    transform: rotate(135deg);
}

.download-link {
    display: inline-block;
    background-color: #4e844a; /* <-- Nuevo verde */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 1.1em;
}

.download-link:hover {
    background-color: #3b6b37; /* <-- Nuevo color de hover */
}

.download-link::before {
    content: "↓";
    margin-right: 8px;
    font-size: 1.2em;
    display: inline-block;
    transform: translateY(2px);
}

.mapas-info {
    max-width: 800px;
    margin: 50px auto 0;
    text-align: left;
    line-height: 1.6;
}

.mapas-info h2 {
    font-size: 2em;
    display: inline-block;
    border-bottom: 2px solid white;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

/* Contenedor 5: Pie de página (Fondo verde hierba) */
.footer-container {
    background-color: #4e844a; /* <-- Nuevo verde */
    color: white;
    text-align: center;
    padding: 20px;
}

/* Media Queries para responsividad */
@media (max-width: 900px) {
    .puntos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .puntos-grid {
        grid-template-columns: 1fr;
    }
    .header-container h1 {
        font-size: 2em;
    }
    .header-container h2 {
        font-size: 1em;
    }
    .audio-player {
        flex-wrap: wrap;
    }
    .time-display {
        flex-basis: 100%;
        margin-top: 10px;
        font-size: 1.1em;
    }
}
