:root {
  --primary: #1a73e8;
  --bg-light: #f4f4f4;
  --bg-white: #ffffff;
  --text-dark: #333;
  --text-light: #777;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  --radius: 10px;
}

/* Reset y body */


/* Encabezado y logo */


/* Contenedor principal */
.principal {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: auto;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* Secciones */
.seccion {
  background-color: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.seccion h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: var(--primary);
  text-align: center;
}

/* Carousel */
.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  position: relative;
}

.carousel-arrow {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 0.7rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s;
  z-index: 2;
}

.carousel-arrow:hover {
  background-color: #0f5ec7;
}

/* Contenedor scrollable de documentos */
.documentos-container {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
}

.documento {
  background-color: #e6e6e6;
  border-radius: var(--radius);
  padding: 1rem;
  min-width: 200px;
  max-width: 240px;
  flex: 0 0 auto;
  text-align: center;
  box-shadow: var(--shadow);
}

.documento p {
  margin: 0;
  font-weight: bold;
  color: var(--text-dark);
}

.documento a {
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
  color: var(--primary);
  font-weight: bold;
}

.documento a:hover {
  text-decoration: underline;
}

/* Menú */
.menu-action {
  display: flex;
  align-items: center;
}

.menu-action ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.menu-action li a {
  font-size: 18px;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.menu-action li a:hover {
  color: #2a6921;
}

/* ==================== */
/* Responsive General */
/* ==================== */

/* Tablets y móviles grandes */
@media screen and (max-width: 1024px) {
  .seccion h3 {
    font-size: 1.2rem;
  }

  .carousel-arrow {
    font-size: 1.3rem;
    padding: 0.6rem;
  }

  .documento {
    min-width: 180px;
  }

  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.8rem;
  }
}

/* Móviles medianos */
@media screen and (max-width: 768px) {
  header.encabezado {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .carousel-wrapper {
    justify-content: center;
    gap: 5px;
  }

  .documentos-container {
    padding: 0.5rem 0;
    gap: 10px;
  }

  .documento {
    min-width: 160px;
  }

  h1 {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 1.6rem;
  }
}

/* Móviles pequeños */
@media screen and (max-width: 480px) {
  .documento {
    min-width: 140px;
  }

  h1 {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .carousel-arrow {
    font-size: 1rem;
    padding: 0.4rem;
  }

  .seccion {
    padding: 1rem;
  }
}
