
			/* --- VARIABLES GLOBALES (Personalidad del Proyecto) --- */
:root {
    --verde-oscuro: #004d40;
    --verde-claro: #81c784;
    --blanco: #ffffff;
    --gris-fondo: #f4f4f4;
    --sombra: rgba(0,0,0,0.15);
}

/* --- ESTILOS BASE --- */
body {
    background-color: #fcfaf5;
    /* Un patrón de rombos muy finos que llenan el espacio */
    background-image:  linear-gradient(30deg, #f0ede4 12%, transparent 12.5%, transparent 87%, #f0ede4 87.5%, #f0ede4), linear-gradient(150deg, #f0ede4 12%, transparent 12.5%, transparent 87%, #f0ede4 87.5%, #f0ede4), linear-gradient(30deg, #f0ede4 12%, transparent 12.5%, transparent 87%, #f0ede4 87.5%, #f0ede4), linear-gradient(150deg, #f0ede4 12%, transparent 12.5%, transparent 87%, #f0ede4 87.5%, #f0ede4), linear-gradient(60deg, #f7f4ec 25%, transparent 25.5%, transparent 75%, #f7f4ec 75.5%, #f7f4ec), linear-gradient(60deg, #f7f4ec 25%, transparent 25.5%, transparent 75%, #f7f4ec 75.5%, #f7f4ec);
    background-size: 40px 70px;
}

/* --- NAVEGACIÓN UNIVERSAL --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--blanco);
    border-bottom: 2px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap; 
}

.secciones {
    display: flex;
    gap: 10px; 
    align-items: center;
}

.secciones a {
    text-decoration: none;
    color: #444;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 8px; 
    border: 2px solid transparent; 
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

.secciones a:hover, .secciones a.activo {
    color: var(--verde-oscuro);
    border-color: var(--verde-claro);
    background-color: rgba(129, 199, 132, 0.1);
    transform: translateY(-2px); 
}

/* --- BUSCADOR Y FILTROS --- */
.herramientas-derecha {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.buscador {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 5px 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    width: 200px;
}

.buscador input {
    border: none;
    outline: none;
    background: transparent;
    padding: 5px;
    width: 100%;
    font-size: 14px;
    font-family: inherit;
}

.buscador button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--verde-oscuro);
    transition: transform 0.2s ease;
}

.buscador:focus-within {
    border-color: var(--verde-claro);
    box-shadow: 0 0 8px rgba(129, 199, 132, 0.4);
}

.filtros select {
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    color: var(--verde-oscuro);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 15px;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23004d40" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: 95% 50%;
    padding-right: 35px; 
    min-width: 180px;
}

/* --- BANNERS (INICIO Y TURISMO) --- */
.banner {
    padding: 60px 5% 80px 5%;
    background-size: cover;
    background-position: center;
    color: var(--blanco);
    background-color: var(--verde-oscuro);
    background-blend-mode: overlay;
    /* Sombra interna para dar profundidad y suavizar el borde inferior */
    box-shadow: inset 0 -50px 50px -20px rgba(0,0,0,0.5);
    border-bottom: 4px solid var(--verde-claro); /* Una línea de acento */
}

.banner-portada {
    width: 100%;
    height: 350px; /* Altura fija para que no se vea cortada */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    
    /* Configuración de la imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Capa oscura para que el texto resalte siempre */
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.5); 
    
    border-bottom: 5px solid var(--verde-claro);
}

/* Fuerza el fondo oscuro en el inicio */
.banner-inicio {
    background-image: linear-gradient(rgba(0, 77, 64, 0.8), rgba(0, 77, 64, 0.8)), 
                      url('https://images.unsplash.com/photo-1590603784110-86649733075c?w=1200');
}

/* Clase para el banner de sitios turísticos */
.banner-turismo {
    background-image: linear-gradient(rgba(0, 77, 64, 0.85), rgba(0, 77, 64, 0.85)), url('https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=1200');
}

.titulo-principal {
    font-size: clamp(40px, 8vw, 70px);
    margin: 0;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #ffffff, var(--verde-claro));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(4px 4px 0px rgba(0,0,0,0.3));
}
.titulo-apartado {
    color: var(--verde-oscuro);
    font-family: 'Georgia', serif;
    font-size: 28px;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

.titulo-apartado::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--verde-claro);
    margin-top: 5px;
    border-radius: 2px;
}

.subtitulo-apartado {
    font-style: italic;
    color: #777;
    margin-top: 0;
    font-size: 16px;
    margin-bottom: 30px;
}

.subtitulo {
    font-size: clamp(18px, 2vw, 22px);
    margin-top: 15px;
    color: #e0f2f1;
    font-style: italic;
    max-width: 800px;
}

/* --- ETIQUETAS (TAGS) --- */
.etiqueta {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cat-sabores { background-color: #e67e22; }      /* Naranja */
.cat-destinos { background-color: #27ae60; }     /* Verde */
.cat-profesional { background-color: #8e44ad; }  /* Morado */
.cat-tramites { background-color: #7f8c8d; }     /* Gris */
.cat-soporte { background-color: #2980b9; }      /* Azul */
.cat-ruta { background-color: #c0392b; }         /* Rojo */

/* --- GALERÍA Y TARJETAS --- */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 5%;
}

.tarjeta {
    background: var(--blanco);
    border-radius: 15px;
    overflow: hidden;
    /* Sombra más suave para que floten sobre el nuevo fondo crema */
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); 
    transition: all 0.3s ease;
}

.tarjeta:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--sombra);
}

/* --- CARRUSEL ANIMADO --- */
.carrusel {
    width: 100%;
    height: 280px; /* Altura fija para que todas las tarjetas sean iguales */
    overflow: hidden;
    position: relative;
    background-color: #eee; /* Color de carga */
}
.img-portada {
    width: 100%;
    height: 100%;
    object-fit: cover; /* MAGIA: Llena el espacio sin estirarse */
    object-position: center; /* Centra la imagen para que no se corte lo importante */
    transition: transform 0.5s ease; /* Para un efecto visual extra */
}
.tarjeta:hover .img-portada {
    transform: scale(1.1);
}

.carrusel-fotos {
    display: flex;
    width: 400%; /* Soporta hasta 4 fotos */
    height: 100%;
    animation: deslizar 12s infinite ease-in-out;
}

.carrusel-fotos img {
    width: 25%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s;
}

.tarjeta:hover .carrusel-fotos img {
    filter: brightness(1.1);
}

@keyframes deslizar {
    0%, 20% { margin-left: 0; }
    25%, 45% { margin-left: -100%; }
    50%, 70% { margin-left: -200%; }
    75%, 95% { margin-left: -300%; }
    100% { margin-left: 0; }
}

.tarjeta-info {
    padding: 20px;
}

.tarjeta-info h3 {
    margin: 0 0 10px 0;
    color: var(--verde-oscuro);
    font-size: 1.3rem;
}

.tarjeta-info p {
    font-size: 15px;
    color: #555;
    line-height: 1.4;
}

/* --- DISEÑO RESPONSIVO (MÓVIL) --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .secciones {
        justify-content: center;
        flex-wrap: wrap;
    }
    .herramientas-derecha {
        align-items: center;
        width: 100%;
    }
    .buscador {
        width: 90%;
    }
}
.contenedor-seccion {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 5%;
}