

*{
  box-sizing:border-box
}
html{
  scroll-behavior:smooth
}
body{
  margin:0; font-family:Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:#202020; background:#fff;
    overflow-x: hidden;
}

/* Helpers */
.container{
    width:min(1120px, 100% - 2rem); 
    margin-inline:auto
}

.section{
  padding:80px 0
}

.title-dark{
  font-family:"Bebas Neue", system-ui; 
  font-size:clamp(2.2rem, 5vw, 3.2rem); 
  margin:0 0 1rem;
  color:#1a1a1a; text-shadow:0 3px 0 #00000010;
}

.title-white{
  font-family:"Bebas Neue", system-ui; 
  font-size:clamp(2.2rem, 5vw, 3.2rem); 
  margin:0 0 1rem;
  color:#fff; text-shadow:0 3px 0 #00000030;
}

/* Pattern backgrounds */
.pattern-yellow{
  background:
    url("../img/corn-pattern.svg") center/260px repeat,
    linear-gradient(180deg, #ffda6a, #fff7de);
}
.pattern-dark{
  background:
    url("../img/corn-pattern.svg") center/260px repeat,
    radial-gradient(1200px 400px at 100% 0%, #3b3b3b, var(--dark-2));
}

/* Nav */
.header{
  position:sticky; top:0; z-index:50;
  background:#ffda6a;
  backdrop-filter: blur(10px) saturate(160%);
  border-bottom:1px solid #ffda6a;
}

.header.scrolled {
  background: rgba(249, 225, 153, 0.75); /* Más transparente */
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  backdrop-filter: blur(16px) saturate(180%);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
  max-height: 75px; /* Altura máxima de la barra */
}

/* Reemplaza tu bloque actual del logo */
.brand { margin-left: 0; } /* no empujes la marca */
.brand__logo{
  margin-left: 0;
  width: clamp(120px, 22vw, 260px);
  max-width: none;    /* elimina el tope rígido de 320px */
  height: auto;
}


/*.brand{
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #111;
  text-decoration: none;
  margin-left: 2rem;
}

.brand__logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  margin-left: -100px;
  transition: max-width 0.2s;
}*/



.nav__menu{
  display:flex; 
  align-items:center; 
  gap:1rem
}

.nav__link{
  color:#111; 
  text-decoration:none; 
  padding:.55rem .8rem; 
  border-radius:999px;
  font-weight:600;
}

.nav__link:hover{background:#f2f2f2}
.nav__toggle{display:none; background:transparent; border:0}
.nav__bar{display:block; width:24px; height:2px; background:#111; margin:5px 0; border-radius:2px}

/* Buttons */
.btn{
  display:inline-flex; 
  align-items:center; 
  justify-content:center; 
  gap:.5rem;
  padding:.85rem 1.2rem; 
  border-radius:999px; 
  border:2px solid transparent; 
  font-weight:700; 
  text-decoration:none;
}

.btn--cta{
  background:var(--primary); 
  color:#fff; 
  box-shadow:var(--shadow);
  padding: 1.2rem 2.2rem;
  font-size: 1.15rem;
}

.btn--cta:hover{
  transform:translateY(-1px);
}

.btn--principal{
  background:var(--primary); 
  color:#fff; 
  box-shadow:var(--shadow);
  padding: 1.2rem 2.2rem;
  font-size: 1.15rem;
}

.btn--principal:hover{
  transform:translateY(-1px);
}


/* Botones sociales modernos */
.btn--social {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, transform 0.2s;
  border: none;
  padding: 0;
}
.btn--social:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.btn--facebook {
  background: linear-gradient(135deg, #1877f3 70%, #fff 100%);
}
.btn--facebook:hover {
  box-shadow: 0 8px 24px #1877f344;
}
.btn--instagram {
  background: linear-gradient(135deg, #fd5949 0%, #d6249f 60%, #285AEB 100%);
}
.btn--instagram:hover {
  box-shadow: 0 8px 24px #d6249f44;
}
.socials__icon {
  width: 28px;
  height: 28px;
  opacity: 0.92;
  transition: opacity 0.2s;
}
.btn--social:hover .socials__icon {
  opacity: 1;
}

.btn--maps {
  background: linear-gradient(90deg, #5d5c0b 60%, #c1d325 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  border: none;
  padding: 1.2rem 2.4rem;
  font-size: 1.18rem;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem ;
}

.btn--maps:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
}
.btn__icon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
}

/* Oculta el botón por defecto */
.menu__cta .btn--cta {
  display: none;
  opacity: 0;
  transition: opacity 0.5s;
}

/* Clase para mostrar el botón con animación */
.menu__cta .btn--cta.visible {
  display: inline-flex;
  opacity: 1;
}

/* HERO */
.hero{min-height:70vh; display:grid; place-items:center}
.hero__grid{
  display:grid; grid-template-columns: 1fr 1fr; align-items:center; gap:1.25rem;
}

/* Evita que los translate de AOS “se asomen” fuera */
.hero,
.section { overflow: hidden; }


.hero__picosin{
  width:min(420px, 90%); 
  display:block; 
  filter:drop-shadow(0 12px 24px rgba(0,0,0,.2))
}

.hero__title{
  font-family:"Bebas Neue", system-ui;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: .95; color:#1a1a1a;
}

/* NOSOTROS */
.section--dark{color:#eaeaea}
.about{display:grid; grid-template-columns: 1.1fr .9fr; gap:2rem; align-items:center}
.about__text p{opacity:.95}
.about__figure{justify-self:end}

.about__carousel {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 320px;
  overflow: hidden;
  margin: 0 auto;
}

.about__img{
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  display: block; 
  border-radius: 26px; 
  box-shadow: var(--shadow); 
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 1;
}

.about__img.active {
  opacity: 1;
  z-index: 2;
}

/* MENÚ */
.menu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}
.menu__left {
  justify-self: end;
}
.menu__right {
  justify-self: start;
}
.menu__picosin {
  max-width: 420px;
  width: 100%;
  display: block;
}



/* EVENTOS */
.evento > h2{text-align:center; margin-bottom:1.25rem}
.evento__grid{display:grid; grid-template-columns: .95fr 1.05fr; gap:2rem; align-items:center}
.evento__text p{opacity:.95}

.evento__carousel {
  position: relative;
  width: 100%;
  max-width: 420px; /* o el ancho que prefieras */
  height: 320px; /* ajusta según tu diseño */
  overflow: hidden;
  margin: 0 auto;
}
.evento__carousel::-webkit-scrollbar {
  height: 8px;
  background: #eee;
  border-radius: 8px;
}
.evento__carousel::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 8px;
}
.evento__img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 1;
}

.evento__img.active {
  opacity: 1;
  z-index: 2;
}

/* Instagram Button */
.btn--instagram {
  background: linear-gradient(45deg, #fd5949, #d6249f, #285AEB);
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border: none;
}
.btn--instagram img {
  width: 24px;
  height: 24px;
}
:root{
  --yellow-1:#fde08f;
  --yellow-2:#f7c44a;
  --dark-1:#2a2a2a;
  --dark-2:#111111;
  --primary:#0b5d57; /* tono del botón verde */
  --radius:22px;
  --shadow:0 12px 32px rgba(0,0,0,.18);
}

/* WhatsApp */
.whatsapp{
  position:fixed; right:18px; bottom:18px; z-index:60; width:95px; height:95px; border-radius:50%;
  background:#25d366; display:grid; place-items:center; box-shadow:0 10px 24px rgba(0,0,0,.2);
}
.whatsapp img{width:85%; height:85%}

@keyframes vibrate {
  0% { transform: translate(0); }
  20% { transform: translate(-5px, 5px); }
  40% { transform: translate(-5px, -5px); }
  60% { transform: translate(5px, 5px); }
  80% { transform: translate(5px, -5px); }
  100% { transform: translate(0); }
}

.whatsapp.vibrate {
  animation: vibrate 0.5s linear;
}

/* CONTACTO */
.contacto{display:grid; grid-template-columns: .9fr 1.1fr; gap:2rem; align-items:start}
.contacto__left .contacto__item{display:flex; align-items:center; gap:.75rem; margin:.5rem 0}
.contacto__icon{font-size:1.2rem}
.socials{display:flex; gap:.75rem; margin-top:.75rem}
.socials__icon{width:34px; height:34px; opacity:.85}
.contacto__subtitle{margin:0 0 .5rem; color:#333}
.map{ border-radius:16px; overflow:hidden; box-shadow:var(--shadow); }
.map iframe{ width:100%; height:320px; border:0; }
@media (max-width:560px){ .map iframe{ height:260px; } }


/* FOOTER */
.footer{background:#111; color:#eee; padding:20px 0}
.footer__grid{display:flex; justify-content:center}

/* Responsive */
@media (max-width: 980px){
  .hero__grid{grid-template-columns:1fr; text-align:center}
  .about{grid-template-columns:1fr; text-align:center}
  .about__figure{justify-self:center}
  .evento__grid{grid-template-columns:1fr; text-align:center}
  .contacto{grid-template-columns:1fr}
}
@media (max-width: 760px){
  .nav__menu{
    position:absolute; right:1rem; top:64px; background:#fff; border:1px solid #eee;
    padding:.5rem; border-radius:12px; box-shadow:var(--shadow);
    display:none; flex-direction:column;
  }
  .nav__menu.is-open{display:flex}
  .nav__toggle{display:block}
}

@media (max-width: 560px) {
  .evento__carousel {
    max-width: 100%;
    height: 200px;
  }
}

@media (max-width: 980px) {
  .container {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .hero__grid,
  .about,
  .evento__grid,
  .contacto {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about__figure,
  .evento__figure {
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .brand__logo {
    max-width: 120px;
    margin-left: 0;
  }
  .nav__menu {
    position: absolute;
    right: 1rem;
    top: 64px;
    background: #fff;
    border: 1px solid #eee;
    padding: .5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
  }
  .nav__menu.is-open {
    display: flex;
  }
  .nav__toggle {
    display: block;
  }
  body {
    overflow-x: hidden;
  }
}

@media (max-width: 560px) {
  .map iframe {
    height: 220px;
  }
  .evento__carousel {
    max-width: 100%;
    height: 180px;
  }
  .about__carousel {
    max-width: 100%;
    height: 200px;
  }
  .btn--maps,
  .btn--principal,
  .btn--cta {
    font-size: 1rem;
    padding: 1rem 1.2rem;
  }
}

@media (max-width: 760px) {
  .brand__logo {
    margin-left: 0;
    max-width: 120px;
  }
  .brand {
    margin-left: 0;
  }
  .container {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  body {
    overflow-x: hidden;
  }
}

/* Responsive para móvil */
@media (max-width: 980px) {
  .menu__grid {
    grid-template-columns: 1fr;
  }
  .menu__left,
  .menu__right {
    justify-self: center;
  }
}