/* ==================== ESTILOS RECURSOS PARA DOCENTES ==================== */
/* Diseño Premium con enfoque en recursos educativos - Mejores prácticas UI/UX */

/* Hero Section - Premium y Atractivo */
.hero-recursos-docentes {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-recursos-docentes::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.hero-recursos-docentes::after {
  content: "";
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(30px, 30px) rotate(180deg);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-recursos-docentes h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.hero-recursos-docentes p {
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.95;
  margin-bottom: 2rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
}

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

/* Sección de Contenido */
.seccion-contenido {
  padding: 5rem 0;
  background: #f8f9fa;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Intro Section */
.intro-section {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  padding: 2.5rem;
  border-radius: 1.5rem;
  margin-bottom: 4rem;
  border-left: 6px solid var(--primary);
  box-shadow: 0 4px 20px rgba(46, 125, 50, 0.1);
  text-align: center;
}

.intro-section p {
  font-size: 1.25rem;
  color: var(--gray-700);
  line-height: 1.9;
  margin: 0;
}

/* Sección de Recursos */
.recursos-section {
  margin-bottom: 5rem;
}

.recursos-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.recursos-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.recursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.recurso-categoria {
  background: white;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.recurso-categoria::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.recurso-categoria:hover::before {
  transform: scaleX(1);
}

.recurso-categoria:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(46, 125, 50, 0.2);
  border-color: var(--primary);
}

.recurso-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.recurso-icon::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, 30px);
  }
}

.recurso-categoria:hover .recurso-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(46, 125, 50, 0.4);
}

.recurso-icon svg {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  color: white;
  position: relative;
  z-index: 1;
}

.recurso-categoria h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.recurso-categoria:hover h3 {
  color: var(--primary);
}

.recurso-categoria p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  flex: 1;
}

.recurso-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recurso-items a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  color: var(--gray-700);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.recurso-items a::before {
  content: "→";
  opacity: 0;
  transition: all 0.3s ease;
  margin-left: auto;
}

.recurso-items a:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-color: var(--primary);
  transform: translateX(8px);
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.recurso-items a:hover::before {
  opacity: 1;
}

/* Sección de Comunidades */
.comunidades-section {
  background: white;
  padding: 4rem 3rem;
  border-radius: 2rem;
  margin-bottom: 4rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-top: 5px solid var(--primary);
}

.comunidades-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.comunidades-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.comunidades-section > p {
  text-align: center;
  font-size: 1.125rem;
  color: var(--gray-700);
  margin-bottom: 2rem;
}

.comunidades-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.comunidad-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.comunidad-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.comunidad-item:hover::before {
  transform: scaleX(1);
}

.comunidad-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(46, 125, 50, 0.15);
  border-color: var(--primary);
}

.comunidad-item h4 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.comunidad-item:hover h4 {
  color: var(--primary);
}

.comunidad-item p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.comunidad-item a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.comunidad-item a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
}

.comunidad-item a::after {
  content: "→";
  transition: transform 0.3s ease;
}

.comunidad-item a:hover::after {
  transform: translateX(4px);
}

/* Sección de Apoyo */
.apoyo-section {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  padding: 4rem 3rem;
  border-radius: 2rem;
  margin-bottom: 4rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.apoyo-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.apoyo-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.apoyo-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.apoyo-item {
  background: white;
  padding: 2rem;
  border-radius: 1.5rem;
  border-left: 5px solid var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.apoyo-item:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.15);
}

.apoyo-item h4 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.apoyo-item p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.apoyo-item p:last-child {
  margin-bottom: 0;
}

.apoyo-item strong {
  color: var(--gray-900);
  font-weight: 700;
}

/* Sección de Descargas */
.descarga-section {
  background: white;
  padding: 4rem 3rem;
  border-radius: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-top: 5px solid var(--primary);
}

.descarga-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.descarga-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.descargas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.descarga-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  padding: 2rem;
  border-radius: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.descarga-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.descarga-item:hover::before {
  transform: scaleY(1);
}

.descarga-item:hover {
  transform: translateX(8px);
  box-shadow: 0 12px 40px rgba(46, 125, 50, 0.15);
  border-color: var(--primary);
}

.descarga-item .icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.descarga-item:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

.descarga-item span:not(.icon) {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  flex: 1;
}

/* Responsive Design */
@media (max-width: 1600px) {
  .container {
    max-width: 1200px;
  }
}

@media (max-width: 1200px) {
  .recursos-grid {
    grid-template-columns: repeat(2, 1fr);
}

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

@media (max-width: 992px) {
  .hero-recursos-docentes {
    padding: 5rem 0 4rem;
  }

  .hero-recursos-docentes h1 {
    font-size: 2.75rem;
  }

  .hero-recursos-docentes p {
    font-size: 1.25rem;
  }

  .seccion-contenido {
    padding: 4rem 0;
}

  .recursos-section h2,
  .comunidades-section h2,
  .apoyo-section h2,
  .descarga-section h2 {
    font-size: 2rem;
  }

  .comunidades-section,
  .apoyo-section,
  .descarga-section {
    padding: 3rem 2rem;
  }
}

@media (max-width: 768px) {
  .hero-recursos-docentes {
    padding: 4rem 0 3rem;
  }

  .hero-recursos-docentes h1 {
    font-size: 2.25rem;
  }

  .hero-recursos-docentes p {
    font-size: 1.125rem;
  }

  .intro-section {
    padding: 2rem;
  }

  .intro-section p {
    font-size: 1.125rem;
  }

  .recursos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .recurso-categoria {
    padding: 2rem;
    border-radius: 1.25rem;
  }

  .recurso-icon {
    width: 70px;
    height: 70px;
  }

  .recurso-icon svg {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
  }

  .recurso-categoria h3 {
    font-size: 1.375rem;
  }

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

  .apoyo-items {
    grid-template-columns: 1fr;
  }

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

  .comunidades-section,
  .apoyo-section,
  .descarga-section {
    padding: 2.5rem 1.5rem;
  }

  .recursos-section h2,
  .comunidades-section h2,
  .apoyo-section h2,
  .descarga-section h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-recursos-docentes h1 {
    font-size: 1.875rem;
  }

  .hero-recursos-docentes p {
    font-size: 1rem;
  }

  .intro-section {
    padding: 1.5rem;
  }

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

  .recurso-categoria {
    padding: 1.5rem;
  }

  .recurso-categoria h3 {
    font-size: 1.25rem;
  }

  .recurso-categoria p {
    font-size: 0.938rem;
  }

  .comunidad-item {
    padding: 1.5rem;
  }

  .comunidad-item h4 {
    font-size: 1.25rem;
  }

  .apoyo-item {
    padding: 1.5rem;
  }

  .apoyo-item h4 {
    font-size: 1.25rem;
  }

  .descarga-item {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
  }

  .descarga-item .icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .recursos-section h2,
  .comunidades-section h2,
  .apoyo-section h2,
  .descarga-section h2 {
    font-size: 1.5rem;
  }
}
