
    :root {
      --bg: #0c1220;
      --bg-2: #0f1a33;
      --text: #eaf0ff;
      --muted: #a7b6dc;
      --card: #0f1526;
      --border: rgba(255,255,255,.08);
      --accent: #6aa8ff;
      --ring: rgba(106,168,255,.12);
      --speed: 220ms;
    }

    * { box-sizing: border-box; }
    html, body { height: 100%; scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
      color: var(--text);
      background:
        radial-gradient(1200px 600px at 10% 10%, #101b35 0%, transparent 60%),
        radial-gradient(1000px 500px at 90% 90%, #0b1426 0%, transparent 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    .container { max-width: 1200px; margin: 0 auto; padding: 24px; }

    /* --------- HEADER / NAV (la tuya) --------- */
    .header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 8px 0 24px; position: sticky; top: 0; z-index: 30;
      backdrop-filter: blur(8px);
      background: linear-gradient(180deg);
      border-bottom: 1px solid var(--border);
      transition: padding .18s ease, background .18s ease, border-color .18s ease;
    }
    .scrolled .header { padding: 4px 0 16px; background: linear-gradient(180deg, rgba(12,18,32,.92), rgba(12,18,32,.72)); border-color: rgba(255,255,255,.12); }

    .brand { position: relative; display: flex; gap: 10px; align-items: center; font-weight: 800; letter-spacing: .2px; }
    .brand .dot { width: 10px; height: 10px; border-radius: 999px; background: var(--accent); opacity: .9; box-shadow: 0 0 0 4px var(--ring) }
    .brand > a { color: var(--text); text-decoration: none; padding: 6px 0; }

    .nav-right { display: flex; align-items: center; gap: 10px; }
    .nav { display: flex; gap: 6px; align-items: center; }
    .nav a {
      color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: .2px;
      padding: 10px 14px; border: 1px solid transparent; border-radius: 999px;
      transition: background .2s ease, border-color .2s ease, transform .2s ease;
    }
    .nav a:hover { background: rgba(255,255,255,.02); border-color: var(--border); transform: translateY(-1px); }
    .nav a.active { border-color: rgba(106,168,255,.35); box-shadow: 0 0 0 4px var(--ring); }

    /* --- Submenú del brand (slide + typewriter + cursor) --- */
    .submenu { position: absolute; left: 0; top: 100%; transform: translateY(0); opacity: 0; pointer-events: none;
      min-width: 220px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
      border: 1px solid var(--border); border-radius: 14px; padding: 8px; margin-top: 6px; backdrop-filter: blur(10px);
      transition: opacity .18s ease, transform .18s ease; }
    .brand:hover .submenu, .brand:focus-within .submenu { opacity: 1; transform: translateY(10px); pointer-events: auto; }
    .submenu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; border: 1px solid transparent; overflow: hidden; white-space: nowrap }
    .submenu a:hover { background: rgba(255,255,255,.03); border-color: var(--border) }
    .typewrap { display:inline-flex; align-items:center; }
    .type { display:inline-block; white-space:nowrap; }
    .cursor { display:inline-block; width:auto; margin-left:2px; opacity:.9; animation: blink 1s steps(1, end) infinite; }
    @keyframes blink { 50% { opacity: 0; } }

    /* --- Selector de idioma circular --- */
    .lang { position: relative; }
    .lang-btn {
      width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
      border: 1px solid var(--border); background: rgba(255,255,255,.02); cursor: pointer;
    }
    .lang-btn:hover { box-shadow: 0 0 0 6px var(--ring); }
    .lang-pop {
      position: absolute; right: 0; top: calc(100% + 10px);
      background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
      border: 1px solid var(--border); border-radius: 14px; padding: 8px; display: none; backdrop-filter: blur(10px);
      animation: pop .18s ease;
    }
    .lang-pop.open { display: block; }
    .lang-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
    .lang-item:hover { background: rgba(255,255,255,.03); border-color: var(--border); }
    .flag { width: 22px; height: 22px; display: grid; place-items: center; font-size: 16px; border-radius: 50%; background: rgba(255,255,255,.08); }
    @keyframes pop { from { transform: translateY(-6px); opacity: 0 } to { transform: none; opacity: 1 } }

    /* --------- HERO (igual al que te gustó) --------- */
    .hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 32px 0 80px; }
    @media (max-width: 920px) { .hero { grid-template-columns: 1fr; gap: 28px; padding-bottom: 48px; } }

    .h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; margin: 0 0 12px; font-weight: 900; letter-spacing: -.5px; }
    .subtitle { font-size: clamp(14px, 1.7vw, 18px); color: var(--muted); max-width: 56ch; margin: 8px 0 28px; }

    .ctas .btn { appearance: none; border: 1px solid var(--border); background: transparent; color: var(--text); border-radius: 999px; padding: 12px 18px; font-weight: 600; letter-spacing: .2px; transition: border-color .2s ease, background-color .2s ease; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
    .ctas .btn:hover { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.02); }

    .card { position: relative; border-radius: 32px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)); border: 1px solid var(--border); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.45); isolation: isolate; }
    .card::before { content: ""; position: absolute; inset: -60% -10% auto -10%; height: 140%;
      background: repeating-linear-gradient(115deg, rgba(255,255,255,0.06), rgba(255,255,255,0.06) 1px, transparent 1px, transparent 28px);
      pointer-events: none; z-index: 0; mix-blend-mode: soft-light; opacity: .6; }
    .card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255,255,255,.06), transparent 35%); z-index: 1; pointer-events: none; }
    .portrait { position: relative; z-index: 0; display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: contrast(1.05); }
    .caption { position: absolute; inset: auto 16px 16px 16px; z-index: 2; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); letter-spacing: .4px; }
    .badge { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.02); }

    /* --------- SECCIONES --------- */
    section { padding: 24px 0 72px; scroll-margin-top: 90px; }
    .h2 { font-size: clamp(22px, 4vw, 32px); margin: 0 0 12px; font-weight: 800; letter-spacing: -.2px; }
    .p-muted { color: var(--muted); max-width: 70ch; }

    .grid { display: grid; gap: 14px; }
    .cols-3 { grid-template-columns: repeat(3, 1fr); }
    @media (max-width: 920px) { .cols-3 { grid-template-columns: 1fr; } }

    .panel {
      border-radius: 24px; border: 1px solid var(--border);
      background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
      padding: 18px; box-shadow: 0 12px 36px rgba(0,0,0,.35);
      transition: transform .2s ease, border-color .2s ease;
    }
    .panel:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.16); }

    .btn { appearance: none; border: 1px solid var(--border); background: transparent; color: var(--text); border-radius: 999px; padding: 10px 14px; font-weight: 600; letter-spacing: .2px; cursor: pointer; }
    .btn:hover { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.02); }

    .sep { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 36px 0; }

    /* --------- DIALOG (servicios) --------- */
    dialog.modal { border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); color: var(--text); padding: 16px 16px 10px; width: min(760px, 92vw); }
    dialog::backdrop { background: rgba(0,0,0,.5); }

    /* --------- MODAL ESTILO VENTANA (proyectos/brand) --------- */
    dialog.window{ border:1px solid var(--border); border-radius:16px; padding:0; color:var(--text);
      background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); width:min(920px, 92vw); }
    .window[open]{ animation: zoomIn .18s ease }
    dialog::backdrop{ background: rgba(0,0,0,.45) }
    @keyframes zoomIn{ from{ transform: scale(.96); opacity:0 } to{ transform: scale(1); opacity:1 } }
    .toolbar{
      display:flex; align-items:center; gap:10px; padding:10px; border-bottom:1px solid var(--border);
      background: linear-gradient(180deg, rgba(15,23,38,.9), rgba(12,18,32,.7));
    }
    .traffic{ display:flex; gap:8px; padding:0 8px }
    .dot{ width:12px; height:12px; border-radius:50% }
    .dot.red{ background:#ff5f56 } .dot.yellow{ background:#ffbd2e } .dot.green{ background:#27c93f }
    .url{ flex:1; display:flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid var(--border);
      border-radius:10px; background: rgba(255,255,255,.04); color:var(--muted); font-size:13px; }
    .controls{ display:flex; gap:8px }
    .icon-btn{ width:34px; height:34px; border-radius:10px; border:1px solid var(--border); background: rgba(255,255,255,.02); display:grid; place-items:center; cursor:pointer }
    .icon-btn:hover{ box-shadow: 0 0 0 6px var(--ring) }
    .window-body{ padding:16px; max-height:70vh; overflow:auto }
    .hidden{ display:none !important }

    /* i18n fade */
    .i18n-fade{ transition: opacity var(--speed) ease }
    .i18n-fade.out{ opacity:0 } .i18n-fade.in{ opacity:1 }

    /* reduced motion */
    @media (prefers-reduced-motion: reduce){
      .submenu, .lang-pop, .window[open], .i18n-fade{ animation:none !important; transition:none !important }
    }

    /* Mantener visible mientras esté sobre brand o submenu */
.brand:hover .submenu,
.brand:focus-within .submenu,
.submenu:hover {
  opacity: 1;
  transform: translateY(10px);
  pointer-events: auto;
}

/* Submenú sin margen (evita el gap) y con "puente" superior */
.submenu{
  position: absolute;
  left: 0;
  top: calc(100% + 8px);   /* antes tenías margin-top; quitalo */
  margin-top: 0;
  min-width: 220px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  backdrop-filter: blur(10px);
  transform: translateY(0);
  opacity: 0;
  pointer-events: auto;     /* IMPORTANTE: permitir capturar hover */
  transition: opacity .18s ease, transform .18s ease;
}

/* "Puente" para que el cursor nunca caiga en un vacío al bajar */
.submenu::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top:-10px;               /* área invisible encima del menú */
  height:10px;
}
.brand .submenu.force-open{
  opacity:1; transform: translateY(10px); pointer-events:auto;
}
.typewrap{ display:inline-flex; align-items:center; }
.type{ display:inline-block; white-space:nowrap; }
.cursor{ display:inline-block; margin-left:2px; opacity:.9; animation: blink 1s steps(1, end) infinite; }
@keyframes blink{ 50%{ opacity:0 } }



/* --- Hover estable del submenu + “puente” --- */
.brand:hover .submenu,
.brand:focus-within .submenu,
.submenu:hover {
  opacity: 1;
  transform: translateY(10px);
  pointer-events: auto;
}
.submenu{
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  margin-top: 0;
  min-width: 220px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  backdrop-filter: blur(10px);
  transform: translateY(0);
  opacity: 0;
  pointer-events: auto; /* IMPORTANTE */
  transition: opacity .18s ease, transform .18s ease;
}
.submenu::before{
  content:""; position:absolute; left:0; right:0; top:-10px; height:10px;
}

/* --- Botón hamburguesa --- */
.burger{
  display:none; /* desktop */
  width:44px; height:44px; border-radius:999px;
  border:1px solid var(--border); background: transparent; cursor:pointer;
  align-items:center; justify-content:center; gap:4px; position:relative;
}
.burger span{
  position:absolute; width:20px; height:2px; background: var(--text);
  transition: transform .18s ease, opacity .18s ease;
}
.burger span:nth-child(1){ transform: translateY(-6px) }
.burger span:nth-child(2){ transform: translateY(0) }
.burger span:nth-child(3){ transform: translateY(6px) }
.header.open .burger span:nth-child(1){ transform: rotate(45deg) }
.header.open .burger span:nth-child(2){ opacity:0 }
.header.open .burger span:nth-child(3){ transform: rotate(-45deg) }

/* --- Panel móvil (convierte .nav-right en panel) --- */
@media (max-width: 880px){
  .burger{ display:inline-flex; }
  .nav-right{
    position: fixed;
    top: 64px; right: 12px; left: 12px;
    background: linear-gradient(180deg, rgba(15,23,38,.95), rgba(12,18,32,.90));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    display: flex; flex-direction: column; align-items: stretch; gap: 12px;
    transform: translateY(-10px) scale(.98);
    opacity: 0; pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;
    z-index: 60;
  }
  .header.open .nav-right{ opacity:1; transform:none; pointer-events:auto; }

  .nav{ flex-direction: column; gap: 4px; }
  .nav a{ display:block; width:100%; padding: 12px 14px; }

  /* Submenú del brand en mobile: abrible con tap (clase .force-open desde JS) */
  .brand .submenu{ left:12px; right:12px; top: calc(100% + 10px); }
  .brand .submenu.force-open{ opacity:1; transform: translateY(10px); pointer-events:auto; }

  /* Popover de idiomas dentro del panel (mejor legibilidad) */
  .lang{ align-self: flex-end; }
  .lang-pop{ right:0; }

  /* Bloquear scroll del body cuando el panel está abierto */
  body.menu-open{ overflow:hidden; }
}

/* Scrim para cerrar tocando fuera */
.scrim{
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none; transition: opacity .18s ease; z-index: 50;
}
body.menu-open .scrim{ opacity: 1; pointer-events: auto; }

/* Typewriter visual */
.typewrap{ display:inline-flex; align-items:center; }
.type{ display:inline-block; white-space:nowrap; }
.cursor{ display:inline-block; margin-left:2px; opacity:.9; animation: blink 1s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }
/* spacing del HERO */
.hero{
  padding: 72px 0 200px; /* arriba | abajo (desktop) */
}
@media (max-width: 920px){
  .hero{
    padding: 48px 0 72px; /* mobile */
  }
}











/* Botón pause/play */
.neuro-toggle{
  position:absolute; top:12px; right:12px;
  width:38px; height:38px; display:grid; place-items:center;
  border-radius:999px; border:1px solid var(--border);
  background:rgba(255,255,255,.06); cursor:pointer;
  transition:transform .15s ease, border-color .2s ease, background .2s ease;
  z-index:5;
}
.neuro-toggle:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.18); }
.neuro-toggle svg{ width:18px; height:18px; fill:var(--text); opacity:.9 }
.neuro-toggle[aria-pressed="true"] svg{ /* ícono play cuando está en pausa */
  d: path("M8 5v14l11-7z"); /* no todos los navegadores soportan 'd:' dinámico; JS cambia el ícono también */
}
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}









/* HERO: más aire arriba/abajo */
.hero{ padding:72px 0 120px; }
@media (max-width:920px){ .hero{ padding:48px 0 72px; } }

/* ===== Sobre mí (sin paneles/chips) ===== */
.about-grid{
  display:grid; grid-template-columns:1.2fr .8fr; gap:18px; align-items:start;
}
@media (max-width:920px){ .about-grid{ grid-template-columns:1fr; } }

.lead{ color:var(--muted); max-width:70ch; margin:0 0 18px; }
.btn-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }

/* Botón de icono (LinkedIn) */
.btn-icon{
  width:42px; height:42px; display:grid; place-items:center;
  border-radius:50%; border:1px solid var(--border); background:transparent; cursor:pointer;
}
.btn-icon:hover{ box-shadow:0 0 0 6px var(--ring); }
.btn-icon svg{ width:18px; height:18px; fill:var(--text); opacity:.9 }

/* ===== Timeline fluida ===== */
.timeline{
  --line: 0%;
  position:relative; padding-left:34px; margin-top:6px;
}
.timeline::before{
  content:""; position:absolute; left:12px; top:0; bottom:0; width:2px;
  background: var(--border); border-radius:2px;
}
.timeline::after{
  content:""; position:absolute; left:12px; top:0; width:2px; height:var(--line);
  background: linear-gradient(180deg, var(--accent), rgba(106,168,255,.2));
  border-radius:2px;
}
.t-item{ position:relative; margin:0 0 16px 0; }
.t-item:last-child{ margin-bottom:0; }
.t-dot{
  position:absolute; left:6px; top:3px; width:12px; height:12px; border-radius:50%;
  background: rgba(255,255,255,.06); border:2px solid var(--border); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.t-title{ margin:0; font-weight:700; letter-spacing:-.1px; }
.t-meta{ color:var(--muted); font-size:13px; margin:2px 0 6px; }
.t-desc{ color:var(--muted); margin:0 0 2px; }

/* activo al pasar por el centro de la pantalla */
.t-item.is-active .t-dot{
  transform: scale(1.15);
  border-color: var(--accent);
  box-shadow:0 0 0 6px var(--ring);
}

/* un pelín más legible en mobile */
@media (max-width:920px){
  .t-meta{ font-size:12px; }
}












/* Timeline items clickeables (sin look de panel) */
.t-card{
  display:block; text-decoration:none; color:inherit;
  padding:6px 8px; border-radius:10px; border:1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
  cursor:pointer;
}
.t-card:hover{ background: rgba(255,255,255,.02); border-color: var(--border); }
.t-card:focus-visible{ outline:none; box-shadow: 0 0 0 4px var(--ring); border-color: rgba(106,168,255,.35); }
.t-item:hover .t-dot,
.t-item.is-active .t-dot{ border-color: var(--accent); box-shadow: 0 0 0 6px var(--ring); }










/* Imagen dentro del modal-ventana */
.win-figure{ margin:12px 0 0 }
.win-img{
  width:100%; height:auto; display:block;
  border-radius:12px; border:1px solid var(--border);
  box-shadow: 0 8px 26px rgba(0,0,0,.35);
}
.win-figure .p-muted{ margin-top:8px }













/* ===== FAQ — lista lineal, sin tarjetas, sin bordes redondos ===== */
.faq { padding: 28px 0 84px; }
.faq .qa-list { display:block; margin-top:14px; }

/* líneas finas como divisores; nada de cajas */
.faq .qa {
  border-top: 1px solid var(--border);
}
.faq .qa:last-child {
  border-bottom: 1px solid var(--border);
}

.faq .qa-q{
  all:unset;
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:baseline;
  gap:14px;
  width:100%;
  cursor:pointer;
  padding:16px 0;
  letter-spacing:-.2px;
  font-weight:800;
  line-height:1.24;
  /* sin hover pintado */
}
.faq .qa-q:focus-visible{
  outline:2px solid rgba(106,168,255,.45);
  outline-offset:2px;
}

/* chevron minimal: solo rota al abrir, sin colores extra */
.faq .chev{
  width:16px; height:16px;
  opacity:.9;
  transform: rotate(0deg);
  transition: transform .18s ease;
}
.faq .qa-q[aria-expanded="true"] .chev{
  transform: rotate(180deg);
}

/* la respuesta aparece con altura animada; sin cajas */
.faq .qa-a{
  height:0; overflow:hidden;
  transition: height .22s ease;
}
@media (prefers-reduced-motion: reduce){
  .faq .qa-a{ transition: none; }
}

/* tipografía limpia para la respuesta */
.faq .qa-a .qa-a-inner{
  padding: 0 0 16px 0;
}
.faq .qa-a .p-muted{
  color: var(--muted);
  max-width: 70ch;
}


































/* ===== Contacto ===== */
.contact { padding: 28px 0 84px; }
.contact-form { max-width: 720px; }

.contact-form .hp { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }

.field { position:relative; margin: 18px 0 8px; }
.field input, .field textarea{
  width:100%; padding: 18px 0 10px; background:transparent; border:none; color:var(--text);
  border-bottom:1px solid var(--border); outline:none; font: inherit;
  transition: border-color .18s ease, background-color .18s ease;
}
.field textarea{ resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus{ border-color: rgba(106,168,255,.45); background: rgba(255,255,255,.02); }

.field label{
  position:absolute; left:0; top:14px; pointer-events:none; color: var(--muted); opacity:.95;
  transform-origin: left top; transition: transform .16s ease, opacity .16s ease;
}
.field input:not(:placeholder-shown) + label,
.field input:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field textarea:focus + label{
  transform: translateY(-12px) scale(.88); opacity:.85;
}
.field .err{ display:block; min-height: 16px; font-size:12px; color:#ff9e9e; padding-top:6px; }

.btn-send{
  position:relative; display:inline-grid; place-items:center;
  min-width: 120px; height: 40px; padding: 0 16px;
  border:1px solid var(--border); background: transparent; color: var(--text);
  border-radius: 999px; font-weight:700; letter-spacing:.2px; cursor:pointer;
  transition: transform .15s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}
.btn-send:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.02); }
.btn-send:disabled{ opacity:.6; cursor:default; }

.btn-spinner{
  position:absolute; inset:auto 12px auto auto; width:16px; height:16px; border-radius:50%;
  border:2px solid rgba(255,255,255,.25); border-top-color: var(--text); display:none;
  animation: spin 0.7s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
.btn-send.loading .btn-spinner{ display:block; }

.form-toast{
  display:flex; align-items:center; gap:10px; margin-top:14px;
  border:1px solid var(--border); border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  padding: 10px 12px; box-shadow: 0 12px 24px rgba(0,0,0,.28);
}
.form-toast[hidden]{ display:none; }
.form-toast svg{ width:18px; height:18px; fill:#b8ffcc; }

.alt-mail{ margin-top: 12px; color: var(--muted); }
.alt-mail a{ color: var(--text); text-decoration: none; border-bottom:1px dashed var(--border); }
.alt-mail a:hover{ border-bottom-color: rgba(255,255,255,.4); }

/* inputs sin placeholder para activar el label flotante */
.field input::placeholder, .field textarea::placeholder{ color: transparent; }
















/* ===== Blog · Cards Lean (activa con .blog.cards) ===== */
.blog.cards .posts{
  border-top: none;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}
@media (max-width: 1080px){ .blog.cards .posts{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px){ .blog.cards .posts{ grid-template-columns: 1fr; } }

.blog.cards .post{
  display: grid;
  grid-template-columns: 1fr; grid-auto-rows: auto;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;               /* sutil, moderno */
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  box-shadow: 0 12px 36px rgba(0,0,0,.28);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  position: relative; isolation: isolate;
  text-decoration: none; color: var(--text);
}
.blog.cards .post::after{            /* shimmer diagonal sutil */
  content:""; position:absolute; inset:auto -30% -2px -30%; height:2px;
  background: linear-gradient(115deg, rgba(106,168,255,0), rgba(106,168,255,.75), rgba(106,168,255,0));
  opacity:.0; transform: translateY(4px);
  transition: opacity .28s ease, transform .28s ease;
}
.blog.cards .post:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 14px 44px rgba(0,0,0,.34);
}
.blog.cards .post:hover::after{ opacity:.9; transform: translateY(0); }

.blog.cards .p-date{
  order: 3; font-size: 12px; letter-spacing:.6px; color: var(--muted); opacity:.92;
}
.blog.cards .p-main{ order: 1; }
.blog.cards .p-title{ font-weight: 900; letter-spacing:-.2px; line-height:1.2; margin: 2px 0 0; }
.blog.cards .p-excerpt{ color: var(--muted); margin: 6px 0 0; max-width: none; }

.blog.cards .p-arrow{
  order: 2; justify-self: end; align-self: start;
  opacity:.85; transition: transform .18s ease, opacity .18s ease;
}
.blog.cards .post:hover .p-arrow{ transform: translateX(4px); opacity:1; }

/* Contacto: base ya la tenés, agregamos acciones y WhatsApp */
.contact-actions{
  display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:8px;
}

/* Botón WhatsApp (minimal, sin gritar) */
.btn-wa{
  display:inline-grid; grid-auto-flow:column; gap:8px; align-items:center;
  min-height:40px; padding:0 14px; border-radius:999px; text-decoration:none;
  border:1px solid var(--border); background:transparent; color:var(--text);
  transition: transform .15s ease, border-color .2s ease, background .2s ease;
}
.btn-wa:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.02); }
.btn-wa svg{ width:16px; height:16px; fill:#25D366; }

/* Botón copiar (ya tenías estilo .btn-ghost, reutilizamos) */
.btn-ghost{
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  letter-spacing: .2px;
  text-decoration: none;
}
.btn-ghost:hover{ border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.02); }











/* ===== CTA con flecha (solo imagen) ===== */
.cta-arrow{ padding: 28px 0 48px; }
.cta-arrow__wrap{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  border-top:1px solid var(--border); padding-top:16px;
}
.cta-arrow__title{ margin:0; font-weight:900; letter-spacing:-.2px; line-height:1.2; }

.cta-arrow__btn.only-arrow{
  display:inline-grid; place-items:center;
  width:44px; height:44px; border-radius:999px;
  text-decoration:none; border:1px solid var(--border); background:transparent;
  transition: transform .18s ease, border-color .2s ease, background .2s ease;
}
.cta-arrow__btn.only-arrow:hover{
  transform: translateY(-1px); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.02);
}
.cta-arrow__btn.only-arrow img{
  display:block; width:30px; height:30px;
  animation: arrowBob 1.6s ease-in-out infinite;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .cta-arrow__btn.only-arrow img{ animation: none; }
}
@media (max-width: 720px){
  .cta-arrow__wrap{ flex-direction:column; align-items:flex-start; }
}
























































/* ===== Footer ===== */
.site-footer{
  padding: 32px 0 40px;
  border-top:1px solid var(--border);
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(255,255,255,.05), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
}

.f-top{
  display:grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 16px; align-items:start;
}
@media (max-width: 880px){
  .f-top{ grid-template-columns: 1fr; gap: 10px; }
}

.f-brand{ display:flex; flex-direction:column; gap:8px; }
.f-brand .dot{ width:10px; height:10px; border-radius:999px; background:var(--accent); box-shadow:0 0 0 4px rgba(106,168,255,.08); }
.f-logo{ font-weight:800; color:var(--text); text-decoration:none; }
.f-tag{ margin:0; }

.f-nav{ display:flex; flex-wrap:wrap; gap:12px; }
.f-nav a{
  color:var(--text); text-decoration:none; font-weight:600; letter-spacing:.2px;
  padding:6px 10px; border-radius:999px; border:1px solid transparent;
  transition: border-color .2s ease, background .2s ease, transform .18s ease;
}
.f-nav a:hover{ border-color:var(--border); background:rgba(255,255,255,.02); transform: translateY(-1px); }

.f-contact{ display:flex; flex-direction:column; gap:8px; }
.f-ico{
  display:grid; grid-template-columns: 18px 1fr; align-items:center; gap:10px;
  color:var(--text); text-decoration:none;
}
.f-ico svg{ width:16px; height:16px; fill: currentColor; opacity:.9; }
.f-ico span{ border-bottom:1px dashed var(--border); }
.f-ico:hover span{ border-bottom-color: rgba(255,255,255,.4); }

.f-bottom{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  border-top:1px solid var(--border); margin-top:18px; padding-top:12px;
}
.f-legal{ display:flex; gap:8px; align-items:center; }
.f-legal a{ color:var(--text); text-decoration:none; }
.dot-sep{ color:var(--muted); opacity:.8; }

.visually-hidden{
  position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px);
  white-space:nowrap; border:0; padding:0; margin:-1px;
}
/* ===== Footer: panel de formulario oculto con expansión suave ===== */
.f-form{
  overflow: hidden; height: 0; border-top: 1px solid var(--border);
  margin-top: 14px; transition: height .25s ease;
}
.f-form .hp{ position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }

.f-form form{ padding: 14px 0; }
.f-form .f-form-actions{ display:flex; gap:10px; align-items:center; margin-top:8px; }
@media (prefers-reduced-motion: reduce){
  .f-form{ transition: none; }
}
  





















/* ===== Loader tipográfico “hacker” ===== */
.term{
  position: fixed; inset: 0; z-index: 9999;
  background: #000;             /* pantalla negra total */
  color: #32ff7e;               /* verde “terminal” */
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;         /* fade in/out del overlay */
}
.term.is-active{ opacity: 1; pointer-events: auto; }
body.term-lock{ overflow: hidden; }

/* envoltorio del terminal (texto arriba-izquierda) */
.term__wrap{
  position: absolute; inset: 0;
  padding: 24px 18px;
  display: block;
  overflow: auto;          /* <— importante para scrollear */
}

/* “scanlines” y leve grano (muy sutiles para realismo) */
.term__wrap::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    repeating-linear-gradient(180deg, rgba(50,255,126,.05) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen; opacity:.35;
}
.term__wrap::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(120% 110% at 50% 50%, transparent 0, rgba(0,0,0,.35) 85%);
}

/* bloque de código */
.term__code{
  position: relative;
  margin: 0;
  font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap; word-break: break-word;
  text-shadow: 0 0 6px rgba(50,255,126,.35), 0 0 20px rgba(50,255,126,.12);
}

/* cursor “█” parpadeando */
.cursor{
  display:inline-block; margin-left:2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* reduce motion: sin parpadeos / transiciones */
@media (prefers-reduced-motion: reduce){
  .term{ transition: none; }
  .cursor{ animation: none; opacity: .8; }
}

/* En modo terminal: los links que se pulsan durante salida no se ven “azules” */
.term a{ color: #32ff7e; text-decoration: none; border-bottom: 1px dashed rgba(50,255,126,.35); }
/* terminal fullscreen already has: .term { position:fixed; inset:0; background:#000; } */
