/* =========================================================
   SIVOL v2 — Estilo inspirado en aldofrias.com
   Paleta: índigo → celeste sobre base azul marino oscuro
   ========================================================= */
:root {
    --p: #6366f1;          /* índigo */
    --s: #0ea5e9;          /* celeste */
    --v: #8b5cf6;          /* violeta */
    --d: #0f172a;          /* fondo */
    --d2: #0b1120;         /* fondo footer */
    --l: #f8fafc;          /* texto claro */
    --m: #94a3b8;          /* texto atenuado */
    --accent: #38bdf8;     /* compat i18n.css */
    --text: #f8fafc;       /* compat i18n.css */
    --g: linear-gradient(135deg, var(--p), var(--s));
    --r: 1rem;
    --sh: 0 10px 30px rgba(0, 0, 0, .35);
    --tr: .3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--d);
    color: var(--l);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: var(--p); transition: var(--tr); }
a:hover { color: var(--s); }
ul { list-style: none; }

::selection { background: var(--p); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--d); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--p), var(--s)); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #818cf8, #38bdf8); }

:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.text-muted { color: var(--m); }

/* ---------- Barra de progreso de scroll ---------- */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: var(--g); z-index: 2000; border-radius: 0 3px 3px 0;
}

/* ---------- Header / Nav ---------- */
header {
    position: fixed; top: 0; width: 100%; z-index: 100;
    padding: 1.1rem 0; background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent; transition: padding var(--tr), background var(--tr), border-color var(--tr);
}
header.scrolled { background: rgba(15, 23, 42, .94); border-bottom-color: rgba(255, 255, 255, .08); padding: .6rem 0; }

.nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .75rem; }
.brand-logo { height: 40px; width: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .4)); }

.nav-l { display: flex; gap: 1.75rem; align-items: center; }
.nav-l a {
    color: #e2e8f0; font-weight: 500; font-size: .95rem;
    position: relative; padding: .35rem 0; white-space: nowrap;
}
.nav-l a::after {
    content: ""; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: var(--g); border-radius: 2px; transition: width var(--tr);
}
.nav-l a:hover::after, .nav-l a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; color: var(--l); font-size: 1.6rem; cursor: pointer; line-height: 1; }


/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: 8.5rem 0 4rem; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; }
.blob-1 { width: 520px; height: 520px; top: -12%; right: -6%; background: radial-gradient(circle, var(--p), transparent 70%); animation: blobFloat 14s ease-in-out infinite; }
.blob-2 { width: 600px; height: 600px; bottom: -16%; left: -10%; background: radial-gradient(circle, var(--s), transparent 70%); animation: blobFloat 18s ease-in-out infinite reverse; opacity: .35; }
.blob-3 { width: 380px; height: 380px; top: 38%; left: 42%; background: radial-gradient(circle, var(--v), transparent 70%); animation: blobFloat 12s ease-in-out infinite; opacity: .22; }
.grid-overlay {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.08); }
}

.hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; width: 100%;
}

.badge {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .4rem .95rem; border-radius: 999px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-size: .8rem; font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase; color: #cbd5e1;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: dotPulse 2s ease-in-out infinite; }
@keyframes dotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.8); } }

.hero-title {
    font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 800; line-height: 1.15;
    color: #fff; margin: 1.25rem 0 1rem; letter-spacing: -.02em;
}
.grad-text {
    background: var(--g); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub { font-size: 1.1rem; color: var(--m); max-width: 560px; line-height: 1.7; }

.hero-cta { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .9rem 2rem; background: var(--g); color: #fff;
    border-radius: 50px; font-weight: 600; font-size: 1rem; border: 0; cursor: pointer;
    transition: var(--tr); white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 26px rgba(99, 102, 241, .45); color: #fff; }
.btn-o { background: transparent; border: 2px solid var(--p); color: var(--p); }
.btn-o:hover { background: var(--p); color: #fff; }

.stats-row { display: flex; gap: 2.75rem; margin-top: 2.75rem; flex-wrap: wrap; }
.stat b { font-size: 1.9rem; font-weight: 800; color: #fff; display: block; line-height: 1.1; }
.stat b .counter { background: var(--g); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat > span { color: var(--m); font-size: .85rem; font-weight: 500; }

.scroll-hint {
    margin-top: 3rem; display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.scroll-label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #64748b; }
.scroll-mouse {
    width: 24px; height: 38px; border: 2px solid rgba(148, 163, 184, .5);
    border-radius: 14px; display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel { width: 4px; height: 8px; border-radius: 4px; background: var(--s); animation: wheelDrop 1.8s ease-in-out infinite; }
@keyframes wheelDrop { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Hero visual (mockup de app) ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.phone-wrap { position: relative; perspective: 1000px; }
.phone {
    width: 250px; aspect-ratio: 9 / 17; border-radius: 2rem; overflow: hidden;
    border: 4px solid rgba(255, 255, 255, .16);
    background: #000; box-shadow: 0 40px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(99, 102, 241, .25);
    position: relative; transform: rotate(3deg);
    animation: phoneFloat 6s ease-in-out infinite;
}
/* App mockup (chat multidioma) dentro del teléfono */
.chat {
  display: flex; flex-direction: column; height: 100%;
  background: #0b1220; position: relative; z-index: 1;
}
.chat-head {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem .7rem; background: rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.chat-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--g); display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: .8rem; flex-shrink: 0;
}
.chat-head-info { flex: 1; min-width: 0; line-height: 1.15; }
.chat-head-info strong { display: block; color: #fff; font-size: .78rem; white-space: nowrap; }
.chat-status { display: inline-flex; align-items: center; gap: .3rem; color: var(--m); font-size: .6rem; }
.chat-status i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: dotPulse 1.8s ease-in-out infinite; }
.chat-head-ic { color: var(--m); font-size: 1rem; }
.chat-body {
  flex: 1; display: flex; flex-direction: column; gap: .5rem;
  padding: .7rem; overflow: hidden; justify-content: flex-end;
}
.chat-date {
  align-self: center; font-size: .56rem; color: #64748b;
  background: rgba(255, 255, 255, .05); padding: .14rem .6rem; border-radius: 999px;
}
.chat-msg {
  max-width: 78%; padding: .45rem .6rem; font-size: .66rem; line-height: 1.35;
  border-radius: 11px; animation: msgIn .5s ease both;
}
.chat-msg.in { align-self: flex-start; background: rgba(255, 255, 255, .09); color: #e2e8f0; border-bottom-left-radius: 3px; animation-delay: .25s; }
.chat-msg.out { align-self: flex-end; background: var(--g); color: #fff; border-bottom-right-radius: 3px; animation-delay: .55s; }
.chat-lang { margin-right: .25rem; }
.chat-tag {
  align-self: center; font-size: .54rem; color: #7dd3fc;
  background: rgba(14, 165, 233, .12); border: 1px solid rgba(14, 165, 233, .3);
  padding: .12rem .5rem; border-radius: 999px; animation: msgIn .5s ease .4s both;
}
.chat-typing {
  display: inline-flex; gap: .2rem; align-self: flex-start; padding: .4rem .55rem;
  background: rgba(255, 255, 255, .09); border-radius: 11px; border-bottom-left-radius: 3px;
  animation: msgIn .5s ease 1s both;
}
.chat-typing i { width: 5px; height: 5px; border-radius: 50%; background: #94a3b8; animation: typing 1.2s ease-in-out infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
.chat-input {
  display: flex; align-items: center; gap: .5rem; padding: .55rem;
  background: rgba(255, 255, 255, .04); border-top: 1px solid rgba(255, 255, 255, .06);
}
.chat-placeholder {
  flex: 1; font-size: .62rem; color: #64748b;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
  padding: .45rem .6rem; border-radius: 999px; white-space: nowrap; overflow: hidden;
}
.chat-send {
  width: 30px; height: 30px; border-radius: 50%; background: var(--g); color: #fff;
  display: grid; place-items: center; font-size: .7rem; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, .4);
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-3px); opacity: 1; } }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 20px; background: rgba(15, 23, 42, .9); border-radius: 12px; z-index: 2; }
@keyframes phoneFloat {
    0%, 100% { transform: rotate(3deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-18px); }
}
.float-chip {
    position: absolute; display: inline-flex; align-items: center; gap: .5rem;
    padding: .55rem .95rem; border-radius: 999px;
    background: rgba(15, 23, 42, .75); border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--sh); color: #e2e8f0; font-size: .85rem; font-weight: 600;
    white-space: nowrap; z-index: 3;
    animation: chipFloat 5s ease-in-out infinite;
}
.chip-emoji { font-size: 1.05rem; }
.chip-1 { top: 4%; right: -4%; animation-delay: 0s; }
.chip-2 { top: 42%; left: -14%; animation-delay: 1.4s; }
.chip-3 { bottom: -2%; right: -2%; animation-delay: 2.6s; }
@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---------- Secciones ---------- */
.section { padding: 6rem 0; position: relative; }
.alt-bg { background: linear-gradient(180deg, transparent, rgba(30, 41, 59, .28), transparent); }

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; text-align: center; color: #fff;
    margin-bottom: 1.1rem; position: relative; letter-spacing: -.01em;
}
h2::after {
    content: ""; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 4px; background: var(--g); border-radius: 4px;
}
.section-sub { text-align: center; color: var(--m); max-width: 640px; margin: 1.5rem auto 3.5rem; font-size: 1.05rem; }

/* ---------- Grid de cards ---------- */
.grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
    background: rgba(30, 41, 59, .55); border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--r); overflow: hidden;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.card:hover { transform: translateY(-6px); border-color: rgba(99, 102, 241, .55); box-shadow: 0 18px 45px rgba(0, 0, 0, .45), 0 0 30px rgba(99, 102, 241, .12); }

.service-card { display: flex; flex-direction: column; }
.card-media { height: 195px; position: relative; overflow: hidden; background: linear-gradient(135deg, #1e293b, #334155); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; filter: brightness(.9); }
.service-card:hover .card-media img { transform: scale(1.09); filter: brightness(1); }
.card-icon {
    position: absolute; right: 1.25rem; bottom: -22px; width: 52px; height: 52px;
    background: var(--g); border-radius: .85rem; display: grid; place-items: center;
    font-size: 1.35rem; box-shadow: 0 10px 24px rgba(99, 102, 241, .4);
}
.card-body { padding: 2.1rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-body h3 { color: #fff; font-size: 1.25rem; font-weight: 700; margin-bottom: .55rem; }
.card-body p { color: var(--m); font-size: .95rem; line-height: 1.65; flex-grow: 1; }

.tags { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: 1.1rem; }
.tag { padding: .28rem .75rem; background: rgba(99, 102, 241, .16); color: #a5b4fc; border-radius: 999px; font-size: .75rem; font-weight: 600; }

/* Arte CSS para Hardware */
.hw-art { display: grid; place-items: center; }
.hw-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(99, 102, 241, .22) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(99, 102, 241, .22) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(circle at center, #000 20%, transparent 75%);
    mask-image: radial-gradient(circle at center, #000 20%, transparent 75%);
}
.hw-node { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--g); box-shadow: 0 0 14px rgba(99, 102, 241, .9); animation: nodePulse 2.4s ease-in-out infinite; }
.n1 { top: 22%; left: 18%; }
.n2 { top: 62%; left: 76%; animation-delay: .8s; }
.n3 { top: 78%; left: 30%; animation-delay: 1.6s; }
@keyframes nodePulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .5; } }
.hw-chip {
    width: 58px; height: 58px; background: var(--g); border-radius: .9rem;
    display: grid; place-items: center; transform: rotate(45deg);
    box-shadow: 0 14px 30px rgba(99, 102, 241, .5);
}
.hw-chip span { transform: rotate(-45deg); font-size: 1.6rem; }

/* ---------- Proyecto destacado ---------- */
.featured {
    display: grid; grid-template-columns: 1fr 1fr; border-radius: 1.5rem; overflow: hidden;
    background: rgba(30, 41, 59, .5); border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45); margin: 3.5rem auto 0; max-width: 1100px;
}
.featured-video { position: relative; background: #000; min-height: 420px; overflow: hidden; }
.featured-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(45px) brightness(.5); transform: scale(1.25); opacity: .5; }
.featured-main { position: relative; display: block; margin: 0 auto; height: 100%; max-height: 420px; aspect-ratio: 9 / 16; object-fit: contain; }
.audio-toggle {
    position: absolute; bottom: 1rem; right: 1rem; z-index: 5;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(15, 23, 42, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    color: #fff; font-size: 1.15rem; cursor: pointer; display: grid; place-items: center;
    transition: var(--tr);
}
.audio-toggle:hover { background: rgba(99, 102, 241, .45); transform: scale(1.08); }
.featured-info { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tag-green { background: rgba(34, 197, 94, .15); color: #4ade80; }
.tag-blue { background: rgba(59, 130, 246, .18); color: #60a5fa; }
.featured-info h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 1rem; }
.featured-info p { color: var(--m); line-height: 1.7; margin-bottom: 1.6rem; }
.feat-list li { display: flex; align-items: center; gap: .65rem; color: #e2e8f0; font-weight: 500; margin: .55rem 0; }
.feat-check {
    width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%;
    background: var(--g); display: grid; place-items: center; color: #fff; font-size: .8rem;
}


/* ---------- Proyecto destacado POS360 ---------- */
.pos-banner {
  display: flex; justify-content: center; align-items: center;
  background: #fff; padding: 1.6rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.pos-banner img { height: 92px; width: auto; object-fit: contain; }
.tag-orange { background: rgba(245, 158, 11, .16); color: #fbbf24; }

.featured--rev {
  display: flex; flex-direction: column;
  background: linear-gradient(135deg, rgba(99, 102, 241, .14), rgba(14, 165, 233, .1)), rgba(30, 41, 59, .5);
  border-color: rgba(99, 102, 241, .28);
}
.featured--rev .featured-row {
  display: grid; grid-template-columns: 1fr 1fr; flex: 1;
}
.pos-media {
  display: flex; align-items: center; justify-content: center; padding: 2rem;
  min-height: 420px; background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, .2), transparent 60%), #0b1120;
  overflow: hidden; position: relative;
}
.win {
  width: 100%; max-width: 450px; border-radius: 1rem; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12); background: #0f172a;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(99, 102, 241, .18);
  animation: phoneFloat 7s ease-in-out infinite;
}
.win-bar {
  display: flex; align-items: center; gap: .35rem; padding: .55rem .8rem;
  background: rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.win-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.d-r { background: #f87171; } .d-y { background: #fbbf24; } .d-g { background: #34d399; }
.win-title { margin-left: .5rem; font-size: .68rem; color: var(--m); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-body { padding: .9rem; display: flex; flex-direction: column; gap: .8rem; }
.pos-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.pos-stat { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); border-radius: .6rem; padding: .55rem .6rem; }
.pos-stat small { display: block; font-size: .56rem; color: var(--m); margin-bottom: .2rem; white-space: nowrap; }
.pos-stat b { font-size: .82rem; color: #fff; }
.pos-warn { color: #fbbf24; }
.pos-main { display: grid; grid-template-columns: 1.1fr 1fr; gap: .7rem; }
.pos-chart {
  display: flex; align-items: flex-end; gap: .35rem; height: 112px; padding: .5rem;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); border-radius: .6rem;
}
.chart-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .25rem; flex: 1; height: 100%; }
.chart-col .bar {
  width: 100%; max-width: 16px; border-radius: 3px 3px 1px 1px; background: var(--g);
  animation: barGrow 1s ease both; transform-origin: bottom;
}
.chart-col:nth-child(2) .bar { background: linear-gradient(180deg, #38bdf8, #0ea5e9); animation-delay: .1s; }
.chart-col:nth-child(3) .bar { background: linear-gradient(180deg, #a78bfa, #6366f1); animation-delay: .2s; }
.chart-col:nth-child(4) .bar { background: linear-gradient(180deg, #34d399, #10b981); animation-delay: .3s; }
.chart-col:nth-child(5) .bar { background: linear-gradient(180deg, #fbbf24, #f59e0b); animation-delay: .4s; }
.chart-col:nth-child(6) .bar { background: linear-gradient(180deg, #f472b6, #ec4899); animation-delay: .5s; }
.chart-col:nth-child(7) .bar { background: linear-gradient(180deg, #818cf8, #6366f1); animation-delay: .6s; }
.chart-col i { font-style: normal; font-size: .5rem; color: #64748b; }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.pos-sale {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); border-radius: .6rem;
  padding: .55rem .65rem; display: flex; flex-direction: column; gap: .3rem; justify-content: center;
}
.sale-head { display: flex; justify-content: space-between; align-items: center; font-size: .56rem; color: var(--m); margin-bottom: .15rem; }
.sale-tag { font-size: .5rem; font-weight: 700; color: #4ade80; background: rgba(34, 197, 94, .15); padding: .1rem .4rem; border-radius: 999px; }
.sale-row { display: flex; justify-content: space-between; font-size: .58rem; color: #e2e8f0; }
.sale-row b { font-size: .58rem; color: #fff; }
.sale-total {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px dashed rgba(255, 255, 255, .15); padding-top: .35rem; margin-top: .15rem;
  font-size: .6rem; color: #94a3b8;
}
.sale-total b { font-size: .8rem; color: #fff; }
@media (max-width: 900px) {
  .featured--rev .featured-row { grid-template-columns: 1fr; }
  .pos-banner img { height: 68px; }
  .pos-media { min-height: auto; padding: 1.5rem; }
  .win { max-width: 420px; }
}

/* ---------- Marquesina ---------- */
.marquee { overflow: hidden; margin: 3.5rem 0 1rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 2.75rem; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-item { font-size: 1.1rem; font-weight: 700; letter-spacing: .14em; color: #e2e8f0; opacity: .8; white-space: nowrap; }
.mq-sep { color: var(--p); font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Grilla de productos ---------- */

.products { margin-top: 3rem; }
.proj-card { padding: 0; display: flex; }
.proj-link { display: flex; flex-direction: column; width: 100%; color: inherit; height: 100%; }
.proj-link:hover { color: inherit; }
.proj-img-wrap {
    height: 155px; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .035); border-bottom: 1px solid rgba(255, 255, 255, .06);
    padding: 1.2rem;
}
.proj-img-wrap img { max-height: 110px; max-width: 75%; object-fit: contain; transition: transform .45s ease; }
.proj-img-wrap.proj-img-wrap--pos360 { background: #fff; }
.proj-card:hover .proj-img-wrap img { transform: scale(1.09); }
.proj-c { padding: 1.5rem; position: relative; display: flex; flex-direction: column; flex-grow: 1; }
.proj-c h3 { color: #fff; font-size: 1.15rem; font-weight: 700; margin-bottom: .55rem; }
.proj-c p { color: var(--m); font-size: .9rem; line-height: 1.6; }
.proj-go {
    position: absolute; top: 1.1rem; right: 1.1rem; width: 30px; height: 30px;
    border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%;
    display: grid; place-items: center; color: #fff; font-size: .85rem;
    opacity: 0; transform: translate(-6px, 6px); transition: var(--tr);
}
.proj-card:hover .proj-go { opacity: 1; transform: translate(0, 0); background: var(--g); border-color: transparent; }

/* ---------- Contacto ---------- */
.contact { overflow: hidden; background: linear-gradient(180deg, transparent, rgba(99, 102, 241, .08), rgba(14, 165, 233, .08)); }
.contact-glow { position: absolute; inset: 0; pointer-events: none; }
.contact-glow::before, .contact-glow::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(120px);
}
.contact-glow::before { width: 420px; height: 420px; top: -120px; right: -80px; background: radial-gradient(circle, var(--p), transparent 70%); opacity: .35; }
.contact-glow::after { width: 460px; height: 460px; bottom: -160px; left: -100px; background: radial-gradient(circle, var(--s), transparent 70%); opacity: .3; }
.contact .container { position: relative; z-index: 1; }
.contact h2 { margin-bottom: 1.5rem; }
.contact .section-sub { color: #c7d2fe; max-width: 620px; margin: 0 auto 3rem; font-size: 1.1rem; }
.btn-wa { background: #25D366; box-shadow: 0 10px 30px rgba(37, 211, 102, .35); font-size: 1.05rem; padding: 1rem 2.4rem; }
.btn-wa:hover { background: #1ebe5b; box-shadow: 0 12px 34px rgba(37, 211, 102, .5); transform: translateY(-2px); }

/* ---------- Footer ---------- */
footer { background: var(--d2); border-top: 1px solid rgba(255, 255, 255, .08); padding: 3.5rem 0 2rem; }
.footer-inner { text-align: center; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; margin-bottom: 2.5rem; text-align: left; }
.footer-brand .text-muted { margin-top: .6rem; max-width: 320px; font-size: .92rem; }
.footer-logo { height: 58px; width: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .5)); }
.soc { display: flex; gap: .8rem; }
.soc a {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
    display: grid; place-items: center; color: #cbd5e1; transition: var(--tr);
}
.soc a:hover { background: var(--g); border-color: transparent; color: #fff; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(99, 102, 241, .4); }
.soc-ic { width: 18px; height: 18px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .07); padding-top: 1.75rem;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
    color: #64748b; font-size: .9rem;
}
.legal-links a { color: #64748b; margin-left: 1.5rem; font-size: .9rem; }
.legal-links a:hover { color: var(--p); }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-f {
    position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 999;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; color: #fff; display: grid; place-items: center;
    box-shadow: 0 8px 26px rgba(37, 211, 102, .45); animation: waPulse 2.2s ease-in-out infinite;
    transition: transform var(--tr), box-shadow var(--tr);
}
.wa-f:hover { transform: scale(1.12); box-shadow: 0 12px 34px rgba(37, 211, 102, .6); color: #fff; }
.wa-ic { width: 30px; height: 30px; }
.wa-tooltip {
    position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%);
    background: #fff; color: #0f172a; font-size: .8rem; font-weight: 700;
    padding: .55rem .9rem; border-radius: .55rem; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: var(--tr); box-shadow: var(--sh);
}
.wa-f:hover .wa-tooltip { opacity: 1; }
@keyframes waPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid { gap: 2.5rem; }
    .phone { width: 220px; }
    .chip-2 { left: 0; }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-cta, .stats-row { justify-content: center; }
    .scroll-hint { margin-left: auto; margin-right: auto; }
    .hero-visual { display: none; }
    .featured { grid-template-columns: 1fr; }
    .featured-video { min-height: 360px; }
    .featured-main { max-height: 360px; }
    .featured-info { padding: 2.25rem; text-align: center; }
    .badges, .feat-list { justify-content: center; }
    .feat-list { display: flex; flex-direction: column; align-items: center; }
    .footer-top { flex-direction: column; text-align: center; }
    .footer-brand .text-muted { margin-left: auto; margin-right: auto; }
    .footer-bottom { justify-content: center; text-align: center; }
    .legal-links a { margin: 0 .75rem; }
}

@media (max-width: 768px) {
    .section { padding: 4.5rem 0; }
    .nav-l {
        position: fixed; top: 68px; left: 0; right: 0;
        background: rgba(15, 23, 42, .98); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        flex-direction: column; gap: .4rem; padding: 1.5rem 2rem;
        transform: translateY(-160%); transition: transform var(--tr); box-shadow: var(--sh);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }
    .nav-l.active { transform: translateY(0); }
    .nav-l a { font-size: 1.05rem; display: block; padding: .7rem 0; }
    .nav-toggle { display: block; }
    .nav-lang-item { margin-top: .6rem; }
    .stats-row { gap: 1.75rem; }
    .stat b { font-size: 1.6rem; }
    .hero { padding-top: 7.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .brand-logo { height: 34px; }
    .hero-cta .btn { width: 100%; }
    .stat { min-width: 90px; }
}

/* ---------- Accesibilidad: reducir movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Contacto: info + formulario (estilo aldofrias) ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start; max-width: 1100px; margin: 0 auto;
}
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.3rem;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 1rem; transition: border-color var(--tr), transform var(--tr);
}
.contact-card:hover { border-color: rgba(99, 102, 241, .45); transform: translateX(3px); }
.contact-card-icon {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .09);
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-card strong { display: block; color: #fff; font-size: .95rem; margin-bottom: .25rem; }
.contact-card p { color: var(--m); font-size: .92rem; }
.contact-card a { color: var(--s); }
.contact-card a:hover { color: var(--p); text-decoration: underline; }
.social-row { display: flex; gap: .6rem; margin-top: .3rem; }
.social-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  color: var(--l); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .09);
  transition: background var(--tr), color var(--tr), transform var(--tr);
}
.social-btn:hover { background: var(--g); color: #fff; transform: translateY(-3px); }
.social-btn svg { width: 18px; height: 18px; }
.contact-info .btn-wa { margin-top: .5rem; justify-content: center; }
.contact-form {
  display: flex; flex-direction: column; gap: 1.1rem; padding: 1.8rem;
  background: rgba(30, 41, 59, .5); border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 1.25rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--sh);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { color: var(--l); font-weight: 600; font-size: .9rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .8rem .95rem;
  background: rgba(15, 23, 42, .6); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: .6rem; color: #fff; font-family: inherit; font-size: .95rem;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--p); box-shadow: 0 0 0 3px rgba(99, 102, 241, .2);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--d); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.recaptcha-box { display: flex; align-items: center; gap: .6rem; flex-wrap: nowrap; }
.math-q { color: var(--l); font-weight: 700; white-space: nowrap; font-size: 1rem; }
#mathAnswer {
  width: 60px; height: 34px; text-align: center; font-size: 1rem; padding: 0; flex: 0 0 auto;
  background: rgba(15, 23, 42, .6); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: .5rem; color: #fff;
}
#mathAnswer:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 3px rgba(99, 102, 241, .2); }
.form-note { font-size: .8rem; color: #64748b; text-align: center; }
.btn-full { width: 100%; }

/* ---------- Modal de éxito ---------- */
.modal {
  position: fixed; inset: 0; z-index: 2500; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; background: rgba(4, 6, 14, .8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-box {
  position: relative; width: min(420px, 100%); padding: 2.4rem 2rem; text-align: center;
  background: var(--d2); border: 1px solid rgba(255, 255, 255, .16); border-radius: 1.25rem;
  box-shadow: var(--sh); transform: scale(.92) translateY(10px); transition: transform .35s ease;
}
.modal.open .modal-box { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: .9rem; right: 1.1rem; background: none; border: none;
  color: var(--m); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: color .2s;
}
.modal-close:hover { color: #fff; }
.modal-icon { font-size: 3rem; display: block; margin-bottom: .8rem; }
.modal-box h3 { color: #fff; font-size: 1.4rem; margin-bottom: .5rem; }
.modal-box p { color: var(--m); margin-bottom: 1.5rem; }

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