/*!
 * Landing redesign - Hernando Hernández
 * Sistema de diseño moderno (landing page). Cargar después de styles.css.
 */

/* ============================================================
   1. Variables / tokens
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fc;
  --bg-dark: #0b1020;
  --bg-dark-2: #121933;
  --ink: #0f172a;
  --body: #4b5566;
  --muted: #7a8599;
  --border: #e7eaf3;
  --white: #ffffff;

  --accent: #5b53f0;
  --accent-2: #06b6d4;
  --accent-3: #a855f7;
  --grad: linear-gradient(120deg, #5b53f0 0%, #7c3aed 45%, #06b6d4 100%);
  --grad-soft: linear-gradient(120deg, rgba(91, 83, 240, 0.12), rgba(6, 182, 212, 0.12));

  --shadow-sm: 0 4px 14px -6px rgba(15, 23, 42, 0.15);
  --shadow-md: 0 18px 40px -20px rgba(15, 23, 42, 0.35);
  --shadow-accent: 0 18px 40px -18px rgba(91, 83, 240, 0.55);

  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 74px;

  --font-head: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ============================================================
   2. Reset / base (override de la plantilla resume)
   ============================================================ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  padding: 0 !important;      /* elimina el padding-left del sidebar */
  margin: 0;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 992px) {
  body { padding-left: 0 !important; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  text-transform: none;         /* la plantilla ponía todo en mayúsculas */
  font-weight: 700;
  line-height: 1.15;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; }
section { position: relative; }

/* ============================================================
   3. Utilidades landing
   ============================================================ */
.section {
  padding: 6.5rem 0;
}
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #cbd3e6; }

.container-x {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.section--dark .eyebrow { color: #7dd3fc; }

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.section-head { max-width: 720px; margin-bottom: 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); margin: 0; }

.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Botones */
.btn-x {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.7rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-primary-x {
  background: var(--grad);
  background-size: 160% 160%;
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary-x:hover {
  color: #fff;
  transform: translateY(-3px);
  background-position: 100% 0;
}
.btn-ghost-x {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost-x:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
  transform: translateY(-3px);
}
.btn-outline-x {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline-x:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

/* ============================================================
   4. Navbar horizontal
   ============================================================ */
#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
  z-index: 1040;
}
#mainNav .container-x {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#mainNav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 6px 24px -12px rgba(15, 23, 42, 0.25);
  height: 64px;
}

.nav-brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: -0.01em;
  transition: color 0.35s ease;
}
.nav-brand span { color: #a5b4fc; }
#mainNav.scrolled .nav-brand { color: var(--ink); }
#mainNav.scrolled .nav-brand span {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.nav-menu a.nav-item-x {
  position: relative;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: color 0.25s ease;
}
.nav-menu a.nav-item-x::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.3rem;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.nav-menu a.nav-item-x:hover,
.nav-menu a.nav-item-x.active { color: #fff; }
.nav-menu a.nav-item-x:hover::after,
.nav-menu a.nav-item-x.active::after { transform: scaleX(1); }

#mainNav.scrolled .nav-menu a.nav-item-x { color: var(--body); }
#mainNav.scrolled .nav-menu a.nav-item-x:hover,
#mainNav.scrolled .nav-menu a.nav-item-x.active { color: var(--ink); }

.nav-cta {
  margin-left: 0.6rem;
  padding: 0.6rem 1.3rem !important;
  border-radius: 50px;
  background: var(--grad);
  color: #fff !important;
  box-shadow: var(--shadow-accent);
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); }

/* Hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px; border-radius: 3px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.35s ease;
}
#mainNav.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 991px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: rgba(11, 16, 32, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem 1.75rem;
    transform: translateY(-140%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu a.nav-item-x { color: rgba(255,255,255,0.9); padding: 0.8rem 0.5rem; }
  .nav-menu a.nav-item-x::after { display: none; }
  #mainNav.scrolled .nav-menu a.nav-item-x { color: rgba(255,255,255,0.9); }
  .nav-cta { margin: 0.6rem 0 0; text-align: center; justify-content: center; }
}

/* ============================================================
   5. Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(124, 58, 237, 0.35), transparent 60%),
              radial-gradient(900px 500px at 0% 100%, rgba(6, 182, 212, 0.28), transparent 55%),
              linear-gradient(160deg, #0b1020 0%, #121933 100%);
  color: #e6ebf7;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  opacity: 0.6;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
}
.hero-blob.b1 { width: 320px; height: 320px; background: #6d5efc; top: 12%; right: 8%; animation: float 9s ease-in-out infinite; }
.hero-blob.b2 { width: 260px; height: 260px; background: #06b6d4; bottom: 8%; left: 10%; animation: float 11s ease-in-out infinite reverse; }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c7d2fe;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,0.6); animation: pulse 2s infinite; }

.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.hero .hero-role {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: #a5b4fc;
  margin-bottom: 1.25rem;
  min-height: 1.6em;
}
.hero-role .type-caret { color: #06b6d4; font-weight: 700; }
.hero p.hero-lead {
  font-size: 1.12rem;
  color: #b7c0d8;
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.25rem; }
.hero-social { display: flex; gap: 0.9rem; }
.hero-social a {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #e6ebf7;
  font-size: 1.15rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.hero-social a:hover { transform: translateY(-4px); background: var(--grad); color: #fff; border-color: transparent; }

/* Foto hero */
.hero-photo { position: relative; display: flex; justify-content: center; }
.hero-photo .photo-ring {
  position: relative;
  width: min(340px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 10px;
  background: conic-gradient(from 0deg, #5b53f0, #06b6d4, #a855f7, #5b53f0);
  animation: spin 14s linear infinite;
  box-shadow: 0 30px 60px -20px rgba(91, 83, 240, 0.6);
}
.hero-photo .photo-ring img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #0b1020;
  background: #0b1020;
  animation: spin 14s linear infinite reverse; /* mantiene la foto fija */
}
.hero-photo .float-chip {
  position: absolute;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  border-radius: 14px;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-head);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 0.5rem;
  z-index: 3;
}
.hero-photo .float-chip i { color: var(--accent); }
.hero-photo .chip-1 { top: 12%; left: -4%; animation: float 6s ease-in-out infinite; }
.hero-photo .chip-2 { bottom: 14%; right: -6%; animation: float 7s ease-in-out infinite reverse; }

.hero-scroll {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
}
.hero-scroll .mouse {
  width: 22px; height: 36px; border: 2px solid rgba(255,255,255,0.4); border-radius: 12px; position: relative;
}
.hero-scroll .mouse::before {
  content:""; position:absolute; top:6px; left:50%; transform:translateX(-50%);
  width:4px; height:7px; border-radius:3px; background:#fff; animation: wheel 1.6s infinite;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero-actions, .hero-social { justify-content: center; }
  .hero p.hero-lead { margin-left: auto; margin-right: auto; }
  .hero-photo { order: -1; }
}

/* Hero centrado (sin foto) */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.hero-inner .hero-actions,
.hero-inner .hero-social { justify-content: center; }
.hero-inner .hero-lead { margin-left: auto; margin-right: auto; }

/* ============================================================
   6. Stats (about)
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.about-lead { font-size: 1.15rem; color: var(--ink); font-weight: 500; margin-bottom: 1.2rem; }
.about-grid p { color: var(--body); }
.about-highlights { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.8rem; }
.about-highlights li { display: flex; align-items: flex-start; gap: 0.7rem; color: var(--ink); font-weight: 500; }
.about-highlights i { color: var(--accent); margin-top: 0.25rem; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.stat-num .suffix { -webkit-text-fill-color: initial; color: var(--accent-2); }
.stat-label { color: var(--muted); font-size: 0.9rem; margin-top: 0.4rem; }

@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* Fortalezas (reemplazo de estadísticas) */
.strengths { display: grid; gap: 1rem; }
.strength {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.35rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.strength:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.strength .s-ico {
  flex-shrink: 0; width: 3rem; height: 3rem; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff; background: var(--grad); box-shadow: var(--shadow-accent);
}
.strength h3 { font-size: 1.12rem; margin-bottom: 0.25rem; }
.strength p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ============================================================
   7. Servicios
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card::before {
  content: "";
  position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.6rem; height: 3.6rem;
  border-radius: 14px;
  font-size: 1.5rem;
  color: #fff;
  background: var(--grad);
  box-shadow: var(--shadow-accent);
  margin-bottom: 1.3rem;
  transition: transform 0.3s ease;
}
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.06); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* Tarjeta de servicio destacada (WhatsApp) */
.service-card.featured {
  background: linear-gradient(135deg, #5b53f0 0%, #7c3aed 55%, #06b6d4 120%);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.service-card.featured::before { display: none; }
.service-card.featured .service-icon { background: rgba(255, 255, 255, 0.18); box-shadow: none; }
.service-card.featured h3 { color: #fff; }
.service-card.featured p { color: rgba(255, 255, 255, 0.9); }
.service-card.featured:hover { box-shadow: 0 26px 50px -18px rgba(91, 83, 240, 0.7); }
.service-tag {
  position: absolute; top: 1.1rem; right: 1.1rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.7rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.22); color: #fff;
  padding: 0.28rem 0.75rem; border-radius: 50px;
}

/* Proceso / Cómo trabajo */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.process-step {
  position: relative;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.2rem 1.6rem 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.process-step .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  font-family: var(--font-head); font-weight: 800; font-size: 1rem;
  color: #fff; background: var(--grad); box-shadow: var(--shadow-accent);
  margin-bottom: 1rem;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.process-step p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ============================================================
   8. Timeline experiencia
   ============================================================ */
.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-left: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--accent), var(--accent-2));
}
.tl-item { position: relative; padding-bottom: 2.5rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -2rem; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(91,83,240,0.15);
}
.tl-date {
  display: inline-block;
  font-family: var(--font-head); font-weight: 600; font-size: 0.8rem;
  color: var(--accent);
  background: var(--grad-soft);
  padding: 0.25rem 0.75rem; border-radius: 50px;
  margin-bottom: 0.6rem;
}
.tl-item h3 { font-size: 1.25rem; margin-bottom: 0.15rem; }
.tl-role { font-family: var(--font-head); font-weight: 600; color: var(--accent-2); margin-bottom: 0.6rem; }
.tl-item p { color: var(--muted); margin: 0; }

/* Educación en dos columnas */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.edu-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.edu-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.edu-card .edu-ico { color: var(--accent); font-size: 1.5rem; margin-bottom: 0.8rem; }
.edu-card h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.edu-card .edu-sub { color: var(--accent-2); font-weight: 600; font-family: var(--font-head); font-size: 0.95rem; }
.edu-card .edu-date { color: var(--muted); font-size: 0.85rem; margin-top: 0.4rem; }

/* ============================================================
   9. Habilidades
   ============================================================ */
.skills-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tech-item {
  aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--body); font-size: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.tech-item span { font-size: 0.7rem; font-family: var(--font-head); font-weight: 500; color: var(--muted); }
.tech-item:hover { transform: translateY(-6px); color: var(--accent); border-color: var(--accent); box-shadow: var(--shadow-md); }

.flow-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.flow-list li {
  display: flex; align-items: flex-start; gap: 0.9rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.flow-list li:hover { transform: translateX(5px); box-shadow: var(--shadow-sm); }
.flow-list .flow-ico {
  flex-shrink: 0; width: 2.2rem; height: 2.2rem; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-soft); color: var(--accent);
}
.flow-list strong { color: var(--ink); font-family: var(--font-head); }

@media (max-width: 820px) {
  .skills-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   10. Proyectos
   ============================================================ */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.project-card {
  position: relative;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.9rem 1.7rem; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.project-card .p-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.project-card .p-ico {
  width: 3rem; height: 3rem; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-soft); color: var(--accent); font-size: 1.3rem;
}
.project-card .p-tag {
  font-size: 0.72rem; font-weight: 600; font-family: var(--font-head);
  color: var(--accent-2); background: rgba(6,182,212,0.1);
  padding: 0.25rem 0.7rem; border-radius: 50px; letter-spacing: 0.03em;
}
.project-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.project-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ============================================================
   11. Intereses
   ============================================================ */
.interest-band { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.interest-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: #fff; border: 1px solid var(--border); border-radius: 50px;
  padding: 0.6rem 1.2rem; font-weight: 500; color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.interest-pill i { color: var(--accent); }
.interest-pill:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--accent); }

/* ============================================================
   12. Contacto
   ============================================================ */
.contact-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #5b53f0 0%, #7c3aed 50%, #06b6d4 120%);
  border-radius: 28px;
  padding: 4rem 3rem;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-accent);
}
.contact-card::after {
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.5;
}
.contact-card > * { position: relative; z-index: 2; }
.contact-card h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.contact-card p { color: rgba(255,255,255,0.92); max-width: 42rem; margin: 0 auto 2rem; font-size: 1.1rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.contact-card .btn-white {
  background: #fff; color: #4338ca; border: 0;
}
.contact-card .btn-white:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(0,0,0,0.4); color: #4338ca; }
.contact-methods { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; justify-content: center; margin-top: 2rem; }
.contact-methods a { color: #fff; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.contact-methods a:hover { color: #e0e7ff; }

/* Contacto a dos columnas */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem 3rem;
  align-items: center;
  text-align: left;
}
.contact-cta .eyebrow { color: #e0e7ff; }
.contact-cta h2 { text-align: left; margin-bottom: 1rem; }
.contact-cta p { color: rgba(255,255,255,0.92); max-width: none; margin: 0 0 1.75rem; font-size: 1.08rem; }
.contact-info { display: grid; gap: 1rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  color: #fff;
  transition: background 0.25s ease, transform 0.25s ease;
}
a.contact-item:hover { background: rgba(255,255,255,0.18); transform: translateY(-3px); color: #fff; }
.contact-item .ci-ico {
  flex-shrink: 0; width: 2.8rem; height: 2.8rem; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem; background: rgba(255,255,255,0.18);
}
.contact-item .ci-label {
  display: block; font-family: var(--font-head);
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75;
}
.contact-item .ci-value { display: block; font-weight: 600; word-break: break-word; }
.contact-socials a { color: #fff; margin-right: 0.9rem; font-weight: 600; }
.contact-socials a:last-child { margin-right: 0; }
.contact-socials a:hover { color: #e0e7ff; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .contact-cta h2 { text-align: center; }
  .contact-cta p { margin-left: auto; margin-right: auto; }
  .contact-cta .contact-actions { justify-content: center; }
}

/* ============================================================
   13. Footer
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: #8b95ad;
  padding: 3.5rem 0 2rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-about { max-width: 24rem; }
.footer-brand { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: #fff; }
.footer-brand span { color: #a5b4fc; }
.footer-tagline { color: #8b95ad; font-size: 0.92rem; margin: 0.8rem 0 1.1rem; }
.footer-col-title { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.9rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: #b9c1d6; font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 0.7rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); color: #cdd4e6;
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.footer-social a:hover { background: var(--grad); color: #fff; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 2.5rem; padding-top: 1.5rem; text-align: center; font-size: 0.85rem; }

/* ============================================================
   14. Botón volver arriba
   ============================================================ */
.to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; border-radius: 50%;
  box-shadow: var(--shadow-accent);
  opacity: 0; visibility: hidden; transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 1030;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: #fff; transform: translateY(-4px); }

/* ============================================================
   15. Legal (privacidad / términos)
   ============================================================ */
.legal-hero {
  background: linear-gradient(160deg, #0b1020, #121933);
  color: #fff; padding: calc(var(--nav-h) + 3.5rem) 0 3rem;
}
.legal-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.legal-hero p { color: #9aa4bd; margin: 0; }
.legal-body { padding: 4rem 0 5rem; }
.legal-body .intro { font-size: 1.1rem; color: var(--ink); }
.legal-body h2 { font-size: 1.4rem; margin: 2.5rem 0 0.7rem; color: var(--ink); }
.legal-body h3 { font-size: 1.1rem; margin: 1.6rem 0 0.5rem; color: var(--ink); }
.legal-body p { color: var(--body); max-width: 52rem; }
.legal-body ul { color: var(--body); max-width: 52rem; margin: 0 0 1rem; padding-left: 1.25rem; }
.legal-body li { margin-bottom: 0.45rem; }
.legal-body a { color: var(--accent); font-weight: 500; }
.legal-body a:hover { text-decoration: underline; }
.legal-note {
  max-width: 52rem;
  margin-top: 2.75rem;
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1.1rem 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Tarjeta de datos de verificación */
.verify-card {
  max-width: 660px;
  margin-top: 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.verify-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  padding: 0.95rem 1.4rem;
  border-bottom: 1px solid var(--border);
}
.verify-row:last-child { border-bottom: 0; }
.verify-row .k {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--muted);
  min-width: 200px;
  font-size: 0.88rem;
}
.verify-row .v { color: var(--ink); font-weight: 600; }

/* ============================================================
   16. Animaciones
   ============================================================ */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.6);} 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0);} 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0);} }
@keyframes wheel { 0% { opacity:1; top:6px;} 100% { opacity:0; top:16px;} }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
