:root {
  --body-text: #6a6a6a;
}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;color:#121212;background:#fff;overflow-x:hidden}
img{max-width:100%;display:block;height:auto}
a{text-decoration:none;color:inherit}

/* === HEADER === */
.site-header{
  position:fixed;
  top:0;left:0;width:100%;
  background:#fff;
  border-bottom:1px solid #eee;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
  z-index:1000;
}
.site-header .container{
  max-width:1200px;
  margin:0 auto;
  height:160px;
  padding:0 40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.logo{height:48px;}
.menu{
  display:flex;
  gap:32px;
  justify-content:center;
  flex:1;
}
.menu a{color:#121212;font-size:16px;font-weight:400}
.menu a.active{font-weight:700 !important}

.submenu-group{position:relative}
.submenu{
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  background:#fff;
  border-radius:12px;
  box-shadow:0 6px 16px rgba(0,0,0,.08);
  display:flex;
  flex-direction:column;
  padding:10px 0;
  min-width:200px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .2s ease,visibility .2s ease;
}
.submenu-group:hover .submenu{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transition-delay:.12s;
}
.submenu a{
  padding:8px 16px;
  text-align:center;
  color:#121212;
  transition:background-color .25s ease;
}
.submenu a:hover{background:#f5f5f5}

/* --- Header idiomas / IG / hamburguesa --- */
.lang-social{display:flex;align-items:center;gap:22px}
.desktop-langs{display:flex;align-items:center;gap:6px}
.desktop-langs button{background:none;border:none;cursor:pointer;font:inherit}
.desktop-langs span{color:#6b7280}
.desktop-langs button.active-lang{font-weight:700}
.social img{width:18px;height:18px;object-fit:contain;display:block}
.hamburger{display:none;flex-direction:column;gap:5px;border:0;background:none;cursor:pointer;padding:4px;align-self:center}
.hamburger span{width:24px;height:2px;background:#000}

/* --- Menú móvil --- */
.mobile-menu{
  position:fixed;
  top:0;
  right:-60%;
  width:60%;
  height:100vh;
  background:#fff;
  padding:120px 16px 40px;
  display:flex;
  flex-direction:column;
  gap:18px;
  box-shadow:0 6px 16px rgba(0,0,0,.08);
  transition:right .3s ease;
  z-index:999;
}
.mobile-menu.open{right:0}
.mobile-menu a{
  color:#121212;
  font-size:16px;
  font-weight:400;
  border-bottom:1px solid #eee;
  padding:8px 0;
}
.mobile-menu a.active{font-weight:700 !important}

/* Idiomas dentro del menú mobile */
.mobile-langs{
  display:none;
}

/* --- Responsive --- */
@media(max-width:860px){
  .site-header .container{
    height:120px;
    padding:0 16px;
    justify-content:space-between;
  }

  .menu{display:none}
  .hamburger{display:flex}

  /* Esconder idiomas desktop */
  .desktop-langs{display:none}

  /* Mostrar idiomas dentro del menú */
  .mobile-langs{
    display:flex;
    justify-content:flex-start;
    gap:6px;
    margin-top:12px;
    padding-top:6px;
    border-top:1px solid #eee;
  }
  .mobile-langs button{
    background:none;
    border:none;
    font-size:16px;
    cursor:pointer;
  }
  .mobile-langs button.active-lang{
    font-weight:700;
  }
}
/* Banner full-bleed bajo header fijo */
.banner{
  width:100%;
  display:block;
  position:relative;
  margin-top:160px; /* header desktop */
}
.banner img{
  width:100%;
  height:250px;
  object-fit:cover;
  display:block;
}
@media(max-width:860px){
  .banner{margin-top:120px;} /* header mobile */
}
/* === CARRUSEL PARTICIPACIONES (Index) === */
/* Basado en unico.html — versión estable SIN efectos de hover */

.section-off{
  width:100vw;
  margin-left:calc(-50vw + 50%);
  background:#f6f5f3;
  padding:0 0 60px;
}

.off-inner{
  max-width:1200px;
  margin:0 auto;
  padding:60px 16px 0;
}

.off-inner h3{
  font-size:24px;
  margin-bottom:24px;
  font-weight:700;
  text-align:left;
}

/* === Carrusel === */
.carousel{position:relative}
.viewport{
  overflow:hidden;
  width:100%;
}
.carousel-track{
  display:flex;
  gap:32px;
  transition:transform .5s ease;
  width:100%;
}

.card{
  flex:0 0 calc(25% - 24px);
  background:#fff;
  border-radius:14px;
  box-shadow:0 6px 16px rgba(0,0,0,.08);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.card-img{
  height:180px;
  background:#ddd;
}
.card-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* === Texto de tarjeta === */
.card-text{
  padding:16px 18px;
  background:#fff;
  text-align:left;
  display:flex;
  flex-direction:column;
}

.card-text h4{
  font-size:16px;
  margin:0 0 6px;
  font-weight:600;
}

.card-text p{
  font-size:14px;
  margin:0 0 10px;
  color:#555;
  line-height:1.35;

  /* ✅ Mantiene la caja baja aunque el texto sea largo */
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
}

.card-text .leer-mas{
  font-size:14px;
  font-weight:600;
  color:#000;
  text-decoration:none;
}

/* === Dots Desktop === */
.carousel-dots{
  text-align:center;
  margin-top:20px;
}
.carousel-dots .dot{
  width:10px;
  height:10px;
  border-radius:50%;
  border:none;
  background:#bbb;
  margin:0 4px;
  cursor:pointer;
}
.carousel-dots .dot.active{
  background:#111;
}

/* === MOBILE === */
@media(max-width:860px){
  .off-inner{padding:60px 16px 0}

  .viewport{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
    white-space:nowrap;
  }

  .carousel-track{
    display:inline-flex;
    gap:20px;
    flex-wrap:nowrap;
    width:max-content;
    transition:none !important;
    transform:none !important;
  }

  .card{
    flex:0 0 80%;
    max-width:270px;
    scroll-snap-align:start;
    flex-shrink:0;
    display:inline-block;
  }

  .carousel-dots{display:none !important}

  /* ✅ altura aumentada */
  .card-img{
    height:210px;
  }

  .card-text{padding:14px}
  .card-text h4{font-size:15px}
  .card-text p{
    font-size:13.5px;
    -webkit-line-clamp:3;
  }
}

/* FIX Android Chrome */
@media(max-width:860px){
  .carousel .viewport::-webkit-scrollbar{display:none;}
  .carousel .carousel-track{min-width: fit-content;}
}
.site-footer {
  height: 200px;
  background: #000;
  color: #bfbfbf; /* gris claro */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;   /* letra más pequeña */
  line-height: 1.4;
}

.site-footer p {
  margin: 2px 0;
}


/* === FIX selector de idioma desktop ===
   Mantiene ES/EN por encima de cualquier capa del menú y garantiza el clic.
*/
@media (min-width:861px){
  .site-header .container{
    position:relative;
  }

  .lang-social{
    position:relative;
    z-index:10;
  }

  .desktop-langs{
    position:relative;
    z-index:11;
    pointer-events:auto;
  }

  .desktop-langs button{
    position:relative;
    z-index:12;
    pointer-events:auto;
  }

  .menu{
    position:relative;
    z-index:1;
  }
}
