/* ==================== ESTILOS RECURSOS PARA PADRES DE FAMILIA ==================== */
/* Diseño Premium con enfoque en recursos familiares - Mejores prácticas UI/UX */

/* Hero Section - Premium y Atractivo */
.hero-recursos-padres {
  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-padres::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-padres::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-padres 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-padres 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 Principales */
.recursos-principales {
  margin-bottom: 5rem;
}

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

.recursos-principales 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-item {
  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%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.recurso-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.4s ease;
}

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

.recurso-item: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: 0 auto 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-item:hover .recurso-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(46, 125, 50, 0.4);
}

.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;
  color: white;
  position: relative;
  z-index: 1;
}

.recurso-item 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-item:hover h3 {
  color: var(--primary);
}

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

.btn-acceder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  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);
  width: fit-content;
  margin: 0 auto;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.btn-acceder::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-acceder:hover::before {
  width: 300px;
  height: 300px;
}

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

.btn-acceder:active {
  transform: translateY(-1px);
}

.btn-acceder::after {
  content: "→";
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.btn-acceder:hover::after {
  transform: translateX(4px);
}

/* Sección de Temas */
.temas-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);
}

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

.temas-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;
}

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

.tema-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  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;
}

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

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

.tema-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tema-item ul li {
  padding: 0.75rem 0 0.75rem 1.75rem;
  position: relative;
  color: var(--gray-700);
  line-height: 1.7;
  font-size: 0.938rem;
}

.tema-item ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

/* Sección de Capacitación */
.capacitacion-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);
}

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

.capacitacion-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;
}

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

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

.capacitacion-item {
  background: white;
  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;
}

.capacitacion-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;
}

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

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

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

.capacitacion-item p {
  font-size: 0.938rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

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

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

/* Sección de Programas */
.programas-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);
}

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

.programas-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;
}

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

.programa {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  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;
}

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

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

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

.programa 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);
}

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

.programa a::after {
  content: "→";
  transition: transform 0.3s ease;
}

.programa a:hover::after {
  transform: translateX(4px);
}

/* Sección de Contacto */
.contacto-docentes {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 4rem 3rem;
  border-radius: 2rem;
  color: white;
  box-shadow: 0 15px 50px rgba(46, 125, 50, 0.3);
  position: relative;
  overflow: hidden;
}

.contacto-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;
}

.contacto-docentes h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.contacto-info {
  position: relative;
  z-index: 1;
}

.contacto-info p {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.contacto-docentes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contacto-docentes ul li {
  padding: 1rem 0 1rem 2.5rem;
  position: relative;
  font-size: 1.125rem;
  line-height: 1.8;
  opacity: 0.95;
}

.contacto-docentes ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

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

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

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

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

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

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

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

  .temas-section,
  .capacitacion-section,
  .programas-section,
  .contacto-docentes {
    padding: 3rem 2rem;
  }

  .recursos-principales h2,
  .temas-section h2,
  .capacitacion-section h2,
  .programas-section h2,
  .contacto-docentes h2 {
    font-size: 2rem;
  }
}

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

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

  .hero-recursos-padres 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-item {
    padding: 2rem;
    border-radius: 1.25rem;
  }

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

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

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

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

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

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

  .temas-section,
  .capacitacion-section,
  .programas-section,
  .contacto-docentes {
    padding: 2.5rem 1.5rem;
  }

  .recursos-principales h2,
  .temas-section h2,
  .capacitacion-section h2,
  .programas-section h2,
  .contacto-docentes h2 {
    font-size: 1.75rem;
  }
}

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

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

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

  .intro-section {
    padding: 1.5rem;
  }

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

  .recurso-item {
    padding: 1.5rem;
  }

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

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

  .btn-acceder {
    padding: 0.875rem 1.5rem;
    font-size: 0.938rem;
    width: 100%;
  }

  .tema-item {
    padding: 1.5rem;
  }

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

  .tema-item ul li {
    font-size: 0.875rem;
  }

  .capacitacion-item {
    padding: 1.5rem;
  }

  .capacitacion-item h4 {
    font-size: 1.125rem;
  }

  .programa {
    padding: 1.5rem;
  }

  .programa h4 {
    font-size: 1.25rem;
  }

  .recursos-principales h2,
  .temas-section h2,
  .capacitacion-section h2,
  .programas-section h2,
  .contacto-docentes h2 {
    font-size: 1.5rem;
  }

  .contacto-info p {
    font-size: 1.125rem;
  }
}
