/* ============================================================
   ALTASEO — Main Stylesheet
   Design: Cumbre (Dark)
   ============================================================ */

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

:root {
  --dark:   #07101f;
  --navy:   #0d1f3c;
  --navy2:  #0a1628;
  --blue:   #0061a8;
  --cyan:   #00c2ff;
  --green:  #00bf63;
  --white:  #f0f6ff;
  --muted:  #7a92b0;
  --border: rgba(255,255,255,0.07);
  --max-w:  1200px;
  --pad:    clamp(24px, 5vw, 60px);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ── UTILITY ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }
.section    { padding: 100px var(--pad); max-width: var(--max-w); margin: 0 auto; }
.section-label {
  font-size: 11px; letter-spacing: 3px; color: var(--cyan);
  font-weight: 700; text-transform: uppercase; margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 3vw, 42px); font-weight: 900;
  letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 16px;
}
.section-sub { color: var(--muted); font-size: 16px; max-width: 540px; line-height: 1.75; }

.btn-primary {
  display: inline-block;
  background: var(--cyan); color: var(--dark);
  padding: 15px 32px; border-radius: 4px;
  font-weight: 800; font-size: 14px; letter-spacing: .3px;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: .9; }
.btn-outline {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.2); color: var(--white);
  padding: 15px 32px; border-radius: 4px;
  font-size: 14px; font-weight: 600;
  transition: border-color .2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,.5); }
.btn-secondary {
  color: var(--white); font-size: 14px; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 2px;
  transition: border-color .2s, color .2s;
  background: transparent; border-top: none; border-left: none; border-right: none;
  cursor: pointer; font-family: inherit; -webkit-appearance: none; appearance: none;
}
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── NAV ── */
.site-header {
  position: fixed; top: 0; width: 100%; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--pad);
  background: rgba(7,16,31,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.site-header.scrolled { background: rgba(7,16,31,.98); }
.site-logo svg { height: 34px; display: block; }
.site-nav { display: flex; align-items: center; gap: 28px; list-style: none; }
.site-nav a { color: var(--muted); font-size: 13.5px; font-weight: 500; letter-spacing: .3px; transition: color .2s; }
.site-nav a:hover { color: var(--cyan); }
.nav-cta {
  background: var(--cyan); color: var(--dark) !important;
  padding: 9px 20px; border-radius: 4px;
  font-weight: 800 !important; font-size: 13px !important;
  letter-spacing: .3px;
}

/* ── NAV MÓVIL (hamburguesa + CTA fijo) ── */
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border);
  border-radius: 6px; padding: 9px 10px; cursor: pointer; line-height: 0;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--white);
  border-radius: 2px; margin: 4px 0; transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-cta-mobile { display: none; }

/* ── HERO ── */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #07101f 0%, #0d1f3c 55%, #07101f 100%);
}
.hero-glow {
  position: absolute; top: 30%; left: 50%;
  transform: translate(-50%,-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,194,255,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-mountain-bg { position: absolute; bottom: 0; left: 0; right: 0; opacity: .12; }
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto;
  padding: 100px var(--pad) 80px;
  display: grid; grid-template-columns: 1fr 420px; grid-template-rows: auto auto;
  gap: 0 80px; align-items: center;
  width: 100%;
}
.hero-text          { grid-column: 1; grid-row: 1; }
.hero-inner .hero-stats { grid-column: 1; grid-row: 2; }
.hero-audit-widget  { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,194,255,.1); border: 1px solid rgba(0,194,255,.3);
  padding: 6px 16px; border-radius: 20px; margin-bottom: 28px;
  font-size: 11px; color: var(--cyan); letter-spacing: 1.5px; font-weight: 700; text-transform: uppercase;
}
.hero-badge-dot { width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero h1 {
  font-size: clamp(30px,4vw,56px); font-weight: 900;
  line-height: 1.04; letter-spacing: -2.5px; margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 520px; line-height: 1.8; margin-bottom: 44px; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 64px;
  padding-top: 36px; border-top: 1px solid var(--border);
}
.stat-num { font-size: 34px; font-weight: 900; color: var(--cyan); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; }

/* SERP card */
.serp-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 28px;
}
.serp-card-label { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.serp-keyword { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.serp-keyword strong { color: var(--white); }
.serp-result { padding: 16px; border-radius: 8px; margin-bottom: 10px; border: 1px solid rgba(255,255,255,.06); }
.serp-result.serp-top { background: rgba(0,194,255,.07); border-color: rgba(0,194,255,.2); }
.serp-pos { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.serp-top .serp-pos { color: var(--cyan); }
.serp-url { font-size: 12px; color: var(--green); margin-bottom: 4px; }
.serp-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.serp-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ── PROOF BANNER ── */
.proof-banner {
  background: rgba(0,194,255,.05);
  border-top: 1px solid rgba(0,194,255,.1);
  border-bottom: 1px solid rgba(0,194,255,.1);
  padding: 18px var(--pad);
  display: flex; justify-content: center; align-items: center; gap: 20px;
  font-size: 13.5px; color: var(--muted); flex-wrap: wrap; text-align: center;
}
.rank-badge {
  background: var(--green); color: #fff;
  padding: 4px 12px; border-radius: 3px;
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  white-space: nowrap;
}

/* ── SERVICES ── */
.services-bg { background: var(--dark); }
.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; margin-top: 60px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.05);
}
.service-card { background: var(--dark); padding: 40px 32px; transition: background .2s; }
.service-card:hover { background: var(--navy); }
.service-icon { width: 40px; height: 40px; color: var(--cyan); margin-bottom: 22px; }
.service-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin-bottom: 16px; }
.service-link { font-size: 12px; color: var(--cyan); font-weight: 600; letter-spacing: .5px; }
.service-link:hover { text-decoration: underline; }

/* ── METHODOLOGY ── */
.method-bg { background: var(--navy2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.method-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; margin-top: 60px; background: var(--border);
}
.method-step { background: var(--navy2); padding: 36px 28px; position: relative; }
.method-num {
  font-size: 48px; font-weight: 900; color: rgba(0,194,255,.12);
  position: absolute; top: 24px; right: 24px; line-height: 1;
}
.method-dot { width: 10px; height: 10px; background: var(--cyan); border-radius: 50%; margin-bottom: 20px; }
.method-step h3 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.method-step p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ── SILO ARCHITECTURE ── */
.silo-bg { background: var(--dark); }
.silo-homepage {
  background: linear-gradient(135deg, rgba(0,194,255,.15), rgba(0,194,255,.05));
  border: 1px solid rgba(0,194,255,.25);
  border-radius: 8px; padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.silo-homepage .silo-kw { font-size: 15px; font-weight: 800; }
.silo-homepage .silo-target { font-size: 12px; color: var(--cyan); margin-top: 3px; }
.silo-rank { background: var(--cyan); color: var(--dark); font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 3px; white-space: nowrap; }
.silo-connector { width: 1px; height: 24px; background: rgba(0,194,255,.2); display: block; margin: 0 auto; }
.silo-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.silo-pillar {
  background: var(--navy); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 16px 20px; margin-bottom: 12px;
  border-left: 3px solid var(--cyan);
}
.silo-pillar .silo-kw { font-size: 14px; font-weight: 700; }
.silo-pillar .silo-target { font-size: 11px; color: var(--muted); margin-top: 3px; }
.silo-child {
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: 6px; padding: 10px 16px; margin-bottom: 8px;
  font-size: 12px; color: var(--muted);
}
.silo-more { font-size: 11px; color: rgba(255,255,255,.2); padding: 8px 16px; display: block; }

/* ── GEO ── */
.geo-bg { background: var(--navy2); border-top: 1px solid var(--border); }
.geo-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 100px var(--pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.geo-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.geo-tag {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  padding: 8px 16px; border-radius: 4px; font-size: 12px; color: var(--muted);
  transition: all .2s;
}
.geo-tag:hover, .geo-tag.featured { background: rgba(0,194,255,.08); border-color: rgba(0,194,255,.2); color: var(--cyan); }
.geo-map {
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: 12px; padding: 40px; text-align: center;
}
.geo-count { font-size: 56px; font-weight: 900; color: var(--cyan); margin-top: 16px; }
.geo-count-label { font-size: 13px; color: var(--muted); }

/* ── WHY ── */
.why-bg { background: var(--dark); }
.why-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1px; margin-top: 60px; background: var(--border);
}
.why-card { background: var(--dark); padding: 40px 36px; }
.why-card:nth-child(odd) { background: var(--navy2); }
.why-icon { font-size: 28px; margin-bottom: 18px; }
.why-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.why-card p { color: var(--muted); font-size: 14px; line-height: 1.75; }

/* ── COMPARISON ── */
.compare-bg { background: var(--navy2); border-top: 1px solid var(--border); }
.compare-inner { max-width: 900px; margin: 0 auto; padding: 100px var(--pad); }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 48px; }
.compare-table th { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; padding: 12px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table th.col-highlight { color: var(--cyan); }
.compare-table td { padding: 16px 20px; font-size: 14px; border-bottom: 1px solid var(--border); color: var(--muted); }
.compare-table td.col-feature { color: var(--white); font-weight: 500; }
.compare-table td.col-yes { color: var(--green); font-weight: 700; }
.compare-table td.col-no { color: rgba(255,255,255,.2); }
.compare-table .col-us { background: rgba(0,194,255,.04); }
.compare-table tr:hover td { background: rgba(255,255,255,.02); }

/* ── INLINE CTA ── */
.inline-cta-wrap { background: var(--dark); padding: 80px var(--pad); }
.inline-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  border: 1px solid rgba(0,194,255,.15); border-radius: 12px; padding: 60px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  max-width: var(--max-w); margin: 0 auto;
}
.inline-cta h3 { font-size: clamp(20px,2.2vw,30px); font-weight: 900; letter-spacing: -1px; margin-bottom: 12px; }
.inline-cta p { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ── FAQ ── */
.faq-bg { background: var(--dark); }
.faq-inner { max-width: 800px; margin: 0 auto; padding: 100px var(--pad); }
.faq-item { border-bottom: 1px solid var(--border); padding: 28px 0; }
.faq-q {
  font-size: 16px; font-weight: 700; margin-bottom: 0;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  list-style: none;
}
.faq-q::after { content: "＋"; color: var(--cyan); font-size: 18px; font-weight: 300; flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { color: var(--muted); font-size: 14px; line-height: 1.8; margin-top: 16px; display: none; }
.faq-item.open .faq-a { display: block; }

/* ── FINAL CTA ── */
.cta-final {
  background: var(--navy);
  border-top: 1px solid var(--border);
  text-align: center; padding: 120px var(--pad);
  position: relative; overflow: hidden;
}
.cta-final::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,194,255,.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-final h2 { font-size: clamp(32px,4vw,56px); font-weight: 900; letter-spacing: -2px; margin-bottom: 20px; position: relative; }
.cta-final h2 em { font-style: normal; color: var(--cyan); }
.cta-final p { color: var(--muted); font-size: 17px; line-height: 1.7; margin-bottom: 44px; max-width: 500px; margin-left: auto; margin-right: auto; position: relative; }
.cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── FOOTER ── */
.site-footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  max-width: var(--max-w); margin: 0 auto; padding: 60px var(--pad);
}
.footer-brand-desc { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 16px; max-width: 260px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: rgba(255,255,255,.4); font-size: 13px; transition: color .2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 24px var(--pad);
  display: flex; justify-content: space-between;
  color: rgba(255,255,255,.25); font-size: 12px;
  max-width: var(--max-w); margin: 0 auto;
  flex-wrap: wrap; gap: 8px;
}

/* ── INNER PAGES ── */
.page-hero {
  padding: 160px var(--pad) 80px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--dark) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(32px,4vw,52px); font-weight: 900; letter-spacing: -1.5px; }
.page-content { max-width: 800px; margin: 0 auto; padding: 80px var(--pad); }
.page-content h2 { font-size: 26px; font-weight: 800; margin: 48px 0 16px; letter-spacing: -.5px; }
.page-content h3 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; }
.page-content p { color: var(--muted); font-size: 16px; line-height: 1.85; margin-bottom: 20px; }
.page-content ul, .page-content ol { color: var(--muted); font-size: 16px; line-height: 1.8; padding-left: 24px; margin-bottom: 20px; }
.page-content li { margin-bottom: 8px; }
.page-content strong { color: var(--white); }
.page-content a { color: var(--cyan); border-bottom: 1px solid rgba(0,194,255,.3); }
.page-content a:hover { border-color: var(--cyan); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  /* .hero conserva overflow:hidden: recorta el glow de 700px, que si no ensancha
     la página entera. El texto ya no se corta porque el hero pasa a una columna. */
  /* Una sola columna y, debajo del titular, primero la auditoría y después las cifras */
  .hero-inner { display: flex; flex-direction: column; gap: 40px; }
  .hero-inner > * { min-width: 0; width: 100%; }
  .hero-sub { max-width: 100%; }
  .hero-text         { order: 1; }
  .hero-audit-widget { order: 2; }
  .hero-inner .hero-stats { order: 3; margin-top: 0; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .method-grid { grid-template-columns: repeat(2,1fr); }
  .silo-cols { grid-template-columns: 1fr; }
  .geo-inner { grid-template-columns: 1fr; }
  .geo-map { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .inline-cta { grid-template-columns: 1fr; text-align: center; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  /* Menú móvil: la barra deja de quedarse sin navegación */
  .nav-toggle { display: block; flex: 0 0 auto; }
  .nav-cta-mobile {
    display: inline-block; margin-left: auto; margin-right: 10px;
    padding: 8px 12px; font-size: 12px !important; white-space: nowrap;
  }
  .site-header { gap: 8px; }
  .site-logo svg { height: 26px; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #07101f;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
    padding: 8px var(--pad) 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav li { border-top: 1px solid var(--border); }
  .site-nav a { display: block; padding: 14px 0; font-size: 15px; color: var(--white); }
  .site-nav .nav-cta { display: block; text-align: center; margin-top: 14px; padding: 13px 20px; }
  .site-nav li:has(> .nav-cta) { border-top: none; }

  .hero h1 { font-size: clamp(30px,8vw,72px); letter-spacing: -1px; }
  .hero-inner { padding-top: 88px; }
  .hero-actions { gap: 18px; }
  .services-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .compare-table { font-size: 13px; }
  .compare-table td, .compare-table th { padding: 12px; }
  .compare-inner { overflow-x: auto; }
  .site-footer-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .inline-cta { padding: 40px 24px; }
}
