/* =========================================================
   Efraín Gutiérrez León — Sitio Personal
   Paleta: Azul marino oscuro + Turquesa
   ========================================================= */

:root {
  --bg-deep: #050816;
  --bg-primary: #0A0E27;
  --bg-secondary: #0F1937;
  --bg-card: rgba(15, 25, 55, 0.55);
  --bg-glass: rgba(10, 14, 39, 0.65);

  --accent-turquoise: #00D4D4;
  --accent-bright: #00E5D1;
  --accent-navy: #1E3A8A;
  --accent-blue: #00B4D8;

  --text-primary: #E5F3FF;
  --text-secondary: #A9C0D6;
  --text-muted: #6F86A0;

  --border: rgba(0, 212, 212, 0.15);
  --border-strong: rgba(0, 212, 212, 0.35);
  --glow: rgba(0, 229, 209, 0.35);
  --glow-soft: rgba(0, 229, 209, 0.15);

  --gradient-primary: linear-gradient(135deg, #00E5D1 0%, #00B4D8 50%, #1E3A8A 100%);
  --gradient-text: linear-gradient(135deg, #7FFFE3 0%, #00D4D4 50%, #00B4D8 100%);
  --gradient-bg: radial-gradient(ellipse at top, #0F1937 0%, #0A0E27 40%, #050816 100%);

  --font-heading: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* =============== Reset =============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  background-image: var(--gradient-bg);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-turquoise); text-decoration: none; transition: color 0.25s var(--transition-smooth); }
a:hover { color: var(--accent-bright); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--accent-turquoise); color: var(--bg-deep); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent-navy), var(--accent-turquoise));
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-turquoise); }

/* =============== Partículas / fondo animado =============== */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 18s ease-in-out infinite;
}
.orb-1 { width: 480px; height: 480px; background: #00D4D4; top: -120px; left: -120px; }
.orb-2 { width: 400px; height: 400px; background: #1E3A8A; bottom: -100px; right: -100px; animation-delay: -6s; }
.orb-3 { width: 320px; height: 320px; background: #00B4D8; top: 40%; left: 60%; animation-delay: -12s; opacity: 0.25; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* =============== Layout general =============== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-turquoise);
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.section-subtitle { color: var(--text-secondary); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* =============== NAV =============== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(10, 14, 39, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.35s var(--transition-smooth);
}
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(10, 14, 39, 0.85);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 1px;
}
.nav-logo img { width: 42px; height: 42px; }
.nav-logo span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-menu a {
  color: var(--text-secondary);
  font-size: 0.93rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s var(--transition-smooth);
}
.nav-menu a:hover { color: var(--text-primary); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: flex;
  align-items: center;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  backdrop-filter: blur(10px);
}
.lang-btn {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-radius: 999px;
  transition: all 0.25s var(--transition-smooth);
}
.lang-btn.active {
  background: var(--gradient-primary);
  color: var(--bg-deep);
  box-shadow: 0 0 20px var(--glow-soft);
}

.mobile-toggle { display: none; font-size: 1.6rem; color: var(--text-primary); }

/* =============== HERO =============== */
.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-greeting {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-turquoise);
  margin-bottom: 24px;
  padding: 8px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  animation: slideInLeft 0.8s var(--transition-smooth);
}
.hero-greeting .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 12px var(--accent-bright);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
  animation: fadeUp 1s var(--transition-smooth) 0.2s both;
}
.hero h1 .gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-role {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 500;
  animation: fadeUp 1s var(--transition-smooth) 0.35s both;
}
.hero-role .typed { color: var(--accent-bright); font-weight: 600; }

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
  animation: fadeUp 1s var(--transition-smooth) 0.5s both;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeUp 1s var(--transition-smooth) 0.65s both; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all 0.3s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-deep);
  box-shadow: 0 10px 30px -8px var(--glow);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #7FFFE3, #00B4D8);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 36px -6px var(--glow); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary span { position: relative; z-index: 1; }

.btn-outline {
  border: 1px solid var(--border-strong);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--accent-turquoise);
  background: rgba(0, 212, 212, 0.1);
  transform: translateY(-3px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  animation: fadeUp 1s var(--transition-smooth) 0.8s both;
}
.stat { text-align: left; }
.stat-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* Foto hero */
.hero-photo {
  position: relative;
  animation: fadeInScale 1.2s var(--transition-smooth) 0.4s both;
}
.hero-photo-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-secondary);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7),
              0 0 60px -10px var(--glow-soft);
}
.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 2;
  pointer-events: none;
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 14, 39, 0.6) 100%);
  pointer-events: none;
}

.hero-photo .deco {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-turquoise);
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  padding: 10px 16px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: floatY 4s ease-in-out infinite;
}
.hero-photo .deco-top { top: 40px; right: -40px; }
.hero-photo .deco-bot { bottom: 60px; left: -40px; animation-delay: -2s; }

/* Scroll indicator */
.scroll-ind {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 1s 1.2s both;
}
.scroll-ind .line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent-turquoise), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

/* =============== SOBRE MÍ =============== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p { color: var(--text-secondary); margin-bottom: 18px; font-size: 1.02rem; }
.about-text p strong { color: var(--text-primary); }

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.highlight-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s var(--transition-smooth);
}
.highlight-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-turquoise);
  box-shadow: 0 12px 30px -10px var(--glow);
}
.highlight-card .icon {
  width: 44px; height: 44px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--bg-deep);
}
.highlight-card h4 { font-size: 1rem; margin-bottom: 6px; color: var(--text-primary); }
.highlight-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Info card lateral */
.about-info-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.about-info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-primary);
}
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--text-muted); font-size: 0.88rem; font-family: var(--font-mono); }
.info-row .v { color: var(--text-primary); font-weight: 500; }

/* =============== EXPERIENCIA / TIMELINE =============== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent-turquoise) 10%, var(--accent-navy) 90%, transparent);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 24px 40px;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item::before {
  content: '';
  position: absolute;
  top: 34px;
  width: 16px; height: 16px;
  background: var(--bg-primary);
  border: 2px solid var(--accent-turquoise);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--glow);
  z-index: 2;
}
.timeline-item:nth-child(odd)::before { right: -8px; }
.timeline-item:nth-child(even)::before { left: -8px; }

.timeline-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  transition: all 0.3s var(--transition-smooth);
}
.timeline-card:hover {
  border-color: var(--accent-turquoise);
  transform: scale(1.02);
  box-shadow: 0 12px 30px -10px var(--glow);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-turquoise);
  margin-bottom: 6px;
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 212, 212, 0.08);
  border-radius: 6px;
}
.timeline-card h3 { font-size: 1.1rem; margin: 8px 0 4px; color: var(--text-primary); }
.timeline-card .company { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 10px; }
.timeline-card ul { list-style: none; }
.timeline-card ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
}
.timeline-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent-turquoise);
  font-weight: bold;
}

/* =============== LOGROS =============== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.achievement {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.35s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.achievement::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: var(--gradient-primary);
  border-radius: 16px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.35s;
}
.achievement:hover {
  transform: translateY(-6px);
  background: rgba(15, 25, 55, 0.8);
}
.achievement:hover::before { opacity: 0.4; }
.achievement .num {
  font-family: var(--font-mono);
  color: var(--accent-turquoise);
  font-size: 0.78rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.achievement h4 { font-size: 1.05rem; color: var(--text-primary); margin-bottom: 10px; line-height: 1.3; }
.achievement p { font-size: 0.9rem; color: var(--text-muted); }

/* =============== HABILIDADES =============== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.skill-group {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s;
}
.skill-group:hover { border-color: var(--border-strong); }
.skill-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.skill-group-header .icon {
  width: 44px; height: 44px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.skill-group-header h3 { font-size: 1rem; color: var(--text-primary); }
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(0, 212, 212, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.25s;
}
.chip:hover {
  background: rgba(0, 212, 212, 0.2);
  color: var(--accent-bright);
  border-color: var(--accent-turquoise);
  transform: translateY(-2px);
}

/* =============== CALCULADORAS (PREVIEW) =============== */
.calcs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.calc-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}
.calc-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-turquoise);
  box-shadow: 0 12px 30px -10px var(--glow);
}
.calc-card .icon { font-size: 2rem; margin-bottom: 12px; }
.calc-card h4 { font-size: 1rem; color: var(--text-primary); margin-bottom: 6px; }
.calc-card p { font-size: 0.85rem; color: var(--text-muted); }
.calc-card .tag {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 212, 212, 0.15);
  color: var(--accent-turquoise);
  letter-spacing: 1px;
}

/* =============== BLOG CAROUSEL =============== */
.carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}
.carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 10px 4px 20px;
  flex: 1;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

.post-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.35s var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-turquoise);
  box-shadow: 0 20px 40px -12px var(--glow);
}

.post-img {
  position: relative;
  height: 170px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.post-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 14, 39, 0.7) 100%);
}
.post-cat {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--accent-bright);
  backdrop-filter: blur(10px);
}

.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-date { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: 1px; }
.post-body h3 { font-size: 1.05rem; color: var(--text-primary); line-height: 1.35; margin: 2px 0 4px; }
.post-body p { font-size: 0.88rem; color: var(--text-muted); flex: 1; }
.post-link {
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-turquoise);
  align-self: flex-start;
  transition: transform 0.2s;
}
.post-link:hover { transform: translateX(4px); }

.carousel-nav {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  color: var(--accent-turquoise);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  z-index: 3;
}
.carousel-nav:hover {
  background: var(--gradient-primary);
  color: var(--bg-deep);
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: 0 6px 20px var(--glow);
}
.carousel-nav:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.carousel-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.25s;
}
.carousel-dots .dot.active {
  width: 24px;
  background: var(--gradient-primary);
  border-radius: 4px;
}

.blog-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.blog-cta {
  font-weight: 600;
  letter-spacing: 0.2px;
}

@media (max-width: 680px) {
  .carousel-nav { display: none; }
  .post-card { flex: 0 0 280px; }
}

/* =============== CONTACTO =============== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h3 { font-size: 1.6rem; margin-bottom: 12px; }
.contact-info p { color: var(--text-muted); margin-bottom: 28px; }
.contact-list { list-style: none; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list .ico {
  width: 42px; height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent-turquoise);
  flex-shrink: 0;
  transition: all 0.3s;
}
.contact-list li:hover .ico {
  background: var(--gradient-primary);
  color: var(--bg-deep);
  border-color: transparent;
  transform: scale(1.05);
}
.contact-list .label { color: var(--text-muted); font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; }
.contact-list .val { color: var(--text-primary); font-weight: 500; font-size: 0.95rem; }

.contact-form {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.25s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-turquoise);
  box-shadow: 0 0 0 3px var(--glow-soft);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-msg { font-size: 0.85rem; margin-top: 12px; }
.form-msg.success { color: var(--accent-bright); }
.form-msg.error { color: #ff6b6b; }

/* =============== FOOTER =============== */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  position: relative;
  z-index: 2;
  background: rgba(10, 14, 39, 0.6);
  backdrop-filter: blur(10px);
}
footer .socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}
footer .socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
footer .socials a:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--bg-deep);
  transform: translateY(-3px);
}

/* =============== Animaciones =============== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes scrollDown {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* Reveal en scroll (JS-driven) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============== RESPONSIVE =============== */
@media (max-width: 968px) {
  section { padding: 80px 0; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { max-width: 380px; margin: 0 auto; }
  .hero-photo .deco { display: none; }
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; left: 0 !important; padding-left: 50px; padding-right: 0; text-align: left !important; }
  .timeline-item::before { left: 12px !important; right: auto !important; }
  .about-highlights { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-menu { display: none; position: fixed; top: 70px; left: 0; right: 0; flex-direction: column; background: var(--bg-glass); backdrop-filter: blur(20px); padding: 24px; border-bottom: 1px solid var(--border); }
  .nav-menu.open { display: flex; }
  .mobile-toggle { display: block; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .section-title { font-size: 2rem; }
  .hero h1 { font-size: 2.4rem; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
