/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}


/* Body Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;

}

/* Wrapper */
.wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 10px;
}


/* Header Section */
.header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    border-bottom: 2px solid #ddd;
    position: relative;
}

.language-switch {
    margin-top: 2px;
    display: grid;
    grid-template-columns: 1fr;   /* UNA sola columna */
    gap: 4px;                     /* Espacio vertical entre banderas, ajusta a tu gusto */
    position: absolute;
    z-index: 1000;
    left: 20px;
    top: 10px;
}


.language-switch a {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    line-height: 1;
    margin: 0;
    padding: 0;
    text-decoration: none;
}





.logo {
    display: flex;
    width: 50%;
    align-items: center;
    justify-content: center;
}



/* Logo Image Styling */
.site-logo {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-right: 10px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* Media Queries for Logo */
@media (min-width: 768px) {
    .site-logo {
        max-width: 180px;
    }
}

@media (min-width: 1200px) {
    .site-logo {
        max-width: 200px;
    }
}

@media (min-width: 1600px) {
    .site-logo {
        max-width: 220px;
    }
}

/* Logo Links */
.logo a {
    display: flex;
    align-items: center;
}

/* homepage-intro */
/* Fila horizontal para logo y banderas */
.header-main-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
}

.homepage-intro-card {
    width: 100%;
    max-width: 350px;         /* Ajusta este valor según tu gusto: 300-400px */
    margin: 20px auto 0 auto; /* Más separación arriba y centrado horizontalmente */
    display: flex;
    justify-content: center;
    padding-top: 0;           /* Puedes aumentar si necesitas aún más espacio */
    z-index: 2;               /* Por si acaso */
}

.homepage-intro {
    width: 80%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(60,64,67,0.08);
    padding: 0.7rem 1.2rem;
    margin: 0;
    color: #8ba6c6;
    font-size: 0.90rem;    
    text-align: center;
    font-weight: 400;
}


/* Responsive para móvil */
@media (max-width: 600px) {
    .homepage-intro {
        font-size: 0.70rem;
        padding: 0.5rem 3vw;      /* padding lateral flexible */
        line-height: 1.35;
        max-width: 100vw;         /* ocupa todo el ancho del viewport */
        box-sizing: border-box;   /* para que el padding no lo haga sobresalir */
    }
    .header-main-row {
        gap: 12px;
    }
}



/* Section Styles */
.section {
    position: relative;
    padding: 10px;
    background-color: #fff;
    margin: 4px auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.section .triangle-icon {
    margin-left: 10px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #333;
    cursor: pointer;
}

/* Map Placeholder as <a> Element */
.map-placeholder {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.map-placeholder img {
    width: 100%;
    height: auto;
    transition: transform 0.1s ease, opacity 0.1s ease;
    display: block;
    border-radius: 8px;
    cursor: default;
}

.map-placeholder:active img {
    transform: scale(0.98);
    opacity: 0.9;
}



/* h2 */
.section h2 {
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.0em;
}



.anchored-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #2f7fb1;
    color: white;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.2s ease;
}


/* Media query for smaller screens */
@media (max-width: 600px) {
    .anchored-button {
        font-size: 10px;
        padding: 6px 12px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: absolute;
    z-index: 1000;
    width: 90%;
    max-width: 300px;
    top: 10px;
    right: 5%;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.close {
    cursor: pointer;
    font-size: 20px;
    float: right;
    color: #aaa;
}

.close:hover {
    color: #000;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1em;
    color: #555;
}

.modal-content p {
    margin-bottom: 0;
    font-size: 0.9em;
    color: #333;
    line-height: 1.5;
}

/* Feature List */
.feature-list.wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
}

.feature-list.wrapper ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list.wrapper li {
    flex: 1 1 45%;
    max-width: 200px;
    margin: 10px;
    text-align: center;
}

.feature-list.wrapper a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: #f9f9f9;
    border: 2px solid #007BFF;
    border-radius: 8px;
    text-decoration: none;
    color: #007BFF;
    transition: transform 0.3s, background-color 0.3s, color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 100%;
    font-size: 0.9em;
}

.feature-list.wrapper a:hover {
    background-color: #007BFF;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.feature-list.wrapper a:active {
    transform: scale(0.98);
}

.feature-list.wrapper a:focus {
    outline: 2px solid #0056b3;
    outline-offset: 4px;
}

.feature-list a {
    text-decoration: none;
    color: #007BFF;
    transition: color 0.3s;
}

.feature-list a:hover {
    color: #0056b3;
}

.footer-links.wrapper {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
}

.footer-links.wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.footer-links.wrapper li {
    margin: 0;
    padding: 0;
}

.footer-links.wrapper a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #007BFF;
    transition: color 0.3s;
    padding: 10px 15px;
    height: 40px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1em;
    font-weight: bold;
    line-height: 1.2;
    transform: none;
}

.footer-links.wrapper a:hover {
    color: #0056b3;
}

@media (max-width: 600px) {
    .feature-list.wrapper li {
        flex: 1 1 100%;
    }

    .feature-list.wrapper a {
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .footer-links.wrapper ul {
        flex-direction: column;
    }

    .footer-links.wrapper li {
        margin: 5px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .map-placeholder img {
        transition: none;
        transform: none;
        opacity: 1;
    }

    .feature-list.wrapper a {
        transition: none;
        transform: none;
    }
}

.modal.show {
    display: block;
}

.map-placeholder:focus {
    outline: 2px solid #4285F4;
    outline-offset: 4px;
}




.footer-links {
    background-color: rgba(0, 0, 0, 0.05);
    /* Soft light gray background */
    color: #555;
    /* Medium gray text */
    padding: 20px;
    text-align: center;
    margin-top: 40px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    /* Softer rounded edges */
    font-size: 16px;
    /* Increased font size */
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    /* Increased spacing between items */
}

.footer-links ul li {
    display: inline;
}

.footer-links a {
    color: #444;
    /* Darker gray for better contrast */
    text-decoration: none;
    font-size: 16px;
    /* Bigger font size */
    font-weight: 500;
    /* Slightly bolder for readability */
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #777;
    /* Lighter gray on hover */
}

.footer-links p {
    margin-top: 10px;
    font-size: 14px;
    color: #777;
    /* Softer gray for copyright text */
}


/* === Sección Tapas === */

.section-tapas {
    margin: 2rem auto;
    padding: 1rem;
}

.titulo-tapas {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Galería con fondo gris claro */
.section-tapas .galeria-tapas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    /* más espacio entre tapas */
    padding: 1rem;
    background-color: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

/* Cada tapa con fondo blanco y padding */
.section-tapas .tapa {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    max-width: 140px;
    flex: 1 1 30%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.section-tapas .tapa:hover {
    transform: translateY(-2px);
}

/* Enlace: imagen + texto */
.tapa-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Imagen de la tapa */
.section-tapas .tapa img {
    width: 100%;
    max-width: 80px;
    /* más pequeño */
    height: auto;
    border-radius: 6px;
}

/* Texto debajo de la imagen */
.section-tapas .tapa .nombre {
    margin-top: 0.4rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.85rem;
    /* más pequeño */
    line-height: 1.2;
}

.tapa-link:hover .nombre {
    text-decoration: underline;
}

/* Responsive: 2 por fila */
@media (max-width: 600px) {
    .section-tapas .tapa {
        width: 45%;
        flex: 1 1 45%;
        max-width: 120px;
        padding: 0.5rem;
    }

    .section-tapas .tapa img {
        max-width: 65px;
    }

    .section-tapas .tapa .nombre {
        font-size: 0.8rem;
    }
}

/* Responsive: 1 por fila en pantallas pequeñas */
@media (max-width: 350px) {
    .section-tapas .tapa {
        width: 100%;
        flex: 1 1 100%;
        max-width: none;
    }

    .section-tapas .tapa img {
        max-width: 60px;
    }

    .section-tapas .tapa .nombre {
        font-size: 0.75rem;
    }
}


/* Estilos generales de la sección de videos */
.youtube-videos {
    padding: 20px 10px;
    background-color: #fff;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 800px;
}

.video-header {
    margin-bottom: 20px;
}

.video-header .video-title {
    font-size: 1.2em;
    margin: 0;
}

.video-header .video-subtitle {
    font-size: 0.8em;
    margin-top: 4px;
    color: #666;
}

/* Contenedor de items de video */
.video-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.video-item {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
    box-sizing: border-box;
}

.video-grid {
    display: grid;
    grid-template-rows: auto auto;
    row-gap: 10px;
}

.video-display {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 2em;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.play-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.hidden {
    display: none;
}

.plyr__video-embed {
    width: 100%;
    max-width: 360px;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.video-caption {
    text-align: center;
}

.video-item-title {
    font-size: 1em;
    color: #333;
}

@media (max-width: 600px) {
    .video-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .plyr__video-embed,
    .video-display {
        max-width: 100%;
    }
}


/* seccion de audios */
/* 🎧 Audio Player Container */
#player-container {
    margin: 10px 0;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* 🎛️ Audio Bar (Compact) */
#shared-audio {
    width: 100%;
    height: 32px;
    /* Smaller than default */
    display: block;
}

/* 🎙️ Now Playing Text */
.now-playing {
    font-size: 0.8em;
    text-align: center;
    margin-top: 4px;
    color: #444;
}

/* 🧱 Audio Card Grid */
#audio-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

/* 🖼️ Audio Card Design */
.audio-item-card {
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.audio-item-card:hover {
    transform: scale(1.03);
}

/* 🏷️ Title Overlay */
.audio-title-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.75em;
    font-weight: bold;
    padding: 0.4em 0.6em;
    box-sizing: border-box;
    text-align: left;
}

/* 📱 Mobile Layout */
@media (max-width: 400px) {
    #audio-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .audio-title-overlay {
        font-size: 0.7em;
        padding: 0.3em 0.5em;
    }
}

/* section map and walking video */
/* Mapas y Videos andando: sección compacta y proporcionada */
.mv-section {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 24px rgba(40,60,100,0.10);
  padding: 1rem;
  box-sizing: border-box;
}

/* Títulos */
.section-header h2 {
  text-align: center;
  font-size: 1.3em;
  color: #14477d;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.section-header .subtitle {
  text-align: center;
  font-size: 1em;
  color: #8ba6c6;
  margin-bottom: 1.5rem;
}

/* Tarjeta de zona/mapa/video */
.zone-card {
  background: #fafcff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(20,40,90,0.07);
  margin-bottom: 1.5rem;
  padding: 1rem;
  transition: box-shadow 0.15s;
}

.zone-card:last-child {
  margin-bottom: 0;
}

/* Título de cada zona */
.zone-title {
  font-size: 1.1em;
  font-weight: 600;
  color: #265d93;
  margin-bottom: 1rem;
  text-align: center;
}

/* Grupo de iconos: MUCHA separación */
.zone-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 96px;              /* Gran espacio entre iconos */
  max-width: 320px;       /* Ajusta para no romper en pantallas muy grandes */
  margin: 0 auto;
  width: 100%;
}

/* Enlace de cada icono: solo ocupa lo necesario */
.zone-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #27557d;
  transition: transform 0.13s;
  outline: none;
  min-width: 0;
  width: auto;
  flex: none;
}

.zone-icon-link:active,
.zone-icon-link:focus {
  transform: scale(0.97);
  box-shadow: 0 0 0 2px #a3c9ee;
  border-radius: 19%;
}

/* ICONO: tamaño fijo, nunca crece */
.zone-icon-link img {
  width: 70px;
  height: 70px;
  margin-bottom: 0;
  border-radius: 15%;
  background: #eaf3ff;
  box-shadow: 0 2px 12px rgba(20,40,90,0.08);
  object-fit: contain;
  display: block;
  transition: box-shadow 0.17s;
}

/* Responsive: mucho gap también en móvil, pero ajustado */
@media (max-width: 600px) {
  .mv-section {
    padding: 0.7rem;
    max-width: 99vw;
  }
  .zone-icons {
    gap: 56px;           /* Espacio grande entre iconos en móvil */
    max-width: 220px;    /* Suficiente para 2 iconos y mucho aire */
  }
  .zone-icon-link img {
    width: 54px;
    height: 54px;
  }
}
