/* ==========================================================================
   bruno.systemtux.com - Premium Design System (Hybrid Theme)
   Elegancia, Seriedad, Lujo y Abstracción.
   Compatible con la identidad de systemtux.com para evitar saltos estéticos,
   pero enriquecido con un modo oscuro obsidiana/dorado de lujo.
   ========================================================================== */

/* Importar tipografías exclusivas desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Syne:wght@500;600;700;800&display=swap');

:root {
  /* =========================================
     TEMA CLARO (Por defecto - Consistente con systemtux.com)
     ========================================= */
  --bg-color: #f8fafc;              /* Slate 50 (Blanco tiza corporativo muy suave) */
  --bg-color-alt: #ffffff;          /* Blanco puro para respiros de sección */
  --card-bg: rgba(255, 255, 255, 0.75); /* Vidrio blanco traslúcido */
  --card-bg-hover: rgba(255, 255, 255, 0.95);
  
  --card-border: rgba(37, 99, 235, 0.08); /* Borde sutil Azul Corporativo */
  --card-border-hover: rgba(197, 168, 128, 0.4); /* Borde Champagne Gold en hover */
  
  /* Acentos de Marca y Lujo */
  --color-accent: #2563eb;          /* Royal Blue (Confianza y seriedad técnica de systemtux.com) */
  --color-accent-hover: #1d4ed8;    /* Azul corporativo oscuro */
  
  --color-accent-gold: #8c7150;     /* Champagne Gold oscuro (para buen contraste en tema claro) */
  --color-accent-gold-hover: #c5a880; 
  --color-accent-gold-rgb: 140, 113, 80;
  
  /* Textos y Contraste */
  --text-primary: #0f172a;          /* Slate 900 (Lectura nítida) */
  --text-secondary: #475569;        /* Slate 600 (Subtítulos y párrafos) */
  --text-muted: #94a3b8;            /* Slate 400 (Muted / Metadatos) */
  
  /* Efectos Especiales */
  --glass-blur: blur(20px) saturate(160%);
  --glow-shadow: 0 10px 30px rgba(37, 99, 235, 0.04);
  --header-bg: rgba(248, 250, 252, 0.8);
  --orb-opacity: 0.08;
}

/* =========================================
   TEMA OSCURO (Activado mediante clase .dark-theme)
   ========================================= */
body.dark-theme {
  --bg-color: #04060b;              /* Obsidian Slate (Negro base profundo) */
  --bg-color-alt: #080b14;          /* Ligeramente más claro */
  --card-bg: rgba(8, 11, 20, 0.55); /* Vidrio oscuro esmerilado */
  --card-bg-hover: rgba(14, 18, 32, 0.78);
  
  --card-border: rgba(37, 99, 235, 0.16); 
  --card-border-hover: rgba(197, 168, 128, 0.45);
  
  --color-accent: #2563eb;          
  --color-accent-hover: #3b82f6;    
  
  --color-accent-gold: #c5a880;     /* Champagne Gold brillante (Lujo y abstracción) */
  --color-accent-gold-hover: #e5cfb3;
  --color-accent-gold-rgb: 197, 168, 128;
  
  --text-primary: #f2f2f7;          /* Platinum White */
  --text-secondary: #9494a6;        /* Slate Gray */
  --text-muted: #575765;            
  
  --glow-shadow: 0 10px 40px rgba(197, 168, 128, 0.05);
  --header-bg: rgba(4, 6, 11, 0.8);
  --orb-opacity: 0.14;
}

/* Reset de estilos básicos */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* PROTECCIÓN MÓVIL: Evita desbordamientos horizontales */
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6, .logo {
  font-family: 'Outfit', var(--font-title);
}

/* ==========================================================================
   Abstract Background - Orbes decorativas animadas
   ========================================================================== */
.abstract-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: var(--orb-opacity);
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.orb-gold {
  top: -10%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.6) 0%, rgba(197, 168, 128, 0) 70%);
  animation: floatOrb 25s infinite alternate ease-in-out;
}

.orb-royal-blue {
  bottom: -15%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, rgba(0, 0, 0, 0) 75%);
  animation: floatOrb 30s infinite alternate-reverse ease-in-out;
}

.orb-center {
  top: 35%;
  left: 30%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.25) 0%, rgba(37, 99, 235, 0.1) 60%, rgba(0, 0, 0, 0) 100%);
  opacity: 0.05;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, 3%) scale(1.05); }
  100% { transform: translate(-2%, -4%) scale(0.96); }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  transition: var(--transition-smooth);
}

body.dark-theme .main-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}

@media (max-width: 900px) {
  .nav-links {
    display: none; /* Oculta navegación en móviles para asegurar espacio */
  }
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-accent-gold);
  transition: var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ==========================================================================
   Theme Switcher Button - Luxury Glassmorphic Style
   ========================================================================== */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  outline: none;
}

body.dark-theme .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.theme-toggle-btn:hover {
  border-color: var(--color-accent-gold);
  color: var(--color-accent-gold);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.theme-toggle-btn .sun-icon {
  display: none;
}

body.dark-theme .theme-toggle-btn .moon-icon {
  display: none;
}

body.dark-theme .theme-toggle-btn .sun-icon {
  display: block;
}

.cta-btn {
  background: transparent;
  border: 1px solid var(--color-accent-gold);
  color: var(--color-accent-gold);
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.cta-btn:hover {
  background: var(--color-accent-gold);
  color: var(--bg-color-alt);
  box-shadow: 0 4px 15px rgba(140, 113, 80, 0.25);
  border-color: var(--color-accent-gold);
}

body.dark-theme .cta-btn:hover {
  color: #04060b;
  box-shadow: 0 4px 15px rgba(197, 168, 128, 0.35);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem 2rem;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  max-width: 820px;
  z-index: 10;
}

.badge-abstract {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--color-accent-gold);
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.badge-abstract::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--color-accent);
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-title span {
  display: block;
  background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 650px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  border: 1px solid var(--color-accent);
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

body.dark-theme .btn-secondary {
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.02);
  border-color: var(--color-accent-gold);
  transform: translateY(-2px);
}

body.dark-theme .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   Sections - Comunes
   ========================================================================== */
.section-container {
  padding: 6.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
  position: relative;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent-gold);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
}

.section-title span {
  color: var(--color-accent);
}

/* ==========================================================================
   [NUEVA] Seccion "Sobre Mí" Integrada
   ========================================================================== */
.about-profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 5rem;
}

@media(min-width: 850px) {
  .about-profile-grid {
    grid-template-columns: 1fr 2fr;
  }
}

.profile-avatar-wrapper {
  justify-self: center;
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent) 100%);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.12);
  transition: var(--transition-smooth);
}

.profile-avatar-wrapper:hover {
  transform: scale(1.03) rotate(2deg);
  box-shadow: 0 20px 45px rgba(197, 168, 128, 0.25);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-color-alt);
  background-color: var(--bg-color-alt);
}

.about-bio-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 300;
}

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

/* Contenedor interno para las certificaciones dentro de Sobre Mí */
.nested-certifications {
  border-top: 1px dashed rgba(15, 23, 42, 0.08);
  padding-top: 4rem;
  margin-top: 2rem;
}

body.dark-theme .nested-certifications {
  border-top-color: rgba(255, 255, 255, 0.05);
}

.nested-certs-title {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nested-certs-title::before {
  content: '';
  width: 24px;
  height: 1px;
  background-color: var(--color-accent-gold);
}

/* ==========================================================================
   Certifications Grid
   ========================================================================== */
.certifications-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media(min-width: 900px) {
  .certifications-grid {
    grid-template-columns: 3fr 2fr;
  }
}

.cert-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow-shadow);
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-accent-gold), var(--color-accent), transparent);
  opacity: 0.75;
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-border-hover);
  box-shadow: 0 15px 35px rgba(0,0,0,0.04);
}

body.dark-theme .cert-card:hover {
  box-shadow: var(--glow-shadow);
}

.cert-meta {
  margin-bottom: 1.5rem;
}

.cert-issuer {
  font-size: 0.85rem;
  color: var(--color-accent-gold);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  display: block;
}

.cert-name {
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.cert-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cert-tag {
  background: rgba(37, 99, 235, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.08);
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.cert-footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(15, 23, 42, 0.03);
  padding-top: 1.5rem;
}

body.dark-theme .cert-footer {
  border-top-color: rgba(255, 255, 255, 0.03);
}

.cert-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.view-cert-btn {
  background: transparent;
  border: none;
  color: var(--color-accent-gold);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.view-cert-btn svg {
  transition: var(--transition-fast);
}

.view-cert-btn:hover {
  color: var(--color-accent);
}

.view-cert-btn:hover svg {
  transform: translateX(5px);
}

/* Teaser / Next certifications card */
.cert-teaser-card {
  background: var(--bg-color-alt);
  border: 1px dashed rgba(140, 113, 80, 0.25);
  border-radius: 12px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: var(--transition-smooth);
}

.cert-teaser-card:hover {
  border-color: var(--color-accent-gold);
}

.teaser-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(140, 113, 80, 0.05);
  border: 1px solid rgba(140, 113, 80, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-gold);
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.teaser-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.teaser-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 250px;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media(min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  overflow: hidden;
  box-shadow: var(--glow-shadow);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-border-hover);
  background: var(--card-bg-hover);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.06);
}

body.dark-theme .project-card:hover {
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.12);
}

.project-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

body.dark-theme .project-img-wrapper {
  border-bottom-color: rgba(255, 255, 255, 0.02);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img {
  transform: scale(1.06);
}

.project-info-container {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.project-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent-gold);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.project-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tag {
  background: rgba(37, 99, 235, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.project-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  margin-top: auto;
  border-top: 1px solid rgba(15, 23, 42, 0.03);
  padding-top: 1.2rem;
  width: 100%;
}

body.dark-theme .project-link {
  border-top-color: rgba(255, 255, 255, 0.03);
}

.project-link:hover {
  color: var(--color-accent);
}

.project-link svg {
  transition: var(--transition-fast);
}

.project-link:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Experience Section - Minimal Chronology
   ========================================================================== */
.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5px;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-gold) 50%, rgba(15, 23, 42, 0.02) 100%);
}

body.dark-theme .timeline::before {
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-gold) 50%, rgba(255, 255, 255, 0.02) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
}

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

.timeline-dot {
  position: absolute;
  left: -2.3rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--bg-color);
  border: 2px solid var(--color-accent-gold);
  box-shadow: 0 0 10px rgba(140, 113, 80, 0.3);
  z-index: 10;
}

body.dark-theme .timeline-dot {
  box-shadow: 0 0 10px var(--color-accent-gold);
}

.timeline-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

@media(min-width: 600px) {
  .timeline-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}

.timeline-role {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
}

.timeline-role span {
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  display: inline-block;
  margin-left: 0.5rem;
}

.timeline-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
}

/* ==========================================================================
   Skills Section - Minimal Abstract Metrics
   ========================================================================== */
.skills-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media(min-width: 768px) {
  .skills-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-category-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
  box-shadow: var(--glow-shadow);
}

.skill-category-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.04);
}

.skill-category-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(140, 113, 80, 0.1);
  padding-bottom: 0.75rem;
}

.skill-list {
  list-style: none;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

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

.skill-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.skill-level {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-accent-gold);
  background: rgba(140, 113, 80, 0.05);
  border: 1px solid rgba(140, 113, 80, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* ==========================================================================
   Contact Section - Premium Inquiry
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

@media(min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-pitch {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
}

.contact-pitch span {
  color: var(--color-accent-gold);
}

.contact-text {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.detail-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.1rem;
}

.detail-content span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-content a, .detail-content p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.detail-content a:hover {
  color: var(--color-accent);
}

/* Contact Form - Floating Inputs */
.contact-form-container {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

body.dark-theme .contact-form-container {
  box-shadow: 0 15px 50px rgba(0,0,0,0.4);
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-input, .form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  padding: 0.75rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
}

body.dark-theme .form-input, body.dark-theme .form-textarea {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-label {
  position: absolute;
  left: 0;
  top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  pointer-events: none;
  transition: var(--transition-fast);
}

/* Float the label when input has value or focus */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-textarea:focus ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label {
  top: -1rem;
  font-size: 0.75rem;
  color: var(--color-accent);
  letter-spacing: 0.5px;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--color-accent);
}

.form-submit-btn {
  width: 100%;
  background: var(--color-accent);
  color: #ffffff;
  border: 1px solid var(--color-accent);
  padding: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

.form-submit-btn:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* Success status after submission */
.form-status {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.form-status.success {
  color: #2e7d32;
}

body.dark-theme .form-status.success {
  color: #a8d5a2;
}

.form-status.error {
  color: #c62828;
}

body.dark-theme .form-status.error {
  color: #d99a9a;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  background-color: var(--bg-color-alt);
  padding: 3rem 2rem;
  text-align: center;
  transition: background-color 0.4s ease;
}

body.dark-theme .main-footer {
  border-top-color: rgba(255, 255, 255, 0.02);
  background-color: #030408;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--text-primary);
}

.footer-logo span {
  color: var(--color-accent);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Premium Modal Dialog (<dialog>) - Native Overlay
   ========================================================================== */
dialog.cert-dialog {
  margin: auto;
  border: 1px solid var(--card-border-hover);
  background: var(--bg-color-alt);
  border-radius: 16px;
  padding: 0;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  box-shadow: 0 25px 80px rgba(0,0,0,0.15);
  outline: none;
  color: var(--text-primary);
  overflow-y: auto;
}

body.dark-theme dialog.cert-dialog {
  background: #060914;
  box-shadow: 0 25px 80px rgba(0,0,0,0.85);
}

/* Entry/Exit Animado usando la especificación moderna del Top-Layer */
dialog.cert-dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);

  @starting-style {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
}

dialog.cert-dialog {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              display 0.4s allow-discrete,
              overlay 0.4s allow-discrete;
  transition-behavior: allow-discrete;
}

/* Animación del Backdrop del Modal */
dialog.cert-dialog::backdrop {
  background-color: rgba(248, 250, 252, 0);
  backdrop-filter: blur(0px);
  transition: display 0.4s allow-discrete,
              overlay 0.4s allow-discrete,
              background-color 0.4s ease,
              backdrop-filter 0.4s ease;
}

dialog.cert-dialog[open]::backdrop {
  background-color: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(12px);

  @starting-style {
    background-color: rgba(248, 250, 252, 0);
    backdrop-filter: blur(0px);
  }
}

body.dark-theme dialog.cert-dialog[open]::backdrop {
  background-color: rgba(4, 6, 11, 0.9);
  backdrop-filter: blur(16px);

  @starting-style {
    background-color: rgba(4, 6, 11, 0);
    backdrop-filter: blur(0px);
  }
}

/* Estilos de la Tarjeta Interna del Dialog */
.dialog-content {
  position: relative;
  display: flex;
  flex-direction: column;
}

.dialog-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: var(--transition-fast);
}

body.dark-theme .dialog-close-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dialog-close-btn:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: rotate(90deg);
}

.dialog-body {
  padding: 3rem;
}

.dialog-img-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
  background-color: var(--bg-color);
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 16 / 10.5;
}

body.dark-theme .dialog-img-container {
  border-color: rgba(255, 255, 255, 0.03);
  background-color: #04060b;
}

.dialog-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.dialog-header {
  margin-bottom: 1.5rem;
}

.dialog-issuer {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.dialog-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.dialog-desc {
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.dialog-meta-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

body.dark-theme .dialog-meta-list {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.04);
}

@media(min-width: 500px) {
  .dialog-meta-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dialog-meta-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.dialog-meta-item p {
  font-size: 0.95rem;
  font-weight: 600;
}

.dialog-skills-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.dialog-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ==========================================================================
   Accesibilidad & Motion Preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .bg-orb {
    animation: none !important;
  }
  
  *, *::before, *::after {
    transition-duration: 0.01s !important;
    animation-duration: 0.01s !important;
    scroll-behavior: auto !important;
  }
  
  dialog.cert-dialog {
    transform: none !important;
    transition-duration: 0.1s !important;
  }
  
  dialog.cert-dialog[open] {
    @starting-style {
      transform: none !important;
    }
  }
}
