﻿/**
 * =============================================================================
 * CONTENT/OLABORAL_JOVENES/OLABORAL.CSS - Estilos de Orientación Laboral
 * =============================================================================
 * 
 * Este archivo CSS define la apariencia visual de la página de orientación laboral para jóvenes.
 * Es utilizado por: content/olaboral_jovenes/olaboral.html
 * 
 * Página principal de orientación laboral con información y recursos.
 * 
 * =============================================================================
 * ESTRUCTURA DEL ARCHIVO:
 * =============================================================================
 * 1. IMPORTS     - Importar estilos base del index
 * 2. HERO      - Sección principal
 * 3. INTRODUCCIÓN - Texto introductorio
 * 4. ORIENTACIÓN GRID - Grid de información
 * 5. TARJETAS - Estilos de tarjetas
 * 6. TESTIMONIOS - Sección de testimonios
 * 7. SEPARADOR  - Imagen separadora
 * 8. ANIMACIONES - Keyframes
 * 9. RESPONSIVE - Ajustes para móviles
 * 10. PREFERENCES - Soporte prefers-reduced-motion
 * 
 * =============================================================================
 */

/* =============================================================================
SECCIÓN 1: IMPORTS
================================================================================
Importamos los estilos base del index.
*/

@import url('../../index/index.css');

/* =============================================================================
SECCIÓN 2: HERO SECTION
================================================================================
Sección principal con título y fondo decorativo.
*/

/* Hero para jóvenes */
.jovenes-hero {
  position: relative;
  background: var(--bg-gradient);
  color: white;
  padding: 6rem 0 8rem;
  overflow: hidden;
  margin-bottom: 0;
}

/* Fondo decorativo */
.jovenes-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 80%,
      rgba(42, 157, 143, 0.25) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(233, 196, 106, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(38, 70, 83, 0.3) 0%,
      transparent 70%
    );
  animation: float3D 8s ease-in-out infinite;
}

/* Contenido del hero */
.jovenes-hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
}

/* Badge decorativo */
.jovenes-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInDown 0.6s ease;
}

/* Título */
.jovenes-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.jovenes-hero h1 .highlight {
  color: var(--accent);
}

/* Subtítulo */
.jovenes-hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 0;
  animation: fadeInUp 0.6s ease 0.2s both;
}

/* Onda decorativa */
.jovenes-hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

.jovenes-hero-wave svg {
  width: 100%;
  height: 80px;
  display: block;
}

/* =============================================================================
SECCIÓN 3: INTRODUCCIÓN
================================================================================
Texto introductorio.
*/

/* Introducción */
.jovenes-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  animation: fadeInUp 0.6s ease-out;
}

.jovenes-intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.jovenes-intro p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================================================
SECCIÓN 4: ORIENTACIÓN GRID
================================================================================
Grid de información de orientación laboral.
*/

/* Grid de orientación - 3 columnas */
.orientacion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Wrapper de tarjeta */
.orientacion-card-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
}

.orientacion-card-wrapper .orientacion-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* =============================================================================
SECCIÓN 5: TARJETAS
================================================================================
Estilos para las tarjetas de orientación.
*/

/* Tarjeta de orientación */
.orientacion-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  /* Animación de entrada */
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 0.5s ease-out forwards;
}

/* Delays */
.orientacion-card:nth-child(1) { animation-delay: 0.05s; }
.orientacion-card:nth-child(2) { animation-delay: 0.1s; }
.orientacion-card:nth-child(3) { animation-delay: 0.15s; }
.orientacion-card:nth-child(4) { animation-delay: 0.2s; }
.orientacion-card:nth-child(5) { animation-delay: 0.25s; }
.orientacion-card:nth-child(6) { animation-delay: 0.3s; }

/* Barra decorativa */
.orientacion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

/* Hover */
.orientacion-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.orientacion-card:hover::before {
  transform: scaleX(1);
}

/* Efecto shimmer */
.orientacion-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
}

.orientacion-card:hover::after {
  left: 100%;
}

/* Icono */
.orientacion-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: transform var(--transition);
}

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

/* Título y descripción */
.orientacion-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text);
  transition: color var(--transition-fast);
}

.orientacion-card:hover h3 {
  color: var(--primary);
}

.orientacion-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Focus visible */
.orientacion-card:focus-within {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* =============================================================================
SECCIÓN 6: TESTIMONIOS
================================================================================
Sección de testimonios.
*/

/* Sección de testimonios */
.testimonios-section {
  background: var(--bg-alt);
  padding: 4rem 0;
  margin-top: 4rem;
}

/* Grid de testimonios - 5 columnas */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tarjeta de testimonio */
.testimonio-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  text-align: center;
  /* Animación de entrada */
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 0.5s ease-out forwards;
}

/* Delays */
.testimonio-card:nth-child(1) { animation-delay: 0.1s; }
.testimonio-card:nth-child(2) { animation-delay: 0.15s; }
.testimonio-card:nth-child(3) { animation-delay: 0.2s; }
.testimonio-card:nth-child(4) { animation-delay: 0.25s; }
.testimonio-card:nth-child(5) { animation-delay: 0.3s; }

/* Hover */
.testimonio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Contenido */
.testimonio-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.testimonio-card span {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

/* Focus visible */
.testimonio-card:focus-within {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* =============================================================================
SECCIÓN 7: SEPARADOR
================================================================================
Imagen separadora entre secciones.
*/

/* Separador */
.jovenes-separator {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.jovenes-separator img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  opacity: 0.8;
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.jovenes-separator img:hover {
  opacity: 1;
  transform: scale(1.01);
}

/* =============================================================================
SECCIÓN 8: ANIMACIONES
================================================================================
Keyframes.
*/

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

@keyframes float3D {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
  }
  50% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
  }
  75% {
    transform: translateY(-4px) rotateX(-2deg) rotateY(-2deg);
  }
}

/* =============================================================================
SECCIÓN 9: RESPONSIVE
================================================================================
Ajustes para móviles.
*/

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

  .testimonios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .jovenes-hero {
    padding: 4rem 0 6rem;
  }

  .jovenes-hero h1 {
    font-size: 2rem;
  }

  .jovenes-hero-subtitle {
    font-size: 1rem;
  }

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

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

@media (max-width: 480px) {
  .testimonios-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
SECCIÓN 10: PREFERENCIAS DE USUARIO
================================================================================
Soporte prefers-reduced-motion.
*/

@media (prefers-reduced-motion: reduce) {
  .orientacion-card,
  .testimonio-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .jovenes-hero-bg {
    animation: none;
  }
  .orientacion-card::after,
  .testimonio-card::after {
    display: none;
  }
}

