@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: "PT Serif", serif;
}

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #fff;
    box-shadow: 0 4px 25px -25px black;
    z-index: 2;
}

.header-content{
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
}

.logo{
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: inherit;  /* hereda el color original del texto */
}

.logo h1 b{
    color: #46a2fd;
}

.menu {
    height: 80px;
}

.menu nav {
    height: 100%;
}

.menu nav ul {
    height: 100%;
    display: flex;
    list-style: none;
}

.menu nav ul li{
    height: 100%;
    margin: 0px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.menu-selected::before{
    content: '';
    width: 100%;
    height: 4px;
    background: #46a2fd;
    position: absolute;
    top: 0;
    left: 0;
}

.menu nav ul li a{
    color: #777777;
    font-size: 18px;
    transition: color 300ms;
}

.menu nav ul li a:hover{
    color: #46a2fd;
}

.menu .text-menu-selected{
    color: #46a2fd;
}

.menu nav ul li a i{
    display: none;
}

#icon-menu{
    width: 50px;
    height: 50px;
    position: absolute;
    right: 20px;
    top: 16px;
    padding: 10px;
    font-size: 20px;
    background: #eeeeeefa;
    border-radius: 100%;
    color: #787878;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#icon-menu:hover{
    opacity:0.8;  
}

/*Portada*/
.container-cover{
    width: 100%;
    height: 500px;
    position: relative;
    margin-top: 80px;
    background-image: url(../img/Almaguer_Cauca2.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.container-cover::before{
    content:'';
    width: 100%;
    height: 100%;
    background: rgba(38, 172, 255, 0.8);
    position: absolute;
    top: 0;
    left: 0;
}

.container-info-cover{
    max-width: 800px;
    height: 500px;
    margin:auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.container-info-cover h1{
    font-size: 60px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 20px;
}

.container-info-cover P{
    color: #fff;
    font-size: 20px;
    font-weight: 300;
}

/* ==================== CONTENEDOR PRINCIPAL ==================== */
/*aqui borre un codigo*/
.container-content{ 
    width: 1200px; 
    margin: auto; 
    margin-top: 40px; 
    display: flex; 
    justify-content: center; 
} 

article{
    width: 100%;
    padding: 20px;
    padding-bottom: 40px;
    box-shadow: -10px 0 20px -30px black;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

article::before{
    content: '';
    width: 100%;
    height: 6px;
    position: absolute;
    top: 0;
    left: 0;
    background: #46a2fd;
}

article h1{
    margin-top: 20px;
    font-weight: 500;
    font-size: 40px;
}

article h2{
    font-size: 30px; 
    margin-top: 20px;
    text-align: center;
}

article h3{
    font-size: 28px; 
    margin-top: 20px;
    text-align: left;
}

.video-container {
    text-align: center;
    margin: 20px 0;
}

article p{
    margin-top: 20px;
    font-size: 18px;
    color: #3c3c3c;
}

article img{
    width: 100%;
    margin-top: 20px;
}

article ul {
    margin-top: 20px;
    font-size: 18px;
    color: #3c3c3c;
    padding-left: 20px;
}

article ul li {
    margin-top: 10px;
}

/* ==================== ASIDES ==================== */
/* Asides (columna derecha en PC) */
.container-aside {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Cada aside */
.container-aside aside {
    width: 320px;
    box-shadow: 0 0 20px -20 black;
    border-radius: 6px;
    overflow: hidden;
    margin-left: 40px;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.container-aside aside img{
    width: 100%;
}

.container-aside aside aside h2,
.container-aside aside aside p{
    margin-top: 20px;
    padding: 0px 20px;
}

.container-aside aside button{
    margin-top: 20px;
    margin-left: 20px;
    padding: 10px 50px;
    font-size: 16px;
    background: #46a2fd;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
}

.container-aside aside button:hover{
    opacity: 0.9;  
}

/* ==================== REFERENCIAS ==================== */
#referencias {
    background: #f9f9f9; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    padding: 20px 25px;
    margin-top: 40px;
    box-shadow: 0 4px 10px -6px rgba(0,0,0,0.2); 
}

#referencias h2 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    color: #2c3e50;
}

#referencias ol {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#referencias ol li {
    margin-bottom: 18px;
    line-height: 1.6;
    font-size: 17px;
    color: #444;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

#referencias ol li:last-child {
    border-bottom: none;   /* quita la línea al último */
}

#referencias cite {
    font-style: italic;
    color: #000;
}

#referencias a {
    color: #46a2fd;
    font-weight: bold;
    text-decoration: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

#referencias a:hover {
    text-decoration: underline;
    color: #004aad;
}

/* ==================== FOOTER ==================== */
.container-footer{
    width: 100%;
    padding: 40px 0;
    background: #f7f7f7;
    margin-top: 40px;
}

.container-footer footer{
    max-width: 1200px;
    margin: auto;
}

.container-footer footer .logo-footer{
    text-align: center;
}

.container-footer footer .logo-footer img{
    width: 100px;
    cursor: pointer;
}

.container-footer footer .redes-footer{
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.container-footer footer .redes-footer .icon-redes-footer{
    font-size: 20px;
    margin: 20px;
    background: #efefef;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    color: #a2a2a2;
    transition: all 0.3s ease;
}

footer .redes-footer .fa-facebook-f:hover{
    background: #41579A;
    color: #fff;
}

footer .redes-footer .fa-youtube:hover{
    background: #FF0000;
    color: #fff;
}

footer .redes-footer .fa-instagram:hover{
    background: linear-gradient(to top right,#FCDE30, #E9712A, #D2313B, #AE4198, #7540A1, #5443A8);
    color: #fff;
}

.container-footer footer hr{
    margin-top: 20px;
    border: none;
    height: 2px;
    background: #c0c0c07a;
}

.container-footer h4{
    text-align: center;
    margin: 40px;
    color: #8e8e8e;
    font-weight: 500;
}

/* ==================== RESPONSIVE ==================== */
@media screen and (max-width:1220px){
    .header-content,
    .container-content,
    .container-footer footer{
        max-width: 1000px;
        padding: 0 20px;
    }
}

/* ====== Desde 1020px hacia abajo ====== */
/* Los aside pasan debajo del artículo y se ponen en 3 columnas */
@media screen and (max-width:1020px){
    .container-content{
        display: flex;
        flex-direction: column;
    }

    article{
        order: 1;
        width: 100%;
        box-shadow: 0 0 0 0;
    }

    .container-aside{
        order: 2;
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 en fila */
        gap: 20px;
        margin-top: 20px;
        justify-items: center;
    }

    .container-aside aside{
        max-width: 300px;
        width: 100%;
    }
}

/* ====== Desde 800px hacia abajo ====== */
/* Los aside siguen debajo, pero ahora en columna (1 debajo del otro) */
@media screen and (max-width:800px){

    body{
        overflow-x: hidden;
    }

    .container-all{
        transition: all 300ms cubic-bezier(1,0,0,1);
    }

    .move-container-all{
        transform: translateX(300px);
    }

    /* ===== Menú lateral ===== */
    .menu{
        width: 0px;
        height: 100vh;
        position: fixed;
        top:80px;
        left:0;
        background: #fff;
        overflow: hidden;
        transform: translateX(-350px);
        box-shadow: 10px 0 20px -25px black;
        transition: all 300ms cubic-bezier(1,0,0,1);
    }

        .show-lateral {
        width: 300px;
        transform: translateX(0px);
    }

    .menu nav ul {
        flex-direction: column;
    }

    .menu nav ul li{
        max-width: 200px;
        height: 50px;
        justify-content: flex-start;
    }

    .menu-selected::before{
        width: 0;
    }

        .menu nav ul li a{
        margin-top: 40px;
        color: #858585;
    }

    .menu nav ul li a i{
        width: 20px;
        display: inline-block;
        margin-right: 10px;
        color: #46a2fd;
    }

    #icon-menu{
        display: flex;
    }

    /* ===== Contenido ===== */
    .container-content{
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    article{
        order: 1;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
    }

    article img{
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto 20px auto;
    }

    /* ===== Aside ===== */
       .container-aside{
        grid-template-columns: 1fr; /* siguen en columna */
        justify-items: start;       /* se alinean a la izquierda */
        margin-left: 10px;          /* opcional: ajusta espacio con borde izquierdo */
    }
}

/*imagenes de la interfaz historia*/
/* Estilos base para las imágenes dentro de article */
.article-img {
  max-width: 50%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 15px;
  object-fit: cover;
}

/* Ajuste a 1020px */
@media (max-width: 1020px) {
  .article-img {
    max-width: 45%;
  }
}

/* Ajuste a 800px: imagen a la izquierda y texto a la derecha */
@media (max-width: 800px) {
  article {
    display: flex;
    flex-direction: column;
    gap: 20px; /* separación entre bloques */
  }

  article p, article h1, article h3 {
    text-align: justify;
  }

  /* Cada imagen se queda alineada a la izquierda con su texto */
  .article-img {
    align-self: flex-start;
    max-width: 93%;
    margin: 10px 20px 10px 0; /* separación del texto */
  }
}

/*imagen de la interfaz geografía*/
/* Estilo base */
.geo-img {
  max-width: 60%;
  height: auto;
  display: block;
  margin: 20px auto;
  object-fit: cover;
  border-radius: 10px; /* opcional, por estética */
}

/* En 1020px se reduce un poco */
@media (max-width: 1020px) {
  .geo-img {
    max-width: 60%;
    height: auto;
  }
}

/* En 800px: más pequeña y alineada a la izquierda */
@media (max-width: 800px) {
  .geo-img {
    max-width: 95%;
    margin: 10px 20px 10px 0; /* deja espacio con el texto */
    float: left; /* la manda a la izquierda */
  }
}

/*imagen principal "Manifestaciones culturales en Almaguer" de la interfaz cultura*/
.cultura-img {
    max-width: 50%; 
    height: 580px; 
    display: block; 
    margin: 20px auto;   /* centrada por defecto */
    object-fit: cover; 
}

/* 🔹 Cuando la pantalla es 1020px o menos */
@media (max-width: 1020px) {
    .cultura-img {
        max-width: 55%;   /* un poco más angosta */
        height: 500px;    /* más baja */
    }
}

/* 🔹 Cuando la pantalla es 800px o menos */
@media (max-width: 800px) {
    .cultura-img {
        max-width: 70%;   /* aún más angosta */
        height: 500px;    /* aún más baja */
        margin: 20px 0;   
        margin-left: 20px; /* alineada a la izquierda */
    }
}


/*imagenes de las artesanias de la interfaz cultura*/ 
/* === Contenedor de imágenes === */
.imagenes { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin-top: 20px; 
    flex-wrap: wrap; 
} 

.imagenes img { 
    width: 190px;   /* ancho fijo */
    height: auto;   /* 👈 conserva proporción natural */
    border-radius: 10px; 
    object-fit: contain; /* asegura que no se recorten */
}

/* === Responsive === */
@media (max-width: 800px) { 
    .imagenes { 
        flex-direction: column; 
        align-items: flex-start; /* 👈 todas a la izquierda */
    } 

    .imagenes img { 
        width: 190px;  /* mismo ancho */
        height: auto;  /* altura automática */
    } 
}

/* === ANEXOS CULTURA (VIDEOS Y FOTOS EN FILAS) === */
/* Primeros 2 videos */
.anexos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---- Primeros videos pequeños ---- */
.videos-fila {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.videos-fila .video iframe {
    width: 267px;
    height: 476px;
    border-radius: 10px;
}

/* ---- Videos destacados en fila ---- */
.videos-destacados {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.video-destacado {
    width: 403px;           
    height: 240px;          
    border-radius: 12px;    
    overflow: hidden;       
    background: #000;       
    display: flex;
    align-items: center;    
    justify-content: center;
}

.video-destacado iframe {
    width: 100%;
    height: 90%;   /* 🔹 más pequeño que el contenedor */
    border: none;
}

/*imagenes de anexos - interfaz cultura*/
.fotos-fila {
    display: grid;
    grid-template-columns: repeat(3, 267px); /* 3 columnas iguales */
    gap: 20px;
    justify-content: center;  /* centra toda la cuadrícula */
    margin-top: 20px;
}

.foto img {
    width: 267px;   /* igual que videos pequeños */
    height: 476px;  /* igual que videos pequeños */
    object-fit: cover;
    border-radius: 15px;
}

/* === RESPONSIVE === */
@media (max-width: 800px) {
    /* videos pequeños en columna a la izquierda */
    .videos-fila {
        flex-direction: column;
        align-items: flex-start; /* 👈 se alinean a la izquierda */
    }

    .videos-fila .video iframe {
        width: 267px;   /* tamaño fijo */
        height: 476px;
    }

    /* videos destacados en columna a la izquierda */
    .videos-destacados {
        flex-direction: column;
        align-items: flex-start; /* 👈 izquierda */
    }

    .video-destacado {
        width: 403px;   /* tamaño fijo */
        height: 240px;
    }

    .video-destacado iframe {
        width: 100%;
        height: 90%;
    }

    /* imágenes en columna a la izquierda */
    .fotos-fila {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* 👈 izquierda */
    }

    .foto img {
        width: 267px;   /* tamaño fijo */
        height: 476px;
    }
}

/* Video de la aparición de Nuestra Señora de los Milagros - interfaz de religión */
.video-container {
  width: 100%;
  max-width: 1000px; /* tamaño máximo en pantallas grandes */
  margin: 20px auto;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 15px;
}

/* Ajuste para pantallas medianas (tablets y portátiles pequeños) */
@media (max-width: 1020px) {
  .video-container {
    max-width: 800px;
    width: 80%;
  }
}

/* Ajuste para pantallas pequeñas (celulares) */
@media (max-width: 800px) {
  .video-container {
    width: 100%;
    max-width: 100%;
    margin: 10px auto;
    aspect-ratio: 4 / 3; /* más alto en móviles */
  }

  .video-container iframe,
  .video-container video {
    width: 100%;
    height: 100%;
  }
}


/*imagenes de Maria - interfaz de religión*/ 
.Maria { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 16px; 
    flex-wrap: wrap; 
    margin: 20px auto; 
} 

/* todas las imágenes iguales */ 
.Maria img { 
    width: 280px; /* mismo ancho */ 
    height: 380px; /* mismo alto */ 
    object-fit: cover; /* recorta pero no deforma */ 
    border-radius: 10px; 
}

/* En 1020px: más reducidas */
@media (max-width: 1020px) {
    .Maria img {
        width: 240px;
        height: 320px;
    }
}

/* En 800px: en columna, al lado izquierdo */
@media (max-width: 800px) {
    .Maria {
        flex-direction: column;
        align-items: flex-start; /* alineadas a la izquierda */
        margin-left: 20px; /* un poco de aire */
    }

    .Maria img {
        width: 70%; 
        max-width: 280px;
        height: auto; /* para no deformarlas */
    }
}

.alumbranza {
    width: 90%;          /* antes 40% */
    max-width: 940px;    /* más grande */
    height: auto;
    margin: 20px auto;
    display: block;
    border-radius: 15px;
    object-fit: cover;
}

@media (max-width: 1020px) {
    .alumbranza {
        width: 50%;
        max-width: 450px;
    }
}

@media (max-width: 800px) {
    .alumbranza {
        width: 95%;
        max-width: 950px;
        margin: 10px auto;
        float: none;
    }
}

/*imagen de la interfaz economía*/
.economia {
    width: 80%;          /* antes 45% */
    max-width: 650px;    /* más grande */
    height: auto;
    margin: 20px auto;
    display: block;
    border-radius: 15px;
    object-fit: cover;
}

@media (max-width: 1020px) {
    .economia {
        width: 75%;
        max-width: 550px;
    }
}

@media (max-width: 800px) {
    .economia {
        width: 95%;
        max-width: 500px;
        margin: 10px auto;
        float: none;
    }
}

/*imagenes de la interfaz cultura*/
/* ===== Estilos base generales ===== */
.container-content img {
  display: block;
  margin: 20px auto;
  border-radius: 15px;
  object-fit: cover;
}

/* ===== Monumento ===== */
.turismo-monumento { width: 50%; height: 280px; }

/* ===== Altillo ===== */
.turismo-altillo { width: 45%; height: 300px; }

/* ===== Belén ===== */
.turismo-belen { width: 50%; height: 300px; }

/* ===== Portada ===== */
.turismo-portada { width: 45%; height: 300px; }

/* ===== Iglesia San Luis ===== */
.turismo-iglesia { width: 40%; height: 300px; border-radius: 10px; }

/* ===== Sendero Gudiño ===== */
.turismo-gudino { width: 45%; height: 300px; border-radius: 10px; }

/* ===== Santa Bárbara ===== */
.turismo-santabarbara { width: 80%; height: 300px; border-radius: 10px; }

/* ===== San Francisco ===== */
.turismo-sanfrancisco { width: 50%; height: 300px; border-radius: 10px; }

/* ===== Cementerio ===== */
.turismo-cementerio { width: 40%; height: 300px; border-radius: 10px; }

/* ===== Parque ===== */
.turismo-parque { width: 50%; height: 300px; border-radius: 10px; }

/* ===== Concha ===== */
.turismo-concha { width: 40%; height: 300px; border-radius: 10px; }


/* ===== Ajustes en pantallas <= 1020px ===== */
@media (max-width: 1020px) {
  .turismo-monumento { width: 45%; height: 240px; }
  .turismo-altillo { width: 40%; height: 260px; }
  .turismo-belen { width: 45%; height: 260px; }
  .turismo-portada { width: 40%; height: 260px; }
  .turismo-iglesia { width: 38%; height: 260px; }
  .turismo-gudino { width: 40%; height: 260px; }
  .turismo-santabarbara { width: 70%; height: 260px; }
  .turismo-sanfrancisco { width: 49%; height: 260px; }
  .turismo-cementerio { width: 38%; height: 260px; }
  .turismo-parque { width: 45%; height: 260px; }
  .turismo-concha { width: 38%; height: 260px; }
}

/* ===== Ajustes en pantallas <= 800px ===== */
@media (max-width: 800px) {
  .container-content img {
    float: left;
    margin: 10px 0 10px 20px;
  }

  .turismo-monumento { width: 80%; height: 240px; }
  .turismo-altillo { width: 70%; height: 250px; }
  .turismo-belen { width: 75%; height: 250px; }
  .turismo-portada { width: 75%; height: 250px; }
  .turismo-iglesia { width: 70%; height: 250px; }
  .turismo-gudino { width: 75%; height: 250px; }
  .turismo-santabarbara { width: 85%; height: 250px; }
  .turismo-sanfrancisco { width: 75%; height: 250px; }
  .turismo-cementerio { width: 70%; height: 250px; }
  .turismo-parque { width: 80%; height: 250px; }
  .turismo-concha { width: 70%; height: 250px; }
}

/* --- Imágenes específicas de la página de Educación --- */
.img-educacion {
  width: 85%;
  height: 420px;
  display: block;
  margin: 10px auto;
  border-radius: 10px;
  object-fit: cover;
}

/* 📱 Para pantallas de hasta 1020px */
@media screen and (max-width: 1020px) {
  .img-educacion {
    width: 75%;
    height: 280px;
  }
}

/* 📱 Para pantallas de hasta 800px */
@media screen and (max-width: 800px) {
  .img-educacion {
    width: 85%;
    height: 260px;
  }
}


/* Formulario de contacto */
.contact-form {
    max-width: 400px;
    width: 90%;                /* ocupa casi todo en móviles */
    margin: 120px auto 40px auto; /* centrado y espacio para el header */
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Título */
.contact-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Labels */
.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #444;
}

/* Inputs */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
}

/* Botón */
.contact-form button {
    width: 100%;
    padding: 12px;
    background: #46a2fd;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #0056b3;
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .contact-form {
        margin: 100px 15px 30px 15px; /* menos margen en móviles */
        padding: 15px;
    }

    .contact-form h2 {
        font-size: 22px;
    }
}


