/* ============ Reset / base ============ */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #0a0a0b;
  color: #ececee;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

:root {
  --red: #ff2e44;
  --red-deep: #b3001b;
  --ink: #0a0a0b;
  --ink-2: #111114;
  --line: rgba(255,255,255,0.08);
  --muted: #9a9aa3;
  --container: 1200px;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin: 0 auto;
}

/* ============ Background FX ============ */
.bg-fx {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(1200px 800px at 80% -10%, rgba(255,46,68,0.12), transparent 60%),
              radial-gradient(900px 600px at -10% 110%, rgba(255,46,68,0.08), transparent 60%),
              #0a0a0b;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  animation: float 18s ease-in-out infinite;
}
.blob-1 { width: 480px; height: 480px; background: #ff2e44; top: -120px; right: -120px; }
.blob-2 { width: 380px; height: 380px; background: #5b0010; bottom: -120px; left: -80px; animation-delay: -6s; }
.blob-3 { width: 280px; height: 280px; background: #ff7488; top: 40%; left: 60%; opacity: .15; animation-delay: -12s; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1rem 0;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,11,0.7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(100% - 2.5rem, var(--container));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: .55rem; color: #fff; }
.brand-mark { width: 28px; height: 28px; color: var(--red); object-fit: contain; }
.brand-word { font-weight: 700; letter-spacing: .18em; font-size: .9rem; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: .88rem; letter-spacing: .08em; color: #d6d6dc;
  position: relative; padding: .25rem 0;
}
.nav-links a:hover { color: #fff; }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--red); transition: width .3s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--line); padding: .55rem 1rem; border-radius: 999px;
  transition: all .25s ease;
}
.nav-cta:hover { background: var(--red); border-color: var(--red); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; transition: .3s; }

/* ============ Hero ============ */
.hero {
  min-height: 100vh; padding: 8rem 0 4rem; display: flex; align-items: center;
  position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: #d6d6dc; margin: 0 0 1.5rem;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(255,46,68,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,46,68,.6); }
  70% { box-shadow: 0 0 0 12px rgba(255,46,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,46,68,0); }
}

.headline {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.02em; margin: 0 0 1.5rem;
  font-weight: 600;
}
.headline em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic; font-weight: 400;
  background: linear-gradient(120deg, #ff2e44, #ff8a96);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  font-size: 1.1rem; color: #c8c8d0; max-width: 520px; margin: 0 0 2rem;
}
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 3rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 500; font-size: .95rem; letter-spacing: .01em;
  transition: all .25s ease; border: 1px solid transparent;
}
.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(255,46,68,.6);
}
.btn-primary:hover { background: #ff495d; transform: translateY(-2px); box-shadow: 0 14px 36px -10px rgba(255,46,68,.8); }
.btn-ghost { border-color: var(--line); color: #ececee; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.04); }
.btn-block { width: 100%; justify-content: center; padding: 1rem; }

.hero-meta {
  display: flex; gap: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong {
  font-size: 1.6rem; letter-spacing: -.01em; color: #fff;
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
}
.hero-meta span { font-size: .78rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* Hero visual */
.hero-visual { display: flex; justify-content: center; }
.hero-card {
  position: relative; width: 100%; max-width: 420px; aspect-ratio: 4/5;
  border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  padding: 2rem; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.hero-card-glow {
  position: absolute; inset: -1px; border-radius: 24px; padding: 1px;
  background: conic-gradient(from 0deg, transparent 0deg, var(--red) 90deg, transparent 180deg, var(--red) 270deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .5; animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.dragon { width: 85%; align-self: center; filter: drop-shadow(0 20px 50px rgba(255,46,68,.45)); }
.hero-card-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.hero-card-tags span {
  font-size: .72rem; padding: .35rem .7rem; border: 1px solid var(--line);
  border-radius: 999px; color: #d0d0d8; letter-spacing: .06em;
}

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1px solid rgba(255,255,255,.3); border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-cue span {
  width: 2px; height: 8px; background: #fff; border-radius: 2px;
  animation: scroll 1.8s infinite;
}
@keyframes scroll {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ============ Sections ============ */
.section { padding: 7rem 0; position: relative; }
.section-head { margin-bottom: 3rem; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; font-size: .78rem; letter-spacing: .25em;
  color: var(--red); text-transform: uppercase; margin-bottom: 1rem;
  font-weight: 500;
}
.section h2 {
  font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.08;
  letter-spacing: -.02em; margin: 0; font-weight: 600;
}
.section h2 em {
  font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400;
  color: var(--red);
}
.muted { color: var(--muted); }

/* Reel */
.reel-frame {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.6);
  background: #000;
}
.reel-frame video { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.reel-corner {
  position: absolute; width: 18px; height: 18px;
  border: 2px solid var(--red); pointer-events: none;
}
.reel-corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.reel-corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.reel-corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.reel-corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* About */
.about-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center;
}
.bullet-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.bullet-list li {
  padding: .85rem 0 .85rem 1.6rem; border-bottom: 1px solid var(--line);
  position: relative; color: #d0d0d8;
}
.bullet-list li::before {
  content: '→'; position: absolute; left: 0; color: var(--red);
}
.cert-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.cert {
  border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem;
  background: rgba(255,255,255,0.03);
  transition: all .3s ease;
  display: grid; place-items: center;
  aspect-ratio: 1.4/1;
}
.cert:hover { border-color: var(--red); transform: translateY(-3px); background: rgba(255,46,68,.04); }
.cert img {
  max-width: 100%; max-height: 90px; width: auto; height: auto;
  object-fit: contain;
  opacity: .9;
  transition: opacity .25s, transform .25s;
}
.cert:hover img { opacity: 1; transform: scale(1.04); }

/* Servicios */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.service {
  border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  position: relative; overflow: hidden;
  transition: all .35s cubic-bezier(.2,.7,.2,1);
}
.service::before {
  content: ''; position: absolute; inset: auto -50% -60% auto;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,46,68,.35), transparent 70%);
  opacity: 0; transition: opacity .35s ease;
}
.service:hover { transform: translateY(-6px); border-color: rgba(255,46,68,.4); }
.service:hover::before { opacity: 1; }
.service-num {
  font-family: 'Instrument Serif', Georgia, serif; font-size: 1.4rem;
  color: var(--red); margin-bottom: 2.5rem;
}
.service h3 {
  font-size: 1.4rem; margin: 0 0 .6rem; letter-spacing: -.01em; font-weight: 600;
}
.service p { color: var(--muted); margin: 0 0 1.5rem; font-size: .95rem; }
.service-link {
  font-size: .88rem; color: #fff; border-bottom: 1px solid var(--red);
  padding-bottom: 2px; transition: gap .3s;
}
.service-link:hover { color: var(--red); }

/* Marcas */
.marcas { padding-bottom: 5rem; }
.marcas-logos {
  margin-top: 3rem; padding: 3rem 2.5rem; border-radius: 24px;
  background: #f5f5f7; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.marcas-img {
  width: 100%; height: auto; display: block;
  max-width: 980px; margin: 0 auto;
}
.marcas-img.mobile { display: none; }
@media (max-width: 720px) {
  .marcas-img.desktop { display: none; }
  .marcas-img.mobile { display: block; }
}

/* Contacto */
.contacto-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.contact-direct { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  transition: padding .3s ease;
}
.contact-line:hover { padding-left: .5rem; border-color: var(--red); }
.contact-line span { font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.contact-line strong { font-weight: 500; font-size: 1.05rem; }

.contact-form {
  display: flex; flex-direction: column; gap: 1rem;
  background: rgba(255,255,255,0.02); border: 1px solid var(--line);
  border-radius: 20px; padding: 2rem;
  backdrop-filter: blur(10px);
}
.contact-form label { display: flex; flex-direction: column; gap: .4rem; }
.contact-form span {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.contact-form span em { font-style: normal; opacity: .6; }
.contact-form input, .contact-form textarea {
  background: rgba(0,0,0,.3); border: 1px solid var(--line);
  border-radius: 10px; padding: .85rem 1rem; color: #fff;
  font-family: inherit; font-size: .98rem;
  transition: border-color .25s, background .25s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--red); background: rgba(255,46,68,.05);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-status { font-size: .9rem; margin: 0; min-height: 1.2em; color: var(--muted); }
.form-status.success { color: #5dd39e; }
.form-status.error { color: #ff7080; }

/* Footer */
.footer { padding: 2.5rem 0; border-top: 1px solid var(--line); margin-top: 2rem; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.footer-copy { color: var(--muted); font-size: .85rem; margin: 0; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  transition: all .25s ease;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 1.2rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,10,11,.95); backdrop-filter: blur(16px);
    padding: 2rem; border-bottom: 1px solid var(--line);
  }
  .hero-grid, .about-grid, .contacto-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero { padding-top: 6rem; }
  .hero-visual { max-width: 320px; margin: 0 auto; }
  .hero-meta { flex-wrap: wrap; gap: 1.5rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 5rem 0; }
  .marquee-track { font-size: 1.3rem; gap: 1.5rem; }
}
@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 1rem 2rem; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
