/* ==========================================================================
   PORTFOLIO PROFESIONAL - LAURA MARÍN BARRIO
   Hoja de estilos: tema oscuro "AI Dashboard"
   Inspiración: interfaz de productividad con fondo negro verdoso, paneles de
   cristal, acentos verde neón, brillos suaves y líneas de circuito.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES DE DISEÑO (DESIGN TOKENS)
   -------------------------------------------------------------------------- */
:root {
  /* Fondos */
  --bg-body: #050706;                       /* Negro con matiz verde */
  --bg-section-alt: #080b09;                /* Alternancia sutil entre secciones */
  --bg-panel: rgba(255, 255, 255, 0.025);   /* Panel de cristal */
  --bg-panel-strong: rgba(255, 255, 255, 0.045);
  --bg-panel-solid: #0c110e;                /* Panel opaco (modal, menú móvil) */
  --bg-inset: rgba(0, 0, 0, 0.35);          /* Zonas hundidas */

  /* Acento verde neón */
  --green: #3ee58a;
  --green-bright: #6dffa8;
  --green-deep: #14833f;
  --green-soft: rgba(62, 229, 138, 0.10);
  --green-border: rgba(62, 229, 138, 0.28);
  --green-glow: 0 0 24px rgba(62, 229, 138, 0.35);

  /* Acentos secundarios (estados) */
  --amber: #f5b454;
  --amber-soft: rgba(245, 180, 84, 0.10);
  --amber-border: rgba(245, 180, 84, 0.28);
  --cyan: #5ad1e6;
  --cyan-soft: rgba(90, 209, 230, 0.10);
  --cyan-border: rgba(90, 209, 230, 0.28);

  /* Textos */
  --text-primary: #f2f5f3;
  --text-secondary: #a3ada7;
  --text-muted: #6b756f;

  /* Bordes */
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);

  /* Sombras */
  --shadow-panel: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  --shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 60px -25px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(62, 229, 138, 0.12);

  /* Tipografía */
  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Menlo, monospace;

  /* Radios */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Transiciones */
  --t-fast: 0.18s ease;
  --t-base: 0.3s ease;
  --t-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET Y BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  background-color: var(--bg-body);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(62, 229, 138, 0.07), transparent 60%),
    var(--bg-body);
}

main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol { list-style: none; }

::selection {
  background: rgba(62, 229, 138, 0.3);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Barra de scroll oscura */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #1a221d; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #24302a; }

/* --------------------------------------------------------------------------
   3. ELEMENTOS COMUNES: SECCIONES Y PANEL DE CRISTAL
   -------------------------------------------------------------------------- */
.section {
  padding: 110px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  margin-bottom: 18px;
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: var(--green-glow);
}

.section-title {
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Línea de luz bajo el título */
.section-line {
  width: 120px;
  height: 1px;
  margin: 24px auto 0 auto;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 12px rgba(62, 229, 138, 0.6);
}

/* Base compartida de todos los paneles/tarjetas */
.executive-card,
.about-card-main,
.pillar-card,
.timeline-card,
.project-card,
.skill-category-card,
.education-card,
.channel-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

/* Reflejo superior del cristal */
.executive-card::after,
.about-card-main::after,
.timeline-card::after,
.project-card::after,
.skill-category-card::after,
.education-card::after,
.channel-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  pointer-events: none;
}

.pillar-card:hover,
.timeline-card:hover,
.project-card:hover,
.skill-category-card:hover,
.education-card:hover,
.channel-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

/* --------------------------------------------------------------------------
   4. BOTONES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--radius-full);
  transition: all var(--t-base);
  white-space: nowrap;
  user-select: none;
}

.btn-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform var(--t-fast);
}

/* Principal: verde luminoso */
.btn-primary {
  background: linear-gradient(180deg, var(--green-bright) 0%, var(--green) 100%);
  color: #04140a;
  box-shadow: 0 0 0 1px rgba(109, 255, 168, 0.4), 0 8px 24px -6px rgba(62, 229, 138, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(109, 255, 168, 0.6), 0 12px 32px -6px rgba(62, 229, 138, 0.75);
  color: #04140a;
}

.btn-primary:hover .btn-icon { transform: translateY(2px); }

/* Secundario: cristal */
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* WhatsApp: verde oscuro con borde luminoso */
.btn-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #6dffa8;
  border: 1px solid rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.7);
  color: #a6ffc9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(37, 211, 102, 0.5);
}

/* Contorno */
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--green-border);
  color: var(--green);
  background: var(--green-soft);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   5. CABECERA Y NAVEGACIÓN
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 6, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: all var(--t-base);
}

.header.scrolled {
  background: rgba(5, 7, 6, 0.85);
  border-bottom-color: var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #0d1510;
  border: 1px solid var(--green-border);
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: inset 0 0 12px rgba(62, 229, 138, 0.15), 0 0 18px rgba(62, 229, 138, 0.15);
}

.logo-info {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.logo-subtext {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Menú en forma de "píldora" de cristal */
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.nav-link {
  display: inline-block;
  padding: 7px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--t-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-link-btn {
  margin-left: 6px;
  background: var(--green);
  color: #04140a !important;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(62, 229, 138, 0.35);
}

.nav-link-btn:hover,
.nav-link-btn.active {
  background: var(--green-bright) !important;
  color: #04140a !important;
}

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 42px;
  height: 42px;
  padding: 11px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--t-base);
}

.nav-toggle.open .hamburger-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open .hamburger-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .hamburger-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 90px 0 120px 0;
  overflow: hidden;
}

/* Halo verde principal */
.hero-bg-glow {
  position: absolute;
  top: 10%;
  right: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(62, 229, 138, 0.18) 0%, rgba(62, 229, 138, 0.04) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* Rejilla tipo circuito con desvanecimiento */
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
}

/* Indicador superior estilo "● 01:03" */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse-dot 2.2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.hero-name {
  font-size: 4rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.45;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.highlight-text {
  color: var(--green);
  font-weight: 600;
  text-shadow: 0 0 18px rgba(62, 229, 138, 0.35);
}

.hero-description {
  font-size: 1.025rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 30px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--t-fast);
}

.info-pill.clickable:hover {
  border-color: var(--green-border);
  color: var(--text-primary);
  background: var(--green-soft);
}

.pill-icon {
  width: 14px;
  height: 14px;
  color: var(--green);
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, transparent, var(--border-hover), transparent);
}

/* Tarjeta ejecutiva (panel tipo dashboard) */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

/* Línea de circuito luminosa detrás de la tarjeta */
.hero-visual::before {
  content: '';
  position: absolute;
  left: -60px;
  top: 58%;
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green));
  box-shadow: 0 0 10px var(--green);
  opacity: 0.7;
}

.executive-card {
  width: 100%;
  max-width: 440px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(20, 30, 24, 0.75) 0%, rgba(10, 14, 12, 0.85) 100%);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(62, 229, 138, 0.25);
}

.card-glass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.badge-active {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 600;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s infinite ease-in-out;
}

.card-loc {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.card-main-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.avatar-box {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, #1d3a28, #0a120d);
  border: 1px solid var(--green-border);
  color: var(--green);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 0 0 4px rgba(62, 229, 138, 0.06), 0 0 24px rgba(62, 229, 138, 0.25);
}

.card-profile-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.card-profile-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-focus-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.focus-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  transition: border-color var(--t-fast), background var(--t-fast);
}

.focus-item:hover {
  border-color: var(--green-border);
  background: rgba(62, 229, 138, 0.04);
}

/* Iconos tipo "tecla" como en la imagen */
.focus-icon-circle {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1a201c, #0e120f);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.focus-icon-circle svg { width: 15px; height: 15px; }

.focus-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.focus-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 2px;
}

.mini-console {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.console-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.console-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a322d;
}

.dot-3 {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.console-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.console-body code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.55;
}

.c-accent { color: var(--green); font-weight: 600; }
.c-text { color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   7. SOBRE MÍ
   -------------------------------------------------------------------------- */
.about-section {
  background: var(--bg-section-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}

.about-card-main {
  padding: 42px;
}

.about-quote-mark {
  position: absolute;
  top: 18px;
  right: 30px;
  font-size: 5rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(62, 229, 138, 0.12);
  pointer-events: none;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.7;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.about-text {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-highlight-box {
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  position: relative;
  overflow: hidden;
}

.about-highlight-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.highlight-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 6px;
}

.highlight-desc {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pillar-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-md);
}

/* Iconos tipo tecla 3D con tinte */
.pillar-icon-box,
.skill-card-icon,
.project-icon-box,
.channel-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #19201b 0%, #0d110e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--green);
}

.pillar-icon-box { width: 46px; height: 46px; }
.pillar-icon-box svg { width: 21px; height: 21px; }

.icon-biz { color: var(--amber); }
.icon-ai { color: var(--green); }
.icon-client { color: var(--cyan); }

.pillar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.pillar-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   8. EXPERIENCIA (TIMELINE)
   -------------------------------------------------------------------------- */
.experience-section { background: transparent; }

.timeline-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

/* Línea vertical luminosa */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 20px;
  left: 11px;
  width: 1px;
  background: linear-gradient(180deg, var(--green) 0%, rgba(62, 229, 138, 0.2) 50%, transparent 100%);
  box-shadow: 0 0 8px rgba(62, 229, 138, 0.5);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

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

.timeline-dot {
  position: absolute;
  top: 30px;
  left: -36px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 2px solid var(--green);
  box-shadow: 0 0 0 4px rgba(62, 229, 138, 0.1), 0 0 14px rgba(62, 229, 138, 0.6);
  z-index: 2;
}

.timeline-card { padding: 30px; }

.timeline-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.timeline-period {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 6px;
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.timeline-company {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
}

.status-badge-active {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.timeline-responsibilities {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-responsibilities li {
  position: relative;
  padding-left: 22px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.timeline-responsibilities li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.timeline-responsibilities strong { color: var(--text-primary); font-weight: 600; }

.sub-experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.sub-exp-box {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-inset);
  border: 1px solid var(--border);
}

.sub-exp-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.sub-exp-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   9. PROYECTOS
   -------------------------------------------------------------------------- */
.projects-section {
  background: var(--bg-section-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
}

/* Proyecto destacado: halo verde */
.project-card.featured-project {
  border-color: var(--green-border);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(62, 229, 138, 0.10), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.project-icon-box { width: 48px; height: 48px; }
.project-icon-box svg { width: 22px; height: 22px; }

/* Insignias de estado */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.status-badge.in-production,
.status-badge.completed {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.status-badge.in-progress {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

.status-badge.in-progress .status-dot { animation: pulse-dot 1.8s infinite ease-in-out; }

.status-badge.in-progress-blue {
  background: var(--cyan-soft);
  color: var(--cyan);
  border: 1px solid var(--cyan-border);
}

.status-badge.master-badge {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.badge-icon-sm { width: 13px; height: 13px; }

.project-body { flex: 1 0 auto; }

.project-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 12px;
}

.project-description {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

/* Etiquetas tipo "chip" del dashboard */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.tech-tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border: 1px solid var(--border-hover);
  transition: all var(--t-fast);
}

.project-card:hover .tech-tag {
  border-color: rgba(62, 229, 138, 0.22);
  color: var(--text-primary);
}

.project-footer {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.btn-project { width: 100%; }

/* --------------------------------------------------------------------------
   10. HABILIDADES
   -------------------------------------------------------------------------- */
.skills-section { background: transparent; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.skill-category-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.skill-category-card.highlight-category {
  border-color: var(--green-border);
  background:
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(62, 229, 138, 0.09), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.skill-card-icon { width: 46px; height: 46px; }
.skill-card-icon svg { width: 21px; height: 21px; }

.icon-business { color: var(--cyan); }
.icon-data { color: var(--green-bright); }
.icon-dev { color: #b79cff; }
.icon-security { color: #ff8a9a; }
.icon-target { color: var(--amber); }

.skill-category-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.skill-count {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 3px;
}

.skill-items-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.skill-items-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.skill-items-list .bullet {
  width: 5px;
  height: 5px;
  margin-top: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.badge-subtle {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.interest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-chip {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  transition: all var(--t-fast);
}

.interest-chip:hover {
  border-color: var(--green-border);
  background: var(--green-soft);
  color: var(--green);
}

/* --------------------------------------------------------------------------
   11. FORMACIÓN
   -------------------------------------------------------------------------- */
.education-section {
  background: var(--bg-section-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}

.education-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.education-card.highlight-card {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(62, 229, 138, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.education-card.in-progress-card {
  border-style: dashed;
  border-color: var(--cyan-border);
}

.education-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
}

.education-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.4;
  margin-bottom: 8px;
}

.education-institution {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 12px;
}

.education-description {
  flex-grow: 1;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   12. CONTACTO
   -------------------------------------------------------------------------- */
.contact-section { background: transparent; }

.contact-card-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

/* Panel principal con brillo verde */
.contact-lead-box {
  position: relative;
  overflow: hidden;
  padding: 48px 40px;
  margin-bottom: 28px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--green-border);
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(62, 229, 138, 0.22), transparent 70%),
    linear-gradient(180deg, #0d1510 0%, #070b08 100%);
  box-shadow: 0 0 80px -30px rgba(62, 229, 138, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Onda luminosa inferior (inspirada en la gráfica de la imagen) */
.contact-lead-box::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 16px var(--green);
}

.contact-statement {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto 18px auto;
  font-size: 1.3rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.6;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.contact-meta-pills {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.contact-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.channel-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.channel-card.highlight-channel {
  border-color: rgba(37, 211, 102, 0.3);
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(37, 211, 102, 0.10), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
}

.channel-icon-wrapper {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
}

.channel-icon-wrapper svg { width: 21px; height: 21px; }

.icon-wa { color: #25D366; }
.icon-email { color: var(--green); }
.icon-li { color: var(--cyan); }
.icon-gh { color: var(--text-primary); }

.channel-info {
  flex: 1 0 auto;
  margin-bottom: 20px;
}

.channel-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.channel-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.channel-note {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.channel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.channel-actions .btn { width: 100%; }

/* --------------------------------------------------------------------------
   13. PIE DE PÁGINA
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  background: #030403;
  color: var(--text-muted);
  padding: 60px 0 32px 0;
  border-top: 1px solid var(--border);
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 25%;
  right: 25%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0.6;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0d1510;
  border: 1px solid var(--green-border);
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 600;
  box-shadow: 0 0 18px rgba(62, 229, 138, 0.15);
}

.footer-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-loc {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-nav a:hover { color: var(--green); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
}

.footer-subtext { color: #4a524d; }

/* --------------------------------------------------------------------------
   14. MODAL, TOAST Y BOTÓN "VOLVER ARRIBA"
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: 100%;
  max-width: 540px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #111813 0%, #0a0e0b 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(62, 229, 138, 0.3);
  transform: translateY(20px) scale(0.96);
  transition: transform var(--t-smooth);
}

.modal-backdrop.active .modal-dialog { transform: translateY(0) scale(1); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  border-bottom: 1px solid var(--border);
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.modal-close {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  transition: color var(--t-fast);
}

.modal-close:hover { color: var(--text-primary); }

.modal-body { padding: 26px; }

.modal-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.modal-text {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.modal-tech-box { margin-bottom: 20px; }
.modal-tech-box .tech-stack { margin-bottom: 0; }

.modal-tech-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.modal-info-box {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-inset);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.modal-info-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 26px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border);
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  background: #0f1712;
  color: var(--text-primary);
  border: 1px solid var(--green-border);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 24px -6px rgba(62, 229, 138, 0.4);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base);
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-icon {
  width: 18px;
  height: 18px;
  color: var(--green);
}

/* Volver arriba */
.btn-scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #19201b 0%, #0d110e 100%);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--t-base);
}

.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-scroll-top:hover {
  color: var(--green);
  border-color: var(--green-border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(62, 229, 138, 0.3);
  transform: translateY(-3px);
}

.btn-scroll-top svg { width: 19px; height: 19px; }

/* --------------------------------------------------------------------------
   15. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-link { padding: 7px 11px; font-size: 0.84rem; }
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-visual::before { display: none; }

  .executive-card { max-width: 560px; }

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

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: rgba(8, 11, 9, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
  }

  .nav-menu.open {
    max-height: 480px;
    opacity: 1;
    padding: 18px 20px 22px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  .nav-link-btn {
    margin: 10px 0 0 0;
    text-align: center;
    border-radius: var(--radius-full);
  }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .section { padding: 76px 0; }

  .hero-section { padding: 50px 0 80px 0; }

  .hero-name { font-size: 2.7rem; }

  .hero-tagline { font-size: 1.15rem; }

  .section-title { font-size: 2rem; }

  .about-card-main { padding: 30px 24px; }

  .timeline-container { padding-left: 30px; }
  .timeline-container::before { left: 7px; }
  .timeline-dot { left: -30px; width: 13px; height: 13px; }

  .timeline-card { padding: 24px; }

  .timeline-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-lead-box { padding: 34px 22px; }

  .contact-statement { font-size: 1.08rem; }

  .footer-bottom { flex-direction: column; }

  .toast-notification {
    left: 20px;
    right: 20px;
    bottom: 20px;
    justify-content: center;
  }

  .btn-scroll-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.25rem; }

  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .stat-divider { display: none; }

  .projects-grid,
  .skills-grid,
  .education-grid { grid-template-columns: 1fr; }

  .project-card,
  .skill-category-card,
  .education-card { padding: 22px; }

  .modal-footer { flex-direction: column-reverse; }
  .modal-footer .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   16. ACCESIBILIDAD: MOVIMIENTO REDUCIDO
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   17. IMPRESIÓN (versión clara tipo CV)
   -------------------------------------------------------------------------- */
@media print {
  .header, .hero-cta-group, .hero-visual, .project-footer, .channel-actions,
  .btn-scroll-top, .modal-backdrop, .toast-notification, .nav-toggle,
  .hero-bg-glow, .hero-grid-pattern {
    display: none !important;
  }

  html, body { background: #ffffff !important; color: #111111 !important; }

  .section { padding: 18px 0; page-break-inside: avoid; background: #ffffff !important; }

  .container { max-width: 100%; padding: 0; }

  .section-title, .hero-name, .timeline-role, .project-title,
  .education-title, .skill-category-title, .about-lead { color: #111111 !important; }

  .timeline-card, .project-card, .education-card, .skill-category-card,
  .about-card-main, .channel-card, .contact-lead-box {
    background: #ffffff !important;
    box-shadow: none !important;
    border: 1px solid #cccccc !important;
  }
}
