:root {
  --ink: #392759;
  --ink-soft: #4B3568;
  --paper: #E8F0FF;
  --paper-dim: #D9E3F7;
  --rec: #6874E8;
  --amber: #F7ACCF;
  --line: rgba(57, 39, 89, 0.18);
  --line-light: rgba(232, 240, 255, 0.25);
  --display: 'Archivo Black', sans-serif;
  --mono: 'Space Mono', monospace;
  --body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  cursor: none;
}

::selection {
  background: var(--rec);
  color: var(--paper);
}

/* ===== VIEWFINDER CURSOR ===== */
#viewfinder {
  position: fixed;
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width .18s ease, height .18s ease;
}

#viewfinder svg {
  width: 100%;
  height: 100%;
}

#viewfinder .vf-label {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 9px;
  color: #fff;
  white-space: nowrap;
  letter-spacing: .05em;
}

@media (max-width:900px) {
  #viewfinder {
    display: none;
  }

  body {
    cursor: auto;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width:640px) {
  .wrap {
    padding: 0 20px;
  }
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(57, 39, 89, 0.92);
  backdrop-filter: blur(6px);
  color: var(--paper);
  border-bottom: 1px solid var(--line-light);
}

nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF3B30;
  box-shadow: 0 0 8px #FF3B30;
  animation: blink 1.6s infinite;
  flex-shrink: 0;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(241, 238, 230, 0.75);
}

.nav-links a:hover {
  color: var(--paper);
}

.nav-links a.disabled, a.disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}

.timecode {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: .05em;
}

@media (max-width:900px) {
  .nav-links {
    display: none;
  }
}

/* ===== HERO ===== */
header.hero {
  background: var(--ink);
  color: var(--paper);
  min-height: 100vh;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

header.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-frame {
  position: absolute;
  top: 92px;
  bottom: 24px;
  left: 24px;
  right: 24px;
  border: 1px solid var(--line-light);
  pointer-events: none;
}

.hero-frame span {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #FF3B30;
  border-style: solid;
  border-width: 0;
  animation: blink 1.6s infinite;
  filter: drop-shadow(0 0 4px #FF3B30);
}

.hero-frame .tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.hero-frame .tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.hero-frame .bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.hero-frame .br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.hero-exif {
  position: absolute;
  top: 108px;
  left: 56px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(241, 238, 230, 0.55);
  line-height: 1.8;
}

.hero-exif .rec {
  color: var(--rec);
}

@media (max-width:640px) {
  .hero-exif {
    top: auto;
    bottom: 110px;
    left: 36px;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 56px;
}

.hero-solo-logo {
  position: absolute;
  right: 56px;
  top: 45%;
  transform: translateY(-50%);
  width: clamp(220px, 30vw, 440px);
  height: auto;
  display: block;
  opacity: 0.55;
  filter: drop-shadow(0 0 40px rgba(104, 116, 232, 0.3));
  mix-blend-mode: lighten;
  pointer-events: none;
}

@media (max-width:1100px) {
  .hero-solo-logo {
    width: 260px;
    right: 32px;
    opacity: 0.45;
  }
}

@media (max-width:640px) {
  .hero-frame {
    top: 84px;
    bottom: 16px;
    left: 16px;
    right: 16px;
  }

  .hero-content {
    padding: 0 28px;
  }

  .hero-solo-logo {
    width: 150px;
    right: 12px;
    top: 32%;
    opacity: 0.25;
  }

  .hero-exif {
    top: 96px;
    left: 28px;
    font-size: 9.5px;
    line-height: 1.6;
  }
}

.eyebrow-mono {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1.hero-title {
  font-family: var(--display);
  font-size: clamp(28px, 7.2vw, 128px);
  line-height: 0.92;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

@media (min-width:641px) {
  h1.hero-title,
  h1.hero-title .outline {
    white-space: nowrap;
  }
}

h1.hero-title .outline {
  -webkit-text-stroke: 1.5px var(--paper);
  color: transparent;
}

.hero-tagline {
  font-family: 'Outfit', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(14px, 1.6vw, 19px);
  max-width: 480px;
  margin-top: 24px;
  color: rgba(241, 238, 230, 0.8);
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
}

@media (max-width:640px) {
  .eyebrow-mono {
    font-size: 10.5px;
    margin-bottom: 12px;
  }

  .hero-tagline {
    font-size: 13.5px;
    margin-top: 18px;
    line-height: 1.55;
  }

  .hero-cta {
    margin-top: 28px;
    gap: 10px;
  }

  .hero-cta .btn {
    padding: 12px 18px;
    font-size: 11px;
  }
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 15px 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--paper);
  transition: all .2s ease;
}

.btn.solid {
  background: var(--paper);
  color: var(--ink);
}

.btn.solid:hover {
  background: var(--rec);
  border-color: var(--rec);
  color: var(--paper);
}

.btn.ghost {
  color: var(--paper);
}

.btn.ghost:hover {
  background: rgba(241, 238, 230, 0.08);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 56px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(241, 238, 230, 0.45);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-scroll .bar {
  width: 1px;
  height: 34px;
  background: rgba(241, 238, 230, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-scroll .bar::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--amber);
  animation: scrollbar 1.8s infinite ease-in-out;
}

@keyframes scrollbar {
  0% { top: -100%; }
  50% { top: 0%; }
  100% { top: 100%; }
}

/* ===== SECTION HEADER PATTERN ===== */
.section-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rec);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-tag::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--rec);
}

h2.section-title {
  font-family: var(--display);
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

/* ===== SHOT LIST / SERVICIOS ===== */
section.services {
  background: var(--paper);
  padding: 120px 0;
}

.services-head {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  margin-bottom: 64px;
  gap: 40px;
  flex-wrap: wrap;
}

.services-copy-card {
  max-width: 460px;
  background: rgba(57, 39, 89, 0.035);
  border-left: 3px solid var(--rec);
  padding: 22px 26px;
  border-radius: 0 8px 8px 0;
}

.copy-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--rec);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.copy-lead {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 400;
}

.copy-lead span {
  color: var(--ink-soft);
  font-weight: 500;
}

.copy-footer-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--rec);
  margin-top: 12px;
  letter-spacing: .04em;
}

.shotlist {
  border-top: 1px solid var(--line);
}

.shot {
  display: grid;
  grid-template-columns: 70px 1fr 200px 40px;
  align-items: center;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: background .25s ease;
  position: relative;
}

.shot:hover {
  background: var(--paper-dim);
}

.shot-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--rec);
  font-weight: 700;
}

.shot-title {
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 34px);
  text-transform: uppercase;
  letter-spacing: -.005em;
}

.shot-sub {
  font-family: var(--body);
  font-size: 12.5px;
  color: #5a5748;
  margin-top: 6px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--body);
}

.shot-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: #8a8677;
  text-align: right;
  line-height: 1.6;
}

.shot-arrow {
  font-family: var(--mono);
  font-size: 18px;
  transform: translateX(0);
  transition: transform .25s ease;
  text-align: right;
}

.shot:hover .shot-arrow {
  transform: translateX(6px);
  color: var(--rec);
}

@media (max-width:760px) {
  .shot {
    grid-template-columns: 40px 1fr;
    row-gap: 8px;
  }

  .shot-meta,
  .shot-arrow {
    display: none;
  }
}

/* ===== PORTFOLIO ===== */
section.portfolio {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 0;
}

section.portfolio .section-tag {
  color: var(--amber);
}

section.portfolio .section-tag::before {
  background: var(--amber);
}

.portfolio-head {
  margin-bottom: 56px;
}

.pgrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.pf {
  position: relative;
  border: 1px solid var(--line-light);
  overflow: hidden;
  aspect-ratio: 1/1;
  grid-column: span 2;
  display: flex;
  align-items: flex-end;
}

.pf.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.pf .swatch {
  position: absolute;
  inset: 0;
}

.pf1 .swatch { background: linear-gradient(155deg, #6874E8, #392759); }
.pf2 .swatch { background: linear-gradient(155deg, #F7ACCF, #7A5C61); }
.pf3 .swatch { background: linear-gradient(155deg, #7A5C61, #2A1B45); }
.pf4 .swatch { background: linear-gradient(155deg, #392759, #1D1230); }
.pf5 .swatch { background: linear-gradient(155deg, #6874E8, #F7ACCF); }
.pf6 .swatch { background: linear-gradient(155deg, #392759, #6874E8); }

.pf .grain {
  position: absolute;
  inset: 0;
  opacity: .15;
  mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255, 255, 255, .4) 1px, transparent 1px);
  background-size: 3px 3px;
}

.pf-corners span {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--amber);
  border-style: solid;
  border-width: 0;
  opacity: 0;
  transition: opacity .25s ease;
}

.pf:hover .pf-corners span {
  opacity: 1;
}

.pf-corners .tl { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.pf-corners .tr { top: 10px; right: 10px; border-top-width: 2px; border-right-width: 2px; }
.pf-corners .bl { bottom: 10px; left: 10px; border-bottom-width: 2px; border-left-width: 2px; }
.pf-corners .br { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }

.pf-info {
  position: relative;
  z-index: 2;
  padding: 16px;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}

.pf-info .cat {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  color: var(--amber);
  text-transform: uppercase;
}

.pf-info .name {
  font-family: var(--display);
  font-size: 15px;
  text-transform: uppercase;
  margin-top: 4px;
}

@media (max-width:900px) {
  .pgrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pf {
    grid-column: span 1 !important;
  }

  .pf.tall {
    grid-row: span 1;
  }
}

/* ===== MARQUEE CLIENTES ===== */
section.clients {
  background: var(--paper);
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.marquee {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: scrollx 24s linear infinite;
}

@keyframes scrollx {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee span {
  font-family: var(--display);
  font-size: 26px;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  opacity: .55;
  white-space: nowrap;
}

/* ===== STATS + TESTIMONIAL ===== */
section.proof {
  background: var(--paper-dim);
  padding: 110px 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.stat-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 20px;
}

.stat-num {
  font-family: var(--display);
  font-size: 44px;
  color: var(--rec);
}

.stat-lab {
  font-family: var(--mono);
  font-size: 10.5px;
  color: #5a5748;
  letter-spacing: .04em;
  margin-top: 6px;
}

.quote-block {
  border-left: 2px solid var(--rec);
  padding-left: 28px;
}

.quote-block p {
  font-family: var(--body);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
}

.quote-block .who {
  font-family: var(--mono);
  font-size: 11px;
  color: #6a6758;
  margin-top: 18px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

@media (max-width:800px) {
  .proof-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ===== CTA FINAL ===== */
section.cta-final {
  background: var(--rec);
  color: var(--paper);
  padding: 130px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

section.cta-final .dev-exif {
  position: absolute;
  top: 34px;
  left: 40px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(232, 240, 255, 0.7);
  line-height: 1.8;
  text-align: left;
}

.dev-exif .deploy {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width:640px) {
  section.cta-final .dev-exif {
    position: static;
    margin-bottom: 26px;
    text-align: center;
  }
}

.cta-final h2 {
  font-family: var(--display);
  font-size: clamp(34px, 6.5vw, 84px);
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -.01em;
}

.cta-final p.sub {
  font-family: var(--body);
  font-size: 15px;
  margin-top: 20px;
  opacity: .85;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final .hero-cta {
  justify-content: center;
  margin-top: 38px;
}

.cta-final .btn.solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.cta-final .btn.solid:hover {
  background: var(--paper);
  color: var(--ink);
}

.cta-final .btn.ghost {
  border-color: var(--paper);
}

.cta-final .btn.ghost:hover {
  background: rgba(0, 0, 0, 0.12);
}

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 44px;
  border-top: 1px solid var(--line-light);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  color: rgba(241, 238, 230, 0.5);
  flex-wrap: wrap;
  gap: 24px;
}

footer .footer-logo {
  height: 88px;
  width: auto;
  display: block;
}

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 400;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* ===== MODAL COTIZACION ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(29, 18, 48, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--ink);
  border: 1px solid var(--line-light);
  padding: 40px;
  width: 100%;
  max-width: 520px;
  position: relative;
  color: var(--paper);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.94);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: transparent;
  border: none;
  color: var(--paper);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.modal-close:hover {
  opacity: 1;
  color: var(--amber);
}

.modal-title {
  font-family: var(--display);
  font-size: clamp(22px, 3.5vw, 32px);
  text-transform: uppercase;
  margin-top: 4px;
  margin-bottom: 8px;
}

.modal-sub {
  font-family: var(--body);
  font-size: 13px;
  color: rgba(241, 238, 230, 0.7);
  line-height: 1.5;
  margin-bottom: 24px;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

  .modal-card {
    padding: 28px 20px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--amber);
}

.form-group input,
.form-group textarea {
  font-family: var(--body);
  font-size: 13.5px;
  padding: 12px 14px;
  background: rgba(232, 240, 255, 0.06);
  border: 1px solid var(--line-light);
  color: var(--paper);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--rec);
  background: rgba(232, 240, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(241, 238, 230, 0.35);
}

.btn-full {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  cursor: pointer;
}

.annot {
  font-family: var(--mono);
  font-size: 10px;
  color: #8a8677;
  text-align: center;
  padding: 14px 0;
  letter-spacing: .03em;
}
