.scroller {
    margin-top: 20px;
  max-width: 1200px;
  height: 225px;
}

.scroller__inner {
  padding-block: 1rem;
  display: flex;
  align-self: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.scroller[data-animated="true"] {
  overflow: hidden;
  -webkit-mask: linear-gradient(
    90deg,
    transparent,
    white 20%,
    white 80%,
    transparent
  );
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller[data-animated="true"] .scroller__inner {
  width: max-content;
  flex-wrap: nowrap;
  animation: scroll var(--_animation-duration, 40s)
    var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="right"] {
  --_animation-direction: reverse;
}

.scroller[data-direction="left"] {
  --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
  --_animation-duration: 20s;
}

.scroller[data-speed="slow"] {
  --_animation-duration: 60s;
}

.scroller img {
    max-width: 205px;
}

@keyframes scroll {
  to {
    transform: translate(calc(-50% - 0.5rem));
  }
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background-color: #333;
  color: #333;
}
header {
  background-color: #000;
  color: #fff;
  padding: 20px;
  text-align: center;
  border-bottom: 4px solid #fe5516;
}
main {
  max-width: 1100px;
  margin: 0;
  padding: 20px;
  justify-self: center;
}
.hero {
  background: url("imagenes/fondo.png") center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  line-height: 32px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* oscurece para resaltar texto */
}
.hero-content {
  position: relative;
  color: white;
  z-index: 1;
}
.btn-hero {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #fe5516;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}
.btn-hero:hover {
  background: #d94510;
}

.intro {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0px;
  border-radius: 8px;
  margin-bottom: 30px;
}
.intro img {
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}
.intro-text {
  flex: 1;
  text-align: center;
  max-width: 800px;          /* ancho máximo para no ocupar todo el ancho */
  margin: 20px auto;         /* centrado */
  line-height: 1.8;          /* más espacio entre líneas */
  font-size: 1.1rem;         /* un poco más grande que el texto normal */
  text-align: justify;       /* justificado para orden visual */
  color: #333;               /* gris oscuro para no cansar la vista */
  padding: 20px;             /* espacio interno */
  background: #f9f9f9;       /* fondo claro */
  border-right: 4px solid #FE5516; /* detalle con tu color destacado */
  border-radius: 8px;        /* bordes redondeados */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* sombra sutil */
}
.intro-2 {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0px;
  border-radius: 8px;
  margin-bottom: 30px;
}
.intro-2 img {
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}
.intro-text-2 {
  flex: 1;
  text-align: center;
  max-width: 800px;          /* ancho máximo para no ocupar todo el ancho */
  margin: 20px auto;         /* centrado */
  line-height: 1.8;          /* más espacio entre líneas */
  font-size: 1.1rem;         /* un poco más grande que el texto normal */
  text-align: justify;       /* justificado para orden visual */
  color: #333;               /* gris oscuro para no cansar la vista */
  padding: 20px;             /* espacio interno */
  background: #f9f9f9;       /* fondo claro */
  border-left: 4px solid #FE5516; /* detalle con tu color destacado */
  border-radius: 8px;        /* bordes redondeados */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* sombra sutil */
}
.intro-text p {
  margin: 0;
  font-size: 1.1rem;
}
h2 {
  color: #fe5516;
  margin-bottom: 10px;
  justify-self: center;
}
.section-desc {
  margin-bottom: 20px;
  line-height: 1.6;
}
.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}
.pdf-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.pdf-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
}
.pdf-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-position: top;
  background-color: #ddd;
}
.pdf-card h3 {
  margin: 10px 0;
  font-size: 1rem;
  color: #fe5516;
  flex-grow: 1;
}
.pdf-card a {
  display: inline-block;
  margin: 15px auto;
  padding: 8px 15px;
  background-color: #fe5516;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}
.pdf-card a:hover {
  background-color: #d94510;
}

.pdf-card {
  overflow: hidden;
  position: relative;
}
.pdf-card img {
  transition: transform 0.4s ease;
}
.pdf-card:hover img {
  transform: scale(1.05);
}

footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}



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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

/* 🔹 Animaciones aplicadas */
header {
  animation: fadeDown 1s ease forwards;
}

.intro {
  animation: fadeLeft 1.5s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.intro-2 {
  animation: fadeRight 1.5s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.pdfs-section {
  animation: fadeUp 1.5s ease forwards;
  animation-delay: 1s;
  opacity: 0;
}

.pdf-card {
  animation: fadeUp 1s ease forwards;
  animation-delay: 1.5s;
  opacity: 0;
}

.scroller {
  animation: fadeLeft 1.5s ease forwards;
  animation-delay: 2s;
  opacity: 0;
}


/* Tablets */
@media (max-width: 992px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .intro, .intro-2 {
    padding: 2rem 1rem;
    margin-bottom: 0;
  }
  
  .intro {
    flex-direction: column;
    font-size: 1rem;
    max-width: 992px;
  }

  .intro-2 {
    flex-direction: column;
    flex-direction: column-reverse;
    font-size: 1rem;
  }  


  nav {
    margin-top: 10px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .scroller {
    width: 90vw;
  }

}

/* Celulares */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.5rem;
  }

  nav a {
    display: block;
    margin: 8px 0;
  }

  .intro {
    padding: 2rem 1rem;
  }

  .intro p {
    font-size: 1rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card img {
    height: 160px;
  }

  .carousel img {
    width: 180px;
    height: 120px;
  }
}