@font-face{font-family:'Outfit';src:url('/fonts/outfit-latin-wght-normal.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'DM Sans';src:url('/fonts/dm-sans-latin-wght-normal.woff2') format('woff2');font-weight:100 1000;font-style:normal;font-display:swap}

:root{
  --bg:#0B0B0B;
  --surface:#141414;
  --text:#F5F5F3;
  --soft:#CFCBC8;
  --muted:#B4B0AD;
  --line:rgba(245,245,243,.12);
  --line-strong:rgba(245,245,243,.2);
  --red:#D7261E;
  --red-hi:#E5372D;
  --display:'Outfit','DM Sans',system-ui,sans-serif;
  --body:'DM Sans',system-ui,sans-serif;
  --radius:20px;
  color-scheme:dark;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;scroll-padding-top:88px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--body);line-height:1.5}
h1,h2,h3,p,ul,ol,figure,address{margin:0}
ul,ol{padding:0;list-style:none}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
address{font-style:normal}
:focus-visible{outline:2px solid var(--red);outline-offset:3px}

.skip-link{position:absolute;left:16px;top:-80px;z-index:10;background:var(--red);color:var(--text);padding:12px 20px;border-radius:999px;font-weight:700}
.skip-link:focus{top:16px}

/* Fondo con movimiento al hacer scroll */
.bg-layer{position:fixed;left:0;top:0;width:100%;height:150%;z-index:0;pointer-events:none;background-image:linear-gradient(rgba(11,11,11,.6),rgba(11,11,11,.82)),url('/img/bg-tech.svg');background-size:cover;background-position:center top}
@keyframes drift{from{transform:translateY(0)}to{transform:translateY(-33.3%)}}
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:scroll()){
    .bg-layer{animation:drift linear both;animation-timeline:scroll(root block)}
  }
}
.page{position:relative;z-index:1}

.container{max-width:1240px;margin:0 auto;padding-left:24px;padding-right:24px}
.section{padding-top:32px;padding-bottom:96px}
.display{font-family:var(--display);font-weight:800;letter-spacing:-.03em;line-height:1.08}
.h2{font-family:var(--display);font-weight:800;font-size:clamp(30px,3.4vw,44px);line-height:1.1;letter-spacing:-.02em}

/* Botones (pill) */
.btn{display:inline-block;border-radius:999px;font-weight:700;font-size:16px;white-space:nowrap;text-align:center;transition:transform .2s cubic-bezier(.16,1,.3,1),background-color .2s}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:scale(.98)}
.btn-primary{background:var(--red);color:var(--text);padding:16px 30px}
.btn-primary:hover{background:var(--red-hi)}
.btn-ghost{border:1px solid rgba(245,245,243,.4);color:var(--text);font-weight:500;padding:15px 30px}
.btn-outline{border:1px solid rgba(245,245,243,.4);padding:15px 24px}
.btn-sm{font-size:15px;padding:12px 22px}

/* Header */
html{scroll-padding-top:84px}
.site-header{position:sticky;top:0;z-index:50;background:rgba(11,11,11,.82);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid rgba(245,245,243,.08)}
.header-inner{height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:10px}
.brand-name{font-family:var(--display);font-weight:800;font-size:24px;letter-spacing:-.02em}
.nav{display:flex;gap:28px;font-size:15px;font-weight:500;color:var(--muted)}
.nav a:hover{color:var(--red-hi)}

/* Hero */
.hero{display:flex;flex-wrap:wrap;gap:48px;align-items:center;padding-top:48px;padding-bottom:56px}
.hero-copy{flex:1.3 1 480px;min-width:0;display:flex;flex-direction:column;gap:28px}
.hero h1{font-size:clamp(34px,4vw,54px)}
.hero-lead{font-size:19px;color:var(--soft);max-width:54ch}
.hero-lead strong{color:var(--text);font-weight:700}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.hero-visual{flex:1 1 340px;min-width:0;height:480px;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line)}
.hero-visual img{width:100%;height:100%;object-fit:cover}

/* Datos clave */
.facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line-strong);border-bottom:1px solid var(--line-strong)}
.fact{padding:28px 24px 28px 0;display:flex;flex-direction:column;gap:4px}
.fact+.fact{padding-left:24px;border-left:1px solid var(--line)}
.fact-value{font-family:var(--display);font-weight:800;font-size:clamp(28px,3vw,40px);letter-spacing:-.02em;color:var(--red-hi);line-height:1.1}
.fact-label{color:var(--soft);font-size:16px}
.facts-wrap{padding-bottom:96px}

/* Servicios (bento) */
.section-title{margin-bottom:40px}
.bento{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.cell{border-radius:var(--radius);padding:32px;min-height:260px;display:flex;flex-direction:column;justify-content:flex-end;gap:12px;border:1px solid var(--line);transition:transform .3s cubic-bezier(.16,1,.3,1)}
.cell:hover{transform:translateY(-4px)}
.cell h3{font-family:var(--display);font-weight:800;font-size:26px;line-height:1.1;letter-spacing:-.02em}
.cell p{font-size:16px;color:var(--muted)}
.cell-wide{grid-column:span 4;padding:36px}
.cell-wide h3{font-size:34px}
.cell-wide p{font-size:17px;max-width:46ch}
.cell-narrow{grid-column:span 2}
.cell-a{background:url('/img/iso-layers.svg') right 24px center/auto 78% no-repeat,var(--red);border-color:transparent}
.cell-a h3{max-width:14ch}
.cell-a p{color:var(--text);max-width:38ch}
.cell-b{background:url('/img/browser.svg') right 24px top 24px/120px no-repeat,var(--surface)}
.cell-c{background:url('/img/cube.svg') right 24px top 24px/110px no-repeat,linear-gradient(160deg,#262626,#141414)}
.cell-d{background:url('/img/circuit-cell.svg') right center/cover no-repeat,var(--surface)}
.cell-d p{color:#D8D4D1}

/* Proceso */
.split{display:flex;flex-wrap:wrap;gap:48px}
.split-head{flex:1 1 280px;min-width:0}
.steps{flex:2 1 480px;min-width:0}
.step{border-top:1px solid var(--line-strong);padding:28px 0;display:flex;flex-wrap:wrap;gap:12px 32px;align-items:baseline}
.step:last-child{border-bottom:1px solid var(--line-strong)}
.step h3{flex:1 1 200px;font-family:var(--display);font-weight:800;font-size:34px;letter-spacing:-.02em;color:var(--red-hi)}
.step p{flex:1.4 1 280px;font-size:17px;color:var(--soft)}

/* Banner */
.banner{position:relative;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);min-height:300px;display:flex;align-items:flex-end}
.banner img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover}
.banner p{position:relative;padding:32px 36px;font-family:var(--display);font-weight:800;font-size:clamp(26px,3.2vw,40px);line-height:1.1;letter-spacing:-.02em;max-width:20ch;text-shadow:0 2px 14px rgba(0,0,0,.85)}

/* Planes */
.plans{display:flex;flex-wrap:wrap;gap:16px;align-items:stretch}
.plan{flex:1 1 280px;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:32px;display:flex;flex-direction:column;gap:20px;transition:transform .3s cubic-bezier(.16,1,.3,1)}
.plan:hover{transform:translateY(-4px)}
.plan-featured{flex:1.2 1 300px;background:#1C0F0E;border:2px solid var(--red);padding:40px 32px}
.plan h3{font-family:var(--display);font-weight:800;font-size:28px;letter-spacing:-.02em}
.plan-featured h3{font-size:32px}
.plan-price{font-family:var(--display);font-weight:800;font-size:26px;color:var(--red-hi)}
.plan ul{display:flex;flex-direction:column;gap:8px;flex-grow:1;padding-left:20px;list-style:disc;color:#D8D4D1;font-size:16px}
.plan-featured ul{color:#E6E3E0;font-size:17px}

/* Sobre mí */
.about{display:flex;flex-wrap:wrap;gap:48px;align-items:center;padding-bottom:112px}
.about-text{flex:1.4 1 420px;min-width:0}
.about-text h2{font-size:clamp(30px,4.2vw,56px);max-width:20ch}
.about-text p{margin-top:32px;font-size:18px;color:var(--soft);max-width:60ch}
.about-text strong{color:var(--text)}
.about-visual{flex:1 1 300px;min-width:0;max-width:420px;aspect-ratio:1;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line)}
.about-visual img{width:100%;height:100%;object-fit:cover}

/* Preguntas frecuentes */
.faq{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.faq-item{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:28px;display:flex;flex-direction:column;gap:12px}
.faq-item h3{font-family:var(--display);font-weight:800;font-size:22px;line-height:1.2;letter-spacing:-.01em}
.faq-item p{color:var(--soft);font-size:16px}
.faq-item-wide{grid-column:1/-1}

/* Cierre */
.cta{background:var(--text);color:var(--bg);border-radius:var(--radius);padding:64px 48px;display:flex;flex-wrap:wrap;gap:32px;align-items:center;justify-content:space-between}
.cta-copy{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;gap:12px}
.cta h2{font-family:var(--display);font-weight:800;font-size:clamp(30px,3.8vw,52px);line-height:1.05;letter-spacing:-.03em}
.cta p{font-size:18px;font-weight:500}
.cta .btn{font-size:17px;padding:18px 36px}

/* Footer */
.site-footer{margin-top:96px;border-top:1px solid rgba(245,245,243,.18);padding-top:32px;padding-bottom:48px;display:flex;flex-wrap:wrap;gap:24px 32px;align-items:flex-start;justify-content:space-between;color:var(--muted);font-size:15px}
.footer-brand{font-family:var(--display);font-weight:800;font-size:20px;color:var(--text);letter-spacing:-.02em;margin-bottom:8px}
.footer-nav{display:flex;flex-wrap:wrap;gap:8px 24px}
.footer-nav a:hover,.site-footer a:hover{color:var(--red-hi)}

@media (max-width:760px){
  .nav{display:none}
  .bento{grid-template-columns:1fr}
  .cell-wide,.cell-narrow{grid-column:auto}
  .cell-a{background-size:auto 46%;background-position:right 16px top 16px}
  .cell-d{background-position:right top}
  .facts{grid-template-columns:1fr}
  .fact,.fact+.fact{padding:20px 0;border-left:0}
  .fact+.fact{border-top:1px solid var(--line)}
  .faq{grid-template-columns:1fr}
  .cta{padding:48px 28px}
}

/* ---------- Movimiento (solo si la persona no pidió reducirlo) ---------- */
.cell,.plan,.faq-item{position:relative;overflow:hidden}
.cell::after,.plan::after,.faq-item::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .3s ease;background:radial-gradient(320px circle at var(--mx,50%) var(--my,50%),rgba(255,255,255,.09),transparent 60%)}
.cell:hover::after,.plan:hover::after,.faq-item:hover::after{opacity:1}

@keyframes rise{from{opacity:0;translate:0 28px}to{opacity:1;translate:0 0}}
@keyframes sway{from{transform:scale(1.04) translate(0,0)}to{transform:scale(1.1) translate(-1.5%,-1.5%)}}
@keyframes spin{from{transform:scale(1.42) rotate(0)}to{transform:scale(1.42) rotate(360deg)}}
@keyframes pan{from{transform:scale(1.1) translateX(-3%)}to{transform:scale(1.1) translateX(3%)}}
@keyframes ring{0%{box-shadow:0 0 0 0 rgba(215,38,30,.55)}70%,100%{box-shadow:0 0 0 16px rgba(215,38,30,0)}}
@keyframes progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}

.nav a{padding-bottom:4px;background:linear-gradient(var(--red-hi),var(--red-hi)) left bottom/0 2px no-repeat;transition:background-size .25s cubic-bezier(.16,1,.3,1),color .2s}
.nav a:hover{background-size:100% 2px}

@media (prefers-reduced-motion:no-preference){
  /* Entrada del hero al cargar la página */
  .hero-lead{animation:rise .8s cubic-bezier(.16,1,.3,1) .12s both}
  .hero-actions{animation:rise .8s cubic-bezier(.16,1,.3,1) .24s both}
  .hero-visual{animation:rise .9s cubic-bezier(.16,1,.3,1) .18s both}
  .hero-actions .btn-primary{animation:ring 2.6s ease-out 1.2s infinite}

  /* Imágenes con vida propia */
  .hero-visual img{animation:sway 14s ease-in-out infinite alternate}
  .about-visual img{animation:spin 90s linear infinite}
  .banner img{animation:pan 22s ease-in-out infinite alternate}

  /* Aparecer al hacer scroll (solo si main.js está activo) */
  .js [data-reveal]{opacity:0}
  .js [data-reveal].in{animation:rise .75s cubic-bezier(.16,1,.3,1) calc(var(--i,0) * 90ms) both}

  /* Barra de progreso de lectura en el header */
  @supports (animation-timeline:scroll()){
    .site-header::after{content:"";position:absolute;left:0;bottom:-1px;height:2px;width:100%;background:var(--red-hi);transform-origin:left;animation:progress linear both;animation-timeline:scroll(root block)}
  }
}
