

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100vw;
}

body {
  /*background: linear-gradient(120deg, #ffe259 0%, #ffa751 100%);*/
  /*background: linear-gradient(120deg, #fbc2eb 0%, #a6c1ee 100%);*/
  /*background: linear-gradient(120deg, #ffc56b 0%, #ff7f32 100%);*/
  background-image: url('/img/imagenes provisorias/fondo2.png');
      background-size: cover;
  background-position: center;
  background-attachment:fixed ;
  color: #222;
  font-family: 'Nunito', Arial, sans-serif;
  overflow-x: hidden; 
}

@media (max-width: 1024px) {
  body {
    background-attachment: scroll;  /* Evita cortes en móviles */
    background-size: contain;         /* Mantiene la proporción */
    background-position: center top;/* Prioriza la parte superior */
  }
}

/* =========================
   TIPOGRAFÍA Y TITULARES
   ========================= */
h1{
  text-align: center;
  color: #ffffff;
  font-size: 2.5rem;
  margin: 20px 0;
  text-shadow: 0 0 8px black;
} 

h3, h4{
  text-align: center;
  color: #ffffff;
  font-size: 2.5rem;
  margin: 20px 0;
  margin: 0.2em 0;
}


h6, p, a {
  color: #ffffff;
  text-decoration: none;
}

h2, h5, p, a {
  color: #000000;
  text-decoration: none;
}

/* =========================
   HEADER Y MENU
   ========================= */
header {
  background-color: #fff;
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.header-top {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-direction: row;
}

.header-top h3, h4 {
  color: #000;
  font-size: 30px;
}

.header-top img {
  height: 100px;
  width: 200px;
}

.header-top h1 {
  margin: 0;
  font-size: 2rem;
  text-align: center;
  text-decoration: none;
}

/* BotÃ³n hamburguesa oculto en PC */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
}

/* =========================
   MENÃš PRINCIPAL Y SUBMENÃšS
   ========================= */
.main-menu {
  display: flex;
  flex-direction: row;
  background-color: #333;
  padding: 20px;
  width: 100%;
  justify-content: space-evenly;
}

.main-menu a {
  color: white;
  padding: 10px;
  margin: 0;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-size: 19px;
}

.main-menu a:hover {
  background-color: #555;
  text-decoration: none;
}

.main-menu p:hover {
  background-color: #333;
}

/* SubmenÃº oculto por defecto */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #000000ef;
  padding: 0;
  border-radius: 5px;
  width: 200px;
  z-index: 1001;
  flex-direction: column;
}

/* Mostrar submenu al hacer hover en dropdown */
.dropdown {
  position: relative;
  display: flex;
  flex-direction: column;
}

.dropdown:hover .submenu {
  display: flex;
}

/* Estilos para subcategorÃ­as */
.submenu a {
  color: white;
  padding: 10px;
  text-decoration: none;
  text-align: left;
}

.submenu a:hover {
  background-color: #555;
}


.just-sec {
  /* inicio carrusel*/
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 50px;
}

.carrusel-contenedor {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 80px auto;
  perspective: 1000px;
}

.carrusel-fotos {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}

.carrusel {
  position: absolute;
  width: 60%;
  height: 100%;
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.carrusel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Imagen activa (centro) */
.carrusel.activa {
  transform: translateZ(260px); /* más al frente */
  opacity: 1;
  z-index: 3;
}

/* Imagen izquierda */
.carrusel.lateral-izq {
  transform: translateX(-260px) rotateY(35deg); /* más separada */
  opacity: 0.6;
  z-index: 2;
}

/* Imagen derecha */
.carrusel.lateral-der {
  transform: translateX(260px) rotateY(-35deg); /* más separada */
  opacity: 0.6;
  z-index: 2;
}

/* Botones */
.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  border: none;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 10;
}

.carrusel-btn:hover {
  background: rgba(255,255,255,0.4);
}

.carrusel-btn.prev { left: -60px; }
.carrusel-btn.next { right: -60px; }

/* Indicadores opcionales */
.carrusel-indicadores {
  text-align: center;
  margin-top: 10px;
}

.carrusel-indicadores span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.carrusel-indicadores .activo {
  background-color: #333;
}

/* =========================
   COLABORADORES (MATI)
   ========================= */
.mati h3 strong {
    display: block;
    font-size: 2.5rem;
    margin: 30px 0;
    color: #ffffff;
    text-shadow: 2px 2px 9px rgba(0, 0, 0, 0.6);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
}

.carrusel-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px; /* controla la profundidad (más alto = menos efecto 3D) */
  overflow: hidden;
}

/* carrusel centrado y fijo */
.carrusel3d {
  position: relative;
  width: 300px;
  height: 200px;
  transform-style: preserve-3d;
  transform-origin: center center; /* eje de rotación fijo */
  animation: girar 20s linear infinite;
}

/* cada logo distribuido en círculo */
.slide {
  position: absolute;
  width: 200px;
  height: 120px;
  top: 40px; /* centrado vertical dentro del carrusel */
  left: 50px;
  transform-origin: center center;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  backface-visibility: hidden;
  
}

.slide img {
  width: 70%;
  height: auto;
  border-radius: 10px;
}

.carrusel3d:hover {
  animation-play-state: paused;
}

/* animación de rotación estática */
@keyframes girar {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}


/* --- Responsividad --- */
@media (max-width: 992px) {
  .slide-track img {
    height: 55px; /* tablets */
  }
}

@media (max-width: 600px) {
  .slide-track img {
    height: 40px; /* celulares */
    padding: 0 15px;
  }
}


.colaboradores a {
  margin: 20px;
}

.colaboradores img:hover {
  transform: scale(1.1);
}

/* --- COLABORADORES RESPONSIVE --- */
@media (max-width: 1024px) {
  .mati .colaboradores {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .mati .colaboradores {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
@media (max-width: 600px) {
  .mati .colaboradores {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .colaboradores img {
    height: 50px;
  }
}


/* =========================
   LA HUELLA
   ========================= */
.huella {
  margin: 80px 50px;
  font-family: 'bebas neue';
  letter-spacing: 2px;
  text-shadow: 0 0 8px black;
}

.Lahuella {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.Lahuella ul {
  text-align: center;
  margin: 10px;
}

.Lahuella h5 {
  font-size: 1.7rem;
  margin-bottom: 5px;
}

.Lahuella h6 {
  font-size: 2rem;
  color: #ffffff;
  text-shadow: 0 0 20px black;
}

/* =========================
   FOOTER
   ========================= */
.disclaimer {
  text-align: center;
  padding: 20px;
  background-color: #f1f1f1;
  color: #333;
  margin-top: 0;
  font-size: 0.9rem;
}

/* =========================
   HISTORIA Y FICHAS
   ========================= */
.hist h1 {
  margin: 0;
  font-size: 2.5rem;
}

.hist p {
  font-size: 1.2rem;
  margin-top: 10px;
}

.container-hist {
  max-width: 900px;
  margin: 40px auto 30px auto;
  padding: 2.5rem 2rem;
  background-color: gainsboro;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  font-family: 'Nunito', Arial, sans-serif;
  color: #333;
  position: relative;
  z-index: 1;
}

.container-hist h1.hist {
  font-family: 'Merriweather', serif;
  font-size: 2.8rem;
  color: rgb(0 0 0 / 46%);
  text-align: center;
  margin-bottom: 0.5em;
  letter-spacing: 2px;
}

.container-hist h2.hist {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  color: #af67fb;
  margin-top: 2.2em;
  margin-bottom: 0.5em;
  letter-spacing: 1px;
}

.container-hist p.hist {
  font-size: 1.18rem;
  line-height: 1.7;
  margin-bottom: 1.2em;
  color: #333;
}

.container-hist .resaltado {
  color: #6a0dad;
  font-weight: bold;
  background: #ff980022;
  padding: 0 4px;
  border-radius: 4px;
}

.container-hist strong {
  color: #000;
}

.container-hist img {
  display: block;
  margin: 2em auto;
  max-width: 90%;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(106,10,173,0.12);
  border: 3px solid #ff9800;
  transition: transform 0.2s;
}
.container-hist img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(106,10,173,0.18);
}

.container-hist .contacto {
  margin-top: 2.5em;
  background: #c3cfe2;
  border-radius: 12px;
  padding: 1.2em 1em;
  color: #333;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px #0001;
}

.container-hist .contacto a {
  color: #6a0dad;
  text-decoration: underline;
  font-weight: bold;
}

.container-hist .contacto a:hover {
  color: #000;
}

.separador {
  height: 80px;
  width: 100%;
  margin: 0 auto 0 auto;

  position: relative;
}

.cita {
  background: #ff980022;
  border-left: 6px solid #6a0dad;
  padding: 1.2em 1em;
  margin: 2em 0;
  font-style: italic;
  color: #6a0dad;
  border-radius: 8px;
  font-size: 1.1rem;
}

/* =========================
   SUMATEX Y COLABORACIÃ“N
   ========================= */
.sumatex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 100vh;
  margin: 0;
  padding: 0;
}

.colaboracion {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: white;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  font-family: 'Bebas Neue', sans-serif;
  height: 100%;
}

.colaboracion::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5); /* oscurece la imagen para mejor legibilidad */
  z-index: 0;
}

.colaboracion h3,
.colaboracion p,
.colaboracion .botonx {
  z-index: 1;
}

/* =========================
   MAPA
   ========================= */
.mapa-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
}

.mapa-container iframe {
  flex: 1 1 500px;
  max-width: 100%;
  height: 450px;
  border: 0;
}

.mapa-container h1 {
  width: 100%;
  text-align: center;
  color: white;
  margin-bottom: 10px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* =========================
   VIDEO Y FICHA
   ========================= */
.video-ficha {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}

.video-container {
  flex: 1 1 400px;
}

.video-container video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.ficha {
  flex: 1 1 300px;
  background-color: #00000086;
  padding: 1.5rem;
  border-radius: 8px;
  font-family: 'Bebas Neue', sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ficha h2 {
  margin: 0;
  font-size: 2rem;
  text-align: center;
  color: #dddddd;
}

.ficha h4 {
  margin-top: 0.5rem;
  font-weight: normal;
  font-size: 1.2rem;
  color: #ffffff;
}

.ficha p {
  margin-top: 1rem;
  line-height: 1.5;
  font-size: 1rem;
  font-family: 'Times New Roman', Times, serif;
  color: #ffffff;
}

/* =========================
   GALERÃA GRID
   ========================= */
.galeria-grid {
  width: 100%;
  padding: 2rem 0;
  display: flex;
  justify-content: center;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 10px;
  width: 90vw;
  max-width: 1200px;
}

.grid-container img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.grid-container img:hover {
  transform: scale(1.05);
}

.sidebar-redes {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.701);
  padding: 8px 4px;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: opacity 0.3s;
}

.sidebar-redes a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  border-radius: 50%;
  padding: 4px;
}

.sidebar-redes a:hover {
  background: rgba(0,0,0,0.08);
}

.sidebar-redes img {
  width: 32px;
  height: 32px;
  display: block;
}

@media (max-width: 600px) {
  .sidebar-redes {
    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100vw;
    height: auto;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border-radius: 12px 12px 0 0;
    background: rgba(255,255,255,0.85);
    padding: 6px 0 4px 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    transform: none;
  }
  .sidebar-redes a {
    padding: 2px;
  }
  .sidebar-redes img {
    width: 32px;
    height: 32px;
  }
}


/* =========================
   MEDIA QUERIES
   ========================= */

/* --- HEADER Y MENÃš --- */
@media (max-width: 900px) {
  .header-top {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .menu-toggle {
    display: block;
    order: 0;
  }

  .header-top img {
    max-width: 120px;
    height: auto;
  }

  /* MenÃº lateral */
  #sideMenu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 250px;
    height: 100%;
    background-color: #333;
    padding-top: 80px;
    transition: left 0.3s ease-in-out;
    z-index: 2500;
    overflow-y: auto;
  }

  #sideMenu.abierto {
    left: 0;
  }

  .main-menu {
    flex-direction: column;
    width: 100%;
  }

  .main-menu a {
    display: block;
    width: 100%;
    padding: 15px;
    border-bottom: 1px solid #444;
    text-align: left;
    color: white;
    font-size: 20px;
  }

  .submenu {
    position: relative;
    background-color: #222;
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .dropdown.activo .submenu {
    display: flex;
  }

  /* Huella en columnas */
  .Lahuella {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

}

/* --- GALERÃA GRID RESPONSIVE --- */
@media (max-width: 900px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* --- LA HUELLA RESPONSIVE --- */
@media (max-width: 600px) {
  .Lahuella h6 {
    font-size: 1.2rem;
  }
  .Lahuella h5 {
    font-size: 0.9rem;
  }
  .Lahuella {
    gap: 10px; /* menos espacio entre columnas */
  }
}

/* --- HEADER TEXTOS RESPONSIVE --- */
@media (max-width: 768px) {
  .header-top h3 {
    font-size: 1.2rem; /* mÃ¡s pequeÃ±o */
  }
  .header-top h4 {
    font-size: 0.9rem;
  }
}
@media (max-width: 480px) {
  .header-top h3 {
    font-size: 1rem;
  }
  .header-top h4 {
    font-size: 0.8rem;
  }
}
@media (max-width: 375px) {
  .header-top img {
    max-width: 100px;
  }
}

/* --- RESPONSIVE PARA SECCIÃ“N SUMATEX --- */
@media (max-width: 1024px) {
  .sumatex {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: auto;
  }
  .colaboracion {
    padding: 30px;
  }
}

@media (max-width: 800px) {
  .sumatex {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    height: auto;
  }
  .colaboracion {
    padding: 20px;
  }
  .donar, .voluntario, .productos, .educadores {
    min-height: 300px;
  }
}

@media (max-width: 600px) {
  .sumatex {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    gap: 10px;
    padding: 0 5px;
  }
  .colaboracion {
    padding: 10px;
    font-size: 1rem;
  }
  .colaboracion h3 {
    font-size: 1.3rem;
  }
  .colaboracion p {
    font-size: 0.95rem;
  }
  .botonx {
    font-size: 1.1rem;
    padding: 8px 12px;
  }
}

/* =========================
   ANIMACIONES
   ========================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}
.container-hist, .separador, .cita {
  animation: fadeInUp 1s ease;
}

/* =========================
   CARRUSEL CITAS
   ========================= */
.carrusel-citas {
  position: relative;
  max-width: 600px;
  margin: 2.5em auto;
  min-height: 120px;
  height: 160px;
  overflow: hidden;
}

.carrusel-citas .cita {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  background: rgba(193, 173, 143, 0.18); /* mÃ¡s opaco */
  color: #222;
  border-left: 6px solid #6a0dad;
  padding: 2.2em 1em;
  margin: 0;
  font-style: italic;
  color: #6a0dad;
  border-radius: 8px;
  font-size: 1.1rem;
  text-align: left;
  box-shadow: 0 2px 8px #0001;
  min-height: 120px;
  opacity: 0;
  transition: transform 0.5s, opacity 0.5s;
  z-index: 1;
}

.carrusel-citas .cita.activa {
  display: block;
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.carrusel-citas .cita.slide-in-left {
  display: block;
  opacity: 1;
  transform: translateX(-100%);
  z-index: 2;
}

.carrusel-citas .cita.slide-in-right {
  display: block;
  opacity: 1;
  transform: translateX(100%);
  z-index: 2;
}

.carrusel-citas .cita.slide-out-left {
  display: block;
  opacity: 0;
  transform: translateX(-100%);
  z-index: 1;
}

.carrusel-citas .cita.slide-out-right {
  display: block;
  opacity: 0;
  transform: translateX(100%);
  z-index: 1;
}

.carrusel-citas {
  position: relative;
  max-width: 600px;
  margin: 2.5em auto;
  min-height: 120px;
  height: 160px;
  overflow: hidden;
}

.carrusel-citas .autor {
  display: block;
  margin-top: 0.7em;
  font-size: 0.98em;
  color: #000000;
  font-style: normal;
}


@media (max-width: 600px) {
  .carrusel-citas {
    max-width: 98vw;
    min-height: 100px;
  }
  .carrusel-citas .cita {
    font-size: 1rem;
    padding: 0.8em 0.5em;
  }
  .carrusel-citas-btn {
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
    left: -10px;
    right: -10px;
  }
}

/* =========================
   NUEVAS FICHAS EQUIPO
   ========================= */
.fundadores-hero {
  text-align: center;
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.fundadores-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.fundadores-hero p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #444;
}

.fichas-fundadores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.ficha-persona {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.ficha-media img,
.ficha-media video {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.ficha-info h2 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.ficha-info h4 {
  font-size: 1.1rem;
  color: #777;
  margin-bottom: 10px;
}

.ficha-info p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/* =========================
   VIDEO NOTA
   ========================= */
.video-nota {
  max-width: 700px;
  margin: 2em auto;
  padding: 1em;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px #0001;
}

.video-nota iframe {
  width: 100%;
  height: 340px;
  max-width: 100%;
  border-radius: 12px;
  display: block;
  margin: 0 auto 1em auto;
}

.videos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 1rem;
}

.video-nota {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 1.5rem 1rem 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s;
}

.video-nota:hover {
  box-shadow: 0 8px 32px rgba(106,10,173,0.18);
}

.video-nota h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: #6a0dad;
  margin-bottom: 1em;
  text-align: center;
  letter-spacing: 1px;
}

.video-nota iframe {
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 220px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  border: none;
  background: #000;
  margin-bottom: 1em;
}

@media (max-width: 900px) {
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .video-nota iframe {
    min-height: 180px;
  }
}

/* =========================
   SUMATE MODERNO
   ========================= */
.colab-emoji {
  font-size: 3.5rem;
  margin-bottom: 1.1rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px #fff8);
  user-select: none;
  transition: transform 0.18s;
}
.colab-card:hover .colab-emoji {
  transform: scale(1.13) rotate(-6deg);
}

.sumate-hero {
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
  padding-top: 40px;
}
.sumate-titulo {
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 3.2rem;
  color: #6a0dad;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  text-shadow: 1px 1px 8px #fff8, 0 2px 8px #6a0dad22;
}
.sumate-intro {
  font-size: 1.3rem;
  color: #000;
  text-shadow: none;
  margin-bottom: 1.5rem;
  font-family: 'Nunito', Arial, sans-serif;
}

.sumatex-modern {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.colab-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 32px rgba(106,10,173,0.10), 0 1.5px 8px #ff980033;
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s, box-shadow 0.18s;
  position: relative;
  min-height: 370px;
  overflow: hidden;
  border: 2px solid #f5f7fa;
}
.colab-card:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 8px 40px #6a0dad33, 0 2px 12px #ff980055;
  border-color: #efae16;
}
.colab-icon {
  background: linear-gradient(135deg, #efae16 0%, #6a0dad 100%);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 12px #6a0dad22;
}
.colab-icon img {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 2px 4px #fff8);
}
.colab-card h3 {
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 2rem;
  color: #6a0dad;
  margin-bottom: 0.7rem;
  letter-spacing: 1px;
}
.colab-card p {
  color: #000000;
  text-shadow:none;
  font-size: 1.13rem;
  margin-bottom: 1.5rem;
  font-family: 'Nunito', Arial, sans-serif;
  text-align: center;
}

.colab-card .botonx {
border-radius: 20px;
position: relative;
padding: 20px 40px;
text-decoration: none;
text-transform: uppercase;
color: #000000;
text-shadow: none;
letter-spacing: 1px;
background-color: #efae16;
overflow: hidden;
z-index: 1;
font-weight: bold;
font-family: 'Poppins', sans-serif;
}

.colab-card .botonx::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 200%;
  left: 0;
  top: -200%;
  background-color: rgba(106, 13, 173, 0.883);
  transition: all 0.6s ease;
  border-radius: 50%;
  z-index: -1;
  color: #fff; 
}

.colab-card .botonx:hover::before {
  top: 0;
  border-radius: 0;
  color: #fff;

}

@media (max-width: 900px) {
  .sumatex-modern {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 0.5rem;
  }
  .colab-card {
    min-height: 320px;
    padding: 2rem 1rem 1.5rem 1rem;
  }
}

@media (max-width: 600px) {
  .sumate-titulo {
    font-size: 2.1rem;
  }
  .sumate-intro {
    font-size: 1.05rem;
  }
  .colab-card {
    min-height: 220px;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }
  .colab-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 0.7rem;
  }
  .colab-icon img {
    width: 32px;
    height: 32px;
  }
}

/* =========================
   CARRUSEL CITAS SUMATE
   ========================= */
.carrusel-citas {
  position: relative;
  max-width: 600px;
  margin: 2.5em auto 2em auto;
  min-height: 120px;
  height: 160px;
  overflow: hidden;
  background: rgba(255,255,255,0.7);
  border-radius: 16px;
  box-shadow: 0 2px 12px #ff980033;
  padding: 1.5em 1.2em 1.5em 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carrusel-citas .cita {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  background: none;
  color: #6a0dad;
  border-left: 6px solid #efae16;
  padding: 1.2em 1em 1.2em 1.5em;
  margin: 0;
  font-style: italic;
  border-radius: 8px;
  font-size: 1.13rem;
  text-align: left;
  box-shadow: none;
  min-height: 80px;
  opacity: 0;
  transition: opacity 0.5s, transform 0.5s;
  z-index: 1;
}
.carrusel-citas .cita.activa {
  display: block;
  opacity: 1;
  position: relative;
  transform: translateX(0);
  z-index: 2;
}
.carrusel-citas .autor {
  display: block;
  margin-top: 0.7em;
  font-size: 0.98em;
  color: #000000;
  font-style: normal;
}

@media (max-width: 600px) {
  .carrusel-citas {
    max-width: 98vw;
    min-height: 100px;
    height: auto;
    padding: 1em 0.5em;
  }
  .carrusel-citas .cita {
    font-size: 1rem;
    padding: 0.8em 0.5em 0.8em 1em;
  }
}

/* =========================
   SECCIÃ“N SUMATE FULLSCREEN
   ========================= */
.sumate-full {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: sumateGradient 8s ease-in-out infinite;
  z-index: 1;
  box-shadow: 0 8px 32px #ff980033;
  overflow: hidden;
  margin-bottom: 0;
}

@keyframes sumateGradient {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}
.sumate-content {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2.5rem;
}

.sumate-content-col {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2.2rem;
}

.sumate-texto-corto {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sumate-descripcion {
  font-size: 1.18rem;
  color: #000000;
  font-family: 'Nunito', Arial, sans-serif;
  margin-top: 1.2em;
  line-height: 1.6;
  text-shadow: 0 0 1px black;
  max-width: 700px;
}

.sumate-boton-centro {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1.5rem;
}

.sumate-llamado {
  font-size: 2.8rem;
  color: #011081;
  text-shadow: 0 0 black;
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 0.5em;
  letter-spacing: 1px;
}
.sumate-llamado span {
  color: #000000;
  font-size: 2.2rem;
  font-family: 'Poppins', sans-serif, bold;
  display: block;
  margin-top: 0.2em;
}
/*.sumate-full .boton {
  font-size: 2.5rem;
  padding: 28px 90px;
  border-radius: 12px;
  background: #ffe259;
  color: #6a0dad;
  box-shadow: 0 4px 32px #efae1633, 0 1.5px 8px #ff980033;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
  animation: pulseSumate 2.2s infinite;
  font-family: 'Bebas Neue', Arial, sans-serif;
}
.sumate-full .boton:hover {
  background: #6a0dad;
  color: #ffe259;
  transform: scale(1.07);
  box-shadow: 0 8px 40px #6a0dad33, 0 2px 12px #ff980055;
  animation: none;
}*/
@keyframes pulseSumate {
  0% { box-shadow: 0 0 0 0 #efae1633; }
  70% { box-shadow: 0 0 0 18px rgba(239,174,22,0); }
  100% { box-shadow: 0 0 0 0 #efae1633; }
}
@media (max-width: 600px) {
  .sumate-llamado { font-size: 1.2rem; }
  .sumate-llamado span { font-size: 1.3rem; }
  .sumate-full .boton { font-size: 1.3rem; padding: 16px 30px; }
}

/* === ESTILO MODERNO PARA QUIENES SOMOS === */
@media (min-width: 0px) {
  .container-hist {
    border-radius: 22px;
    box-shadow: 0 4px 32px rgba(106,10,173,0.10), 0 1.5px 8px #ff980033;
    border: 2px solid #f5f7fa;
    background: rgba(255,255,255,0.85);
    padding: 2.5rem 2rem;
    margin: 40px auto 30px auto;
    max-width: 900px;
    animation: fadeInUp 1s ease;
  }
  .container-hist h1.hist {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 3.2rem;
    color: #6a0dad;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 0 0 1px black;
  }
  .container-hist h2.hist {
    color: #6a0dad;
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 2rem;
    margin-top: 2.2em;
    margin-bottom: 0.5em;
    letter-spacing: 1px;
  }
  .container-hist p.hist {
    font-size: 1.18rem;
    line-height: 1.7;
    color: #000000;
    background: none;
    margin-bottom: 1.2em;
    text-shadow: 1px 1px 4px #fff8;
  }
  .container-hist .resaltado {
    color: #6a0dad;
    font-weight: bold;
    background: #ff980022;
    padding: 0 4px;
    border-radius: 4px;
  }
  .container-hist .contacto {
    background: #ffe25944;
    border-radius: 12px;
    padding: 1.2em 1em;
    color: #000000;
    font-size: 1.05rem;
    box-shadow: 0 2px 8px #ff980033;
    margin-top: 2.5em;
  }

  .contacto p{
    text-shadow: none
  }

  .container-hist .contacto a {
    color: #6a0dad;
    text-decoration: none;
    font-weight: bold;
    text-shadow: none;
  }
  .container-hist .contacto a:hover {
    color: #000;
  }
}

/* === ESTILO MODERNO PARA JARDIN CIEL (ROJOS FUERTES Y VERDES) === */
.jardin-bg {
  min-height: 100vh;
}

.jardin-container {
  max-width: 950px;
  margin: 60px auto 50px auto;
  padding: 2.7rem 2.1rem;
  background: rgba(255,255,255,0.95);
  border-radius: 26px;
  box-shadow: 0 6px 32px rgba(215,38,61,0.13), 0 1.5px 8px #a8e06355;
  font-family: 'Nunito', Arial, sans-serif;
  color: #6a0dad;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.jardin-container h2 {
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 2.7rem;
  color: #6a0dad;
  margin-bottom: 0.7rem;
  letter-spacing: 2px;
  text-shadow: 1px 1px 8px #fff8, 0 2px 8px #d7263d22;
  text-align: center;
}
.jardin-container fieldset {
  border: 2px solid #a8e063;
  background: #eafbe7;
  padding: 1em 1em;
  border-radius: 10px;
  color: #226622;
  font-size: 1.4rem;
  margin-bottom: 1.2em;
  box-shadow: 0 2px 8px #a8e06322;
  margin-bottom: 100px;
}
.jardin-container b, .jardin-container strong {
  color: #6a0dad;
}
.jardin-container i {
  color: #226622;
}

.jardin-container .btn {
  font-size: 1.9rem;
  padding: 20px 60px;
  border-radius: 12px;
  background: #d7263d;
  color: #ffffff;
  box-shadow: 0 4px 32px #efae1633, 0 1.5px 8px #ff980033;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
  animation: pulseSumate 2.2s infinite;
  font-family: 'Bebas Neue', Arial, sans-serif;
}
.jardin-container .btn:hover {
  background: #56ab2f;
  color: #ffffff;
  transform: scale(1.07);
  box-shadow: 0 8px 40px #6a0dad33, 0 2px 12px #ff980055;
  animation: none;
}

.jardin-media {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  font-size: 15px;
}
.jardin-media video, .jardin-media img {
  max-width: 800px;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(215,38,61,0.12);
  background: #fff0f0;
  margin-bottom: 1.2rem;
}
.jardin-media img {
  border: 3px solid #d7263d;
  transition: transform 0.2s;
}
.jardin-media img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(168,224,99,0.18);
}
.jardin-container .resaltado {
  color: #d7263d;
  font-weight: bold;
  background: #a8e06322;
  padding: 0 4px;
  border-radius: 4px;
}
.jardin-container .contacto {
  background: #eafbe7;
  border-radius: 12px;
  padding: 1.2em 1em;
  color: #226622;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px #a8e06322;
  margin-top: 2.5em;
}
.jardin-container .contacto a {
  color: #d7263d;
  text-decoration: underline;
  font-weight: bold;
}
.jardin-container .contacto a:hover {
  color: #226622;
}

.subtitulo {
  color: #d7263d;
  font-size: 1.9rem;
}

.texto{
  font-size: 1.1rem;
  line-height: 1.7;
  color: #000000;
  background: none;
  margin-bottom: 1.2em;
  text-shadow: none;
}

.firma{
  text-align: center;
}

@media (max-width: 600px) {
  .header-titulos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .header-titulos h3, .header-titulos h4 {
    width: 100%;
    text-align: center;
    margin: 0.2em 0;
  }
}


/* =========================
   GRID DE INSTAGRAM EMBEDS EN CURSOS
   ========================= */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  justify-items: center;
  margin: 2rem 0 1rem 0;
}
.insta-grid .instagram-media {
  max-width: 220px !important;
  min-width: 180px !important;
  width: 100% !important;
  margin: 0 auto !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 12px #efae1633 !important;
}
@media (max-width: 900px) {
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
@media (max-width: 600px) {
  .insta-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .insta-grid .instagram-media {
    max-width: 98vw !important;
    min-width: 0 !important;
  }
}
/* =========================
   GRILLA DE CARDS DE CURSOS Y TESTIMONIOS
   ========================= */
.grid.cursos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
  justify-items: center;
  align-items: stretch;
  margin: 0 auto;
  width: 100%;
  max-width: 1100px;
}

@media (max-width: 900px) {
  .grid.cursos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem 0.7rem;
  }
}

@media (max-width: 600px) {
  .grid.cursos {
    grid-template-columns: 1fr;
    gap: 1rem 0;
    padding: 0 0.2rem;
  }
}
/* =========================
   CARDS DE CURSOS Y TESTIMONIOS
   ========================= */
.curso-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px #efae1633;
  padding: 2rem 1.2rem 1.5rem 1.2rem;
  margin: 1.2rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  max-width: 340px;
  flex: 1 1 260px;
  transition: box-shadow 0.18s, transform 0.18s;
  border: 2px solid #ffe25922;
}
.curso-card:hover {
  box-shadow: 0 8px 32px #efae1633, 0 2px 12px #ff980055;
  transform: translateY(-6px) scale(1.03);
  border-color: #efae16;
}
.curso-card .badge {
  font-size: 1.1rem;
  background: #ffe259;
  color: #b45309;
  border-radius: 8px;
  padding: 0.3em 0.8em;
  margin-bottom: 0.7em;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px #ff980033;
}
.curso-card h3 {
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 1.4rem;
  color: #6a0dad;
  margin-bottom: 0.5em;
  letter-spacing: 1px;
}
.curso-card p {
  color: #000000;
  text-shadow: none;
  font-size: 1.05rem;
  margin-bottom: 0.2em;
  font-family: 'Nunito', Arial, sans-serif;
}

.testimonio-card {
  background: #fffbe7;
  border-radius: 18px;
  box-shadow: 0 2px 12px #efae1633;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  margin: 1.2rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  max-width: 340px;
  flex: 1 1 260px;
  border: 2px solid #ffe25922;
}
.testimonio-card .quote {
  font-style: italic;
  color: #b45309;
  font-size: 1.08rem;
  margin-bottom: 0.5em;
}
.testimonio-card small {
  color: #888;
  font-size: 0.98em;
  margin-left: 0.5em;
}

@media (max-width: 900px) {
  .curso-card, .testimonio-card {
    min-width: 160px;
    max-width: 100%;
    padding: 1.2rem 0.7rem;
  }
}
/* =========================
   CURSOS DE OFICIO - SECCIONES MODERNAS
   ========================= */
.cursos-section,
.instagram-section,
.testimonios-section,
.info-section,
.inscripcion-section {
  max-width: 1100px;
  margin: 3rem auto 2.5rem auto;
  padding: 2.5rem 1.5rem;
  border-radius: 22px;
  box-shadow: 0 4px 32px rgba(239,174,22,0.10), 0 1.5px 8px #ff980033;
  position: relative;
  z-index: 1;
}


.titulo-cursos,
.titulo-instagram,
.titulo-testimonios,
.titulo-info,
.titulo-inscripcion {
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 2.5rem;
  color: #6a0dad;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 1px 1px 8px #fff8, 0 2px 8px #efae1622;
}

.instagram-section {
  background: #fff;
  box-shadow: 0 4px 24px #efae1633;
}

.testimonios-section {
  background: #fffbe7;
  box-shadow: 0 4px 24px #efae1633;
}

.info-section {
  background: #fffbe7;
  box-shadow: 0 4px 24px #efae1633;
}

.inscripcion-section {
  background: linear-gradient(120deg, #ffe259 0%, #ffa751 100%);
  box-shadow: 0 8px 32px #ff980033;
}

@media (max-width: 700px) {
  .cursos-section,
  .instagram-section,
  .testimonios-section,
  .info-section,
  .inscripcion-section {
    padding: 1.2rem 0.5rem;
    margin: 1.2rem 0.2rem;
    border-radius: 12px;
  }
  .titulo-cursos,
  .titulo-instagram,
  .titulo-testimonios,
  .titulo-info,
  .titulo-inscripcion {
    font-size: 2.1rem;
    margin-bottom: 1rem;
  }
}

.info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 1.2rem;
}

/* === LANDING NAVIDEÑA PRO FESTIVA === */
.navidad-landing {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  color: white;
  padding: 2rem;

}

/* Capa de gradiente navideño encima del fondo */
.navidad-landing::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
    background-image: url('/img/fondonavidad.png') ;
    background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Contenido de la landing */
.navidad-content {
  position: relative;
  z-index: 2; /* se asegura que quede arriba de todo */
}

.navidad-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  text-shadow: 1px 1px 6px #000000;
  color: #ffa751;
  margin-bottom: 1rem;
}

.navidad-content p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: #fff;
  text-shadow: 1px 1px 15px #000;
}

.boton a {
  font-size: 2rem;
  padding: 18px 60px;
  border-radius: 12px;
  background: #ffe259;
  color: #011081;
  font-family: 'Bebas Neue', sans-serif;
  text-decoration: none;
  box-shadow: 0 4px 20px #0008;
  transition: all 0.3s;
  animation: pulseBtn 2s infinite;
  text-shadow: none;
}

.boton a:hover {
  background: #011081;
  color: #ffe259;
  transform: scale(1.07);
}

@keyframes pulseBtn {
  0% { box-shadow: 0 0 0 0 rgba(255, 226, 89, 0.6); }
  70% { box-shadow: 0 0 0 25px rgba(255, 226, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 226, 89, 0.6); }
}

.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* no bloquea clics */
  z-index: 5; /* sobre el fondo, debajo del contenido */
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10%;
  width: 30px;  /* tamaño de cada copo */
  height: auto;
  opacity: 0.9;
  animation: fall 12s linear infinite;
}

/* Posiciones iniciales diferentes para 9 copos */
.snowflake:nth-child(1) { left: 5%;  animation-delay: 0s; }
.snowflake:nth-child(2) { left: 15%; animation-delay: 2s; }
.snowflake:nth-child(3) { left: 25%; animation-delay: 4s; }
.snowflake:nth-child(4) { left: 40%; animation-delay: 1s; }
.snowflake:nth-child(5) { left: 55%; animation-delay: 3s; }
.snowflake:nth-child(6) { left: 65%; animation-delay: 5s; }
.snowflake:nth-child(7) { left: 75%; animation-delay: 7s; }
.snowflake:nth-child(8) { left: 85%; animation-delay: 6s; }
.snowflake:nth-child(9) { left: 95%; animation-delay: 8s; }

/* Animación caída + viento + giro */
@keyframes fall {
  0%   { transform: translateY(-10vh) translateX(0) rotate(0deg); }
  25%  { transform: translateY(25vh) translateX(20px) rotate(90deg); }
  50%  { transform: translateY(50vh) translateX(-20px) rotate(180deg); }
  75%  { transform: translateY(75vh) translateX(15px) rotate(270deg); }
  100% { transform: translateY(110vh) translateX(-15px) rotate(360deg); }
}


/* =========================
   CALL CENTER MODERNO
   ========================= */
.callcenter-modern {
  padding: 40px 20px;
  color: #222;
  font-family: 'Nunito', Arial, sans-serif;
}

/* Hero */
.callcenter-hero {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease;
}

.callcenter-hero .hero-text {
  max-width: 600px;
}

.callcenter-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 8px black;
}

.callcenter-hero p {
  font-size: 1.4rem;
  color: #f9f9f9;
  line-height: 1.6;
  text-shadow: 0 0 2px black;
}

.callcenter-hero .hero-img img {
  max-width: 800px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.callcenter-hero .hero-img img:hover {
  transform: scale(1.03);
}

/* Secciones Call Center */
.callcenter-seccion {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 2rem;
  background: rgba(255,255,255,0.9);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  animation: fadeInUp 1s ease;
}

.callcenter-seccion h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: #6a0dad;
  margin-bottom: 1rem;
  text-align: center;
}

.callcenter-seccion p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #000000;
  margin-top: 20px;
  text-shadow: none;
}

.callcenter-seccion ul {
  list-style: none;
  padding: 0;
}

.callcenter-seccion ul li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1.1rem;
  margin-top: 20px;
}

.callcenter-seccion ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #efae16;
  font-weight: bold;
}

/* Impacto */
.callcenter-seccion.impacto {
  color: #222;
}

.callcenter-seccion.impacto blockquote {
  font-size: 1.3rem;
  font-style: italic;
  text-align: center;
  margin-top: 1.5rem;
  color: #6a0dad;
}

/* Riesgos */
.callcenter-seccion.riesgos {
  background: #fff3f3;
  border-left: 6px solid #d7263d;
}

/* Cifras */
.callcenter-cifras {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  animation: fadeInUp 1.6s ease;
}

.callcenter-cifras .cifra {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  min-width: 180px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.callcenter-cifras .cifra:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.callcenter-cifras h2 {
  font-size: 2.5rem;
  color: #6a0dad;
  margin-bottom: 0.5rem;
}

.callcenter-cifras p {
  font-size: 1.1rem;
  color: #000000;
  text-shadow: none;
}

/* Sectores del Call Center */
.callcenter-seccion.sectores {
  text-align: center;
}

.sectores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.sector-card {
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  background: #fff;
}

.sector-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: #6a0dad;
  margin-bottom: 0.2rem;
}

.sector-card h4 {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1rem;
}

.sector-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
}

.sector-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

/* Colores específicos */
.sector-card.mora {
  border-left: 6px solid #d7263d;
}

.sector-card.superlinea {
  border-left: 6px solid #6a0dad;
}

.sector-card figure {
  margin: 0;
  position: relative;
}

.sector-card img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

.sector-card figcaption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-style: italic;
  color: #555;
  text-align: center;
}

.panaderia-section {
  background: url('img/fondo_naranja.jpg') center/cover no-repeat fixed;
  padding: 5rem 2rem;
  color: #fff;
  display: flex;
  justify-content: center;
}

.panaderia-ficha {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  padding: 2rem;
  max-width: 900px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.panaderia-texto {
  text-align: left;
  line-height: 1.8;
}

.panaderia-texto h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: #ffe259;
  text-align: center;
  margin-bottom: 1.5rem;
}

.panaderia-texto p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.imagen-intermedia {
  margin: 2rem 0;
  text-align: center;
}

.imagen-intermedia img {
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  object-fit: cover;
  transition: transform 5s ease, opacity 2s ease;
}

.imagen-intermedia img:hover {
  transform: scale(1.05);
  opacity: 0.95;
}

/* Responsive */
@media (max-width: 768px) {
  .panaderia-texto {
    text-align: center;
  }

  .imagen-intermedia img {
    max-width: 100%;
  }
}

/* --- Responsividad --- */
@media (max-width: 1024px) {
  .mini-carrusel {
    max-width: 90%;
  }
}

/* === AJUSTE TOTAL UNIFICADO: Sección Call Center y Sectores (de 700px a 320px) === */
@media (max-width: 700px) {
  /* Contenedor general */
  .callcenter-seccion.sectores {
    padding: 1.2rem 0.5rem;
    max-width: 95%;
    margin: 0 auto;
  }

  /* Contenedor de sectores */
  .sectores-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    margin: 0 auto;
    gap: 1.8rem;
  }

  /* Tarjetas */
  .sector-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .sector-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(0,0,0,0.18);
  }

  /* Imágenes */
  .sector-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    display: block;
  }

  /* Títulos y textos */
  .sector-card h3 {
    font-size: 1.6rem;
    margin-top: 0.8rem;
    text-align: center;
  }

  .sector-card p {
    font-size: 1.05rem;
    line-height: 1.5;
    text-align: center;
  }
}

/* Hasta 660px */
@media (max-width: 660px) {
  .sectores-grid {
    width: 90%;
    gap: 1.5rem;
  }

  .sector-card {
    max-width: 360px;
  }
}

/* Hasta 580px */
@media (max-width: 580px) {
  .sectores-grid {
    width: 92%;
    gap: 1.2rem;
  }

  .sector-card {
    max-width: 340px;
  }

  .sector-card h3 {
    font-size: 1.5rem;
  }

  .sector-card p {
    font-size: 1rem;
  }
}

/* === FIX FINAL: imágenes cortadas o con espacio en blanco (≤540px) === */
@media (max-width: 540px) {
  .sectores-grid {
    width: 95%;
    margin: 0 auto;
    gap: 1rem;
    overflow: hidden;
  }

  .sector-card {
    max-width: 340px;
    width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;         /* evita que sobresalga el contenido */
    box-shadow: 0 3px 14px rgba(0,0,0,0.12);
  }

  .sector-card img {
    width: 100%;
    height: auto;             /* 🔥 quita alturas forzadas */
    max-height: none;         /* 🔥 evita cortes */
    object-fit: contain;      /* muestra la imagen completa */
    display: block;
    margin: 0 auto;
    border-radius: 10px;
  }

  .sector-card h3 {
    font-size: 1.4rem;
    margin-top: 0.8rem;
  }

  .sector-card p {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

/* Refuerzo para pantallas muy chicas (≤400px) */
@media (max-width: 480px) {
  .sector-card {
    max-width: 300px;
  }

  .sector-card img {
    object-fit: contain;
    background-color: #000;   /* mantiene contraste, sin hueco blanco */
  }
}

/* Ajustes suaves en móviles chicos */
@media (max-width: 480px) {
  .mini-carrusel {
    width: 88%;
    max-width: 300px;
  }
}

@media (max-width: 360px) {
  .mini-carrusel {
    width: 90%;
    max-width: 260px;
    height: clamp(150px, 40vw, 180px);
  }
}






.testimonios {
  text-align: center;
  padding: 50px 20px;
}

.testimonios h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #6a0dad;
  text-shadow: 0px 0px 1px black;
  letter-spacing: 2px;
}



.testimonios p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: #000000;
  margin-bottom: 40px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  justify-items: center;
}

.video-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  padding: 15px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.video-card video {
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 10px;
  object-fit: cover;
}

.video-card .nombre {
  margin-top: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
}

.video-card .descripcion {
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #555;
}



.container-img {
  column-count: 4;
  column-gap: 20px;
  max-width: 1900px;     /* ancho máximo en desktop */
  margin: 0 auto 20px;   /* centrado automático */
  padding: 0 10px;       /* un poquito de padding lateral */
}

.container-img .box-img {
  break-inside: avoid;
  margin-bottom: 20px;
}

.container-img .box-img figure{
    width: 100%;
    height: 100%;
}
.container-img img {
  width: 100%;
  height: auto; /* ✅ respeta la proporción original */
  display: block;
}

/* Horizontal y vertical dinámicos */
/* Horizontal: 2 columnas de ancho, pero altura normal */
.container-img .box-img.horizontal {
  grid-column: span 2;
  grid-row: span 1; /* fuerza a que tenga solo la altura de 1 fila */
}

.container-img .box-img.horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* recorta si sobra */
}

.container-img .box-img.vertical {
    grid-row-start: span 2;
}

/* Responsive */
@media screen and (max-width:800px){
    .container-img{
        width: 95%;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
        grid-template-rows: 200px;
    }
    .container-img .box-img.horizontal{
        grid-column-start: span 1;
    }
}
@media screen and (max-width: 500px) {
  .container-img {
    column-count: 1; /* ✅ fuerza una sola columna */
  }

  .container-img .box-img img {
    height: auto; /* ✅ respeta proporción */
  }
}

/* === RESPONSIVE COVERFLOW === */

/* Tablets horizontales o pantallas medianas (hasta 1024px) */
@media (max-width: 1024px) {
  .carrusel-contenedor {
    width: 90%;
    perspective: 1000px;
  }

  .carrusel {
    width: 70%;
  }

  .carrusel.activa {
    transform: translateZ(200px);
  }

  .carrusel.lateral-izq {
    transform: translateX(-200px) rotateY(30deg);
  }

  .carrusel.lateral-der {
    transform: translateX(200px) rotateY(-30deg);
  }

  .carrusel-btn.prev { left: -40px; }
  .carrusel-btn.next { right: -40px; }
}

/* Tablets verticales y celulares grandes (hasta 768px) */
@media (max-width: 768px) {
  .carrusel-contenedor {
    width: 95%;
    perspective: 900px;
  }

  .carrusel {
    width: 80%;
  }

  .carrusel.activa {
    transform: translateZ(160px);
  }

  .carrusel.lateral-izq {
    transform: translateX(-160px) rotateY(28deg);
  }

  .carrusel.lateral-der {
    transform: translateX(160px) rotateY(-28deg);
  }

  .carrusel-btn {
    font-size: 1.5rem;
    padding: 8px 12px;
  }
}

/* Celulares medianos y chicos (hasta 480px) */
@media (max-width: 480px) {
  .carrusel-contenedor {
    width: 100%;
    perspective: 800px;
  }

  .carrusel {
    width: 90%;
    height: 300px;
  }

  .carrusel.activa {
    transform: translateZ(120px);
  }

  .carrusel.lateral-izq {
    transform: translateX(-120px) rotateY(25deg);
  }

  .carrusel.lateral-der {
    transform: translateX(120px) rotateY(-25deg);
  }

  .carrusel-btn {
    font-size: 1.2rem;
    padding: 6px 10px;
  }

  .carrusel-btn.prev { left: 10px; }
  .carrusel-btn.next { right: 10px; }
}

/* Celulares muy pequeños (hasta 360px) */
@media (max-width: 360px) {
  .carrusel {
    width: 95%;
    height: 250px;
  }

  .carrusel.activa {
    transform: translateZ(100px);
  }

  .carrusel.lateral-izq {
    transform: translateX(-100px) rotateY(22deg);
  }

  .carrusel.lateral-der {
    transform: translateX(100px) rotateY(-22deg);
  }
}

/* Tablets (hasta 1024px) */
@media (max-width: 1024px) {
.navidad-landing {
    background-attachment: scroll; /* evita saltos en iPad */
    background-position: center center;
  }

  .navidad-content {
    max-width: 600px;
    padding: 2.5rem 2rem;
  }
  .navidad-content h1 {
    font-size: 3rem;
  }
  .navidad-content p {
    font-size: 1.2rem;
  }
  .boton a {
    font-size: 1.3rem;
    padding: 0.9rem 2rem;
  }
}

/* Tablets verticales y celulares grandes (hasta 768px) */
@media (max-width: 768px) {
   .navidad-landing {
    padding: 1.5rem;
    background-size: cover;
    background-position: center top; /* muestra mejor la parte superior */
  }
  .navidad-content {
    padding: 2rem 1.5rem;
    max-width: 90%;
  }
  .navidad-content h1 {
    font-size: 2.4rem;
  }
  .navidad-content p {
    font-size: 1.1rem;
  }
  .boton a {
    font-size: 1.2rem;
    padding: 0.8rem 1.8rem;
  }
  .snowflake {
    width: 30px;
    opacity: 0.7;
  }
} 

/* Celulares medianos (hasta 480px) */
@media (max-width: 480px) {
  .navidad-content {
    padding: 1.5rem 1rem;
    border-radius: 15px;
  }
  .navidad-content h1 {
    font-size: 1.9rem;
    line-height: 1.3;
  }
  .navidad-content p {
    font-size: 1rem;
  }
  .boton a {
    font-size: 1rem;
    padding: 0.6rem 1.4rem;
  }
  .snowflake {
    width: 24px;
    opacity: 0.6;
  }
}

/* Celulares muy pequeños (hasta 360px) */
@media (max-width: 360px) {
  .navidad-content h1 {
    font-size: 1.6rem;
  }
  .navidad-content p {
    font-size: 0.9rem;
  }
  .boton a {
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
  }
  .snowflake {
    width: 20px;
    opacity: 0.5;
  }
}


.mini-carrusel {
  max-width: 600px;     /* ancho máximo del carrusel */
  margin: 2rem auto;    /* centrado */
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.carrusel-call {
  display: flex;
  width: 200%;          /* dos imágenes lado a lado */
  animation: deslizar 8s infinite ease-in-out;
}

.carrusel-call img {
  width: 50%;           /* dos imágenes dentro del contenedor */
  object-fit: cover;
}

/* Animación */
@keyframes deslizar {
  0%, 45% { transform: translateX(0); }       /* primera imagen */
  50%, 95% { transform: translateX(-50%); }   /* segunda imagen */
  100% { transform: translateX(0); }          /* reinicia */
}

.mini-carrusel1 {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

.carrusel-call1 {
  display: flex;
  width: 200%;
  animation: slide 8s infinite ease-in-out;
}

.carrusel-call1 img {
  flex: 0 0 100%;
  width: 100%;
    aspect-ratio: 21 / 7;   /* 👈 más compacta que 16/9 (ajustable) */
  object-fit: cover;    /* mantiene proporción sin deformar */
}

/* --- Animación --- */
@keyframes slide {
  0%, 45% { transform: translateX(0); }
  50%, 95% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

/* --- Responsividad --- */
@media (max-width: 1024px) {
  .mini-carrusel1 {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .mini-carrusel1 {
    max-width: 95%;
  }

  .carrusel-call1 img {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .mini-carrusel1 {
    max-width: 100%;
    border-radius: 0;
  }

  .carrusel-call1 img {
    height: 220px;
  }
}

/* === Sección de notas con videos (actualizada) === */
.nota-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); /* cuadros más anchos */
  gap: 3rem;
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: auto;
}

.nota-video-item {
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.nota-video-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(255, 190, 70, 0.35);
}

.nota-video-item h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.1rem;
  color: #ffe259;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}

/* --- Cuadro de video --- */
.nota-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
  background: #000;
}

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

/* --- Responsividad --- */
@media (max-width: 1024px) {
  .nota-video-grid {
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 2.5rem;
  }

  .nota-video-item h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .nota-video-grid {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem;
  }

  .nota-video-item {
    padding: 1.5rem;
  }

  .nota-video-frame {
    aspect-ratio: 16 / 10;
  }

  .nota-video-item h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .nota-video-grid {
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .nota-video-frame {
    aspect-ratio: 16 / 11;
  }
}


/* === PRELOADER LA JUANITA === */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #ffa751 0%, #ffe259 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Contenido */
.preloader-content {
  text-align: center;
  animation: fadeIn 1.2s ease forwards;
}

.preloader-logo {
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
  animation: pulse 1.8s infinite ease-in-out;
}

.preloader-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: white;
  letter-spacing: 1px;
  animation: blink 2s infinite;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}


/* === BOTÓN VOLVER ARRIBA === */
#btnSubir {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  margin-bottom: 25px;
  background-color: #f4c542; /* dorado */
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  z-index: 999;
  display: none; /* oculto por defecto */
  padding: 0;
}

#btnSubir img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#btnSubir:hover {
  background-color: #e0b01e;
  transform: scale(1.1);
}
