/* ============================================================
   MEGAS Studios — styles.css
   Design tokens → Reset → Layout → Sections → Components
   ============================================================ */

/* ── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-primary:   #07111C;
  --bg-secondary: #0D1C2C;
  --bg-footer:    #020609;

  /* Borders */
  --border:       #19324A;
  --border-hover: #405E7A;

  /* Text */
  --text-primary:   #F5FAFF;
  --text-secondary: #91A4B7;
  --text-accent:    #DCEEFF;
  --text-blue:      #7fc4ff;

  /* Contact brand colors */
  --whatsapp: #25D366;
  --email:    #EA4335;

  /* Shadows */
  --shadow-cta:     0 8px 30px rgba(64, 94, 122, 0.4);
  --shadow-card:    0 10px 24px rgba(2, 6, 9, 0.3);
  --shadow-form:    0 30px 70px rgba(2, 6, 9, 0.4);
  --shadow-phone:   0 40px 80px rgba(2, 6, 9, 0.55);

  /* Radii */
  --radius-pill:  999px;
  --radius-card:  20px;
  --radius-input: 10px;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.5;
}
a { color: var(--text-accent); text-decoration: none; }
a:hover { color: var(--text-primary); }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); }
::selection { background: var(--border-hover); color: var(--text-primary); }

/* ── KEYFRAMES ───────────────────────────────────────────────── */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.015); }
}
@keyframes btn-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(220,238,255,0.5); }
  100% { box-shadow: 0 0 0 10px rgba(220,238,255,0); }
}
@keyframes card-reveal {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes final-ring {
  0%, 100% { box-shadow: 0 0 0 0   rgba(220,238,255,0.35); }
  50%       { box-shadow: 0 0 0 6px rgba(220,238,255,0.12); }
}
@keyframes hover-flash {
  0%, 100% { border-color: #2c4a68; }
  50%       { border-color: var(--text-blue); }
}
@keyframes mark-spin {
  from { transform: translate(-50%,-50%) rotate(0deg) scale(1); }
  50%  { transform: translate(-50%,-50%) rotate(180deg) scale(1.06); }
  to   { transform: translate(-50%,-50%) rotate(360deg) scale(1); }
}
@keyframes mark-pulse {
  0%, 100% { opacity: 0.14; }
  50%       { opacity: 0.32; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-item    { opacity: 1 !important; transform: none !important; }
  .reveal-clip    { opacity: 1 !important; clip-path: none !important; }
  .marquee-track  { animation-play-state: paused !important; }
  .phone-breathe  { animation: none !important; }
  .mark-spin      { animation: none !important; }
}

/* ── SCROLL REVEAL BASE ──────────────────────────────────────── */
.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-item.revealed { opacity: 1; transform: none; }

.reveal-clip {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: opacity 1s var(--ease-out), clip-path 1s var(--ease-out);
}
.reveal-clip.revealed { opacity: 1; clip-path: inset(0 0% 0 0); }

/* ── HEADER ──────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 6vw;
  background: rgba(7,17,28,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.header-logo {
  width: 220px;
  height: 58px;
  max-width: none;
  flex-shrink: 0;
  object-fit: cover;
  object-position: 48% 46%;
  margin-left: -76px;
  margin-top: -5px;
  border-radius: 3px;
}
.header-mark {
  width: 67px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.desktop-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}
.desktop-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.desktop-nav a:hover { color: var(--text-primary); border-color: var(--border-hover); }

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  background: var(--text-accent);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px rgba(64,94,122,0.35);
  transition: transform 0.3s var(--ease-out);
  white-space: nowrap;
}
.header-cta:hover { transform: translateY(-2px); color: var(--bg-primary); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  margin: 0 auto;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.hamburger.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.hamburger.open span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* ── MOBILE MENU ─────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease-out), opacity 0.35s;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 44px;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}
.mobile-menu .mobile-cta {
  margin-top: 16px;
  padding: 16px 30px;
  background: var(--text-accent);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
}
.mobile-menu .mobile-cta:hover { color: var(--bg-primary); }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 6vw 60px;
  background: linear-gradient(120deg, #020609 0%, #07111C 30%, #10263B 58%, #294966 78%, #1c3a52 100%);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 88% 30%, rgba(220,238,255,0.10), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* hero left col */
.hero-copy {
  flex: 1 1 480px;
  min-width: 300px;
}
.hero-label {
  font-size: 13px;
  letter-spacing: 2.5px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 7.5vw, 92px);
  line-height: 0.98;
  letter-spacing: 0.5px;
  margin: 0 0 26px;
  color: var(--text-primary);
}
.hero-h1 .line-wrap {
  display: block;
  overflow: hidden;
}
.hero-h1 .line-inner {
  display: inline-block;
}
.hero-h1 .line1 { color: #F0F6FB; }
.hero-h1 .line2 { color: #F5F7F8; }
.hero-h1 .line3 { color: rgba(149,166,200,0.71); }
.hero-h1 .line4 {
  background: linear-gradient(90deg, var(--text-accent), var(--text-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-para {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 0 34px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 40px;
}
.hero-cta-primary {
  padding: 16px 28px;
  background: var(--text-accent);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-cta);
  transition: transform 0.3s var(--ease-out);
  animation: btn-pulse 1.3s ease 2.2s 1;
}
.hero-cta-primary:hover { transform: translateY(-2px); color: var(--bg-primary); }
.hero-cta-secondary {
  padding: 16px 8px;
  color: var(--text-accent);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid var(--border-hover);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-cta-secondary:hover { color: var(--text-primary); }
.hero-micro {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--border-hover);
}

/* hero right col – phone stage */
.hero-phone-col {
  flex: 1 1 420px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
}
.phone-stage {
  position: relative;
  margin-left: -16px;
}
.phone-glow-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(64,94,122,0.28), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.mark-spin-wrap {
  position: absolute;
  top: 50%; left: 50%;
  width: 160%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  z-index: 0;
  animation: mark-spin 22s ease-in-out infinite;
}
.mark-spin-wrap img {
  width: 100%;
  opacity: 0.18;
  animation: mark-pulse 4s ease-in-out infinite;
}


/* phone device */
.phone-device {
  position: relative;
  z-index: 1;
}
.phone-shadow {
  position: absolute;
  bottom: -14px; left: 8%;
  width: 84%; height: 26px;
  background: radial-gradient(ellipse at center, rgba(64,94,122,0.5), transparent 75%);
  pointer-events: none; z-index: 0;
}
.phone-tilt-wrap {
  transform: rotate(-2deg);
  transition: transform 0.5s var(--ease-out);
}
.phone-frame {
  position: relative;
  height: clamp(460px, 72vh, 620px);
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(155deg, #2b2f34, #17191c);
  border-radius: 44px;
  padding: 9px;
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255,255,255,0.06);
  transform: scale(1.05);
}
.phone-notch {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 52px; height: 5px;
  background: #0c0d0f;
  border-radius: 3px;
}
.phone-btn-right {
  position: absolute;
  right: -2px; top: 96px;
  width: 2px; height: 56px;
  background: #111315; border-radius: 1px;
}
.phone-btn-left1 {
  position: absolute;
  left: -2px; top: 80px;
  width: 2px; height: 32px;
  background: #111315; border-radius: 1px;
}
.phone-btn-left2 {
  position: absolute;
  left: -2px; top: 120px;
  width: 2px; height: 32px;
  background: #111315; border-radius: 1px;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background: #EDE7DD;
  touch-action: pan-y;
}
.phone-premium {
  position: absolute;
  inset: 0;
  background: #0B1F33;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.4s var(--ease-out), transform 1.6s var(--ease-out);
}
.phone-premium.entered { opacity: 1; transform: scale(1); }
.phone-premium img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  animation: breathe 9s ease-in-out 2s infinite;
}
.phone-basic-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: #EDE7DD;
  overflow: hidden;
  clip-path: inset(100% 0 0 0);
}
.phone-basic-overlay img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.compare-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  z-index: 9;
  background: #F5FBFF;
  box-shadow: 0 0 26px 6px rgba(220,238,255,0.95);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
}
.compare-line-glow {
  position: absolute;
  left: 0; right: 0;
  height: 16px;
  margin-top: -7px;
  z-index: 8;
  background: radial-gradient(ellipse at center, rgba(220,238,255,0.35), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
}

/* compare button */
.compare-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.compare-btn {
  padding: 10px 22px;
  min-height: 44px;
  width: 149px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: #000;
  background: #F2EDED;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: box-shadow 0.3s;
  user-select: none;
  -webkit-user-select: none;
}
.compare-hint {
  font-size: 11px;
  color: #8a9bad;
}

/* ── MARQUEE ─────────────────────────────────────────────────── */
.marquee-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 22px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-half {
  display: flex;
  gap: 48px;
  padding-right: 48px;
}
.marquee-word {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.marquee-word.filled { color: var(--text-accent); }
.marquee-word.outline { color: transparent; -webkit-text-stroke: 1px var(--border-hover); }

/* ── ANTES Y DESPUÉS ─────────────────────────────────────────── */
.before-after-section {
  background: var(--bg-secondary);
  padding: 120px 6vw;
}
.before-after-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 13px;
  letter-spacing: 2.5px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 20px;
}
.section-label.centered { text-align: center; }
.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  margin: 0 0 24px;
}
.section-h2.centered { text-align: center; }
.before-after-img-wrap {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 44px;
}
.before-after-img-wrap img { width: 100%; display: block; }
.before-after-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.before-after-footer p {
  font-size: 19px;
  color: var(--text-accent);
  font-weight: 600;
}
.btn-outline {
  padding: 14px 26px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.btn-outline:hover { border-color: var(--text-accent); transform: translateY(-2px); color: var(--text-primary); }

/* ── PROYECTOS ───────────────────────────────────────────────── */
.projects-section {
  background: var(--bg-secondary);
  padding: 120px 0;
}
.projects-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6vw;
}
.projects-intro {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.6;
  margin: 0 0 60px;
}
.carousel-stage {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6vw;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card {
  position: absolute;
  width: min(85vw, 460px);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.8s var(--ease-out), opacity 0.8s ease, filter 0.8s ease;
}
.project-card.is-active {
  transform: translateX(0) scale(1) rotate(0deg);
  opacity: 1;
  z-index: 3;
  filter: none;
}
.project-card.is-next {
  transform: translateX(48%) scale(0.86) rotate(3deg);
  opacity: 0.4;
  z-index: 2;
  filter: blur(2px);
  pointer-events: none;
}
.project-card.is-prev {
  transform: translateX(-48%) scale(0.86) rotate(-3deg);
  opacity: 0.4;
  z-index: 2;
  filter: blur(2px);
  pointer-events: none;
}
.project-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  display: block;
}
.project-card-body { padding: 26px 26px 30px; }
.project-category {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--border-hover);
  font-weight: 700;
  margin-bottom: 10px;
}
.project-title {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--text-primary);
  margin: 0 0 10px;
  letter-spacing: 0.5px;
}
.project-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 14px;
}
.project-scope {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.project-link {
  font-size: 14px;
  color: var(--text-accent);
  font-weight: 600;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 44px;
}
.carousel-dot-btn {
  width: 44px; height: 44px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  display: block;
  transition: background 0.3s;
}
.carousel-dot.active { background: var(--text-accent); }

/* ── MODAL ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,6,9,0.85);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 22px;
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  overflow: auto;
  transform: scale(0.96);
  transition: transform 0.3s var(--ease-out);
}
.modal-overlay.open .modal-panel { transform: scale(1); }
.modal-img-wrap { position: relative; }
.modal-img-wrap img { width: 100%; display: block; }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(2,6,9,0.7);
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(64,94,122,0.4); }
.modal-body { padding: 34px; }
.modal-category { font-size: 12px; letter-spacing: 1.5px; color: var(--border-hover); font-weight: 700; margin-bottom: 10px; }
.modal-title { font-family: var(--font-display); font-size: 38px; color: var(--text-primary); margin: 0 0 14px; }
.modal-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.6; margin: 0 0 16px; }
.modal-scope { font-size: 14px; color: var(--text-accent); }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-section {
  background: var(--bg-primary);
  padding: 120px 6vw;
}
.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}
.faq-h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 50px);
  margin: 0 0 50px;
}
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  text-align: left;
  color: var(--text-primary);
  min-height: 44px;
}
.faq-question {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text-primary);
}
.faq-icon {
  font-size: 24px;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer-wrap {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s var(--ease-out);
}
.faq-item.open .faq-answer-wrap { max-height: 500px; }
.faq-answer {
  margin: 0 0 26px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
}

/* ── CONTACTO ────────────────────────────────────────────────── */
.contact-section {
  position: relative;
  background: linear-gradient(135deg, #07111C 0%, #0D1C2C 45%, #19324A 100%);
  padding: 160px 6vw 120px;
  overflow: hidden;
  scroll-margin-top: 100px;
}
.contact-curve {
  position: absolute;
  bottom: -8%; left: -6%;
  width: 62%; height: 80%;
  opacity: 0.35;
  pointer-events: none;
  overflow: visible;
}
.contact-curve path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 1.6s var(--ease-out) 0.3s;
}
.contact-curve.revealed path { stroke-dashoffset: 0; }
.contact-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 43%) minmax(0, 48%);
  gap: 64px;
  align-items: start;
}
.contact-left-label {
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--text-blue);
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.06;
  margin: 0 0 24px;
}
.contact-intro {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 40px;
  max-width: 460px;
}
.contact-channels-label {
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--text-blue);
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-channels { display: flex; flex-direction: column; gap: 12px; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 14px 18px;
  background: rgba(13,28,44,0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.contact-channel:hover {
  transform: translate(4px, -2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
}
.contact-channel:focus-visible {
  outline: 2px solid var(--text-blue);
  outline-offset: 2px;
}
.channel-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.28s ease;
}
.contact-channel:hover .channel-icon { transform: scale(1.06); }
.channel-icon.whatsapp { background: rgba(37,211,102,0.12); }
.channel-icon.email    { background: rgba(234,67,53,0.12); }
.channel-icon.instagram{ background: rgba(221,42,123,0.12); }
.channel-info { flex: 1; min-width: 0; }
.channel-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.channel-handle { font-size: 11px; color: #7fa0bf; margin-bottom: 1px; }
.channel-desc  { font-size: 12px; color: var(--text-secondary); }
.channel-action {
  font-size: 13px;
  color: var(--text-accent);
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.channel-arrow { transition: transform 0.25s ease; display: inline-block; }
.contact-channel:hover .channel-arrow { transform: translateX(3px); }

/* ── CONTACT FORM ────────────────────────────────────────────── */
.contact-form {
  background: rgba(13,28,44,0.75);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px 34px;
  box-shadow: var(--shadow-form);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-heading { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.5px; color: var(--text-primary); margin: 0 0 8px; }
.form-sub { font-size: 14px; color: var(--text-secondary); margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-label { font-size: 13px; color: var(--text-secondary); }
.form-input,
.form-select,
.form-textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-body);
  min-height: 44px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--text-blue);
  box-shadow: 0 0 0 3px rgba(127,196,255,0.12);
}
.form-input.error,
.form-select.error { border-color: #e0806a; }
.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; }
.form-error { font-size: 12px; color: #f0a58a; min-height: 14px; }

/* method selector */
.method-selector {
  display: flex;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  overflow: hidden;
}
.method-btn {
  flex: 1;
  min-height: 44px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.25s ease;
  color: var(--text-primary);
  background: transparent;
}
.method-btn + .method-btn { border-left: 1px solid var(--border); }
.method-btn.active { background: rgba(127,196,255,0.14); }

/* submit */
.form-submit-wrap { display: flex; flex-direction: column; gap: 10px; }
.form-submit {
  padding: 16px 28px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  background: var(--text-accent);
  color: var(--bg-primary);
  transition: transform 0.3s var(--ease-out), background 0.2s;
}
.form-submit:hover { transform: translateY(-2px); }
.form-submit:disabled { background: var(--border-hover); color: var(--text-accent); cursor: wait; }
.form-status { font-size: 13px; color: var(--text-secondary); margin: 0; }
.form-status.success { color: var(--text-accent); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  background: var(--bg-footer);
  padding: 70px 6vw 40px;
  border-top: 1px solid var(--border);
}
.footer-mark {
  position: absolute;
  top: 60px;
  right: 6vw;
  width: 61px; height: 56px;
  object-fit: contain;
  opacity: 0.85;
}
.footer-logo {
  width: 224px;
  height: 108px;
  object-fit: cover;
  object-position: 48% 46%;
  margin-left: -58px;
  margin-top: -4px;
  display: block;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: space-between;
  margin-bottom: 60px;
}
.footer-desc {
  max-width: 340px;
}
.footer-desc p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-label {
  font-size: 13px;
  color: var(--border-hover);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.footer-col a { font-size: 15px; color: var(--text-secondary); transition: color 0.25s; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.footer-bottom span { font-size: 13px; color: var(--border-hover); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
}
@media (max-width: 900px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .header-cta  { display: none; }
  .hamburger   { display: flex; }

  .hero-h1 { font-size: clamp(40px, 11vw, 68px); }
  .phone-frame { height: clamp(340px, 56vh, 440px); }

  .before-after-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }

  .footer-grid {
    gap: 40px;
  }
  .footer-logo { width: 160px; height: 76px; }
}
@media (max-width: 480px) {
  .hero { padding: 120px 4vw 48px; }
  .before-after-section,
  .projects-section,
  .faq-section { padding: 80px 4vw; }
  .contact-section { padding: 100px 4vw 80px; }
  .site-footer { padding: 50px 4vw 30px; }
  .header-logo { width: 130px; height: 34px; margin-left: -30px; }
}

/* ── FOCUS VISIBLE ───────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--text-blue); outline-offset: 3px; }
.form-submit:focus-visible { outline: 2px solid var(--bg-primary); }
