/* ═══════════════════════════════════
   BASE & RESET
═══════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

:root {
  --bg:       #050505;
  --orange:   #FF6230;
  --magenta:  #E91E8C;
  --purple:   #8B5CF6;
  --white:    #FFFFFF;
  --g100:     rgba(255,255,255,0.85);
  --g400:     rgba(255,255,255,0.45);
  --g600:     rgba(255,255,255,0.12);
  --glass-bg: rgba(255,255,255,0.04);
  --glass-bd: rgba(255,255,255,0.08);
  --gradient: linear-gradient(135deg, #FF6230, #E91E8C, #8B5CF6);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
ul  { list-style: none; }
a   { text-decoration: none; color: inherit; }

/* ═══════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════ */
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; line-height: 1.1; }

.section-h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

/* Line header — magenta line + uppercase label */
.line-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: 'Manrope', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 1.5rem;
}
.line-header::before {
  content: '';
  display: block;
  width: 36px;
  height: 1.5px;
  background: var(--magenta);
  flex-shrink: 0;
}

.body-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--g400);
  margin-bottom: 1.2rem;
}

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════
   LAYOUT
═══════════════════════════════════ */
.container  { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-py { padding: 2rem 0; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-desc {
  font-size: 1.05rem;
  color: var(--g400);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ═══════════════════════════════════
   BUTTONS
═══════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--orange);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  padding: .85rem 1.8rem;
  border-radius: 50px;
  transition: background .3s, transform .3s, box-shadow .3s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--magenta);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(233,30,140,.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--g100);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  padding: .85rem 1.8rem;
  border-radius: 50px;
  border: 1px solid var(--glass-bd);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color .3s, background .3s;
}
.btn-ghost:hover {
  border-color: rgba(255,98,48,.5);
  background: rgba(255,98,48,.08);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--orange);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  border: 1px solid var(--orange);
  transition: background .3s, color .3s;
}
.btn-outline:hover { background: var(--orange); color: #fff; }

/* ═══════════════════════════════════
   GLASS CARD
═══════════════════════════════════ */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
}

/* ═══════════════════════════════════
   NAVBAR
═══════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9995;
  transition: background .35s, box-shadow .35s;
}
#navbar.scrolled {
  background: rgba(5,5,5,.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--glass-bd);
}

.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  height: 72px; display: flex; align-items: center; gap: 1.5rem;
}

.logo { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.logo-main { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--white); }
.logo-sub  { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .48rem; letter-spacing: .28em; color: var(--g400); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.nav-link  { font-size: .875rem; font-weight: 500; color: var(--g400); padding: .5rem .9rem; border-radius: 8px; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--white); }

.btn-cta-nav {
  flex-shrink: 0; background: var(--orange); color: #fff;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .875rem;
  padding: .6rem 1.4rem; border-radius: 50px;
  transition: background .3s, transform .3s; white-space: nowrap;
}
.btn-cta-nav:hover { background: var(--magenta); transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  z-index: 9990;
  background: #050505;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: 0; margin: 0;
}
.mob-link {
  font-size: clamp(1.8rem, 8vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  padding: .55rem 0;
  text-align: center;
  display: block;
  transition: color .18s;
  letter-spacing: -.02em;
}
.mob-link:hover, .mob-link:active { color: var(--orange); }
.mob-cta {
  margin-top: 2.5rem;
  text-align: center;
  justify-content: center;
  font-size: 1rem;
  width: 100%;
  max-width: 280px;
}

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-bottom: 52px; /* space for marquee */
}

#heroCanvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}

.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 0 2rem;
  padding-top: 80px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .2em;
  color: var(--g400); border: 1px solid var(--glass-bd);
  border-radius: 50px; padding: .5rem 1rem; margin-bottom: 2.2rem;
  background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.badge-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 8px var(--orange);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.75)} }

.hero-h1 {
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 800; line-height: 1.04;
  letter-spacing: -0.03em; margin-bottom: 1.5rem;
  color: var(--white); max-width: 700px;
}
.hero-h1 em { font-style: italic; font-weight: 300; color: var(--g400); }

.hero-sub {
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  line-height: 1.7; color: var(--g400);
  margin-bottom: 2.5rem; max-width: 460px;
}

.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* Stats */
.hero-stats {
  position: absolute; bottom: 56px; left: 0; right: 0;
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: flex-end; gap: 2.5rem; z-index: 2;
}
.stat-item { text-align: left; }
.stat-num { display: block; font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-lbl { display: block; font-size: .58rem; font-weight: 700; letter-spacing: .18em; color: var(--g400); margin-top: .3rem; }
.stat-sep { width: 1px; height: 44px; background: var(--glass-bd); }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 58px; left: 2rem;
  display: flex; align-items: center; gap: .75rem; z-index: 2;
}
.scroll-line { width: 36px; height: 1px; background: var(--g400); }
.scroll-label { font-size: .58rem; font-weight: 700; letter-spacing: .22em; color: var(--g400); }

/* Marquee ticker */
.marquee-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--glass-bd);
  background: rgba(5,5,5,.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 3; height: 52px;
  display: flex; align-items: center;
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 2.5rem;
  animation: marquee 28s linear infinite;
  padding-right: 2.5rem;
}
.marquee-track:hover { animation-play-state: paused; }

.m-item {
  font-family: 'Manrope', sans-serif;
  font-size: .9rem; font-weight: 500;
  color: var(--g400); white-space: nowrap;
  letter-spacing: .04em;
}
.m-star { color: var(--magenta); font-size: .7rem; flex-shrink: 0; }

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

/* ═══════════════════════════════════
   NOSOTROS
═══════════════════════════════════ */
.nosotros { background: var(--bg); }

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.nosotros-pills {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem;
}
.pill {
  font-size: .78rem; font-weight: 600; color: var(--g400);
  padding: .38rem 1rem; border: 1px solid var(--glass-bd);
  border-radius: 50px; background: var(--glass-bg);
  transition: border-color .25s, color .25s, background .25s;
}
.pill:hover {
  border-color: rgba(255,98,48,.45);
  color: var(--white);
  background: rgba(255,98,48,.08);
}

.visual-stack { position: relative; }
.visual-stack img { width: 100%; height: 480px; border-radius: 20px; object-fit: cover; }

.visual-accent {
  position: absolute; bottom: -1.5rem; left: -1.5rem;
  padding: 1.2rem 1.6rem;
  display: flex; flex-direction: column; gap: .15rem;
}
.accent-num {
  font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.accent-lbl { font-size: .8rem; color: var(--g400); }

/* ═══════════════════════════════════
   CTA HERO (before servicios)
═══════════════════════════════════ */
.cta-hero-section { background: var(--bg); }

.cta-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem;
  border-radius: 24px;
  border: 1px solid var(--glass-bd);
  overflow: hidden;
  background: #0c0912;
}

.cta-hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 50%, rgba(139,92,246,.4) 0%, rgba(233,30,140,.2) 35%, transparent 65%);
  pointer-events: none;
}

.cta-hero-left { position: relative; z-index: 1; }

.cta-hero-h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.05; margin-bottom: 1.25rem;
}
.cta-hero-h2 em { font-style: italic; font-weight: 300; color: var(--g100); }

.cta-hero-sub {
  font-size: .95rem; line-height: 1.7; color: var(--g400);
}

.cta-hero-right {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 1rem;
}

.cta-wa-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: linear-gradient(135deg, var(--orange), var(--magenta));
  color: #fff;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .95rem;
  padding: 1.1rem 1.6rem; border-radius: 50px;
  transition: opacity .3s, transform .3s;
}
.cta-wa-btn:hover { opacity: .9; transform: translateY(-2px); }

.cta-email-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(255,255,255,.05);
  color: var(--g100); border: 1px solid var(--glass-bd);
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: .95rem;
  padding: 1.1rem 1.6rem; border-radius: 50px;
  transition: border-color .3s, background .3s;
}
.cta-email-btn:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.09); }

/* ═══════════════════════════════════
   CURSOR PERSONALIZADO
═══════════════════════════════════ */
@media (pointer: fine) {
  * { cursor: none !important; }
}

.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  pointer-events: none; z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s, opacity .2s;
  display: none;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid rgba(255, 98, 48, .55);
  pointer-events: none; z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, border-color .25s, background .25s;
  display: none;
}
.cursor-ring.hovering {
  width: 58px; height: 58px;
  border-color: var(--magenta);
  background: rgba(233, 30, 140, .07);
}
@media (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
}

/* ═══════════════════════════════════
   PROYECTOS
═══════════════════════════════════ */
.proyectos { background: linear-gradient(180deg, var(--bg) 0%, #080510 100%); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 260px 260px;
  gap: 1rem;
}
.portfolio-item { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.portfolio-item:hover img { transform: scale(1.06); }

/* Flipbook cover — cicla hasta 3 imgs con velocidad aleatoria */
.pf-flipbook {
  position: absolute;
  inset: 0;
}
.pf-frame {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: pf-fade var(--pf-dur, 2s) infinite ease-in-out;
  transition: transform .5s ease;
}
.pf-frame:nth-child(1) { animation-delay: 0s; }
.pf-frame:nth-child(2) { animation-delay: calc(var(--pf-dur, 2s) / var(--pf-count, 3)); }
.pf-frame:nth-child(3) { animation-delay: calc(var(--pf-dur, 2s) / var(--pf-count, 3) * 2); }

@keyframes pf-fade {
  0%   { opacity: 1; }
  26%  { opacity: 1; }
  34%  { opacity: 0; }
  92%  { opacity: 0; }
  100% { opacity: 1; }
}

/* Pausa el flipbook al hacer hover — muestra solo el primer frame */
.has-flipbook:hover .pf-frame {
  animation-play-state: paused;
  opacity: 0 !important;
  transform: scale(1.06);
}
.has-flipbook:hover .pf-frame:first-child {
  opacity: 1 !important;
}

/* Play button para proyectos con YouTube */
.portfolio-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
  transition: background .22s, transform .22s, border-color .22s;
  pointer-events: none;
  z-index: 2;
}
.portfolio-item:hover .portfolio-play {
  background: rgba(255,0,0,.75);
  border-color: rgba(255,255,255,.6);
  transform: translate(-50%, -50%) scale(1.1);
}

.portfolio-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.4rem;
  background: linear-gradient(0deg, rgba(5,5,5,.95) 0%, transparent 100%);
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s, transform .3s;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; transform: translateY(0); }

.portfolio-tag {
  display: inline-block; font-size: .62rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--orange); margin-bottom: .35rem;
}
.portfolio-overlay h3 { font-size: .9rem; font-weight: 600; }

.span-row-2 { grid-row: span 2; }
.span-col-2 { grid-column: span 2; }
.portfolio-cta { text-align: center; margin-top: 3rem; }

/* ═══════════════════════════════════
   SERVICIOS
═══════════════════════════════════ */
.servicios { background: var(--bg); }
.servicios .container-full {
  max-width: 90%;
  width: 90%;
}

.servicios-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
.servicios-h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: .5rem;
}
.servicios-h2 em { font-style: italic; font-weight: 300; color: var(--g400); }
.servicios-intro { margin-bottom: 0; max-width: 400px; align-self: end; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(var(--srv-cols, 4), 1fr);
  gap: 1.25rem;
}

/* Service card v2 — image top */
.service-card-v2 {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-bd);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.service-card-v2:hover {
  border-color: rgba(255,255,255,.15);
  transform: translateY(-4px);
}

.sc-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.sc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card-v2:hover .sc-img img { transform: scale(1.05); }

/* Dark gradient overlay on image */
.sc-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,.3) 0%, rgba(5,5,5,.5) 100%);
}

.sc-num {
  position: absolute; top: 1rem; left: 1rem; z-index: 1;
  font-size: .6rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.7);
}
.sc-icon {
  position: absolute; top: .9rem; right: 1rem; z-index: 1;
  color: rgba(255,255,255,.8);
}

.sc-body {
  padding: 1.75rem;
}
.sc-body h3 {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: .65rem; color: var(--white);
}
.sc-body p {
  font-size: .88rem; line-height: 1.7;
  color: var(--g400); margin-bottom: 1.25rem;
}
.sc-body ul { margin-bottom: 1.75rem; }
.sc-body li {
  font-size: .84rem; color: var(--g400);
  padding: .35rem 0;
  border-bottom: 1px solid var(--glass-bd);
  display: flex; align-items: center; gap: .5rem;
}
.sc-body li::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--magenta); flex-shrink: 0;
}

.sc-links { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; margin-top: .25rem; }

.sc-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .38rem 1rem;
  border-radius: 50px;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  transition: opacity .18s, transform .15s;
  white-space: nowrap;
}
.sc-pill:hover { opacity: .85; transform: translateY(-1px); }

.sc-pill-ver {
  background: rgba(139,92,246,.12);
  border: 1px solid rgba(139,92,246,.35);
  color: var(--purple);
}
.sc-pill-ver:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  transform: translateY(-2px);
}

.sc-pill-solicitar {
  background: linear-gradient(135deg, var(--magenta), var(--orange));
  color: #fff;
  border: 1px solid transparent;
}
.sc-pill-solicitar:hover {
  background: linear-gradient(135deg, var(--orange), var(--magenta));
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(233,30,140,.35);
}

/* ── FAQ ─────────────────────────────────────────── */
.faq-section { background: var(--bg); }

.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: .5rem; }

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: rgba(255,98,48,.3); }

.faq-q {
  width: 100%; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem;
  font-family: inherit; font-size: .97rem; font-weight: 600;
  color: var(--white); cursor: pointer; text-align: left; gap: 1rem;
}
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--orange); transition: transform .3s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .3s;
  font-size: .9rem; color: var(--g400); line-height: 1.7;
  padding: 0 1.4rem;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 1.4rem 1.2rem; }

/* ── CONTACTO ─────────────────────────────────────── */
.contacto-section { background: var(--bg); }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contacto-info { display: flex; flex-direction: column; gap: 1.5rem; }

.contacto-dato {
  display: flex; align-items: flex-start; gap: .9rem;
}
.contacto-dato svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--orange); margin-top: .15em; }
.contacto-dato-content { display: flex; flex-direction: column; gap: .1rem; }
.contacto-dato-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim, #8888a0); }
.contacto-dato-value { font-size: .95rem; color: var(--white); }
.contacto-dato-value a { color: var(--white); transition: color .18s; }
.contacto-dato-value a:hover { color: var(--orange); }

.contacto-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .5rem; }

.contacto-map {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-bd);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  color: var(--g400); font-size: .85rem;
}
.contacto-map iframe { width: 100%; height: 100%; border: none; }

@media (max-width: 768px) {
  .contacto-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ═══════════════════════════════════
   CTA SECTION
═══════════════════════════════════ */
.cta-section { background: linear-gradient(180deg, var(--bg) 0%, #0a0514 50%, var(--bg) 100%); }
.cta-card { max-width: 800px; margin: 0 auto; padding: 4rem; text-align: center; }
.cta-h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin: .5rem 0 1rem;
}
.cta-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem;
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.footer {
  border-top: 1px solid var(--glass-bd);
  padding-top: 4.5rem;
  padding-bottom: 0;
  overflow: hidden;
}
.footer-logo { margin-bottom: .75rem; display: inline-flex; }

.footer-top {
  display: flex; justify-content: space-between;
  gap: 3rem; margin-bottom: 3rem; flex-wrap: wrap;
}
.footer-brand { max-width: 280px; }
.footer-tagline { font-size: .875rem; color: var(--g400); margin-top: .5rem; line-height: 1.65; }

.footer-links { display: flex; gap: 4rem; }
.footer-col h4 {
  font-size: .62rem; font-weight: 700; letter-spacing: .25em;
  text-transform: uppercase; color: var(--g400); margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .65rem; }
.footer-col a {
  font-size: .875rem; color: var(--g400);
  display: flex; align-items: center; gap: .5rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }

/* Contact icons */
.fc-icon { width: 15px; height: 15px; color: var(--magenta); flex-shrink: 0; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--glass-bd);
  font-size: .78rem; color: var(--g400);
  flex-wrap: wrap; gap: .75rem;
}
.footer-credit {
  font-size: .78rem; color: var(--g400);
  transition: color .25s;
}
.footer-credit span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.footer-credit:hover { color: var(--g400); }

/* Wordmark — full color, huge, below footer content */
.footer-wordmark {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(100px, 18vw, 260px);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  line-height: .85;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  display: block;
  padding: 0;
}

/* ═══════════════════════════════════
   WHATSAPP FAB
═══════════════════════════════════ */
.whatsapp-fab {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 4px 24px rgba(37,211,102,.45);
  transition: transform .3s, box-shadow .3s;
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 8px 36px rgba(37,211,102,.55); }
.whatsapp-fab:hover .fab-tooltip { opacity: 1; transform: translateX(0); }

.fab-tooltip {
  position: absolute; right: 70px;
  background: rgba(5,5,5,.92); color: #fff;
  font-family: 'Manrope', sans-serif; font-size: .78rem; font-weight: 600;
  padding: .4rem .9rem; border-radius: 8px; white-space: nowrap;
  opacity: 0; transform: translateX(8px);
  transition: opacity .3s, transform .3s; pointer-events: none;
  border: 1px solid var(--glass-bd);
}

/* ═══════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1024px) {
  .nosotros-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .nosotros-visual  { display: none; }
  .cta-hero-card    { grid-template-columns: 1fr; gap: 2.5rem; }
  .servicios-top    { grid-template-columns: 1fr; gap: 1.5rem; }
  .services-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .btn-cta-nav { display: none; }
  .hamburger   { display: flex; }
  .mobile-menu { display: flex; }

  /* Hamburger encima del overlay */
  .hamburger { position: relative; z-index: 9999; }

  /* Texto blanco en mobile — sin grises */
  :root { --text-dim: #ffffff; }
  p, span, li, label, small, .body-text, .section-desc,
  .srv-hero-sub, .srv-bloque-sub, .srv-intro-txt,
  .footer-tagline, .footer-credit, .footer-bottom,
  .contacto-dato-label, .tarifa-sub, .tarifa-item-nota,
  .paquetes-nota, .paquete-nota, .form-note,
  .faq-a, .hero-sub { color: #fff; }

  .section-py  { padding: 4.5rem 0; }

  /* Hero */
  .hero {
    padding-bottom: 52px; min-height: 100svh;
    flex-direction: column; justify-content: flex-start;
  }
  .hero-h1     { font-size: clamp(2.6rem, 11vw, 3.5rem); }
  .desktop-br  { display: none; }
  #heroCanvas  { opacity: .3; }
  .hero-inner  { padding-top: 90px; flex: 1; width: 100%; }
  .hero-sub    { font-size: .9rem; }
  .scroll-hint { display: none; }

  /* Stats debajo del contenido del hero, antes del marquee */
  .hero-stats {
    position: static;
    justify-content: space-around;
    padding: 1.5rem 2rem;
    width: 100%;
    background: rgba(255,255,255,.03);
    border-top: 1px solid var(--glass-bd);
  }
  .stat-num { font-size: 1.6rem; }

  /* Marquee */
  .m-item { font-size: .78rem; }
  .marquee-bar { height: 44px; }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .span-row-2, .span-col-2 { grid-row: auto; grid-column: auto; }
  .portfolio-item { height: 200px; }

  /* Servicios */
  .servicios-top { grid-template-columns: 1fr; gap: 1rem; }
  .services-grid { grid-template-columns: 1fr; }

  /* CTA hero */
  .cta-hero-card { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.5rem; }
  .cta-hero-h2   { font-size: clamp(1.8rem, 7vw, 2.6rem); }

  /* Footer */
  .footer-top      { flex-direction: column; gap: 2rem; }
  .footer-links    { flex-direction: column; gap: 2rem; }
  .footer-wordmark { font-size: clamp(56px, 18vw, 110px); }
  .footer-bottom   { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

@media (max-width: 480px) {
  .hero-h1      { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats   { gap: 1.25rem; }
  .stat-num     { font-size: 1.4rem; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item { height: 220px; }

  .cta-hero-card { padding: 1.5rem; }
  .sc-body       { padding: 1.25rem; }

  .footer-wordmark { font-size: clamp(44px, 16vw, 90px); }
  .section-py      { padding: 3.5rem 0; }
}

/* ═══════════════════════════════════
   MODAL COTIZAR
═══════════════════════════════════ */
.cotizar-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.cotizar-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cotizar-overlay.open .cotizar-panel {
  transform: translateY(0);
  opacity: 1;
}

.cotizar-panel {
  position: relative;
  width: 90%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0e0e0e;
  border: 1px solid var(--glass-bd);
  border-radius: 1.25rem;
  padding: 3rem 3rem 2.5rem;
  transform: translateY(28px);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--glass-bd) transparent;
}
.cotizar-panel::-webkit-scrollbar { width: 4px; }
.cotizar-panel::-webkit-scrollbar-thumb { background: var(--glass-bd); border-radius: 4px; }

.cotizar-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  color: var(--g400);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.cotizar-close:hover { color: #fff; background: rgba(255,255,255,.1); }

.cotizar-header { margin-bottom: 2rem; }
.cotizar-titulo {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: #fff;
  margin-top: .5rem;
}

.cotizar-form { display: flex; flex-direction: column; gap: 1.5rem; }

.cotizar-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 580px) {
  .cotizar-row { grid-template-columns: 1fr; }
  .cotizar-panel { padding: 2rem 1.25rem; }
}

.cotizar-field { display: flex; flex-direction: column; gap: .5rem; }
.cotizar-field label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--g400);
}
.cotizar-field .req { color: var(--magenta); }
.cotizar-field .opt { color: var(--g600); font-weight: 400; text-transform: none; letter-spacing: 0; }

.cotizar-field input[type="text"],
.cotizar-field input[type="tel"],
.cotizar-field textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-bd);
  border-radius: .6rem;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: .95rem;
  padding: .75rem 1rem;
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.cotizar-field input:focus,
.cotizar-field textarea:focus {
  border-color: var(--orange);
}
.cotizar-field input::placeholder,
.cotizar-field textarea::placeholder { color: var(--g600); }

/* Radio pills */
.cotizar-radios,
.cotizar-checks {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.radio-pill,
.check-pill {
  cursor: pointer;
}
.radio-pill input,
.check-pill input { display: none; }

.radio-pill span,
.check-pill span {
  display: inline-block;
  padding: .45rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--glass-bd);
  background: var(--glass-bg);
  color: var(--g400);
  font-size: .82rem;
  font-weight: 600;
  transition: border-color .2s, color .2s, background .2s;
  user-select: none;
}
.radio-pill:hover span,
.check-pill:hover span {
  border-color: rgba(255,255,255,.25);
  color: #fff;
}
.radio-pill input:checked ~ span {
  border-color: var(--orange);
  background: rgba(255,98,48,.12);
  color: var(--orange);
}
.check-pill input:checked ~ span {
  border-color: var(--magenta);
  background: rgba(233,30,140,.12);
  color: var(--magenta);
}

/* Submit */
.cotizar-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: #25D366;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  width: 100%;
  transition: filter .2s, transform .15s;
  margin-top: .5rem;
}
.cotizar-submit:hover { filter: brightness(1.1); transform: translateY(-1px); }
