/* ============================================
   tuwebarg — Estilos globales
   ============================================ */

:root {
  --bg:       #08080f;
  --bg-2:     #0e0e1a;
  --bg-3:     #14142a;
  --purple:   #7c3aed;
  --purple-l: #9d67f5;
  --cyan:     #06b6d4;
  --text:     #f0f0f5;
  --muted:    #8888a8;
  --border:   rgba(255,255,255,0.08);
  --grad:     linear-gradient(135deg, #7c3aed, #06b6d4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

/* ── Utilidades ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section   { padding: 6rem 0; }
.text-center { text-align: center; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-l);
  margin-bottom: 0.9rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}
.section-header { text-align: center; margin-bottom: 4rem; }

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

/* ── Navbar ── */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  padding: 1.25rem 0;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(8,8,15,.88);
  backdrop-filter: blur(18px);
  border-color: var(--border);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--grad) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 600 !important;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
  border: none;
  line-height: 1;
}
.btn-large { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 30px rgba(124,58,237,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 48px rgba(124,58,237,.65); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.2); }
.btn-outline {
  background: transparent;
  color: var(--purple-l);
  border: 1px solid var(--purple);
}
.btn-outline:hover { background: rgba(124,58,237,.1); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe59; transform: translateY(-2px); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 2rem 5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,58,237,.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 55%, rgba(6,182,212,.12) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  padding: .4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 2rem;
  background: rgba(255,255,255,.03);
}
.hero-title {
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  font-weight: 700;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .08em;
}
.hero-title .line { display: block; }
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.scroll-dot {
  width: 6px; height: 6px;
  background: var(--purple-l);
  border-radius: 50%;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(10px); opacity: .4; }
}

/* ── Services ── */
.services-preview { background: var(--bg-2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  transition: border-color .3s, transform .3s;
}
.service-card:hover { border-color: var(--purple); transform: translateY(-5px); }
.service-icon { width: 48px; height: 48px; color: var(--purple-l); margin-bottom: 1.5rem; }
.service-card h3 { font-size: 1.35rem; margin-bottom: .65rem; }
.service-card p  { color: var(--muted); margin-bottom: 1.5rem; font-size: .95rem; }
.card-link { color: var(--purple-l); font-weight: 600; font-size: .875rem; transition: color .2s; }
.card-link:hover { color: var(--cyan); }

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-content .section-tag { display: block; }
.about-content .section-title { margin: .5rem 0 1.25rem; }
.about-content p   { color: var(--muted); margin-bottom: .85rem; }
.about-content .btn { margin-top: .75rem; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stat-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
}
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.stat-label { font-size: .82rem; color: var(--muted); }

/* ── Process preview ── */
.process-preview { background: var(--bg); }
.steps-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}
.step {
  flex: 1;
  min-width: 170px;
  max-width: 220px;
  text-align: center;
  padding: .5rem;
}
.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: .6rem;
}
.step h3 { font-size: 1rem; margin-bottom: .4rem; }
.step p  { font-size: .82rem; color: var(--muted); }
.step-arrow { font-size: 1.4rem; color: rgba(255,255,255,.15); padding-top: .9rem; flex-shrink: 0; }

/* ── CTA ── */
.cta-section { background: var(--bg-2); }
.cta-box {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 0%, rgba(124,58,237,.18) 0%, transparent 60%);
  pointer-events: none;
}
.cta-box h2 {
  position: relative;
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: .9rem;
}
.cta-box p {
  position: relative;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.cta-actions { position: relative; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}
.footer-brand p { color: var(--muted); font-size: .88rem; margin-top: .75rem; max-width: 260px; }
.footer-links h4,
.footer-contact h4 {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-links ul,
.footer-contact ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-links a,
.footer-contact a { font-size: .88rem; color: var(--muted); transition: color .2s; }
.footer-links a:hover,
.footer-contact a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
}
.footer-bottom p { font-size: .82rem; color: var(--muted); }

/* ── Page Hero (subpáginas) ── */
.page-hero {
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(124,58,237,.22) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-content { position: relative; max-width: 680px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  transition: color .2s;
}
.back-link:hover { color: var(--text); }
.page-hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin: .4rem 0 1.25rem;
}
.page-hero-content p { font-size: 1.1rem; color: var(--muted); max-width: 540px; }

/* ── Service Detail (servicios.html) ── */
.service-detail {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 3.5rem;
  margin-bottom: 2rem;
}
.service-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.service-icon.large { width: 64px; height: 64px; flex-shrink: 0; margin-top: .25rem; }
.service-detail-header .section-tag { margin-bottom: .25rem; }
.service-detail-header h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.service-detail-desc p { color: var(--muted); margin-bottom: .9rem; }
.features-list h3 { font-size: 1rem; margin-bottom: 1.1rem; color: var(--text); }
.features-list ul { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.features-list li { display: flex; align-items: center; gap: .65rem; font-size: .9rem; color: var(--muted); }
.feature-check { color: var(--cyan); font-weight: 700; flex-shrink: 0; }
.service-ideal { padding-top: 2rem; border-top: 1px solid var(--border); }
.service-ideal h3 { font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.ideal-tags { display: flex; flex-wrap: wrap; gap: .6rem; }
.ideal-tags span {
  padding: .35rem .9rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .82rem;
  color: var(--muted);
  background: var(--bg-3);
}

.section-divider {
  height: 1px;
  background: var(--border);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Timeline (proceso.html) ── */
.timeline { position: relative; max-width: 780px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 2.5rem;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple), var(--cyan));
  opacity: .25;
  border-radius: 2px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 2rem;
  padding-bottom: 4rem;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-num {
  position: relative;
  width: 5rem;
  display: flex;
  align-items: flex-start;
  padding-top: .15rem;
}
.timeline-num::after {
  content: '';
  position: absolute;
  left: calc(2.5rem - 7px);
  top: .5rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(124,58,237,.5);
}
.timeline-num span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted);
  padding-top: .15rem;
  padding-left: .1rem;
}
.timeline-content {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem 2.25rem;
  transition: border-color .3s;
}
.timeline-content:hover { border-color: rgba(124,58,237,.4); }
.timeline-content h2 { font-size: 1.35rem; margin-bottom: .75rem; }
.timeline-content p  { color: var(--muted); font-size: .95rem; margin-bottom: .65rem; }
.timeline-content p:last-child { margin-bottom: 0; }

/* ── FAQ (proceso.html) ── */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 1.4rem 1.75rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color .2s;
}
.faq-q:hover { color: var(--purple-l); }
.faq-icon { font-size: 1.25rem; color: var(--purple-l); flex-shrink: 0; transition: transform .3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p {
  color: var(--muted);
  font-size: .95rem;
  padding: 0 1.75rem 1.5rem;
  line-height: 1.7;
}

/* ── Contact (contacto.html) ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.contact-info h2 { font-size: 2rem; margin-bottom: 1.1rem; }
.contact-info p  { color: var(--muted); margin-bottom: 2rem; }
.contact-channels { display: flex; flex-direction: column; gap: .9rem; }
.channel-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 1rem;
  color: var(--text);
  font-size: .92rem;
  font-weight: 500;
  transition: border-color .25s, background .25s, transform .25s;
}
.channel-btn:hover { border-color: var(--purple); background: var(--bg-3); transform: translateX(4px); }
.channel-icon { width: 36px; height: 36px; border-radius: .6rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.channel-icon.wa  { background: rgba(37,211,102,.15); color: #25d366; }
.channel-icon.ig  { background: rgba(193,53,132,.15); color: #e1306c; }
.channel-icon.mail{ background: rgba(124,58,237,.15); color: var(--purple-l); }
.channel-btn svg { width: 20px; height: 20px; }
.channel-label { display: flex; flex-direction: column; }
.channel-label strong { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .88rem; }
.channel-label span { font-size: .8rem; color: var(--muted); }

.contact-form-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  padding: 2.75rem;
}
.contact-form-wrap h3 { font-size: 1.3rem; margin-bottom: 1.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.2rem; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: .75rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  padding: .85rem 1.1rem;
  transition: border-color .25s;
  width: 100%;
  resize: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--purple); }
.form-group select option { background: var(--bg-3); }
.form-group textarea { min-height: 130px; }
.form-submit { width: 100%; padding: 1rem; justify-content: center; border-radius: .9rem; margin-top: .5rem; }

/* ── Animaciones iniciales (GSAP) ── */
.reveal-up,
.scroll-reveal { opacity: 0; transform: translateY(35px); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-grid        { grid-template-columns: 1fr; gap: 3rem; }
  .service-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid      { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid       { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .timeline::before  { left: 1.5rem; }
  .timeline-num::after { left: calc(1.5rem - 7px); }
  .timeline-item     { grid-template-columns: 3.5rem 1fr; }
  .timeline-num      { width: 3.5rem; }
}

@media (max-width: 640px) {
  .section           { padding: 4rem 0; }
  .nav-links         { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(8,8,15,.97);
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 150;
  }
  .nav-links.open a  { font-size: 1.35rem; color: var(--text); }
  .nav-toggle        { display: flex; z-index: 160; }
  .step-arrow        { display: none; }
  .steps-row         { gap: 2rem; }
  .footer-grid       { grid-template-columns: 1fr; }
  .form-row          { grid-template-columns: 1fr; }
  .about-stats       { grid-template-columns: 1fr 1fr; }
  .service-detail    { padding: 2rem 1.5rem; }
  .service-detail-header { flex-direction: column; gap: 1rem; }
  .contact-form-wrap { padding: 1.75rem 1.25rem; }
  .hero-title        { font-size: clamp(2.75rem, 12vw, 4rem); }
}
