
:root {
  --rojo: #aa3824;
  --rojo-oscuro: #90271a;
  --amarillo: #c9902b;
  --amarillo-hover: #a8741f;
  --texto: #0F172A;
  --gris: #334155;
  --gris-claro: #E5E7EB;
  --blanco: #FFFFFF;
  --sombra-suave: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* ============== ANIMACIONES ===================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-recursos {
  background: linear-gradient(135deg, #aa3824 0%, #90271a 50%, #7f2418 100%);
  color: var(--blanco);
  text-align: center;
  padding: 6rem 2rem 5rem;
  margin-top: 6rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sombra-suave);
}

.hero-recursos::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-recursos h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 0.8s ease;
}

.hero-recursos p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #f8f8f8;
  animation: fadeInUp 0.9s ease 0.3s backwards;
}

.recursos-enlaces {
  padding: 4rem 0;
  text-align: center;
  animation: fadeInUp 0.9s ease 0.4s backwards;
}
.recursos-enlaces h2 {
  color: var(--texto);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease;
}
.grid-enlaces {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.recurso-card {
  background: var(--blanco);
  border: 1px solid var(--gris-claro);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: var(--texto);
  transition: all 0.3s ease;
  animation: scaleIn 0.6s ease backwards;
}
.recurso-card:nth-child(1) { animation-delay: 0.1s; }
.recurso-card:nth-child(2) { animation-delay: 0.2s; }
.recurso-card:nth-child(3) { animation-delay: 0.3s; }

.recurso-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--amarillo);
}
.recurso-card h3 {
  color: var(--rojo);
  margin-bottom: 0.6rem;
}

.aranceles {
  padding: 3rem 0;
  animation: fadeInUp 0.9s ease 0.5s backwards;
}
.aranceles h2 {
  text-align: center;
  color: var(--texto);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease;
}
.tabla-aranceles {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  animation: scaleIn 0.6s ease 0.6s backwards;
}
th, td {
  border: 1px solid #b33b24;
  padding: 0.8rem;
  text-align: left;
}
th {
  background-color: #aa3824;
  color: var(--blanco);
  text-align: center;
}
td:last-child {
  text-align: center;
  font-weight: 600;
}
tbody tr:nth-child(even) {
  background-color: #fef9f5;
}

footer {
  background: linear-gradient(135deg, var(--rojo) 0%, var(--rojo-oscuro) 100%);
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--blanco);
  font-size: 0.95rem;
  margin-top: 3rem;
}

/* =============== RESPONSIVE ======================= */
@media (max-width: 768px) {
  .hero-recursos {
    padding-top: 7rem;
  }
}
