/* ============================= */
/* RESET & BODY */
/* ============================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Georgia', serif;
  background-color: #f1f4f7;
  color: #000;
  line-height: 1.6;
}

/* ============================= */
/* CONTENEDOR PRINCIPAL */
/* ============================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.header-section h1 {
  font-size: 2.6rem;
  margin-bottom: 20px;
  color: #000;
  text-transform: uppercase;
}

/* ============================= */
/* APARTADO NARANJA (POLÍGONO) */
/* ============================= */
.orange-polygon {
  width: 100%;
  background-color: #f39237;
  padding: 100px 20px; /* Aumentado para que el clip-path no corte el texto */
  margin: 40px 0;
  color: #ffffff;
  clip-path: polygon(0 15%, 50% 0, 100% 15%, 100% 85%, 50% 100%, 0 85%);
}

/* ============================= */
/* CUADRÍCULA DE ARCHIVOS (NUEVO) */
/* ============================= */
.grid {
  display: grid;
  /* Crea columnas automáticas que se ajustan al ancho */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.item {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Icono de PDF con FontAwesome */
.pdf-icon {
  font-size: 3rem;
  color: #3c3fe7; 
  margin-bottom: 15px;
}

/* Estilo de los Enlaces */
.item a {
  color: #003366;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1.3;
}

.item a:hover {
  color: #f39237;
  text-decoration: underline;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 768px) {
  .orange-polygon {
    clip-path: none;
    border-radius: 0;
    padding: 50px 20px;
  }

  .header-section h1 {
    font-size: 1.8rem;
  }
  
  .grid {
    grid-template-columns: 1fr; 
  }
}