/* ==========================================================================
   INSPIRACIÓN VISUAL: SAAS MODERNO & MINIMALISTA
   - Púrpura Profundo / Violeta: #5C3A8E / #6C3EB2 / #482570
   - Naranja Ámbar Cálido: #FF8E3C / #FF9B42 / #FF7020
   - Dark Plum / Negro Elegante: #130F1D / #1A1426 / #231C33
   - Fondo Canvas Soft Lilac: #F9F8FC
   - Superficies Blancas Limpias: #FFFFFF
   - Micro-bordes suaves: #EBE6F5
   - Botones en píldora, tarjetas con radio amplio (22px-26px) y sombras suaves
   - Tipografía: 'Plus Jakarta Sans', sans-serif
   ========================================================================== */

:root {
  /* Paleta Inspirada en la Imagen de Referencia */
  --color-primary-purple: #5C3A8E;     /* Púrpura central icónico */
  --color-purple-light: #7348B0;       /* Púrpura brillante */
  --color-purple-dark: #43246B;        /* Púrpura oscuro para contrastes */
  --color-purple-subtle: #F2EDFB;      /* Fondo tenue lavanda */
  
  --color-accent-orange: #FF8E3C;      /* Naranja cálido de acento y ratings */
  --color-orange-hover: #FF7720;       /* Hover naranja */
  --color-orange-subtle: #FFF3EB;      /* Fondo naranja suave */
  --color-orange-gradient: linear-gradient(135deg, #FF9E4A 0%, #FF7720 100%);
  --color-purple-gradient: linear-gradient(135deg, #683FB5 0%, #462573 100%);

  /* Neutros y Superficies */
  --color-bg: #F9F8FC;                 /* Canvas ultra limpio con ligero matiz cálido */
  --color-surface: #FFFFFF;            /* Blanco puro para tarjetas */
  --color-surface-hover: #F6F4FB;       /* Hover sutil */
  --color-surface-alt: #F3F0F9;         /* Alternancia suave entre secciones */
  
  --color-dark-banner: #140F20;        /* Fondo oscuro sofisticado estilo mockup inferior */
  --color-dark-surface: #1E172E;
  
  /* Textos */
  --color-text-heading: #151022;        /* Texto de títulos de máximo contraste */
  --color-text: #484157;                /* Texto de lectura elegante */
  --color-text-muted: #79718C;          /* Texto secundario y etiquetas */
  --color-border: #E8E2F2;              /* Micro-bordes finos */
  --color-border-subtle: #F2EEFA;

  /* Tipografía */
  --font-headings: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;

  /* Radios de curvatura modernos y redondeados */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;               /* Píldora completa para botones y tags */

  /* Sombras y Luces */
  --shadow-xs: 0 2px 4px rgba(21, 16, 34, 0.03);
  --shadow-sm: 0 4px 12px rgba(21, 16, 34, 0.05);
  --shadow-md: 0 12px 28px -4px rgba(92, 58, 142, 0.08), 0 4px 10px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 40px -10px rgba(92, 58, 142, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-orange-glow: 0 8px 24px -2px rgba(255, 142, 60, 0.38);
  --shadow-purple-glow: 0 10px 28px -4px rgba(108, 62, 178, 0.32);

  /* Transiciones */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --header-height: 76px;
  --max-width: 1160px;
}

/* ==========================================================================
   MODO OSCURO OPCIONAL REFINADO
   ========================================================================== */

[data-theme="dark"] {
  --color-bg: #0F0B18;
  --color-surface: #1B1527;
  --color-surface-hover: #261E37;
  --color-surface-alt: #161122;
  --color-text-heading: #FAF8FD;
  --color-text: #D5CEE5;
  --color-text-muted: #958CA8;
  --color-border: #2D2342;
  --color-border-subtle: #211932;
  --color-purple-subtle: #291D40;
  --color-orange-subtle: #351C11;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 30px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 22px 48px -8px rgba(0, 0, 0, 0.65);
}

/* ==========================================================================
   RESET & ESTILOS BASE
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--color-text-heading);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

ul {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

/* CONTENEDOR CENTRAL */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

/* SECCIONES */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section:nth-of-type(even) {
  background-color: var(--color-surface-alt);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.75rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-headings);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary-purple);
  background-color: var(--color-purple-subtle);
  border: 1px solid rgba(92, 58, 142, 0.15);
  padding: 0.4rem 1.15rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.1rem;
}

[data-theme="dark"] .section-tag {
  color: #CBB4F5;
  background-color: rgba(108, 62, 178, 0.25);
  border-color: rgba(108, 62, 178, 0.4);
}

.section-title {
  font-size: 2.65rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  color: var(--color-text-heading);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   BOTONES (PILL-SHAPED INSPIRADOS EN LA IMAGEN)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

/* Botón Principal: Negro elegante con flecha o naranja vibrante */
.btn-primary {
  background-color: var(--color-text-heading);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(21, 16, 34, 0.18);
}

.btn-primary svg {
  transition: transform var(--transition-fast);
}

.btn-primary:hover {
  background: var(--color-orange-gradient);
  color: #FFFFFF;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange-glow);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

/* Botón Secundario: Píldora blanca refinada con borde sutil */
.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-text-heading);
  border-color: var(--color-border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--color-purple-subtle);
  border-color: var(--color-primary-purple);
  color: var(--color-primary-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   CABECERA Y NAVEGACIÓN MODERNA
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(249, 248, 252, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: all var(--transition-fast);
}

[data-theme="dark"] .header {
  background-color: rgba(15, 11, 24, 0.88);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  height: 68px;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-text-heading);
  letter-spacing: -0.02em;
}

/* Badge de Logo con Gradiente Púrpura */
.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--color-purple-gradient);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(108, 62, 178, 0.35);
}

.logo-text {
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.935rem;
  font-weight: 600;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary-purple);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2.5px;
  background: var(--color-orange-gradient);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Botón de Tema */
.theme-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-heading);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.theme-btn:hover {
  border-color: var(--color-primary-purple);
  color: var(--color-primary-purple);
  transform: rotate(15deg);
}

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

.theme-btn .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-btn .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-btn .moon-icon {
  display: none;
}

/* Botón Hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.nav-toggle .bar {
  height: 2.5px;
  width: 100%;
  background-color: var(--color-text-heading);
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* ==========================================================================
   HERO SECTION (INSPIRADA EN LOS HEADERS DE LA IMAGEN)
   ========================================================================== */

.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5.5rem;
  background: 
    radial-gradient(circle at 15% 25%, rgba(108, 62, 178, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(255, 142, 60, 0.09) 0%, transparent 45%),
    var(--color-bg);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .hero {
  background: 
    radial-gradient(circle at 15% 25%, rgba(108, 62, 178, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 85% 65%, rgba(255, 142, 60, 0.12) 0%, transparent 50%),
    var(--color-bg);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

/* Badge Hero en Píldora */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-heading);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 9px;
  height: 9px;
  background: var(--color-orange-gradient);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 142, 60, 0.25);
  animation: pulse-dot 2.2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 142, 60, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 142, 60, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 142, 60, 0); }
}

.hero-title {
  font-size: 3.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 1.15rem;
}

.hero-title .highlight {
  color: var(--color-primary-purple);
  position: relative;
  display: inline-block;
}

/* Subrayado sutil con estilo SaaS */
.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255, 142, 60, 0.28);
  border-radius: var(--radius-full);
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-heading);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 700;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-heading);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background-color: var(--color-surface-hover);
  border-color: var(--color-primary-purple);
  color: var(--color-primary-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   TARJETA VISUAL HERO (INSPIRADA EN LOS WIDGETS DE LA IMAGEN)
   ========================================================================== */

.hero-visual {
  display: flex;
  justify-content: center;
}

.profile-card {
  width: 100%;
  max-width: 410px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -10px rgba(92, 58, 142, 0.16);
}

.profile-avatar {
  position: relative;
  width: 116px;
  height: 116px;
  margin: 0 auto 1.5rem auto;
}

/* Avatar con gradiente vibrante morado a ámbar */
.avatar-gradient {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #4A2576 0%, #6C3EB2 50%, #FF8E3C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-purple-glow);
  border: 4px solid var(--color-surface);
}

.avatar-initials {
  font-family: var(--font-headings);
  font-size: 2.45rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -1.5px;
}

.status-indicator {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  background: var(--color-orange-gradient);
  border: 3.5px solid var(--color-surface);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(255, 142, 60, 0.4);
}

.profile-info h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.profile-role {
  font-size: 0.925rem;
  color: var(--color-primary-purple);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

[data-theme="dark"] .profile-role {
  color: #CBB4F5;
}

.location-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 1.75rem;
}

/* Barra de Estadísticas estilo Widget de Dashboard */
.profile-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: var(--color-purple-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 0.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(92, 58, 142, 0.1);
}

[data-theme="dark"] .profile-stats {
  background-color: rgba(92, 58, 142, 0.2);
  border-color: rgba(92, 58, 142, 0.3);
}

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

.stat-number {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text-heading);
}

.stat-name {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background-color: var(--color-border);
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.tag {
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  background-color: var(--color-orange-subtle);
  color: #D96515;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 142, 60, 0.2);
}

[data-theme="dark"] .tag {
  color: #FFA75E;
}

/* ==========================================================================
   SECCIÓN SOBRE MÍ
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.about-quote-box {
  background: linear-gradient(135deg, var(--color-purple-subtle) 0%, #FFFFFF 100%);
  border-left: 5px solid var(--color-primary-purple);
  padding: 1.5rem 1.75rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-xs);
}

[data-theme="dark"] .about-quote-box {
  background: linear-gradient(135deg, rgba(92, 58, 142, 0.25) 0%, var(--color-surface) 100%);
}

.about-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 600;
  color: var(--color-text-heading);
  margin: 0;
}

.about-lead strong {
  color: var(--color-primary-purple);
}

[data-theme="dark"] .about-lead strong {
  color: #CBB4F5;
}

.about-paragraph {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.location-banner {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 2rem;
  box-shadow: var(--shadow-xs);
}

.location-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-orange-subtle);
  color: var(--color-accent-orange);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-details {
  display: flex;
  flex-direction: column;
  font-size: 0.925rem;
}

.location-details strong {
  color: var(--color-text-heading);
  font-weight: 700;
}

.skills-heading {
  font-size: 1.45rem;
  margin-bottom: 1.6rem;
  position: relative;
  padding-bottom: 0.65rem;
}

.skills-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3.5px;
  background: var(--color-orange-gradient);
  border-radius: var(--radius-full);
}

.skill-card {
  display: flex;
  gap: 1.25rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.35rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.skill-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary-purple);
  box-shadow: var(--shadow-sm);
}

.skill-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background-color: var(--color-purple-subtle);
  color: var(--color-primary-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-card:nth-child(2) .skill-icon {
  background-color: var(--color-orange-subtle);
  color: var(--color-accent-orange);
}

.skill-info h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.skill-info p {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   SECCIÓN SERVICIOS Y PROYECTOS (TARJETAS ESTILO SAAS)
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  margin-bottom: 3.75rem;
}

.service-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary-purple);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  background: var(--color-orange-gradient);
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-purple-subtle);
  border: 1px solid rgba(92, 58, 142, 0.15);
  color: var(--color-primary-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.service-card:nth-child(2) .service-icon-wrap {
  background: var(--color-orange-subtle);
  border-color: rgba(255, 142, 60, 0.2);
  color: var(--color-accent-orange);
}

.service-card:hover .service-icon-wrap {
  transform: scale(1.08);
}

.service-num {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-border);
  letter-spacing: -0.05em;
}

.service-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.service-features {
  margin-top: auto;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-features li {
  font-size: 0.885rem;
  color: var(--color-text-muted);
  position: relative;
  padding-left: 1.35rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent-orange);
  font-weight: 800;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.35rem;
}

.pill {
  font-size: 0.775rem;
  font-weight: 700;
  background-color: var(--color-surface-hover);
  color: var(--color-text-heading);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}

/* ==========================================================================
   CALLOUT BANNER (PÚRPURA INTENSO INSPIRADO EN EL HERO CENTRAL DE LA IMAGEN)
   ========================================================================== */

.project-callout {
  background: var(--color-purple-gradient);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 3rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  box-shadow: var(--shadow-purple-glow);
  position: relative;
  overflow: hidden;
}

/* Efecto de destello decorativo naranja/lavanda */
.project-callout::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 142, 60, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.callout-text h4 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.callout-text p {
  color: #E6DCF5;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.callout-action {
  flex-shrink: 0;
}

/* Botón CTA naranja sobre el banner púrpura */
.project-callout .btn-primary {
  background: var(--color-orange-gradient);
  color: #FFFFFF;
  box-shadow: var(--shadow-orange-glow);
  border: none;
}

.project-callout .btn-primary:hover {
  background: #FFFFFF;
  color: var(--color-primary-purple);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   SECCIÓN TRAYECTORIA (EXPERIENCIA Y FORMACIÓN)
   ========================================================================== */

.trajectory-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.column-header {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 2.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--color-border);
}

.col-icon {
  width: 44px;
  height: 44px;
  background-color: var(--color-purple-subtle);
  color: var(--color-primary-purple);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trajectory-column:nth-child(2) .col-icon {
  background-color: var(--color-orange-subtle);
  color: var(--color-accent-orange);
}

.column-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 2px;
  background-color: var(--color-border);
}

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

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

.timeline-dot {
  position: absolute;
  top: 8px;
  left: -2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color-surface);
  border: 3.5px solid var(--color-text-muted);
  box-shadow: 0 0 0 3px var(--color-bg);
  transition: all var(--transition-fast);
}

.timeline-dot.current {
  border-color: var(--color-accent-orange);
  background-color: var(--color-accent-orange);
  box-shadow: 0 0 0 4px rgba(255, 142, 60, 0.25);
}

.timeline-content {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.65rem 1.75rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-content:hover {
  transform: translateX(5px);
  border-color: var(--color-primary-purple);
  box-shadow: var(--shadow-sm);
}

.timeline-period {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-primary-purple);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .timeline-period {
  color: #CBB4F5;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.timeline-entity {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.timeline-text {
  font-size: 0.925rem;
  color: var(--color-text);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.timeline-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mini-badge {
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  background-color: var(--color-purple-subtle);
  color: var(--color-primary-purple);
  border-radius: var(--radius-full);
  font-weight: 700;
}

[data-theme="dark"] .mini-badge {
  color: #CBB4F5;
  background-color: rgba(92, 58, 142, 0.25);
}

/* ==========================================================================
   SECCIÓN CONTACTO
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: stretch;
}

.contact-info-card,
.contact-form-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.contact-info-card h3,
.contact-form-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.form-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin: 2rem 0;
}

.method-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.method-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--color-purple-subtle);
  color: var(--color-primary-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-item:nth-child(2) .method-icon {
  background-color: var(--color-orange-subtle);
  color: var(--color-accent-orange);
}

.method-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.method-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 700;
}

.method-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-heading);
  word-break: break-all;
}

.method-value:hover {
  color: var(--color-primary-purple);
}

.btn-copy-inline {
  background: none;
  border: none;
  color: var(--color-primary-purple);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-align: left;
  margin-top: 0.25rem;
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.btn-copy-inline:hover {
  color: var(--color-accent-orange);
}

.social-block {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.social-block-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 1.15rem;
}

.social-buttons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.btn-social-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  color: var(--color-text-heading);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-social-full:hover {
  background: var(--color-purple-gradient);
  border-color: transparent;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple-glow);
}

/* Formulario */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-heading);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-bg);
  color: var(--color-text-heading);
  outline: none;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary-purple);
  background-color: var(--color-surface);
  box-shadow: 0 0 0 4px rgba(92, 58, 142, 0.15);
}

/* ==========================================================================
   FOOTER (ESTILO OSCURO / DARK PLUM INSPIRADO EN LA IMAGEN)
   ========================================================================== */

.footer {
  background-color: var(--color-dark-banner);
  color: #A098B5;
  padding: 5rem 0 2.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-headings);
  font-size: 1.75rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.footer-tagline {
  font-size: 0.975rem;
  color: #D3CCE3;
  margin-bottom: 0.5rem;
}

.footer-location {
  font-size: 0.85rem;
  color: #83789E;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem 0;
}

.footer-nav a {
  color: #D3CCE3;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: #FFFFFF;
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  background: var(--color-orange-gradient);
  transform: translateY(-3px);
  box-shadow: var(--shadow-orange-glow);
}

/* ==========================================================================
   TOAST NOTIFICACIONES
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--color-dark-banner);
  color: #FFFFFF;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-size: 0.925rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 2000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-social {
    align-items: center;
  }

  .hero-visual {
    order: -1;
  }

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

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

  .trajectory-wrapper {
    grid-template-columns: 1fr;
    gap: 3.25rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .project-callout {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 2rem;
  }
}

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

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 2.25rem 1.75rem;
    gap: 1.75rem;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.35rem;
    width: 100%;
    text-align: center;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
  }

  .nav-toggle.open .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }

  .nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  .hero-title {
    font-size: 2.45rem;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 1.35rem;
    text-align: center;
  }
}

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

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .profile-card {
    padding: 2rem 1.35rem;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 2rem 1.35rem;
  }
}
