﻿/**
 * =============================================================================
 * CONTENT/OLABORAL_JOVENES/HABILIDADES.CSS - Estilos de Habilidades para Jóvenes
 * =============================================================================
 * 
 * Este archivo CSS define la apariencia visual de la página de habilidades para jóvenes.
 * Es utilizado por: content/olaboral_jovenes/habilidades.html
 * 
 * Página que presenta diferentes habilidades laborales con tarjetas coloridas.
 * 
 * =============================================================================
 * ESTRUCTURA DEL ARCHIVO:
 * =============================================================================
 * 1. IMPORTS       - Importar estilos base del index
 * 2. HERO SECTION - Sección principal con título
 * 3. INTRODUCCIÓN - Texto introductorio
 * 4. GRID HABILIDADES - Grid de tarjetas de habilidades
 * 5. TARJETA HABILIDAD - Estilos de cada tarjeta
 * 6. ICONO HABILIDAD - Iconos coloridos
 * 7. ANIMACIONES - Keyframes
 * 8. RESPONSIVE   - Ajustes para móviles
 * 9. 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 del hero */
.jovenes-hero-bg {
  position: absolute;
  inset: 0;
  /* Múltiples gradientes radiales superpuestos */
  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 principal del hero */
.jovenes-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
  animation: fadeInUp 0.6s ease 0.1s both;
}

/* Texto resaltado en el título */
.jovenes-hero h1 .highlight {
  color: var(--accent);
}

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

/* Onda decorativa en la parte inferior */
.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
================================================================================
Sección de 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: GRID DE HABILIDADES
================================================================================
Contenedor grid de tarjetas de habilidades.
*/

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

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

/* =============================================================================
SECCIÓN 5: TARJETA DE HABILIDAD
================================================================================
Estilos para cada tarjeta de habilidad.
*/

/* Tarjeta de habilidad */
.habilidad-card {
  /* Gradiente de fondo suave */
  background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(42, 157, 143, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 3px solid transparent;
  /* Animación de entrada */
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 0.5s ease-out forwards;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  min-height: 200px;
  box-sizing: border-box;
}

/* Delays escalonados */
.habilidad-card:nth-child(1) { animation-delay: 0.05s; }
.habilidad-card:nth-child(2) { animation-delay: 0.1s; }
.habilidad-card:nth-child(3) { animation-delay: 0.15s; }
.habilidad-card:nth-child(4) { animation-delay: 0.2s; }
.habilidad-card:nth-child(5) { animation-delay: 0.25s; }
.habilidad-card:nth-child(6) { animation-delay: 0.3s; }
.habilidad-card:nth-child(7) { animation-delay: 0.35s; }
.habilidad-card:nth-child(8) { animation-delay: 0.4s; }
.habilidad-card:nth-child(9) { animation-delay: 0.45s; }
.habilidad-card:nth-child(10) { animation-delay: 0.5s; }

/* Hover */
.habilidad-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(42, 157, 143, 0.25);
}

/* =============================================================================
SECCIÓN 6: ICONO DE HABILIDAD
================================================================================
Iconos grandes y coloridos para cada habilidad.
*/

/* Icono de habilidad */
.habilidad-icono {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Fondos coloridos para cada icono - ciclo de 10 colores */
.habilidad-card-wrapper:nth-child(10n + 1) .habilidad-icono {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.habilidad-card-wrapper:nth-child(10n + 2) .habilidad-icono {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.habilidad-card-wrapper:nth-child(10n + 3) .habilidad-icono {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.habilidad-card-wrapper:nth-child(10n + 4) .habilidad-icono {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
.habilidad-card-wrapper:nth-child(10n + 5) .habilidad-icono {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}
.habilidad-card-wrapper:nth-child(10n + 6) .habilidad-icono {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}
.habilidad-card-wrapper:nth-child(10n + 7) .habilidad-icono {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}
.habilidad-card-wrapper:nth-child(10n + 8) .habilidad-icono {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}
.habilidad-card-wrapper:nth-child(10n + 9) .habilidad-icono {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
.habilidad-card-wrapper:nth-child(10n + 10) .habilidad-icono {
  background: linear-gradient(135deg, #8ec5fc 0%, #e0c3fc 100%);
}

/* Contenido de la tarjeta */
.habilidad-content {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.habilidad-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}

.habilidad-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

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

/* =============================================================================
SECCIÓN 7: ANIMACIONES
================================================================================
Definición de keyframes.
*/

/* Animación slide up + fade */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación flotante 3D */
@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 8: RESPONSIVE
================================================================================
Ajustes para dispositivos móviles.
*/

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

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

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

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

  .habilidades-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .habilidad-icono {
    height: 60px;
    font-size: 2rem;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  .habilidad-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .jovenes-hero-bg {
    animation: none;
  }
}

