/* =============================================================
   Exposición de Computadoras — v2 (vanilla, adaptado del spec React/Tailwind)
   1. Tokens 2. Reset 3. Utilities 4. Typography 5. Buttons
   6. Header/BottomNav 7. Hero 8. Marquee 9. Stats 10. Services
   11. Clients marquee 12. Certifications 13. Nosotros 14. Contact
   15. Footer/Copyright 16. WhatsApp 17. Animations 18. Responsive
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --color-navy-900: #0F1F3D;
  --color-navy-700: #1B3A63;
  --color-accent: #3B82C4;
  --color-bg-light: #F5F7FA;
  --color-text-light: #F6FCFF;
  --color-text-muted: #5C7290;
  --color-white: #FFFFFF;
  --color-line: rgba(15, 31, 61, 0.1);

  --shadow-btn-primary:
    0 1px 2px 0 rgba(15,31,61,0.12),
    0 4px 4px 0 rgba(15,31,61,0.09),
    0 9px 6px 0 rgba(15,31,61,0.05),
    0 17px 7px 0 rgba(15,31,61,0.01),
    inset 0 2px 8px 0 rgba(255,255,255,0.35);
  --shadow-btn-secondary: 0 0 0 0.5px rgba(15,31,61,0.05), 0 4px 30px rgba(15,31,61,0.08);
  --shadow-card: 0 4px 16px rgba(15,31,61,0.08);

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1200px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-navy-900);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  padding-bottom: 6.5rem; /* room for fixed bottom nav */
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; text-wrap: balance; }
ul { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--color-accent); color: #fff; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--color-navy-900); color: #fff;
  border-radius: 8px; font-weight: 600; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.section-light { background: var(--color-white); }
.section-tint { background: var(--color-bg-light); }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  color: var(--color-accent); text-transform: uppercase; margin-bottom: .5rem;
}

/* fade-in-up, triggered by JS adding .is-visible via IntersectionObserver */
.fade-in-up { opacity: 0; transform: translateY(30px); }
.fade-in-up.is-visible {
  animation: fadeInUp 0.8s var(--ease-out) forwards;
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }

/* =============================================================
   4. Typography
   ============================================================= */
.h-hero { font-size: clamp(2.25rem, 6vw, 3.5rem); letter-spacing: -0.01em; }
.h-hero .accent { color: var(--color-accent); }
.h-section { font-size: clamp(2rem, 4vw, 2.5rem); text-align: center; color: var(--color-navy-900); }
.h-section-sm { font-size: clamp(1.75rem, 3vw, 2.25rem); text-align: center; color: var(--color-navy-900); }
.text-muted { color: var(--color-text-muted); }
.tagline-mono {
  font-family: var(--font-body); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-accent); font-weight: 600;
}

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  white-space: nowrap; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--color-navy-900); color: #fff; box-shadow: var(--shadow-btn-primary); }
.btn-primary.on-dark { background: #fff; color: var(--color-navy-900); }
.btn-secondary { background: #fff; color: var(--color-navy-900); box-shadow: var(--shadow-btn-secondary); }
.btn-secondary.on-dark { background: rgba(255,255,255,.06); color: #fff; box-shadow: 0 0 0 0.5px rgba(255,255,255,.14), 0 4px 30px rgba(0,0,0,.2); }
.btn-sm { padding: .6rem 1.3rem; font-size: .85rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* =============================================================
   6. Header + floating bottom nav
   ============================================================= */
.header {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; padding-block: .85rem; }
.header-logo img { height: 64px; width: auto; }
.header-links { display: none; align-items: center; gap: 2rem; }
.header-links a { font-size: .92rem; font-weight: 500; color: var(--color-navy-900); position: relative; padding: .2rem 0; }
.header-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--color-accent);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.header-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--color-bg-light); }
.header-toggle svg { width: 20px; height: 20px; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 99; background: var(--color-navy-900); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-out);
}
.mobile-nav[data-open="true"] { clip-path: inset(0); }
.mobile-nav a { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }

.bottom-nav {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 80;
  display: flex; align-items: center; gap: .6rem;
  background: #fff; border-radius: 999px; padding: .5rem .5rem .5rem 1rem;
  box-shadow: var(--shadow-btn-secondary);
}
.bottom-nav img { height: 22px; width: auto; }
.bottom-nav .btn { padding: .6rem 1.3rem; font-size: .85rem; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: clamp(6rem, 12vw, 8rem);
  padding-bottom: clamp(3rem, 6vw, 4rem);
}
.hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-video-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5,15,31,.6) 0%, rgba(5,15,31,.38) 45%, rgba(5,15,31,.7) 100%);
}
.hero-inner { max-width: 560px; margin-inline: auto; text-align: center; padding-inline: 1.5rem; }
.hero-logo { margin-bottom: 1.5rem; }
.hero-logo img {
  height: 105px; width: auto; margin-inline: auto;
  filter: drop-shadow(0 0 3px rgba(0,0,0,.6)) drop-shadow(0 0 7px rgba(0,0,0,.4));
}
.hero h1 { margin-top: .75rem; color: #fff; }
.hero-desc { margin-top: 1.3rem; display: grid; gap: .85rem; font-size: .98rem; color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.6rem; }
@media (min-width: 540px) { .hero-actions { flex-direction: row; justify-content: center; } }

/* =============================================================
   8. Marquee
   ============================================================= */
.marquee-section { padding-block: clamp(3rem, 6vw, 4rem); overflow: hidden; }
.marquee-title { text-align: center; font-size: .85rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: 1.5rem; }
.marquee { overflow: hidden; position: relative; white-space: nowrap; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--color-bg-light), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--color-bg-light), transparent); }
.marquee-track { display: inline-flex; vertical-align: top; animation: marqueeScroll 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-logo {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 128px; height: 64px; margin-inline: 1rem;
  white-space: nowrap;
}
.marquee-logo img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1) opacity(.55); transition: filter .3s;
}
.marquee-logo:hover img { filter: grayscale(0) opacity(1); }

/* =============================================================
   9. Stats
   ============================================================= */
.stats-section { padding-block: clamp(4rem, 8vw, 6rem); }
.stats-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); text-align: center; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.5rem); color: var(--color-navy-900); }
.stat-label { font-size: .85rem; color: var(--color-text-muted); margin-top: .3rem; }
.stats-media {
  margin-top: 3rem; border-radius: 24px; overflow: hidden; aspect-ratio: 16/9;
  background: var(--color-bg-light); position: relative;
}
.stats-media img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================
   10. Services
   ============================================================= */
.services-section { padding-block: clamp(4rem, 8vw, 6rem); }
.services-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-top: 3rem; }
.service-card {
  border-radius: 40px; padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-card);
}
.service-card.is-dark { background: var(--color-navy-900); color: var(--color-text-light); }
.service-card.is-light { background: #fff; color: var(--color-navy-900); border: 1px solid var(--color-line); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1.7rem; text-align: center; }
.service-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1.2rem;
  margin-bottom: 2rem;
}
.service-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; }
.service-item .icon { flex: none; width: 26px; height: 26px; color: var(--color-accent); }
.service-item strong { display: block; font-size: .88rem; font-weight: 600; line-height: 1.25; }
.service-item span { display: block; font-size: .78rem; line-height: 1.4; margin-top: .1rem; }
.service-card.is-dark .service-item span { color: rgba(246,252,255,.65); }
.service-card.is-light .service-item span { color: var(--color-text-muted); }
.service-card .btn { display: flex; margin-inline: auto; }

/* =============================================================
   11. Clients marquee (animación continua, mismo mecanismo que
   la franja de marcas, pero con tarjetas blancas y en reversa)
   ============================================================= */
.clients-section { padding-block: clamp(4rem, 8vw, 6rem); overflow: hidden; }
.clients-section .marquee { margin-top: 2.5rem; }
.clients-section .marquee::before,
.clients-section .marquee::after { background: none; }
.clients-section .marquee::before { background: linear-gradient(90deg, var(--color-white), transparent); }
.clients-section .marquee::after { background: linear-gradient(270deg, var(--color-white), transparent); }
.marquee-reverse .marquee-track { animation-direction: reverse; }

.client-card {
  flex: none; width: 168px; height: 96px; margin-inline: .6rem;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center;
  padding: 1.1rem 1.3rem;
}
.client-card img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1) opacity(.7); transition: filter .3s;
}
.client-card:hover img { filter: grayscale(0) opacity(1); }

/* =============================================================
   12. Certifications — slider uno por uno, con flechas
   ============================================================= */
.certs-section { padding-block: clamp(3rem, 6vw, 4.5rem); }
.cert-slider {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 2.2rem;
}
.cert-slider-viewport {
  width: 220px; height: 220px; flex: none;
  overflow: hidden; border-radius: 20px; border: 1px solid var(--color-line);
  background: #fff; box-shadow: var(--shadow-card);
}
.cert-slider-track { display: flex; height: 100%; transition: transform .5s var(--ease-out); }
.cert-slide {
  flex: 0 0 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; padding: 1.6rem;
}
.cert-slide img { width: 100%; height: 100%; object-fit: contain; }

.cert-slider-arrow {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid rgba(15,31,61,.2); box-shadow: var(--shadow-card);
  display: grid; place-items: center;
  transition: background .3s var(--ease-out), transform .3s var(--ease-out);
}
.cert-slider-arrow:hover { background: var(--color-bg-light); transform: scale(1.06); }
.cert-slider-arrow svg { width: 20px; height: 20px; }

.cert-slider-dots { display: flex; justify-content: center; gap: .45rem; margin-top: 1.2rem; }
.cert-slider-dots button {
  width: 8px; height: 8px; border-radius: 50%; background: var(--color-line);
  transition: background .3s var(--ease-out), transform .3s var(--ease-out);
}
.cert-slider-dots button.is-active { background: var(--color-accent); transform: scale(1.3); }

.repse-note {
  margin-top: 2rem; text-align: center; font-size: .9rem; color: var(--color-text-muted); max-width: 60ch; margin-inline: auto;
}

@media (min-width: 540px) {
  .cert-slider-viewport { width: 260px; height: 260px; }
}

/* =============================================================
   13. Nosotros
   ============================================================= */
.about-section { padding-block: clamp(4rem, 8vw, 6rem); }
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.about-block + .about-block { margin-top: 1.8rem; }
.about-block h3 { font-size: 1.3rem; margin-top: .3rem; }
.about-block p { margin-top: .5rem; color: var(--color-text-muted); font-size: .95rem; }
.about-history { margin-top: 1.8rem; font-size: .95rem; color: var(--color-text-muted); line-height: 1.75; }
.about-visual { border-radius: 32px; overflow: hidden; aspect-ratio: 4/3; background: var(--color-bg-light); position: relative; }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================
   14. Contact
   ============================================================= */
.contact-section { padding-block: clamp(4rem, 6vw, 5rem); }
.contact-block {
  background: var(--color-navy-900); color: var(--color-text-light);
  border-radius: 40px; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  max-width: 780px; margin-inline: auto; text-align: center;
}
.contact-block h2 { font-size: clamp(2rem, 5vw, 3rem); }
.contact-block .lede { margin-top: 1rem; color: rgba(246,252,255,.7); font-size: 1rem; max-width: 46ch; margin-inline: auto; }
.contact-phone { margin-top: 2rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.contact-phone a { color: var(--color-text-light); }
.contact-cta-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.3rem; }
.contact-address { margin-top: .5rem; font-size: .88rem; color: rgba(246,252,255,.65); }
.contact-address:first-of-type { margin-top: 1.5rem; }
.contact-address a:hover { text-decoration: underline; color: var(--color-text-light); }

.contact-form {
  margin-top: 2.6rem; text-align: left; display: grid; gap: 1rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px; padding: clamp(1.5rem, 3vw, 2.2rem);
}
.contact-form .field label { display: block; font-size: .78rem; font-weight: 600; margin-bottom: .4rem; color: rgba(246,252,255,.7); }
.contact-form .field input, .contact-form .field textarea {
  width: 100%; padding: .8rem .95rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); color: #fff; font-size: .92rem;
}
.contact-form .field textarea { min-height: 110px; resize: vertical; }
.contact-form .field input::placeholder, .contact-form .field textarea::placeholder { color: rgba(246,252,255,.4); }
.contact-form-msg { font-size: .85rem; margin-top: .4rem; display: none; }
.contact-form-msg.is-error { color: #ffb4b4; display: block; }
.contact-form-msg.is-ok { color: #a8f0c6; display: block; }

.contact-map { margin-top: 2.5rem; border-radius: 24px; overflow: hidden; aspect-ratio: 16/7; border: 1px solid var(--color-line); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =============================================================
   15. Footer + copyright bar
   ============================================================= */
.footer { padding-block: clamp(3rem, 6vw, 4rem) 0; }
.footer .container { display: flex; flex-direction: column; gap: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--color-line); }
.footer-top { display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; justify-content: space-between; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 1rem; }
.footer-cols { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); width: 100%; }
.footer-col h4 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-navy-900); margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { font-size: .9rem; color: var(--color-text-muted); transition: color .3s; }
.footer-col a:hover { color: var(--color-accent); }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--color-bg-light); }
.footer-social svg { width: 17px; height: 17px; }

.copyright-bar {
  max-width: var(--container); margin-inline: auto; padding: 1.2rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between;
  font-size: .82rem; color: var(--color-text-muted);
}

/* =============================================================
   16. WhatsApp float
   ============================================================= */
.whatsapp-float {
  position: fixed; right: clamp(1rem, 4vw, 1.75rem); bottom: clamp(6.5rem, 14vw, 7.5rem); z-index: 85;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 16px 32px -10px rgba(37,211,102,.55);
  transition: transform .35s cubic-bezier(0.34,1.56,0.64,1);
}
.whatsapp-float:hover { transform: scale(1.08) translateY(-2px); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* =============================================================
   18. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .footer-top { flex-direction: row; }
}
@media (min-width: 720px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .header-links { display: flex; }
  .header-toggle { display: none; }
  .service-list { grid-template-columns: repeat(3, 1fr); gap: 1.3rem 1rem; }
  .service-item { gap: .5rem; }
}

/* =============================================================
   19. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation-duration: 90s; }
  .hero-video { display: none; }
}
