/* =========================================
   WARRIOR AGENCY — CSS
   Refs: Jesko (dark luxury) · Igloo (2-color)
         Lando (bold accent) · Noomo (minimal)
   ========================================= */

:root {
  --bg:        #080808;
  --bg-2:      #0f0f0f;
  --bg-card:   #131313;
  --accent:    #FF4D00;
  --accent-dim:  rgba(255, 77, 0, 0.12);
  --accent-glow: rgba(255, 77, 0, 0.35);
  --text:      #F0EDE8;
  --text-dim:  #8A8780;
  --text-muted:#4A4845;
  --border:    rgba(240, 237, 232, 0.07);
  --font-sans: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

/* ── Anti-FOUC: oculta hasta que ScrollTrigger arme los pin spacers ── */
html:not(.st-ready) body { visibility: hidden; }

/* ── Starfield canvas fijo de fondo ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { display: none; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
a, button { cursor: none; }

/* ── Cursor — sol pequeño (paleta Warrior) ── */
#custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 120px;
  height: 120px;
  margin-left: -60px;
  margin-top: -60px;
  pointer-events: none;
  z-index: 10010;
  will-change: transform;
  mix-blend-mode: screen;
}

/* Halo exterior (naranja profundo, respiración lenta) */
.cursor__lens-field {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(255, 77, 0, 0.35) 0%,
    rgba(255, 110, 30, 0.22) 18%,
    rgba(255, 140, 60, 0.10) 38%,
    rgba(255, 170, 90, 0.04) 58%,
    transparent 75%);
  filter: blur(2px);
  animation: sun-breathe 5.5s ease-in-out infinite;
}

/* Núcleo brillante + halo interno medio */
.cursor__void {
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    #fff7ec 0%,
    #ffd9a8 35%,
    #ff8a3d 65%,
    rgba(255, 77, 0, 0.85) 100%);
  box-shadow:
    0 0 8px 2px rgba(255, 180, 90, 0.9),
    0 0 22px 8px rgba(255, 110, 30, 0.55),
    0 0 44px 18px rgba(255, 77, 0, 0.25);
  animation: sun-pulse 3.2s ease-in-out infinite;
}

@keyframes sun-breathe {
  0%, 100% { transform: scale(1);     opacity: 0.85; }
  50%      { transform: scale(1.12);  opacity: 1; }
}
@keyframes sun-pulse {
  0%, 100% { transform: translate(0,0) scale(1);    filter: brightness(1); }
  50%      { transform: translate(0,0) scale(1.08); filter: brightness(1.15); }
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 3rem;
}

.nav__logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--accent); }

.nav__cta {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-dim);
  transition: border-color 0.3s, color 0.3s;
}
.nav__cta:hover { border-color: var(--accent); color: var(--accent); }

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 2;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: left;
  width: 46%;
  max-width: 640px;
  margin-left: 4vw;
  padding: 3rem 3.5rem 3.5rem;
  background: rgba(6, 6, 18, 0.38);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

.hero__title {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}

/* Each .line clips its inner span — text reveal effect (ref: Lusion, RESN) */
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.hero__title .line > span { display: inline-block; white-space: nowrap; }

.accent-text { color: var(--accent); }

.hero__sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 2.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 1.1rem 2.4rem;
  border-radius: 100px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--accent-glow);
}
.btn-primary .arrow { transition: transform 0.3s ease; }
.btn-primary:hover .arrow { transform: translateX(5px); }

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ── MANIFESTO (ref: Noomo — statement-first) ── */
.manifesto {
  padding: 7rem 2.5rem;
  background: transparent;
  overflow: hidden;
  margin-top: -100vh;
}
.manifesto__inner { max-width: 1000px; margin: 0 auto; }

.manifesto__overline {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

.manifesto__text {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}
.manifesto__text em { font-style: normal; color: var(--accent); }

.manifesto__body {
  font-size: 1.1rem;
  line-height: 1.85;
  color: rgba(240, 237, 232, 0.88);
  max-width: 620px;
  background: rgba(8, 8, 12, 0.38);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  padding: 1.6rem 2rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.35);
}
.manifesto__body strong { color: var(--text); font-weight: 600; }

/* ── SECTION LABELS (shared) ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FF8C55;
  margin-bottom: 1rem;
}
.section-label.light { color: rgba(255, 77, 0, 0.65); }

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 4rem;
}

/* ── SERVICIOS ── */
.servicios {
  padding: 14rem 0;
  background: transparent;
  margin-top: -100vh;
}

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .servicios__grid { grid-template-columns: 1fr; } }

/* Cards — Liquid Glass (ref: Apple Vision Pro, iOS 26) */
.card {
  position: relative;
  background: rgba(6, 6, 18, 0.28);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 2.75rem;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.35s ease, box-shadow 0.4s ease;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  pointer-events: none;
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.07);
}

/* Featured card — cristal ligeramente más denso */
.card.featured {
  background: rgba(6, 6, 18, 0.36);
  border-color: rgba(255, 255, 255, 0.14);
}
.card.featured:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,77,0,0.12) inset;
}

.card__badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: #000;
  padding: 0.28rem 0.85rem;
  border-radius: 100px;
  border: 1px solid #000;
}
.card__icon { font-size: 3rem; margin-bottom: 1.75rem; display: block; }
.card__title {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  color: #fff;
}
.card__desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.75rem;
}
.card__list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.card__list li {
  font-size: 0.85rem;
  color: #FF8C55;
  padding-left: 1.4rem;
  position: relative;
}
.card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #FF4D00;
}

/* ── TESTIMONIOS ── */
.testimonios {
  padding: 13rem 0;
  margin-top: -100vh;
}
.testimonios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .testimonios__grid { grid-template-columns: 1fr; } }

.tcard {
  position: relative;
  background: rgba(6, 6, 18, 0.28);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.35s ease, box-shadow 0.4s ease;
}
.tcard:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.tcard--featured {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  border-top-color: rgba(255, 255, 255, 0.22);
}
.tcard--featured:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

/* Comilla decorativa */
.tcard::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-size: 6rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.14;
  font-family: Georgia, serif;
  pointer-events: none;
}

.tcard__quote {
  font-size: 1rem;
  line-height: 1.78;
  color: rgba(255,255,255,0.85);
  padding-top: 1.75rem;
}

.tcard__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.tcard__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 77, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.tcard__name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}
.tcard__role {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.2rem;
}

/* ── PROCESO ── */
.proceso {
  padding: 14rem 0;
  background: transparent;
  margin-top: -100vh;
}
.proceso__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
@media (max-width: 900px) {
  .proceso__steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) { .proceso__steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  background: rgba(6, 6, 18, 0.28);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.35s ease, box-shadow 0.4s ease;
}
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.13), transparent);
  pointer-events: none;
}
.step:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.step__num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: #FF8C55;
  display: block;
  margin-bottom: 1.25rem;
  line-height: 1;
}
.step__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: #fff;
}
.step__desc { font-size: 0.9rem; line-height: 1.75; color: rgba(255,255,255,0.9); }

/* ── CTA FINAL (ref: Jesko full-screen + Noomo statement) ── */
.cta-section {
  position: relative;
  padding: 16rem 2rem;
  margin-top: -100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}
#cta-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
}
.cta-section__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  pointer-events: auto;
}
.cta-section__title {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 1rem 0 1.5rem;
}
.cta-section__sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 2.75rem;
  line-height: 1.6;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: #25D366;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 1.15rem 2.6rem;
  border-radius: 100px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4);
}

/* ── FOOTER ── */
.footer {
  padding: 8rem 3rem 12rem;
  background: transparent;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── RESULTADOS ── */
.resultados {
  padding: 14rem 0;
  background: transparent;
  margin-top: -100vh;
}
.resultados__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .resultados__grid { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  position: relative;
  background: rgba(6, 6, 18, 0.28);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.35s, box-shadow 0.4s;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  pointer-events: none;
}
.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.stat__top {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
}
.stat__number {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}
.stat__unit {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ── ABOUT ── */
.about {
  padding: 6rem 0 14rem;
  background: transparent;
  margin-top: -100vh;
}
.about__inner {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.about__left {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.about__headline-card {
  background: rgba(6, 6, 18, 0.28);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 3rem 4rem;
  position: relative;
  overflow: hidden;
}
.about__headline-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  pointer-events: none;
}

.about__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 1rem 0 1.75rem;
}
.about__title em { font-style: normal; color: var(--accent); }

.about__body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-dim);
}

.about__pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .about__pillars { grid-template-columns: 1fr; } }

.about__pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  background: rgba(6, 6, 18, 0.28);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 2.25rem;
  overflow: hidden;
  position: relative;
  transition: border-color 0.4s ease, transform 0.35s ease, box-shadow 0.4s ease;
}
.about__pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.13), transparent);
  pointer-events: none;
}
.about__pillar:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.pillar__icon {
  width: 52px;
  height: 52px;
  background: rgba(232, 92, 44, 0.08);
  border: 1px solid rgba(232, 92, 44, 0.22);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
}
.pillar__icon svg {
  width: 100%;
  height: 100%;
}

.pillar__text {
  flex: 1;
}

.pillar__num {
  display: none;
}
.about__pillar strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
}
.about__pillar p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ── PORTAL CARDS ── */
.pcard {
  font-family: var(--font-sans);
  color: #F0EDE8;
  z-index: 10002;
}
.pcard__num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #FF4D00;
  letter-spacing: 0.18em;
  margin-bottom: 0.5rem;
}
.pcard__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}
.pcard__sub {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.9rem;
  line-height: 1.5;
}
.pcard__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}
.pcard__features li {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.72);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}
.pcard__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── CONTACTO ── */
.contacto {
  padding: 3rem 0 18rem;
  background: transparent;
  margin-top: -100vh;
}

.contacto__glass-card {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  background: rgba(6, 6, 18, 0.42);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 3.5rem 4rem 4.5rem;
  overflow: hidden;
}
.contacto__glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
}

.contacto__header {
  margin-bottom: 2.5rem;
}
.contacto__header .section-title {
  margin-bottom: 0;
}

.contacto__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form__group--full { grid-column: 1 / -1; }

.form__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FF8C55;
}

.form__input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.3s, background 0.3s;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}
.form__input::placeholder { color: var(--text-muted); }
.form__input:focus {
  border-color: rgba(255, 100, 30, 0.55);
  background: rgba(255, 255, 255, 0.07);
}

.form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23FF8C55' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form__select option { background: #060612; color: #F0EDE8; }

.form__textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

.form__submit { align-self: flex-start; gap: 0.75rem; }

/* ══════════════════════════════════════════
   MOBILE — breakpoint ≤ 768px
   ══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Quitar el apilado de secciones — en móvil fluyen secuencialmente */
  .manifesto, .resultados, .servicios, .about, .testimonios, .proceso, .contacto, .cta-section {
    margin-top: 0;
  }

  /* Resultados mobile */
  .resultados { padding: 6rem 1.5rem; }
  .resultados__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-card { padding: 1.75rem 1.25rem; }

  /* About mobile */
  .about { padding: 6rem 1.5rem; }
  .about__pillars { grid-template-columns: 1fr; gap: 1rem; }
  .about__title { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .about__body { font-size: 0.95rem; }

  /* Contacto mobile */
  .contacto { padding: 6rem 1.5rem; }
  .form__row { grid-template-columns: 1fr; gap: 1.25rem; }
  .form__label { font-size: 0.6rem; letter-spacing: 0.08em; }
  .contacto__glass-card { padding: 2rem 1.25rem 2.5rem; border-radius: 20px; }

  /* Nav */
  .nav { padding: 1.25rem 1.5rem; }
  .nav__cta { font-size: 0.7rem; padding: 0.5rem 1.1rem; }

  /* Hero */
  .hero { justify-content: center; min-height: 100svh; }
  .hero__content {
    width: calc(100% - 3rem);
    max-width: 100%;
    margin-left: 0;
    padding: 2.25rem 1.75rem 2.5rem;
    text-align: left;
  }
  .hero__label { font-size: 0.60rem; letter-spacing: 0.08em; white-space: nowrap; }
  .hero__title { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero__sub { font-size: 0.95rem; margin-bottom: 2rem; }

  /* Ocultar cursor custom en móvil */
  #custom-cursor { display: none; }
  body, a, button { cursor: auto; }

  /* Manifesto */
  .manifesto { padding: 6rem 1.5rem; }
  .manifesto__text { font-size: clamp(2rem, 7.5vw, 3rem); }
  .manifesto__body { font-size: 0.95rem; }

  /* Servicios */
  .servicios { padding: 6rem 0; }
  .servicios__grid { grid-template-columns: 1fr; }
  .card { padding: 2rem; }

  /* Testimonios */
  .testimonios { padding: 6rem 0; }
  .testimonios__grid { grid-template-columns: 1fr; }

  /* Proceso */
  .proceso { padding: 6rem 0; }
  .proceso__steps { grid-template-columns: 1fr; gap: 1rem; }

  /* CTA */
  .cta-section { padding: 8rem 1.5rem; }
  .cta-section__title { font-size: clamp(2rem, 8vw, 3rem); }

  /* Section titles */
  .section-title { font-size: clamp(1.8rem, 7vw, 2.8rem); margin-bottom: 2.5rem; }

  /* Footer */
  .footer { padding: 5rem 1.5rem 8rem; }
}

/* ═══════════════════════════════════════
   PORTAL — Cartas de naves (3 efectos de revelado)
   ═══════════════════════════════════════ */
.pcard {
  position: absolute;
  width: min(720px, 42vw);
  /* contenedor sin caja visible — la caja vive en .pcard__content */
  opacity: 0;
  pointer-events: none;
  color: #F0EDE8;
  font-family: var(--font-sans);
}
@media (max-width: 768px) {
  .pcard { width: calc(100vw - 32px); }
  .pcard__content { padding: 1.25rem 1.4rem; }
  .pcard__title { font-size: 1.2rem; }
  .pcard__sub { font-size: 0.82rem; }
  .pcard__features li { font-size: 0.82rem; }
}
.pcard__content {
  position: relative;
  padding: 2rem 2.4rem;
  background: rgba(4,4,8,0.90);
  border: 1.5px solid color-mix(in srgb, var(--accent, #FF4D00) 45%, transparent);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  box-shadow:
    0 0 44px color-mix(in srgb, var(--accent, #FF4D00) 22%, transparent),
    inset 0 0 22px color-mix(in srgb, var(--accent, #FF4D00) 3%, transparent);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
}
.pcard.pcard--reveal { pointer-events: auto; }

.pcard__num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent, #FF4D00);
  letter-spacing: 0.14em;
  margin-bottom: 0.6rem;
}
.pcard__title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 0.4rem 0;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.1;
}
.pcard__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin: 0 0 1.3rem 0;
  line-height: 1.4;
}
.pcard__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.pcard__features li {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  line-height: 1.35;
}
.pcard__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

/* ═══ EFECTO ELECTROSURGE — secuencia ═══
   0-180ms (en JS):  rayo del conector ya visible, sin chispa ni carta
   180-180ms:        agrega .pcard--reveal
   0-100ms:          la columna vertical (.pcard__spark) se enciende
   100-600ms:        la columna se "abre": .pcard__content expande scaleX 0→1
   200-600ms:        la chispa se desvanece (consumida)
   600-1300ms:       texto entra línea por línea
   600-1200ms:       chispas residuales en las 4 esquinas
=================================================== */

.pcard--electrosurge .pcard__features li { opacity: 0; transform: translateX(-6px); }

/* Columnas verticales de plasma — rieles que escoltan los bordes */
.pcard__spark {
  position: absolute;
  top: -8px; bottom: -8px;
  width: 3px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255,255,255,0) 8%,
    rgba(255,255,255,1) 50%,
    rgba(255,255,255,0) 92%,
    transparent 100%);
  box-shadow:
    0 0 10px 1px #fff,
    0 0 24px 6px var(--accent, #FF4D00),
    0 0 60px 14px color-mix(in srgb, var(--accent, #FF4D00) 55%, transparent);
  opacity: 0;
  transform: translateX(-50%) scaleY(0);
  pointer-events: none;
  z-index: 3;
}
/* Ambas arrancan en el centro (left: 50%); ride a su borde durante la expansión */
.pcard__spark--left,
.pcard__spark--right { left: 50%; }

/* Pulso eléctrico que da la vuelta al perímetro */
.pcard__lap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
  z-index: 2;
}
.pcard__lap-rect {
  filter: drop-shadow(0 0 4px var(--accent, #FF4D00)) drop-shadow(0 0 2px #fff);
}

/* Chispas residuales en las 4 esquinas */
.pcard__corner {
  position: absolute;
  width: 18px; height: 18px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at center,
    #fff 0%, var(--accent, #FF4D00) 35%,
    color-mix(in srgb, var(--accent, #FF4D00) 50%, transparent) 60%,
    transparent 80%);
  border-radius: 50%;
  filter: blur(1px);
}
.pcard__corner--tl { top: -3px;    left: -3px; }
.pcard__corner--tr { top: -3px;    right: -3px; }
.pcard__corner--bl { bottom: -3px; left: -3px; }
.pcard__corner--br { bottom: -3px; right: -3px; }

/* Glitch RGB sutil en el título cuando ya está visible */
.pcard--electrosurge .pcard__title { position: relative; }
.pcard--electrosurge.pcard--reveal .pcard__title::before,
.pcard--electrosurge.pcard--reveal .pcard__title::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}
.pcard--electrosurge.pcard--reveal .pcard__title::before {
  color: #ff2d6e;
  animation: es-glitch-r 0.5s steps(7) 0.75s 1 both;
}
.pcard--electrosurge.pcard--reveal .pcard__title::after {
  color: #2dd9ff;
  animation: es-glitch-b 0.5s steps(7) 0.75s 1 both;
}

/* Reveal: orquestación
   0-100ms:    ambas columnas igniten en el centro (overlap, parecen una sola)
   100-650ms:  card expande Y columnas viajan a sus bordes en sincronía
   700-1200ms: pulso eléctrico recorre el perímetro
   1100-1400ms: columnas se apagan (consumidas por el pulso)
   650+:       texto entra
*/
.pcard--electrosurge.pcard--reveal { opacity: 1; }
.pcard--electrosurge.pcard--reveal .pcard__spark--left {
  animation: es-spark-ignite 0.6s ease-out forwards,
             es-spark-ride-left 0.55s cubic-bezier(.5,.05,.25,1) 0.10s forwards,
             es-spark-fade 0.3s ease-out 1.15s forwards;
}
.pcard--electrosurge.pcard--reveal .pcard__spark--right {
  animation: es-spark-ignite 0.6s ease-out forwards,
             es-spark-ride-right 0.55s cubic-bezier(.5,.05,.25,1) 0.10s forwards,
             es-spark-fade 0.3s ease-out 1.15s forwards;
}
.pcard--electrosurge.pcard--reveal .pcard__content {
  animation: es-content-expand 0.55s cubic-bezier(.5,.05,.25,1) 0.10s forwards;
}
.pcard--electrosurge.pcard--reveal .pcard__lap {
  animation: es-lap-on 0.05s linear 0.70s forwards;
}
.pcard--electrosurge.pcard--reveal .pcard__lap-rect {
  animation: es-lap-race 0.55s cubic-bezier(.4,0,.6,1) 0.70s forwards;
}
.pcard--electrosurge.pcard--reveal .pcard__corner {
  animation: es-corner 0.7s ease-out forwards;
}
.pcard--electrosurge.pcard--reveal .pcard__corner--tl { animation-delay: 1.22s; }
.pcard--electrosurge.pcard--reveal .pcard__corner--tr { animation-delay: 1.18s; }
.pcard--electrosurge.pcard--reveal .pcard__corner--bl { animation-delay: 1.26s; }
.pcard--electrosurge.pcard--reveal .pcard__corner--br { animation-delay: 1.14s; }

.pcard--electrosurge.pcard--reveal .pcard__num    { animation: es-text-in 0.35s ease-out 0.68s forwards; }
.pcard--electrosurge.pcard--reveal .pcard__title  { animation: es-text-in 0.35s ease-out 0.78s forwards; }
.pcard--electrosurge.pcard--reveal .pcard__sub    { animation: es-text-in 0.35s ease-out 0.92s forwards; }
.pcard--electrosurge.pcard--reveal .pcard__features li:nth-child(1) { animation: es-text-in 0.30s ease-out 1.04s forwards; }
.pcard--electrosurge.pcard--reveal .pcard__features li:nth-child(2) { animation: es-text-in 0.30s ease-out 1.13s forwards; }
.pcard--electrosurge.pcard--reveal .pcard__features li:nth-child(3) { animation: es-text-in 0.30s ease-out 1.22s forwards; }
.pcard--electrosurge.pcard--reveal .pcard__features li:nth-child(4) { animation: es-text-in 0.30s ease-out 1.31s forwards; }
.pcard--electrosurge.pcard--reveal .pcard__features li:nth-child(5) { animation: es-text-in 0.30s ease-out 1.40s forwards; }

@keyframes es-spark-ignite {
  0%   { opacity: 0; transform: translateX(-50%) scaleY(0); }
  15%  { opacity: 1; transform: translateX(-50%) scaleY(1.08); }
  30%  { opacity: 0.75; transform: translateX(-50%) scaleY(0.96); }
  50%  { opacity: 1; transform: translateX(-50%) scaleY(1); }
  100% { opacity: 1; transform: translateX(-50%) scaleY(1); }
}
/* Mismos keyframes que es-content-expand: overshoot a 1.02 al 60%, settle al 100%.
   Garantiza que la columna esté siempre en el borde de la carta. */
@keyframes es-spark-ride-left {
  0%   { left: 50%; }
  60%  { left: -1%; }
  100% { left: 0%;  }
}
@keyframes es-spark-ride-right {
  0%   { left: 50%;  }
  60%  { left: 101%; }
  100% { left: 100%; }
}
@keyframes es-spark-fade {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes es-content-expand {
  0%   { transform: scaleX(0);   opacity: 1; filter: brightness(1.4); }
  20%  { opacity: 1; }
  60%  { transform: scaleX(1.02); filter: brightness(1.15); }
  100% { transform: scaleX(1);    opacity: 1; filter: brightness(1); }
}
@keyframes es-lap-on  { to { opacity: 1; } }
@keyframes es-lap-race {
  0%   { stroke-dashoffset: 0;    stroke-width: 2.5; }
  85%  { stroke-dashoffset: -100; stroke-width: 2.5; }
  100% { stroke-dashoffset: -100; stroke-width: 1; opacity: 0; }
}

/* ── RETRACT — el cierre lo controla JS (cuerda eléctrica recogida hacia la nave)
   Durante hiding, el card mantiene su estado abierto y JS interpola posición + escala.
   Solo el texto y los corners se desvanecen suavemente para limpiar visualmente. */
/* Durante hiding: la carta entera se mantiene visible (texto, marco, columnas)
   y se encoge + viaja hacia la nave vía transform controlado por JS.
   Solo apagamos los detalles que no aportan al "recogimiento". */
.pcard--electrosurge.pcard--reveal.pcard--hiding .pcard__lap-rect {
  animation: none !important;
  opacity: 0;
}

/* Spark left = (1 - scaleX) * 50% — las columnas montan el borde del contenido
   en cada keyframe. Con la misma curva de easing, viajan sincronizadas hasta el centro. */
@keyframes es-content-retract {
  0%   { transform: scaleX(1);    opacity: 1; filter: brightness(1); }
  60%  { transform: scaleX(0.4);  opacity: 1; filter: brightness(1.2); }
  100% { transform: scaleX(0);    opacity: 0; }
}
@keyframes es-spark-retract-left {
  0%   { left: 0%;  opacity: 1; transform: translateX(-50%) scaleY(1); }
  60%  { left: 30%; opacity: 1; transform: translateX(-50%) scaleY(1.08); }
  100% { left: 50%; opacity: 0; transform: translateX(-50%) scaleY(0.4); }
}
@keyframes es-spark-retract-right {
  0%   { left: 100%; opacity: 1; transform: translateX(-50%) scaleY(1); }
  60%  { left: 70%;  opacity: 1; transform: translateX(-50%) scaleY(1.08); }
  100% { left: 50%;  opacity: 0; transform: translateX(-50%) scaleY(0.4); }
}
@keyframes es-text-out {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(2px); }
}
@keyframes es-corner {
  0%   { opacity: 0; transform: scale(0.2); }
  30%  { opacity: 1; transform: scale(1.6); }
  60%  { opacity: 0.6; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(0.4); }
}
@keyframes es-text-in {
  0%   { opacity: 0; transform: translateY(4px); clip-path: inset(0 100% 0 0); }
  60%  { opacity: 1; clip-path: inset(0 0 0 0); }
  100% { opacity: 1; transform: translateY(0);  clip-path: inset(0 0 0 0); }
}
@keyframes es-glitch-r {
  0%, 100% { transform: translate(0,0); opacity: 0; }
  20%      { transform: translate(-2px, 1px); opacity: 0.8; }
  50%      { transform: translate(2px, -1px); opacity: 0.5; }
  80%      { transform: translate(-1px, 0); opacity: 0.2; }
}
@keyframes es-glitch-b {
  0%, 100% { transform: translate(0,0); opacity: 0; }
  20%      { transform: translate(2px, -1px); opacity: 0.8; }
  50%      { transform: translate(-2px, 1px); opacity: 0.5; }
  80%      { transform: translate(1px, 0); opacity: 0.2; }
}

/* ── Cursor: feedback al pasar sobre nave ── */
html.ship-hover #custom-cursor .cursor__lens-field { transform: scale(1.35); }
html.ship-hover #custom-cursor .cursor__void { transform: scale(1.4); }
