/* Belfortech — hoja de estilos
   Paleta original de la marca. Para cambiar colores, editá solo :root */

@font-face { font-family: "Bebas"; src: url("../fonts/bebas-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bebas"; src: url("../fonts/bebas-latin-ext.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dmsans-latin.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dmsans-latin-ext.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --black: #080810;
  --dark: #0c0c18;
  --card: #10101e;
  --card-2: #15152a;
  --border: #1e1e35;
  --purple: #402570;
  --purple-light: #5c3a9e;
  --lilac: #c4b0ee;
  --blue: #000f5c;
  --blue-light: #1a2a8a;
  --orange: #eb5928;
  --orange-light: #ff7a45;
  --white: #f0eef8;
  --gray: #8888aa;
  --mint: #6fddaa;
  --wa: #25d366;

  --display: "Bebas", "Arial Narrow", Impact, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --w: 1220px;
  --gutter: clamp(16px, 4vw, 44px);
  --r-s: 8px;
  --r-m: 16px;
  --r-l: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --step--1: clamp(.86rem, .84rem + .1vw, .92rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.08rem);
  --step-1: clamp(1.18rem, 1.1rem + .4vw, 1.4rem);
  --step-2: clamp(1.9rem, 1.5rem + 1.8vw, 2.8rem);
  --step-3: clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);
  --step-4: clamp(3.4rem, 2.2rem + 6.6vw, 8.6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--white);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
html { overflow-x: clip; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--orange); }
::selection { background: var(--orange); color: var(--black); }
:focus-visible { outline: 3px solid var(--orange-light); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0 0 .45em; line-height: 1.05; font-weight: 700; text-wrap: balance; }
h1, h2, .display { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: .92; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 66ch; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .4em; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--orange); color: var(--black); padding: 10px 14px; border-radius: var(--r-s); z-index: 200; font-weight: 700; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--w)); margin-inline: auto; }
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section--tight { padding-block: clamp(44px, 7vw, 84px); position: relative; }
.lead { font-size: var(--step-1); color: var(--gray); line-height: 1.55; max-width: 58ch; }
.muted { color: var(--gray); }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--orange-light); font-weight: 600; font-size: var(--step--1); margin-bottom: 1.1em; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.orange { color: var(--orange); }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--white); }

/* Barra de progreso de lectura */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--purple-light), var(--orange)); }

/* Botones */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; gap: .6em; justify-content: center;
  padding: .95em 1.5em; border-radius: 999px; font: inherit; font-weight: 650; line-height: 1.1;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; overflow: hidden; isolation: isolate;
  transform: translate(var(--mx), var(--my)); transition: transform .35s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--white); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::after { transform: translateY(0); }
.btn:hover { color: var(--black); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 10px 40px -12px rgba(235, 89, 40, .7); }
.btn--wa { background: var(--wa); color: #06210f; }
.btn--ghost { border-color: rgba(240, 238, 248, .28); color: var(--white); background: rgba(255, 255, 255, .02); }
.btn--light { background: var(--white); color: var(--black); }
.btn--light::after { background: var(--black); }
.btn--light:hover { color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8em; }

/* Cabecera */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background-color .3s, border-color .3s, transform .4s var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-solid { background: rgba(8, 8, 16, .82); backdrop-filter: blur(14px) saturate(1.4); border-color: var(--border); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 32px; width: auto; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav li { margin: 0; }
.nav a { position: relative; display: block; padding: 8px 12px; text-decoration: none; font-weight: 500; font-size: .97rem; color: var(--gray); transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: .65em 1.1em; margin-left: 10px; color: #06210f; }
.nav .btn::after { display: none; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 76px 0 0 0; background: var(--black); display: flex; flex-direction: column; justify-content: center; clip-path: circle(0 at calc(100% - 40px) 0); transition: clip-path .6s var(--ease); visibility: hidden; }
  .nav.is-open { clip-path: circle(150% at calc(100% - 40px) 0); visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 0 var(--gutter) 40px; gap: 0; }
  .nav a { font-family: var(--display); font-size: clamp(2.4rem, 11vw, 3.4rem); line-height: 1; padding: 10px 0; color: var(--white); }
  .nav a::after { left: 0; right: auto; width: 40px; }
  .nav .btn { font-family: var(--body); font-size: 1.05rem; margin: 22px 0 0; align-self: flex-start; }
}

/* Fondo animado con manchas de color */
.aurora { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; background: var(--purple); left: -12vw; top: -14vw; animation: drift1 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 42vw; height: 42vw; background: var(--blue-light); right: -10vw; top: 6vw; opacity: .45; animation: drift2 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 30vw; height: 30vw; background: var(--orange); left: 34vw; bottom: -16vw; opacity: .32; animation: drift3 19s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(14vw, 10vw) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vw, 14vw) scale(.9); } }
@keyframes drift3 { to { transform: translate(-16vw, -10vw) scale(1.25); } }
.grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-block: 120px 80px; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.hero h1 { font-size: clamp(3.6rem, 2rem + 7.6vw, 9.4rem); margin-bottom: .2em; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .ln > span { display: block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .ln:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: translateY(0); } }
.hero .lead { color: #b9b7d0; opacity: 0; animation: fadein .9s .5s var(--ease) forwards; }
.hero .actions { opacity: 0; animation: fadein .9s .65s var(--ease) forwards; }
@keyframes fadein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rotator { display: inline-grid; vertical-align: bottom; color: var(--orange); }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(40%); transition: opacity .5s var(--ease), transform .6s var(--ease); white-space: nowrap; }
.rotator > span.is-on { opacity: 1; transform: none; }
.rotator > span.is-out { opacity: 0; transform: translateY(-40%); }

.stats { display: flex; flex-wrap: wrap; gap: clamp(22px, 4vw, 48px); margin-top: 2.6em; opacity: 0; animation: fadein .9s .8s var(--ease) forwards; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: .9; color: var(--white); }
.stats span { color: var(--gray); font-size: var(--step--1); }

/* Teléfonos con reels */
.phones { position: relative; height: clamp(440px, 52vw, 640px); perspective: 1200px; }
.phone { position: absolute; width: 50%; aspect-ratio: 9 / 16; border-radius: 30px; padding: 7px; background: linear-gradient(160deg, #2a2a44, #0e0e1a); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255,255,255,.06) inset; transform: translate3d(var(--tx, 0), var(--ty, 0), 0) rotate(var(--rot, 0deg)); transition: transform .8s var(--ease); opacity: 0; animation: phonein 1.1s var(--ease) forwards; }
.phone .screen { width: 100%; height: 100%; border-radius: 24px; overflow: hidden; background: var(--card); position: relative; }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; }
.phone .tag { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(8, 8, 16, .72); backdrop-filter: blur(6px); color: #fff; font-size: .76rem; padding: 7px 11px; border-radius: 999px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone:nth-child(1) { left: 0; top: 13%; --rot: -8deg; animation-delay: .3s; }
.phone:nth-child(2) { left: 25%; top: 0; z-index: 2; animation-delay: .45s; }
.phone:nth-child(3) { right: 0; top: 17%; --rot: 7deg; animation-delay: .6s; }
@keyframes phonein { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }
.badge-float { position: absolute; z-index: 3; background: var(--white); color: var(--black); border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: .85rem; display: flex; gap: 8px; align-items: center; box-shadow: 0 16px 40px -14px rgba(0,0,0,.8); animation: bob 5s ease-in-out infinite; }
.badge-float b { color: var(--orange); }
.badge-float--a { left: -6%; bottom: 12%; }
.badge-float--b { right: -2%; top: 4%; animation-delay: -2.5s; background: var(--orange); color: #fff; }
.badge-float--b b { color: #fff; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(240,238,248,.35); border-radius: 20px; transform: translateX(-50%); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--orange); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } 61% { transform: none; opacity: 0; } 100% { opacity: 1; } }
@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 110px; }
  .hero > .wrap { grid-template-columns: minmax(0, 1fr); }
  .phones { height: 118vw; max-height: 560px; }
  .scroll-cue { display: none; }
}

/* Cinta de texto */
.ticker { position: relative; z-index: 2; background: var(--orange); color: var(--black); overflow: hidden; transform: rotate(-2deg); margin-block: -18px; padding: 14px 0; box-shadow: 0 20px 50px -20px rgba(235,89,40,.6); }
.ticker--alt { background: var(--purple); color: var(--white); transform: rotate(1.5deg); }
.ticker .track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.ticker--alt .track { animation-direction: reverse; animation-duration: 34s; }
.ticker span { font-family: var(--display); font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.8rem); line-height: 1; padding-inline: 22px; white-space: nowrap; display: flex; align-items: center; gap: 44px; }
.ticker span::after { content: "✦"; font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Logos de clientes en movimiento */
.logos { position: relative; overflow: hidden; }
.logos h2 { font-size: var(--step-2); }
.logo-rail { display: flex; width: max-content; gap: 18px; padding-block: 10px; animation: marquee 46s linear infinite; }
.logo-rail--rev { animation-direction: reverse; animation-duration: 52s; }
.logo-marquee { mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-marquee:hover .logo-rail { animation-play-state: paused; }
.client { flex: none; width: clamp(140px, 13vw, 176px); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.client .pic { width: 100%; aspect-ratio: 1; border-radius: var(--r-m); overflow: hidden; background: var(--card); border: 1px solid var(--border); transition: transform .45s var(--ease), border-color .3s, box-shadow .3s; display: grid; place-items: center; }
.client .pic img { width: 100%; height: 100%; object-fit: cover; }
.client .pic .logo-text { font-family: var(--display); font-size: 1.6rem; line-height: 1; text-align: center; padding: 14px; }
.client small { color: var(--gray); font-size: .82rem; text-align: center; line-height: 1.25; }
.client:hover .pic { transform: translateY(-6px) rotate(-2deg); border-color: var(--orange); box-shadow: 0 20px 40px -18px rgba(235,89,40,.6); }

/* Servicios */
.svc-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--border); counter-reset: svc; }
.svc-list li { margin: 0; border-bottom: 1px solid var(--border); counter-increment: svc; }
.svc-list a { position: relative; display: grid; grid-template-columns: 70px minmax(220px, 1fr) 1.3fr 56px; gap: 24px; align-items: center; padding: 30px 8px; text-decoration: none; isolation: isolate; overflow: hidden; }
.svc-list a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--purple), var(--blue)); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.svc-list a:hover::before { transform: scaleY(1); }
.svc-list .ico { width: 54px; height: 54px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--orange); transition: background-color .3s, color .3s, transform .5s var(--ease); }
.svc-list .ico svg { width: 26px; height: 26px; }
.svc-list a:hover .ico { background: var(--orange); color: #fff; transform: rotate(-8deg) scale(1.06); }
.svc-list h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 1.5rem + 1.3vw, 2.7rem); line-height: .95; letter-spacing: .01em; }
.svc-list p { margin: 0; color: var(--gray); transition: color .3s; }
.svc-list a:hover p { color: var(--white); }
.svc-list .go { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; transition: transform .5s var(--ease), background-color .3s, border-color .3s; }
.svc-list .go svg { width: 20px; height: 20px; }
.svc-list a:hover .go { background: var(--white); color: var(--black); border-color: var(--white); transform: rotate(-45deg); }
@media (max-width: 820px) { .svc-list a { grid-template-columns: 54px 1fr 44px; gap: 14px 16px; } .svc-list p { grid-column: 2 / 4; } .svc-list .go { grid-row: 1; grid-column: 3; width: 42px; height: 42px; } }

/* Videos */
.band { background: linear-gradient(180deg, var(--dark), var(--black)); }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .video-grid { grid-template-columns: repeat(6, 1fr); } .video-grid .vcard:nth-child(even) { transform: translateY(40px); } }
.vcard { margin: 0; }
.vframe { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-m); overflow: hidden; background: var(--card); border: 1px solid var(--border); cursor: pointer; transition: transform .5s var(--ease), box-shadow .4s, border-color .3s; }
.vframe:hover { transform: translateY(-8px) scale(1.02); border-color: var(--orange); box-shadow: 0 30px 60px -24px rgba(235,89,40,.55); }
.vframe video, .vframe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vframe video { opacity: 0; transition: opacity .4s; }
.vframe.is-preview video { opacity: 1; }
.vframe .play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: linear-gradient(to top, rgba(8,8,16,.75), transparent 55%); border: 0; cursor: pointer; padding: 0; width: 100%; color: #fff; }
.vframe .play span { width: 64px; height: 64px; border-radius: 50%; background: rgba(240,238,248,.16); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; transition: transform .4s var(--ease), background-color .3s; }
.vframe:hover .play span { transform: scale(1.12); background: var(--orange); border-color: var(--orange); }
.vframe .play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 4px; }
.vcard figcaption { padding-top: 12px; font-weight: 600; line-height: 1.3; }
.vcard figcaption small { display: block; font-weight: 400; color: var(--gray); font-size: var(--step--1); }

/* Reproductor a pantalla completa */
.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: var(--white); }
.lightbox::backdrop { background: rgba(4, 4, 10, .9); backdrop-filter: blur(10px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox .lb-inner { position: relative; height: min(88vh, 900px); aspect-ratio: 9 / 16; max-width: 94vw; animation: pop .45s var(--ease); }
.lightbox video { width: 100%; height: 100%; border-radius: var(--r-m); background: #000; object-fit: contain; }
.lightbox .lb-close { position: absolute; top: -14px; right: -14px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--orange); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox .lb-title { position: absolute; left: 0; right: 0; bottom: -40px; text-align: center; font-weight: 600; }
@keyframes pop { from { opacity: 0; transform: scale(.92); } }

/* Grillas */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* Bloques destacados */
.feature { position: relative; border-radius: var(--r-l); padding: clamp(28px, 4vw, 48px); background: var(--card); border: 1px solid var(--border); overflow: hidden; isolation: isolate; }
.feature::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; right: -160px; top: -200px; background: radial-gradient(circle, var(--glow, var(--purple)) 0%, transparent 70%); opacity: .7; transition: transform .8s var(--ease); }
.feature:hover::before { transform: translate(-40px, 40px) scale(1.15); }
.feature--orange { --glow: rgba(235,89,40,.65); }
.feature--blue { --glow: var(--blue-light); }
.feature h2 { font-size: var(--step-2); }
.spot { --x: 50%; --y: 50%; }
.spot::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(360px circle at var(--x) var(--y), rgba(196,176,238,.12), transparent 60%); opacity: 0; transition: opacity .3s; }
.spot:hover::after { opacity: 1; }

/* Sitios web realizados */
.web-card { margin: 0; text-decoration: none; display: block; }
.browser { border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--border); background: var(--card); transition: transform .5s var(--ease), border-color .3s; }
.web-card:hover .browser { transform: translateY(-6px); border-color: var(--orange); }
.browser .bar { display: flex; gap: 6px; padding: 11px 13px; border-bottom: 1px solid var(--border); background: var(--card-2); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.browser .bar i:nth-child(1) { background: #ff5f57; } .browser .bar i:nth-child(2) { background: #febc2e; } .browser .bar i:nth-child(3) { background: #28c840; }
.browser .shot { aspect-ratio: 16 / 10; background: radial-gradient(circle at 30% 20%, var(--purple), var(--card) 70%); display: grid; place-items: center; overflow: hidden; }
.browser .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 3s ease; }
.web-card:hover .shot img { object-position: bottom; }
.web-card h3 { margin: 16px 0 4px; }
.web-card p { margin: 0; color: var(--gray); font-size: var(--step--1); }
.ph { font-family: var(--display); font-size: 2.2rem; color: var(--white); text-align: center; padding: 12px; line-height: 1; }

/* Uniformes */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 32px; }
.photo { margin: 0; }
.photo .img { aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; background: linear-gradient(160deg, var(--card-2), var(--card)); border: 1px solid var(--border); display: grid; place-items: center; color: var(--gray); text-align: center; padding: 0; transition: transform .5s var(--ease), border-color .3s; }
.photo:hover .img { transform: translateY(-6px); border-color: var(--orange); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .ph { font-size: 1.7rem; }
.photo figcaption { font-size: var(--step--1); color: var(--gray); padding-top: 10px; }

/* Proceso */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; margin: 0; padding: 26px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--border); position: relative; overflow: hidden; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--display); font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--orange); margin-bottom: 14px; }
.steps li::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--purple-light), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.steps li.in::after { transform: scaleX(1); }
.steps li:nth-child(2).in::after { transition-delay: .2s; } .steps li:nth-child(3).in::after { transition-delay: .4s; } .steps li:nth-child(4).in::after { transition-delay: .6s; }
.steps h3 { margin-bottom: .3em; }
.steps p { color: var(--gray); font-size: var(--step--1); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 1.9em; position: relative; margin-bottom: .65em; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.15em; height: 1.15em; border-radius: 50%; background: rgba(235,89,40,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ff7a45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; align-items: stretch; }
.plan { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-l); padding: 32px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), border-color .3s; }
.plan:hover { transform: translateY(-8px); border-color: var(--purple-light); }
.plan--pop { background: linear-gradient(160deg, var(--purple), var(--blue)); border-color: transparent; }
.plan--pop::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--a, 0deg), var(--orange), transparent 30%, var(--lilac), transparent 70%, var(--orange)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-border 6s linear infinite; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --a: 360deg; } }
.plan .badge { align-self: flex-start; background: var(--orange); color: #fff; font-weight: 700; font-size: .78rem; border-radius: 999px; padding: 5px 12px; margin-bottom: 14px; }
.plan h3 { font-family: var(--display); font-weight: 400; font-size: 2.2rem; letter-spacing: .02em; }
.plan .price { font-family: var(--display); font-size: clamp(3.4rem, 3rem + 1.5vw, 4.4rem); line-height: .9; margin: 4px 0 22px; }
.plan .price small { font-family: var(--body); font-size: 1rem; color: var(--gray); }
.plan--pop .price small { color: var(--lilac); }
.plan .btn { margin-top: auto; }
.plan .checks { margin-bottom: 26px; }
.currency { display: inline-flex; margin-top: 20px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* Testimonios */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.quote { margin: 0; padding: 30px; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--border); position: relative; overflow: hidden; isolation: isolate; }
.quote::before { content: "“"; position: absolute; right: 18px; top: -18px; font-family: Georgia, serif; font-size: 9rem; line-height: 1; color: var(--purple); opacity: .55; z-index: -1; }
.quote .stars { color: var(--orange); letter-spacing: 3px; margin-bottom: 12px; }
.quote blockquote { margin: 0 0 18px; font-size: var(--step-1); line-height: 1.45; }
.quote blockquote p { margin: 0; }
.quote figcaption { color: var(--gray); font-size: var(--step--1); }
.quote figcaption strong { color: var(--white); display: block; font-size: var(--step-0); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* Nosotros */
.founder { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.portrait { position: relative; }
.portrait .frame { aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; background: var(--card); position: relative; z-index: 1; }
.portrait .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.portrait::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--r-l); border: 2px solid var(--orange); z-index: 0; }
.portrait .chip { position: absolute; z-index: 2; left: -14px; bottom: 28px; background: var(--white); color: var(--black); border-radius: 999px; padding: 10px 18px; font-weight: 700; box-shadow: 0 16px 40px -14px rgba(0,0,0,.8); animation: bob 5s ease-in-out infinite; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.roles li { margin: 0; border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 6px 14px; font-weight: 500; font-size: var(--step--1); transition: border-color .3s, color .3s; }
.roles li:hover { border-color: var(--orange); color: var(--orange-light); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 40px; }
.team > div { padding: 26px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--border); position: relative; overflow: hidden; isolation: isolate; }
.team .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(235,89,40,.12); color: var(--orange); margin-bottom: 16px; }
.team .ico svg { width: 22px; height: 22px; }
.team p { color: var(--gray); margin: 0; font-size: var(--step--1); }
@media (max-width: 860px) { .founder { grid-template-columns: minmax(0, 1fr); } .portrait { max-width: 400px; } }

/* Preguntas frecuentes */
.faq { margin-top: 30px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 24px 56px 24px 0; font-weight: 600; font-size: var(--step-1); list-style: none; position: relative; transition: color .2s; }
.faq summary:hover { color: var(--orange-light); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%; border: 1px solid var(--border); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath stroke='%23f0eef8' stroke-width='2' stroke-linecap='round' d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .45s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--orange); border-color: var(--orange); }
.faq .a { padding: 0 0 24px; color: var(--gray); }
.faq details[open] .a { animation: fadein .5s var(--ease); }

/* Encabezado de páginas internas */
.page-head { position: relative; padding-block: clamp(140px, 18vw, 210px) clamp(36px, 5vw, 64px); overflow: hidden; }
.page-head > .wrap { position: relative; z-index: 2; }
.page-head h1 { max-width: 15ch; }
.page-head h1 .ln { display: block; overflow: hidden; }
.page-head h1 .ln > span { display: block; transform: translateY(105%); animation: rise 1s var(--ease) .05s forwards; }
.page-head .lead { opacity: 0; animation: fadein .9s .35s var(--ease) forwards; }
.page-head .actions { opacity: 0; animation: fadein .9s .5s var(--ease) forwards; }
.page-head .aurora i { opacity: .38; }
.crumbs { font-size: var(--step--1); color: var(--gray); margin-bottom: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--orange-light); }
.prose h2 { font-size: var(--step-2); margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }
.prose a { color: var(--orange-light); }
.aside-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-l); padding: 30px; position: sticky; top: 100px; }
.aside-box h2 { font-size: 2.2rem; }

/* Contacto */
.form { display: grid; gap: 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-l); padding: clamp(22px, 4vw, 40px); }
.form label { font-weight: 600; display: block; margin-bottom: 7px; }
.form .hint { font-weight: 400; color: var(--gray); font-size: var(--step--1); }
.form input, .form textarea, .form select { width: 100%; font: inherit; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--black); color: var(--white); transition: border-color .2s, box-shadow .2s; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%238888aa' stroke-width='2' d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 4px rgba(235,89,40,.18); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.form-status--ok { background: rgba(111,221,170,.14); color: var(--mint); }
.form-status--err { background: rgba(235,89,40,.14); color: var(--orange-light); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--border); margin: 0; }
.contact-list span { display: block; color: var(--gray); font-size: var(--step--1); }
.contact-list a { font-size: var(--step-1); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--orange-light); }

/* Llamado final */
.cta { position: relative; border-radius: var(--r-l); padding: clamp(36px, 7vw, 80px); overflow: hidden; isolation: isolate; background: linear-gradient(120deg, var(--purple) 0%, var(--blue) 55%, #20103a 100%); background-size: 200% 200%; animation: gradshift 12s ease-in-out infinite alternate; display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.cta::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -140px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(235,89,40,.75), transparent 65%); animation: bob 8s ease-in-out infinite; }
.cta h2 { margin: 0 0 .2em; font-size: var(--step-3); }
.cta p { margin: 0; color: var(--lilac); }
@keyframes gradshift { to { background-position: 100% 100%; } }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Pie */
.site-footer { position: relative; background: var(--dark); border-top: 1px solid var(--border); color: var(--gray); padding-block: 70px 30px; margin-top: clamp(64px, 10vw, 120px); font-size: var(--step--1); overflow: hidden; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--orange-light); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; position: relative; z-index: 1; }
.foot-grid h2 { font-family: var(--body); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 14px; letter-spacing: 0; line-height: 1.3; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-brand img { height: 32px; width: auto; margin-bottom: 16px; }
.foot-word { font-family: var(--display); font-size: clamp(5rem, 20vw, 17rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--border); margin: 50px 0 0; text-align: center; user-select: none; white-space: nowrap; }
.foot-bottom { margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; position: relative; z-index: 1; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); animation: waPulse 2.6s ease-out infinite; transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.45), 0 12px 30px -8px rgba(37,211,102,.6); } 70% { box-shadow: 0 0 0 18px rgba(37,211,102,0), 0 12px 30px -8px rgba(37,211,102,.6); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 12px 30px -8px rgba(37,211,102,.6); } }

/* Aparición al hacer scroll (solo si hay JS) */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal-stagger.in > * { opacity: 1; transform: none; }
.js .reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.js .reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.js .reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.js .reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.js .reveal-stagger.in > *:nth-child(6) { transition-delay: .40s; }
.js .reveal-stagger.in > *:nth-child(7) { transition-delay: .48s; }
.js .reveal-stagger.in > *:nth-child(n+8) { transition-delay: .56s; }
.split-h { overflow: hidden; }
.js .split-h > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.js .split-h.in > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal, .js .reveal-stagger > *, .js .split-h > span { opacity: 1; transform: none; }
  .ticker .track, .logo-rail { animation: none !important; }
}
.logo-rail .dup { display: contents; }
.photo .img { position: relative; }
.photo-tag { position: absolute; z-index: 1; left: 12px; top: 12px; background: var(--orange); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.7); }
.photo figcaption strong { display: block; color: var(--white); font-weight: 600; font-size: var(--step-0); }
.photo figcaption span { display: block; }
.photo img { transition: transform .8s var(--ease); }
.photo:hover img { transform: scale(1.05); }
@media (min-width: 900px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.member { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(22px, 4vw, 40px); border-radius: var(--r-l); background: var(--card); border: 1px solid var(--border); position: relative; overflow: hidden; isolation: isolate; }
.member::before { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; right: -180px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(92,58,158,.7), transparent 70%); }
.member-photo { aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.member:hover .member-photo img { transform: scale(1.04); }
.member h2 { margin-bottom: .1em; }
.member-role { color: var(--orange-light); font-weight: 600; font-size: var(--step-1); margin-bottom: .8em; }
@media (max-width: 760px) { .member { grid-template-columns: minmax(0, 1fr); } .member-photo { max-width: 320px; } }
h1 .kicker { display: flex; width: max-content; max-width: 100%; font-family: var(--body); font-weight: 600; line-height: 1.4; letter-spacing: 0; font-size: var(--step--1); margin-bottom: 1.2em; }
.actions .btn + .btn--ghost { margin-left: 0; }
.browser .shot { aspect-ratio: 16 / 9; }
.browser .shot img { object-position: top center; }
.web-card .web-link { display: inline-flex; margin-top: 10px; font-weight: 600; font-size: var(--step--1); color: var(--orange-light); }
.web-card:hover .web-link { text-decoration: underline; }
