@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --padding-container: 100px 0;
    --color-title: black;
}

body {
    font-family: 'Poppins', sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: var(--padding-container);
}

.hero {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    position: relative;
    display: grid;
    grid-template-rows: 100px 1fr;
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url('../images/PORTADA-2026.png');
    /* background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url('../images/computer.jpg'); */
    background-position: center; /* 🔥 ESTA ES LA CLAVE */
    background-repeat: no-repeat;
    background-size: cover;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 95%, 0 80%);
    z-index: -1;
}

.logo-municipio {
     width: 450px;
    height: auto;
    display: block;
    margin: 0 auto; /* 🔥 centra */
}

/* Nav */

.nav {
    --padding-container: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav__title {
    font-weight: 300;
}

.nav__link {
    margin-left: auto;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 2em;
}

.nav__items {
    list-style: none;
}

.nav__links {
    color: #fff;
    text-decoration: none;
}

.nav__menu {
    margin-left: auto;
    cursor: pointer;
    display: none;
}

.nav__img {
    display: block;
    width: 30px;
}


.nav__close {
    display: var(--show, none);
}


/* Hero container */

.hero__container {
    max-width: 800px;
    --padding-container: 0;
    display: grid;
    grid-auto-rows: max-content;
    align-content: center;
    gap: 1em;
    padding-bottom: 100px;
    text-align: center;
}

.hero__title {
    font-size: 3rem;
}

.hero__paragraph {
    margin-bottom: 20px;
}

.cta {
    display: inline-block;
    background-color: #691c32;
    justify-self: center;
    color: #fff;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 32px;
}


/* ============================
   CARRUSEL FIJO 1024x368
============================ */
.slider-frame {
  position: relative;
  width: 1024px;       /* Ancho fijo */
  height: 368px;       /* Alto fijo */
  overflow: hidden;
  margin: 40px auto;   /* Centrado y con margen superior */
  border-radius: 5px; /* (opcional) esquinas redondeadas */
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.slider-frame ul {
  padding: 0;
  margin: 0;
  list-style: none;
  position: relative;
}

.slider-frame ul li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider-frame ul li.active {
  opacity: 1;
}

.slider-frame ul li img {
  width: 1024px;   /* Tamaño fijo */
  height: 368px;
  object-fit: cover; /* Ajusta la imagen sin deformarla */
}

/* ============================
   OCULTAR EN MÓVILES
============================ */
@media (max-width: 1024px) {
  .slider-frame {
    display: none;
  }
}

/* About */

.about {
    text-align: center;
}

.subtitle {
    color: var(--color-title);
    font-size: 2rem;
    margin-bottom: 25px;
}


.about__paragraph {
    line-height: 1.7;
}

.link-consulta {
    color: #691c32;
    text-decoration: none; /* quita la línea */
    font-weight: bold;
    padding: 6px 12px;
    border: 2px solid #691c32;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.about__main {
    padding-top: 80px;
    display: grid;
    /* width: 90%;  es para el espacio de inf*/ 
    margin: 0 auto;
    gap: 1em;
    overflow: hidden;
    grid-template-columns: repeat(auto-fit, minmax(260px, auto));
}


.about__icons {
    display: grid;
    gap: 1em;
    justify-items: center;
    width: 260px;
    overflow: hidden;
    margin: 0 auto;
}

.about__icon {
    width: 40px;
}

/* Knowledge */

.knowledge {
    /* background-color: #e5e5f7;
    background-image: radial-gradient(#444cf7 0.5px, transparent 0.5px), radial-gradient(#444cf7 0.5px, #e5e5f7 0.5px); */
    background-color: #ddc9a3;
    background-image: radial-gradient(#b89b6a 0.5px, transparent 0.5px),
                      radial-gradient(#b89b6a 0.5px, #ddc9a3 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    overflow: hidden;
}

.knowledge__container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    align-items: center;
}

.knowledge__picture{
    max-width: 500px;
}

.knowledge__paragraph{
    line-height: 1.7;
    margin-bottom: 15px;
}

.knowledge__img{
    width: 700px;
    display: block;
}









/* Sección base (la que ya usas arriba) */
.knowledge {
    background-color: #ddc9a3;
    background-image: radial-gradient(#b89b6a 0.5px, transparent 0.5px),
                      radial-gradient(#b89b6a 0.5px, #ddc9a3 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    overflow: hidden;
    padding: 80px 0;
}

/* Contenedor */
.knowledge__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* Textos */
.knowledge__texts {
    padding: 10px;
}

.knowledge__paragraph {
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Imagen / mapa */
.knowledge__picture {
    width: 100%;
    max-width: 500px;
    margin: auto;
}

.knowledge__picture iframe {
    width: 100%;
    height: 350px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* 🔹 MODIFICADOR (para que sea diferente a la de arriba) */
.knowledge--ubicacion {
    background-color: #f5f5f5;
    background-image: none;
}

/* Opcional: invertir orden */
.knowledge--ubicacion .knowledge__container {
    grid-template-columns: 1fr 1fr;
}

.subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.subtitle::after {
    /* content: ""; */
    display: block;
    width: 60px;
    height: 4px;
    background: #691c32;
    margin-top: 10px;
}

.btn-mapa {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #691c32;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

.btn-mapa:hover {
    background: #8a2545;
}

@media (max-width: 768px) {
    .knowledge__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .knowledge__picture {
        margin-top: 20px;
    }
}

.knowledge__texts {
    animation: fadeInLeft 0.8s ease;
}

.knowledge__picture {
    animation: fadeInRight 0.8s ease;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}




.social-section {
    padding: 40px 20px;
}


/* GRID RESPONSIVE */
.social-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* TARJETAS */
.social-card {
    background: #fff;
    border-radius: 18px;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.social-card h3 {
    text-align: center;
    margin-bottom: 10px;
}

/* INSTAGRAM */
.insta-widget {
    width: 100%;
    height: 450px;
    border-radius: 12px;
}

/* TIKTOK AJUSTE */
.tiktok-embed {
    width: 100% !important;
}

/*  */


/* Testimony */

.testimony{
    background-color: #10312b;
}

.testimony__body[data-id] .subtitle,
.testimony__body[data-id] .testimony__review {
    color: white;
}

.testimony__body[data-id] a {
    color: white;
    text-decoration: none; /* quita la línea */
    font-weight: bold;
    padding: 6px 12px;
    border: 2px solid white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.testimony__container{
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    gap: 1em;
    align-items: center;
}

.testimony__body{
    display: grid;
    grid-template-columns: 1fr max-content;
    justify-content: space-between;
    align-items: center;
    gap: 2em;
    grid-column: 2/3;
    grid-row: 1/2;
    opacity: 0;
    pointer-events: none;
}


.testimony__body--show{
    pointer-events: unset;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
}

.testimony__img{
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 30%;
}

.testimony__texts{
    max-width: 700px;
}

.testimony__course{
    background-color: #235b4e;
    color: #fff;
    display: inline-block;
    padding: 5px;
}

.testimony__arrow{
    width: 90%;
    cursor: pointer;
}

/* Questions */

.questions{
    text-align: center;
}

.questions__container{
    display: grid;
    gap: 2em;
    padding-top: 50px;
    padding-bottom: 100px;
}

.questions__padding{
    padding: 0;
    transition: padding .3s;
    border: 1px solid #10312B;
    border-radius: 6px;
}

.questions__padding--add{
    padding-bottom: 30px;
}

.questions__answer{
    padding: 0 30px 0;
    overflow: hidden;
}

.questions__title{
    text-align: left;
    display: flex;
    font-size: 20px;
    padding: 30px 0 30px;
    cursor: pointer;
    color: var(--color-title);
    justify-content: space-between;
}

.questions__arrow{
    border-radius: 50%;
    background-color: #10312B;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: flex-end;
    margin-left: 10px;
    transition:  transform .3s;
}

.questions__arrow--rotate{
    transform: rotate(180deg);
}

.questions__show{
    text-align: left;
    height: 0;
    transition: height .3s;
}

.questions__show strong {
    font-weight: bold !important;
}
.questions__img{
    display: block;
    fill: #691c32;
}

.questions__copy{
    width: 60%;
    margin: 0 auto;
    margin-bottom: 30px;
}







.questions__show {
    line-height: 1.6;
}

.question__item {
    margin-bottom: 25px;
    padding: 15px;
    border-left: 4px solid #691c32;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.question__item strong {
    display: block;
    font-size: 16px;
    color: #691c32;
    margin-bottom: 8px;
}

.question__item a {
    display: inline-block;
    margin-top: 5px;
    color: #691c32;
    text-decoration: none;
    font-weight: bold;
}

.question__item a:hover {
    text-decoration: underline;
}

.question__item h4 {
    margin-top: 15px;
    margin-bottom: 5px;
    color: #333;
}

.question__item ol {
    padding-left: 20px;
    margin-bottom: 10px;
}

.question__item li {
    margin-bottom: 5px;
}

.question__item p {
    margin-top: 10px;
    font-size: 14px;
}









.evento {
    display: none;
}

  /* .eventos {
    padding: 60px 20px;
    background: #f5f5f5;
} */

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

.eventos__title {
    text-align: center;
    font-size: 32px;
    color: #691c32;
    margin-bottom: 10px;
}

.eventos__desc {
    text-align: center;
    margin-bottom: 40px;
    color: #555;
}

/* GRID */
.eventos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* CARD */
.evento {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
    display: none;
}

.evento:hover {
    transform: translateY(-5px);
}

/* IMG */
.evento__img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* CONTENT */
.evento__content {
    padding: 15px;
}

.evento__categoria {
    font-size: 16px;
    font-weight: bold;
    color: #691c32;
    text-transform: uppercase;
}

.evento__titulo {
    font-size: 16px;
    margin: 8px 0;
}

.evento__texto {
    font-size: 16px;
    color: #666;
}

.evento__fecha {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: gray;
}

/* BOTON */
.eventos__btn-container {
    text-align: center;
    margin-top: 30px;
}

.eventos__btn {
    background: transparent;
    border: 2px solid #691c32;
    color: #691c32;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.eventos__btn:hover {
    background: #691c32;
    color: white;
}





/* ubicacion */


.ubicacion {
    padding: 60px 20px;
    background: #f9f9f9;
}

.ubicacion__title {
    text-align: center;
    font-size: 30px;
    color: #691c32;
    margin-bottom: 10px;
}

.ubicacion__desc {
    text-align: center;
    margin-bottom: 40px;
    color: #555;
}

/* CONTENEDOR */
.ubicacion__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

/* MAPA */
.ubicacion__map iframe {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* INFO */
.ubicacion__info h3 {
    color: #691c32;
    margin-bottom: 10px;
}

.ubicacion__info p {
    margin-bottom: 15px;
    color: #444;
}

/* BOTON */
.ubicacion__btn {
    display: inline-block;
    padding: 10px 20px;
    background: #691c32;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.ubicacion__btn:hover {
    background: #BC955B;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .ubicacion__content {
        grid-template-columns: 1fr;
    }
}







/* ======================================================
   FIX RESPONSIVE + DOS BUZONES VISUALES
====================================================== */

/* CONTENEDOR GENERAL */
.nm {
  padding: 100px 60px;
}

@media (max-width: 768px) {
  .nm {
    padding: 30px 15px;
  }
}

/* HEADER GENERAL */
.buzon-header {
  text-align: center;
  margin-bottom: 60px;
}

.buzon-header h2 {
  font-size: 32px;
  font-weight: 600;
}

.buzon-header p {
  max-width: 600px;
  margin: 0 auto;
  color: #666;
}

/* CONTENIDO HORIZONTAL */
.contenido-horizontal {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .contenido-horizontal {
    flex-direction: column;
    align-items: center;
  }
}

/* TARJETAS DE BUZÓN */
.buzon-participacion,
.buzon-denuncias {
  background: #fff;
  border-radius: 25px;
  padding: 40px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* COLORES DIFERENTES */
.buzon-participacion {
  border-top: 8px solid #2f7d5a;
}

.buzon-denuncias {
  border-top: 8px solid #691c32;
}

/* AJUSTE TARJETAS EN MÓVIL */
@media (max-width: 768px) {
  .buzon-participacion,
  .buzon-denuncias {
    padding: 25px 20px;
  }
}

/* FORMULARIO */
.form-contacto {
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 520px;
  width: 100%;
  background-color: #fff;
  margin: 0 auto;
}

/* INPUTS FULL WIDTH */
.form-contacto input,
.form-contacto textarea,
.form-contacto select {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  border-radius: 25px !important;
  margin-bottom: 12px;
  background-color: #fff2e5;
  border: 2px solid #f1deca;
  outline: none;
  font-family: "Montserrat", serif;
}

/* PLACEHOLDERS */
.form-contacto input::placeholder,
.form-contacto textarea::placeholder {
  color: #d9b38d;
}

/* LABELS */
.form-contacto label {
  color: #283629;
  font-weight: 600;
  margin-bottom: 8px;
}

/* SELECT */
.form-contacto select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23c7a17a' 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: right 15px center;
  background-size: 18px;
}

/* TEXTO PRIVACIDAD */
.form-contacto-txt {
  margin: 20px 0 30px;
  display: flex;
  justify-content: center;
}

.form-contacto-txt a {
  color: #611232 !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* BOTÓN */
.btn_enviar {
  width: 100%;
  font-size: 16px;
  color: #ffffff;
  border: 0;
  border-radius: 25px;
  background-color: #c7a17a !important;
  box-shadow: 0 0 20px rgba(249, 202, 154, 1);
  cursor: pointer;
  padding: 14px;
}

/* BOTÓN GOOGLE FORM */
.btn-formulario {
  display: inline-block;
  background-color: #2f7d5a;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-formulario:hover {
  background-color: #256548;
  transform: translateY(-2px);
}

.btn_enviar:hover {
  background-color: #b8956f !important;
}

/* TITULOS Y TEXTO */
.nm h2,
.nm h5,
.nm p,
.schedules h3 {
  text-align: center;
  font-family: "Montserrat", serif;
}

/* =========================================
   CENTRAR LOS DOS BUZONES JUNTOS
========================================= */

/* Limitar ancho del conjunto */
.contenido-horizontal {
  max-width: 1100px;
  margin: 0 auto;
  gap: 30px;
}

/* En pantallas grandes que no se estiren */
@media (min-width: 1400px) {
  .contenido-horizontal {
    max-width: 1050px;
  }
}

/* ======================================================
   FIN DE BUZON
====================================================== */








.news-container .card {
  display: none; /* Ocultamos todas al inicio */
  margin-bottom: 20px;
}

.ver-mas-container {
  text-align: center;
  margin-top: 20px;
}

.ver-mas-btn {
  appearance: none;
  background-color: transparent;
  border: 0.125em solid #691c32; /* borde color principal */
  border-radius: 0.9375em;
  box-sizing: border-box;
  color: #691c32; /* texto color principal */
  cursor: pointer;
  display: inline-block;
  font-family: "Montserrat", sans-serif; /* fuente actualizada */
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: normal;
  margin: 0;
  min-height: 3.75em;
  min-width: 0;
  outline: none;
  padding: 1em 2.3em;
  text-align: center;
  text-decoration: none;
  transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  will-change: transform;
}

.ver-mas-btn:disabled {
  background-color: rgb(199, 199, 199);
  border-color: rgb(199, 199, 199);
  color: gray;
}

.ver-mas-btn:disabled:hover {
  background-color: #BC955B; /* hover cuando está deshabilitado */
  border-color: #BC955B;
  color: white;
  cursor: not-allowed;
  transform: translateY(0px);
  box-shadow: none;
}

.ver-mas-btn:hover {
  color: #fff;
  background-color: #BC955B; /* hover normal */
  box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
  transform: translateY(-2px);
  transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
}

.ver-mas-btn:active {
  box-shadow: none;
  transform: translateY(0);
}



/* Media queries */

@media (max-width:800px){
    .nav__menu{
        display: block;
    }

    .nav__link--menu{
        position: fixed;
        background-color: #000;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: .7s opacity;
    }

    .nav__link--show{
        --show: block;
        opacity:1 ;
        pointer-events: unset;
    }

    .nav__close{
        position: absolute;
        top: 30px;
        right: 30px;
        width: 30px;
        cursor: pointer;
    }

    .hero__title{
        font-size: 2.5rem;
    }


    .about__main{
        gap: 2em;
    }

    .about__icons:last-of-type{
        grid-column: 1/-1;
    }


    .knowledge__container{
        grid-template-columns: 1fr;
        grid-template-rows: max-content 1fr;
        gap: 3em;
        text-align: center;
    }

    .knowledge__picture{
        grid-row: 1/2;
        justify-self: center;
    }

    .testimony__container{
        grid-template-columns: 30px 1fr 30px;
    }

    .testimony__body{
        grid-template-columns: 1fr;
        grid-template-rows: max-content max-content;
        gap: 3em;
        justify-items:center ;
    }


    .testimony__img{
        width: 200px;
        height: 200px;
        
    }

    .questions__copy{
        width: 100%;
    }

    .footer__container{
        flex-wrap: wrap;
    }

    .nav--footer{
        width: 100%;
        justify-items: center;
    }

    .nav__link--footer{
        width: 100%;
        justify-content: space-evenly;
        margin: 0;
    }

    .footer__form{
        width: 100%;
        justify-content: space-evenly;
    }

    .footer__input{
        flex: 1;
    }

}

@media (max-width:600px){
    .hero__title{
        font-size: 2rem;
    }

    .hero__paragraph{
        font-size: 1rem;
    }

    .subtitle{
        font-size: 1.8rem;
    }

    .price__element{
        width: 90%;
    }

    .price__element--best{
        width: 90%;
        /* padding: 40px; */
    }

    .price__price{
        font-size: 2rem;
    }

    .testimony{
        --padding-container: 60px 0;
    }

    .testimony__container{
        grid-template-columns: 28px 1fr 28px;
        gap: .9em;
    }

    .testimony__arrow{
        width: 100%;
    }

    .testimony__course{
        margin-top: 15px;
    }

    .questions__title{
        font-size: 1rem;
    }

    .footer__title{
        justify-self: start;
        margin-bottom: 15px;
    }

    .nav--footer{
        padding-bottom: 60px;
    }

    .nav__link--footer{
        justify-content: space-between;
    }

    .footer__inputs{
        flex-wrap: wrap;
    }

    .footer__input{
        flex-basis: 100%;
        margin: 0;
        margin-bottom: 16px;
    }

    .footer__submit{
        margin-right: auto;
        margin-left: 0;
        

        /* 
        margin:0;
        width: 100%;
        */
    }
}
