/* ─────────────────────────────────────────────
   BIT & BUILD — styles.css
   Paleta: Azul royal #1a56db + Negro + Crema
───────────────────────────────────────────── */

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

:root {
  --bg:       #111010;
  --surface:  #1a1918;
  --border:   #2a2826;
  --blue:     #1a56db;
  --blue-dim: #0d1f4a;
  --blue-l:   #3b75f0;
  --cream:    #f0e8dc;
  --stone:    #7a7268;
  --text:     #d8d0c8;
  --bebas:    'Bebas Neue', sans-serif;
  --grotesk:  'Familjen Grotesk', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--grotesk);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.6;
}

/* ─── NAV ─────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: rgba(17, 16, 16, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--bebas);
  font-size: 1.6rem;
  letter-spacing: 3px;
  color: var(--cream);
}

.logo span {
  color: var(--blue);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center;
}

nav a {
  color: var(--stone);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--cream);
}

nav a.nav-active {
  color: var(--cream);
  border-bottom: 1px solid var(--blue);
  padding-bottom: 2px;
}

/* ─── HAMBURGER + MOBILE MENU ─────────────── */
/* Todo dentro de @media para que NO afecte desktop */

.hamburger { display: none; }
.mobile-menu { display: none; }

@media (max-width: 900px) {

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: none;
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    transition: border-color 0.2s;
  }

  .hamburger:hover { border-color: var(--blue); }

  .hamburger span {
    display: block;
    width: 100%; height: 1.5px;
    background: var(--cream);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(17, 16, 16, 0.98);
    backdrop-filter: blur(16px);
    z-index: 99;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .mobile-menu.open {
    display: flex;
  }

  .mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .mobile-menu ul li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .mobile-menu ul li:first-child {
    border-top: 1px solid var(--border);
  }

  .mobile-menu ul li a {
    display: block;
    text-align: center;
    padding: 22px 40px;
    font-family: var(--bebas);
    font-size: 2rem;
    letter-spacing: 3px;
    color: var(--stone);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
  }

  .mobile-menu ul li a:hover,
  .mobile-menu ul li a.nav-active {
    color: var(--cream);
    background: rgba(26, 86, 219, 0.06);
  }

  .mobile-menu > .nav-cta {
    margin-top: 32px;
    background: var(--blue);
    color: #fff !important;
    font-family: var(--bebas);
    font-size: 1.6rem;
    letter-spacing: 3px;
    padding: 18px 56px;
    text-decoration: none;
    display: inline-block;
  }

}

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--blue-l) !important;
  transform: translateY(-1px);
}

/* ─── HERO ────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding: 120px 60px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(26, 86, 219, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 28px;
  border: 1px solid var(--blue-dim);
  background: rgba(26, 86, 219, 0.08);
  padding: 8px 16px;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--bebas);
  font-size: clamp(4.5rem, 8vw, 8rem);
  line-height: 0.88;
  letter-spacing: 2px;
  color: var(--cream);
  margin-bottom: 32px;
}

.hero h1 .line-blue {
  color: var(--blue);
  display: block;
}

.hero h1 .line-outline {
  -webkit-text-stroke: 1.5px var(--cream);
  color: transparent;
  display: block;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--stone);
  max-width: 440px;
  line-height: 1.75;
  margin-bottom: 48px;
  font-style: italic;
}

.hero-desc strong {
  color: var(--cream);
  font-style: normal;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* ─── BOTONES ─────────────────────────────── */
.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 16px 36px;
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: 2px solid var(--blue);
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: transparent;
  color: var(--blue);
}

.btn-secondary {
  color: var(--stone);
  padding: 16px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  border-color: var(--stone);
  color: var(--cream);
}

/* ─── SIGNATURE CARD ──────────────────────── */
.hero-right {
  position: relative;
  z-index: 2;
}

.signature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.signature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--blue);
}

.sig-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 20px;
}

.sig-quote {
  font-family: var(--bebas);
  font-size: 2.2rem;
  letter-spacing: 1px;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 24px;
}

.sig-quote span {
  color: var(--blue);
}

.sig-body {
  font-size: 0.95rem;
  color: var(--stone);
  line-height: 1.7;
  margin-bottom: 32px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.sig-body strong {
  color: var(--cream);
}

/* ─── MINI COMPARE ────────────────────────── */
.mini-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mc-col {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.mc-col.highlight {
  border-color: var(--blue-dim);
  background: rgba(26, 86, 219, 0.04);
}

.mc-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.mc-col.highlight .mc-title { color: var(--blue); }
.mc-col:not(.highlight) .mc-title { color: var(--stone); }

.mc-item {
  font-size: 0.8rem;
  color: var(--stone);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.mc-item.good { color: var(--cream); }

.mc-icon {
  flex-shrink: 0;
  font-size: 0.75rem;
  margin-top: 1px;
}

/* ─── TAPE / MARQUEE ──────────────────────── */
.tape {
  background: var(--blue);
  padding: 14px 0;
  overflow: hidden;
  border-top: 1px solid rgba(59, 117, 240, 0.3);
  border-bottom: 1px solid rgba(59, 117, 240, 0.3);
}

.tape-inner {
  display: flex;
  gap: 48px;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
  width: max-content;
}

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

.tape-item {
  font-family: var(--bebas);
  font-size: 1.1rem;
  letter-spacing: 4px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.tape-item::after {
  content: '◆';
  font-size: 0.5rem;
  opacity: 0.6;
}

/* ─── SECCIONES COMUNES ───────────────────── */
.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--bebas);
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: 2px;
  color: var(--cream);
  line-height: 0.9;
  margin-bottom: 64px;
}

.section-title span {
  color: var(--blue);
}

/* ─── VS TABLE ────────────────────────────── */
.vs-section {
  padding: 100px 60px;
}

.vs-table {
  width: 100%;
  border-collapse: collapse;
}

.vs-table th {
  padding: 16px 24px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 2px solid var(--border);
}

.vs-table th:first-child  { color: var(--stone); width: 35%; }
.vs-table th:nth-child(2) { color: var(--stone); text-align: center; }
.vs-table th:nth-child(3) { color: var(--blue);  text-align: center; }

.vs-table td {
  padding: 18px 24px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.vs-table td:first-child  { color: var(--stone); font-size: 0.85rem; }
.vs-table td:nth-child(2) { text-align: center; color: var(--stone); font-size: 1.1rem; }
.vs-table td:nth-child(3) { text-align: center; font-size: 1.1rem; }

.vs-table tr { transition: background 0.2s; }
.vs-table tr:hover td { background: rgba(26, 86, 219, 0.04); }
.vs-table tr:hover td:first-child { color: var(--cream); }

.vs-val-bad      { color: #4a4640; }
.vs-val-text     { font-size: 0.85rem !important; color: var(--cream) !important; font-weight: 500; }
.vs-val-text-bad { font-size: 0.85rem !important; color: var(--stone) !important; }
.vs-val-highlight { font-size: 0.85rem !important; color: var(--blue) !important; font-weight: 700; }

/* ─── SERVICIOS ───────────────────────────── */
.services {
  padding: 100px 60px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 60px;
}

.srv {
  background: var(--surface);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.srv:hover { background: #1f1e1c; }

.srv-num {
  font-family: var(--bebas);
  font-size: 5rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.3s;
}

.srv:hover .srv-num { color: rgba(26, 86, 219, 0.15); }

.srv h3 {
  font-family: var(--bebas);
  font-size: 1.6rem;
  letter-spacing: 1px;
  color: var(--cream);
  margin-bottom: 12px;
}

.srv p {
  font-size: 0.9rem;
  color: var(--stone);
  line-height: 1.7;
  margin-bottom: 20px;
}

.srv-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.srv-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--stone);
  transition: border-color 0.2s, color 0.2s;
}

.srv:hover .srv-tag {
  border-color: var(--blue-dim);
  color: var(--blue);
}

.srv-price {
  margin-top: 24px;
  font-family: var(--bebas);
  font-size: 1.8rem;
  color: var(--blue);
  letter-spacing: 1px;
}

.srv-price small {
  font-family: var(--grotesk);
  font-size: 0.75rem;
  color: var(--stone);
  font-weight: 400;
  letter-spacing: 0;
}

.srv-cta {
  margin-top: 40px;
}

/* ─── PROCESO ─────────────────────────────── */
.process {
  padding: 100px 60px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 60px;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 1px;
  background: linear-gradient(to right, var(--blue), var(--border), var(--border), var(--stone));
}

.p-step {
  padding: 0 24px 40px;
  position: relative;
}

.p-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--stone);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.p-step:first-child .p-dot {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 12px rgba(26, 86, 219, 0.5);
}

.p-step h3 {
  font-family: var(--bebas);
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: var(--cream);
  margin-bottom: 8px;
}

.p-step p {
  font-size: 0.85rem;
  color: var(--stone);
  line-height: 1.6;
}

.p-step-num {
  font-family: var(--bebas);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 8px;
}

/* ─── TESTIMONIOS ─────────────────────────── */
.testimonials {
  padding: 100px 60px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 60px;
}

.testi-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 36px;
  position: relative;
}

.testi-card::before {
  content: '"';
  font-family: var(--bebas);
  font-size: 6rem;
  color: var(--blue-dim);
  position: absolute;
  top: 8px; right: 24px;
  line-height: 1;
}

.testi-text {
  font-size: 1rem;
  color: var(--cream);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.testi-author { font-weight: 700; color: var(--cream); font-size: 0.9rem; }
.testi-role   { font-size: 0.75rem; color: var(--stone); margin-top: 2px; }
.stars        { color: var(--blue); font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 2px; }

/* ─── CTA ─────────────────────────────────── */
.cta {
  padding: 120px 60px;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(26, 86, 219, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-inner h2 {
  font-family: var(--bebas);
  font-size: clamp(3rem, 7vw, 7rem);
  letter-spacing: 2px;
  color: var(--cream);
  line-height: 0.9;
  margin-bottom: 24px;
}

.cta-inner h2 span { color: var(--blue); }

.cta-inner p {
  font-size: 1.1rem;
  color: var(--stone);
  max-width: 500px;
  margin: 0 auto 48px;
  font-style: italic;
}

.cta-contacts {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.cta-alt {
  font-size: 0.8rem;
  color: var(--stone);
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cta-alt::before,
.cta-alt::after { content: '—'; }

/* ─── FOOTER ──────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--bebas);
  font-size: 1.4rem;
  letter-spacing: 3px;
  color: var(--cream);
}

.footer-logo span { color: var(--blue); }
footer p   { font-size: 0.8rem; color: var(--stone); }
footer a   { color: var(--blue); text-decoration: none; }

/* ─── REVEAL ANIMATION ────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  nav ul { display: none; }
  .hamburger { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    padding: 110px 24px 60px;
    gap: 48px;
  }
  .hero::before { display: none; }

  .vs-section,
  .services,
  .process,
  .testimonials,
  .cta { padding: 70px 24px; }

  .services-grid         { grid-template-columns: 1fr; }
  .process-grid          { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-grid::before  { display: none; }
  .testi-grid            { grid-template-columns: 1fr; }
  .mini-compare          { grid-template-columns: 1fr; }
  .vs-table              { display: block; overflow-x: auto; }

  footer {
    flex-direction: column;
    gap: 12px;
    padding: 32px 24px;
    text-align: center;
  }
}
