/* Global reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
}

body {
  width: 100%;
  height: 100%;
  font-family: "Open Sans", sans-serif;
}

/* === SLIDER === */
/* === SLIDER CONTENEDOR === */

.contenedor {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
}

/* Contenedor general de slides */
.slider-contenedor {
  width: 100%;
  height: 250px;
  display: flex;
}

/* Cada sección (slide) */
.contenido-slider {
  width: 100%;
  height: 250px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-shrink: 0;
  background-image: url(../img/fond.png);
}

/* Texto del slider */
.contenido-slider h2 {
  color: #000;
  font-size: 1.3rem;
  line-height: 1.6;
  text-align: justify;
  max-width: 600px;
}

/* Botón */
.contenido-slider a {
  display: inline-block;
  margin-top: 10px;
  background-color: #008f39;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.contenido-slider a:hover {
  background-color: #006e2a;
}

/* Imagen del slide */
.contenido-slider img {
  width: 200px;
  height: 200px;
  border-radius: 15px;
  object-fit: contain;
}

/* === MEDIA QUERIES === */

/* Pantallas grandes (escritorio) */
@media (min-width: 1200px) {
  .contenido-slider {
    padding: 40px 100px;
  }

  .contenido-slider h2 {
    font-size: 1.5rem;
  }

  .contenido-slider img {
    width: 320px;
  }
}

/* Tablets (pantallas medianas) */
@media (max-width: 992px) {
  .contenido-slider {
    flex-direction: column;
    text-align: center;
  }

  .contenido-slider h2 {
    font-size: 1.2rem;
    max-width: 90%;
  }

  .contenido-slider img {
    width: 220px;
    margin-top: 20px;
  }
}

/* Celulares (pantallas pequeñas) */
@media (max-width: 768px) {
  .contenido-slider {
    flex-direction: column;
    padding: 20px;
  }

  .contenido-slider h2 {
    font-size: 1rem;
    line-height: 1.4;
    max-width: 100%;
  }

  .contenido-slider img {
    width: 160px;
  }

  .contenido-slider a {
    padding: 8px 18px;
    font-size: 0.9rem;
  }
}

/* Celulares muy pequeños */
@media (max-width: 480px) {
  .contenido-slider {
    padding: 15px;
  }

  .contenido-slider img {
    width: 130px;
  }

  .contenido-slider h2 {
    font-size: 0.95rem;
  }
}

/* === MAIN === */

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.sectioni {
  width: 100%;
  max-width: 1300px;
}

/* --- Filas de cajas --- */
.innotas,
.innotas2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-bottom: 40px;
}

/* --- Cajas individuales --- */
.ind-notas,
.ind-notas2,
.ind-notas3,
.ind-notas4 {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex: 1 1 500px; /* se adapta al contenido */
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ind-notas:hover,
.ind-notas2:hover,
.ind-notas3:hover,
.ind-notas4:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* --- Títulos y párrafos --- */
h2 {
  font-size: 1.4rem;
  color: #704214;
  margin: 10px 0;
}

.parrafo-ind {
  font-size: 1rem;
  text-align: justify;
  margin-top: 10px;
}

/* --- Imágenes y videos --- */
.imgind,
.indvideo {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: auto;
  max-height: 350px;
}

.ind,
.ind2,
.ind3 {
  margin: 15px 0;
}

/* --- Adaptación a pantallas medianas --- */
@media (max-width: 1024px) {
  .ind-notas,
  .ind-notas2,
  .ind-notas3,
  .ind-notas4 {
    flex: 1 1 45%;
  }
}

/* --- Adaptación a pantallas pequeñas --- */
@media (max-width: 768px) {
  .innotas,
  .innotas2 {
    flex-direction: column;
    align-items: center;
  }

  .ind-notas,
  .ind-notas2,
  .ind-notas3,
  .ind-notas4 {
    flex: 1 1 100%;
    max-width: 600px;
  }

  .main {
    padding: 20px 10px;
  }

  h2 {
    font-size: 1.2rem;
  }

  .parrafo-ind {
    font-size: 0.95rem;
  }
}

/* --- Adaptación a pantallas muy pequeñas --- */
@media (max-width: 480px) {
  h2 {
    font-size: 1.1rem;
  }

  .parrafo-ind {
    font-size: 0.9rem;
  }
}

/* === MODAL === */
.pop-up {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.pop-up-wrap {
  background: #fff;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  padding: 20px;
}

.pop-up-title img {
  width: 100%;
  height: auto;
  border-radius: 15px;
}

.sub-content {
  padding: 10px;
}

.produc form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.produc form a img {
  width: 50px;
  height: 50px;
}

#btn-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}