/*
  Futuristic Minimal Portfolio Styles
  - Primary: Electric Blue #00aaff
  - Background: Black #000000 with subtle gray accents
  - Effects: Neon glow, glassmorphism, floating cards, soft shadows
  - Typography: Poppins
*/

:root {
  --bg: #000000;
  --bg-2: #0a0f14; /* subtle deep gray-blue */
  --text: #d9e6f2;
  --muted: #7f8fa3;
  --primary: #00aaff;
  --primary-2: #1ec0ff;
  --glass: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.4);
  --neon: 0 0 8px rgba(0,170,255,0.7), 0 0 18px rgba(0,170,255,0.4);
  --radius: 16px;
  --maxw: 1200px;
}

* { box-sizing: border-box }

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  color: var(--text);
  background: var(--bg);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0 }
.section-title {
  font-size: clamp(28px, 3vw, 40px);
  margin: 0 0 28px;
  letter-spacing: 0.5px;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0; z-index: 40;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
  border-bottom: 1px solid var(--border);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: baseline; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; }
.logo-mark { color: var(--primary); text-shadow: var(--neon); }
.logo-text { letter-spacing: 1px; }

.nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; opacity: 0.9; transition: 0.25s ease; }
.nav a:hover { color: var(--primary); text-shadow: var(--neon); }

.nav-toggle { display: none; }
.burger { display: none; width: 28px; height: 24px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; background: #c8d6e5; transition: 0.3s; }
.burger span:nth-child(1) { top: 3px; }
.burger span:nth-child(2) { top: 11px; }
.burger span:nth-child(3) { top: 19px; }

/* Hero */
.hero { position: relative; min-height: 92vh; display: grid; place-items: center; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; }
.hero-content { padding: 36px; }
.headline { font-size: clamp(36px, 6vw, 72px); line-height: 1.05; margin: 0 0 8px; }
.subhead { margin: 0 0 20px; color: var(--muted); font-size: clamp(16px, 2.4vw, 22px); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 24px; }
.hero-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.stat { display: grid; }
.stat .num { font-weight: 700; font-size: 28px; color: #e8f4ff; text-shadow: var(--neon); }
.stat .label { color: var(--muted); font-size: 12px; letter-spacing: .4px; }
.hero-side { position: relative; height: 100%; }
.orb { width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(0,170,255,0.9), rgba(0,170,255,0.05) 55%, transparent 60%); filter: blur(4px); box-shadow: 0 0 80px rgba(0,170,255,0.35) inset, 0 0 100px rgba(0,170,255,0.25); animation: float 8s ease-in-out infinite; margin: 0 auto 24px; }
.grid-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--border); background: rgba(0,0,0,0.4); border-radius: 999px; color: #b8c6d9; margin-right: 12px; backdrop-filter: blur(8px); box-shadow: 0 6px 24px var(--shadow); }
.grid-chip i { width: 18px; height: 18px; color: var(--primary); }

/* About */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: center; }
.profile { position: relative; display: grid; place-items: center; padding: 24px; min-height: 300px; }
.avatar { width: 180px; height: 180px; border-radius: 16px; background: linear-gradient(135deg, rgba(0,170,255,0.25), rgba(255,255,255,0.04)); border: 1px solid var(--border); box-shadow: 0 10px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.04) inset; }
.badge { position: absolute; bottom: 16px; right: 16px; font-size: 12px; color: #001018; background: linear-gradient(90deg, var(--primary), var(--primary-2)); padding: 8px 12px; border-radius: 999px; box-shadow: var(--neon); }
.about-content p { color: #b6c5d9; line-height: 1.8; }
.about-icons { display: flex; gap: 16px; margin: 20px 0; }
.about-icon { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 12px; color: #c9d7ea; }
.about-icon i { width: 18px; height: 18px; color: var(--primary); }

.about-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start; /* keep aligned with content on desktop */
}

/* Button base tweaks inside About */
.about-actions .btn {
  min-width: 160px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  letter-spacing: 0.2px;
  transition: transform 200ms cubic-bezier(.2,.8,.2,1), box-shadow 200ms ease, background 180ms;
}

/* Prominent primary style for "Ver experiencia" */
.about-actions .btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #001018;
  border: none;
  box-shadow: 0 12px 36px rgba(0,170,255,0.12);
}

/* Hover / focus states */
.about-actions .btn-primary:hover,
.about-actions .btn-primary:focus {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(0,170,255,0.16);
  outline: none;
}

/* Secondary (ghost) variant if used next to it */
.about-actions .btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
}
.about-actions .btn-ghost:hover {
  background: rgba(255,255,255,0.03);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Mobile: center the CTA under the content */
@media (max-width: 768px) {
  .about-actions { justify-content: center; width: 100%; }
  .about-actions .btn { width: 100%; max-width: 320px; }
}

/* Timeline: vertical curvo central + zig-zag cards */
.timeline {
  position: relative;
  padding: 48px 0;
  min-height: 720px;                 /* espacio para distribuir las 3 cards */
  display: block;
  align-items: stretch;
}

/* Central curved line (SVG) - sits centered */
.timeline-wave {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 120px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}
.timeline-wave-path {
  stroke: var(--primary);
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
  filter: drop-shadow(0 12px 36px rgba(0,170,255,0.18));
  mix-blend-mode: screen;
  transition: stroke-dashoffset 900ms cubic-bezier(.22,.61,.36,1);
}

/* Timeline items absolute positioned to form zig-zag:
   - Top card left
   - Middle card right (centered vertically)
   - Bottom card left */
.timeline-item {
  position: absolute;
  width: 46%;
  max-width: 520px;
  z-index: 4; /* above the line */
  display: flex;
  align-items: flex-start;
}

/* top: near top-left */
.timeline-item--top {
  left: 2%;
  top: 6%;
}

/* middle: right column centered vertically */
.timeline-item--middle {
  right: 2%;
  top: 45%;
  transform: translateY(-50%);
}

/* bottom: left column near bottom */
.timeline-item--bottom {
  left: 2%;
  top: 84%;
  transform: translateY(-100%); /* pull card above the point so spacing matches top */
}

/* Dots: small accent circles aligned to the center line at approx same vertical positions */
/* timeline-dot removido */

/* Place dots by referencing the timeline-item positions */
/* removed */
/* removed */
/* removed */

/* Cards visual: soft glowing blue border and depth */
.timeline .exp-card {
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid rgba(30,200,255,0.12);
  box-shadow: 0 10px 40px rgba(0,30,60,0.55), 0 0 36px rgba(0,170,255,0.06) inset;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

/* Hover lift */
.timeline .exp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 70px rgba(0,30,60,0.6), 0 0 54px rgba(0,170,255,0.10) inset;
}

/* Typography hierarchy (ensured) */
.timeline .exp-card h3 { font-weight: 700; margin: 0 0 6px; color: var(--primary); }
.timeline .exp-card .meta { display: block; font-size: 0.95rem; color: var(--muted); margin-bottom: 10px; }
.timeline .exp-card .exp-desc { color: #cbdcef; line-height: 1.7; }

/* Ensure images and titles align nicely */
.exp-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; margin-right: 14px; border: 2px solid rgba(30,200,255,0.10); }

/* Responsive: collapse to a single column stacked timeline on small screens */
@media (max-width: 900px) {
  .timeline {
    min-height: auto;
    padding: 24px 0;
  }
  .timeline-wave { display: none; }
  .timeline-item {
    position: static;
    width: 100%;
    max-width: 100%;
    margin: 12px 0;
    transform: none !important;
  }
  .timeline-item .timeline-dot { display: none; }
}

/* Agrandar medidores */
.meter-svg { width: 180px; height: 180px; }
.meter-label .value { font-size: 26px; font-weight: 800; }

/* Separar más reseñas y animación al tocar */
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 36px; /* aumentado */
  overflow: hidden;
  scroll-behavior: smooth;
}

/* tarjeta reseña: animación hover / touch */
.review {
  padding: 18px;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease;
  will-change: transform;
}
.review:hover,
.review:focus-within {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 48px rgba(0,170,255,0.08);
}

/* mejorar espacio en mobile si es necesario */
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 12px; transform: none; }
  .timeline-dot { left: 6px; transform: none; }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) { grid-column: 1; }
  .timeline-item .timeline-content { text-align: left; margin: 0 0 18px 24px; }
}

/* Skills - modern */
.skills-modern {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}
.skill-badges, .skill-bars { padding: 22px; border-radius: 16px; }
.skill-badges h3, .skill-bars h3 { margin: 0 0 14px; font-size: 1.1rem; color: var(--primary); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(0,0,0,0.35);
  color: #cfe3f7; font-weight: 600; letter-spacing: 0.2px;
}
.skill-badge i { width: 16px; height: 16px; color: var(--primary); }

.skill-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; margin: 12px 0; }
.skill-row > span { color: #cfe3f7; font-weight: 600; font-size: 0.98rem; }
.bar { position: relative; height: 10px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; min-width: 220px; }
.bar span { position: absolute; left: 0; top: 0; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); box-shadow: var(--neon); border-radius: 999px; }
.bar em { font-style: normal; color: var(--muted); font-size: 0.9rem; margin-left: 8px; }

@media (max-width: 900px) {
  .skills-modern { grid-template-columns: 1fr; }
  .bar { min-width: 140px; }
}

/* Testimonials (nuevo) */
.testimonials .tst-header { text-align: left; margin-bottom: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.testimonials .tst-header .section-title { margin: 0 0 6px; }
.testimonials .tst-sub { color: var(--muted); margin: 2px 0 0; max-width: 760px; text-align: left; }

.tst-marquee { position: relative; }
.tst-viewport { width: 100%; overflow: hidden; }
.tst-track { display: flex; gap: 20px; transform: translateX(var(--tst-start, 0)); will-change: transform; }

/* autoplay L->R sin cortes */
.testimonials.is-animating .tst-track { animation: tstLTR var(--tst-duration, 30s) linear infinite; }
@keyframes tstLTR {
  0% { transform: translateX(var(--tst-start, 0)); }
  100% { transform: translateX(var(--tst-end, 0)); }
}

.tst-card { flex: 0 0 clamp(280px, 30vw, 380px); max-width: 420px; text-align: left; }
.tst-card .tst-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tst-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, rgba(0,170,255,0.25), rgba(255,255,255,0.06)); border: 1px solid var(--border); box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.tst-meta { text-align: left; }
.tst-meta .tst-name { margin: 0; font-size: 1.02rem; font-weight: 700; }
.tst-meta .tst-role { color: var(--muted); font-size: 12px; display: block; }
.tst-stars { color: #ffd166; font-size: 12px; letter-spacing: 1px; margin-top: 3px; }
.tst-text { margin: 0; color: #cfe3f7; line-height: 1.75; white-space: normal; overflow-wrap: anywhere; }

@media (max-width: 900px) { .tst-track { gap: 18px; } }
@media (max-width: 600px) {
  .tst-track { gap: 14px; }
  .tst-card { flex-basis: clamp(240px, 70vw, 360px); }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  /* asegurar que las celdas permitan centrar su contenido */
  justify-items: center;
}

/* Forzar que la columna de contacto ocupe todo el ancho de la grid
   y quede centrada visualmente (ignora el div vacío a la izquierda) */
.contact-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  max-width: 520px;
  grid-column: 1 / -1;    /* ocupa desde la primera hasta la última columna */
  justify-self: center;   /* centra la columna dentro del grid */
}

/* Centrar redes y la tarjeta interna */
.socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.contact-info {
  padding: 14px;
  text-align: center;
  width: 100%;
  max-width: 420px;
}

/* Alinea cada fila (icono + texto) al centro */
.contact-info .row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 8px;
  border-bottom: 1px dashed var(--border);
}

/* Responsive: en móvil la grid pasa a una sola columna y todo centrado */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; justify-items: center; }
  .contact-side { padding-top: 6px; max-width: 92vw; grid-column: 1 / -1; }
  .contact-info { max-width: 92vw; }
}

/* Background Canvas and Overlays */
#bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
.glow-overlay { position: fixed; inset: 0; pointer-events: none; background: transparent; z-index: -1; }
.hero-gradient { position: absolute; inset: 0; background: transparent; pointer-events: none; z-index: 0; }

/* Animations */
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }

/* Reveal base (paired with ScrollReveal) */
.reveal { opacity: 0; transform: translateY(20px); }

/* Reforzar visual de las tarjetas y evitar que overlays las oculten */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px var(--shadow);
  position: relative;
  z-index: 2;               /* asegurar que las cartas estén por encima de gradientes */
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.03));
  color: var(--text);
}

/* Glass: ligeramente más opaco para contraste en fondos oscuros */
.glass {
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(10px);
}

/* Asegurar que hero gradient quede detrás del contenido */
.hero-gradient {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: 0; /* detrás del contenido (las tarjetas tienen z-index:2) */
}

/* Asegurar que contenido principal del hero y about esté en primer plano */
.hero-content,
.about-content,
.timeline-content,
.contact-info {
  position: relative;
  z-index: 2;
}

/* Experiencia: mantener contraste y asegurar legibilidad */
.exp-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 22px;
  border-radius: 18px;
  min-width: 320px;
  max-width: 480px;
  box-shadow: 0 6px 32px rgba(0,170,255,0.10), 0 0 0 2px var(--primary);
  background: linear-gradient(120deg, rgba(0,170,255,0.06) 0%, rgba(255,255,255,0.035) 100%);
  color: var(--text);
  z-index: 2;
}

/* Reviews / Carrousel: asegurar visibilidad cuando hay overlays */
.review,
.review.review-medium {
  position: relative;
  z-index: 2;
}

/* Ajustes menores de legibilidad */
.section-title,
.headline,
.subhead,
.stat .num,
.exp-card h3,
.exp-desc,
.review h4,
.review p {
  color: var(--text);
}

/* Evitar que sombras excesivas en orb tapen contenido en tamaños reducidos */
.orb { z-index: 0; }

/* Mantener layout responsive (sin cambios funcionales) */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-cards { grid-template-columns: repeat(2, 1fr); }
  .nav { position: fixed; inset: 64px 0 auto 0; background: rgba(0,0,0,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); padding: 16px; display: grid; transform: translateY(-120%); transition: transform 0.3s; }
  .burger { display: grid; place-items: center; }
  .nav-toggle:checked ~ .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-toggle:checked ~ .nav { transform: translateY(0); }
}

@media (max-width: 520px) {
  .section { padding: 72px 0; }
  .meter-svg { width: 120px; height: 120px; }
}

/* Cartel flotante de acción bloqueada */
#block-alert {
  display: none;
  position: fixed;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #001018;
  padding: 18px 36px;
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(0,170,255,0.18), 0 0 0 2px var(--primary);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.25s;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 520px) {
  #block-alert {
    padding: 12px 16px;
    font-size: 0.98rem;
    border-radius: 12px;
  }
}

/* Experiencia creativa */
.exp-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 22px;
  border-radius: 18px;
  min-width: 320px;
  max-width: 480px;
  box-shadow: 0 6px 32px rgba(0,170,255,0.10), 0 0 0 2px var(--primary);
  background: linear-gradient(120deg, rgba(0,170,255,0.06) 0%, rgba(255,255,255,0.035) 100%);
  color: var(--text);
  z-index: 2;
}
.exp-img-title {
  display: flex;
  align-items: center;
  gap: 18px;
}
.exp-img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: #0a0f14;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 12px rgba(0,170,255,0.10);
}
.exp-card h3 {
  margin: 0 0 2px 0;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.2px;
}
.exp-card .meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 2px;
}
.exp-desc {
  margin: 0;
  color: #b6c5d9;
  font-size: 1.04rem;
  line-height: 1.7;
}

/* Social Buttons */
.social {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.4);
  color: #c9d7ea;
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), box-shadow 260ms ease, background 260ms ease;
  will-change: transform;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* sub-animate the icon for a layered effect */
.social i {
  transition: transform 320ms cubic-bezier(.2,.8,.2,1);
  display: inline-block;
}

/* hover: lift + slight rotate + glow */
.social:hover,
.social:focus {
  transform: translateY(-6px) scale(1.06) rotate(-3deg);
  box-shadow: 0 10px 30px rgba(0,170,255,0.12), var(--neon);
  background: linear-gradient(180deg, rgba(0,170,255,0.06), rgba(255,255,255,0.02));
  color: #001018;
  outline: none;
}

/* subtle icon motion on hover */
.social:hover i,
.social:focus i {
  transform: translateY(-2px) rotate(-6deg) scale(1.02);
}

/* active / click */
.social:active {
  transform: translateY(-2px) scale(0.98) rotate(-1deg);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* keyboard focus visible */
.social:focus-visible {
  outline: 3px solid rgba(30,192,255,0.18);
  outline-offset: 4px;
}

/* small ripple effect using pseudo-element */
.social::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.06), transparent 25%);
  opacity: 0;
  transition: opacity 260ms ease, transform 260ms ease;
  transform: scale(0.95);
  pointer-events: none;
}

.social:hover::after,
.social:focus::after {
  opacity: 1;
  transform: scale(1);
}

/* Botones del héroe */
.hero .cta-row .btn {
  min-width: 150px;
  padding: 14px 22px;
  font-size: 1.04rem;
  font-weight: 700;
  border-radius: 12px;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease, opacity 200ms;
}

/* Primary in hero: brighter, subtle lift */
.hero .cta-row .btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #001018; /* dark text on bright gradient */
  border: none;
  box-shadow: 0 10px 30px rgba(0,170,255,0.12), 0 2px 8px rgba(0,170,255,0.06);
}
.hero .cta-row .btn-primary:hover,
.hero .cta-row .btn-primary:focus {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0,170,255,0.16);
}

/* Ghost in hero: visible on dark background, subtle outline & hover */
.hero .cta-row .btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
}
.hero .cta-row .btn-ghost:hover,
.hero .cta-row .btn-ghost:focus {
  background: rgba(255,255,255,0.03);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,170,255,0.06);
}

/* Ensure good spacing on small screens */
@media (max-width: 768px) {
  .hero .cta-row { gap: 8px; flex-direction: column; align-items: stretch; }
  .hero .cta-row .btn { width: 100%; min-width: 0; padding: 12px 16px; }
}

/* remove old circular meters animations */

/* Contact - professional layout */
.contact-pro .contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.contact-pro .contact-left { text-align: left; }
.contact-pro .contact-lead { color: #cfe3f7; max-width: 640px; margin: 6px 0 12px; line-height: 1.8; }
.contact-pro .contact-highlights { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.contact-pro .contact-highlights li { display: inline-flex; align-items: center; gap: 10px; color: #b6c5d9; }
.contact-pro .contact-highlights i { width: 18px; height: 18px; color: var(--primary); }

.contact-pro .contact-right { width: 100%; display: grid; place-items: start; }
.contact-pro .contact-card { width: 100%; max-width: 520px; padding: 22px; border-radius: 16px; display: grid; gap: 12px; }
.contact-pro .contact-row { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-bottom: 1px dashed var(--border); color: #d9e6f2; }
.contact-pro .contact-row i { width: 18px; height: 18px; color: var(--primary); }
.contact-pro .contact-row a { color: #d9e6f2; text-decoration: none; }
.contact-pro .contact-cta { margin-top: 6px; align-self: start; min-width: 180px; }
.contact-pro .contact-socials { display: flex; gap: 10px; margin-top: 4px; }

@media (max-width: 900px) {
  .contact-pro .contact-layout { grid-template-columns: 1fr; }
}
