/* FUENTES: títulos = DM Sans, cuerpo = Inter, monoespaciada = JetBrains Mono */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* PALETA DE COLORES */
:root {
  --primary-dark: #5C0000;
  /* Marrón Oscuro - Gradientes */
  --primary-light: #800000;
  /* Maroon - Color Primario (del Logo Stasen) - CTAs & Acciones */
  --primary-dark-alt: #400000;
  /* Marrón Más Oscuro - Hover States */
  --background-white: #ffffff;
  /* Blanco Limpio */
  --background-gray: #f8fafc;
  /* Gris Muy Suave - Secciones Alternas */
  --text-primary: #1a1a1a;
  /* Texto Principal - Gris Oscuro */
  --text-secondary: #64748b;
  /* Texto Secundario */
  --border-light: #e2e8f0;
  /* Bordes Suaves */
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background-color: var(--background-white);
  line-height: 1.6;
}

/* Títulos generales */
h1,
h2,
h3,
h4,
h5 {
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Detalles técnicos con monoespaciada */
code,
.code-label,
.tech-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  font-weight: 500;
  background-color: var(--background-gray);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

/* ===============================
   HERO SECTION
   =============================== */

.hero {
  background: linear-gradient(135deg, var(--background-white) 0%, var(--background-gray) 100%);
}

/* TITULAR HERO */
.hero h1 {
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* solo algunas palabras con accent si quieres envolverlas en <span class="highlight"> */
.hero h1 .highlight {
  color: var(--accent-cyan);
}

/* Subtítulo arriba del h1 ("Autonomía · Innovación…") */
.hero .badge-brand {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-light);
}

/* Párrafo debajo del h1 */
.hero p.lead {
  font-size: 1.05rem;
  max-width: 40rem;
  margin: 0 auto 1.8rem auto;
  color: var(--text-secondary);
}

/* Contenedor hero más controlado */
.hero.section .container {
  max-width: 980px;
}

/* Tarjeta suave */
.card.soft {
  border: 1px solid var(--border-light);
  background: var(--background-white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.card.soft h5 {
  color: var(--text-primary);
}

.card.soft p {
  color: var(--text-secondary);
}

/* ===============================
   BOTONES
   =============================== */

/* Botones CTA */
.btn-cta {
  background: var(--primary-light);
  color: #FFFFFF;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border: none;
  box-shadow: 0 12px 30px rgba(128, 0, 0, 0.25);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-cta:hover {
  background: var(--primary-dark-alt);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(128, 0, 0, 0.35);
}

.btn-outline-blue {
  background: transparent;
  color: var(--text-primary);
  border-radius: 999px;
  border: 1px solid var(--border-light);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-outline-blue:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background-color: rgba(128, 0, 0, 0.05);
}

/* Botón outline para fondo oscuro */
.btn-outline-light {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.7rem 1.6rem;
}

.btn-outline-light:hover {
  border-color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* ===============================
   NAVBAR (Sticky + Glassmorphism)
   =============================== */

.navbar {
  background: var(--background-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: rgba(226, 232, 240, 0.5);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary) !important;
  font-family: 'DM Sans', sans-serif;
}

.navbar-brand .dot {
  color: var(--primary-light);
}

.navbar-brand img {
  height: 32px;
  width: auto;
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-light) !important;
}

/* ===============================
   TARJETAS (CARDS)
   =============================== */

.card.clean {
  border: 1px solid var(--border-light);
  background: var(--background-white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
}

.card.clean .title {
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
}

.card.clean p {
  color: var(--text-secondary);
}

.card.clean:hover {
  box-shadow: 0 8px 24px rgba(128, 0, 0, 0.12);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.hover-elevate {
  transition: all 0.3s ease;
}

.hover-elevate:hover {
  box-shadow: 0 12px 32px rgba(128, 0, 0, 0.15);
  transform: translateY(-4px);
}

/* ===============================
   SECCIONES
   =============================== */

.section {
  padding: 4rem 2rem;
  background: var(--background-white);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.section h2 .highlight {
  color: var(--accent-cyan);
}

.section.bg-gray {
  background: var(--background-gray);
}

.section.mt-lg {
  margin-top: 3rem;
}

.section ul {
  list-style: none;
  padding: 0;
}

.section ul li {
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  position: relative;
  color: var(--text-secondary);
}

.section ul li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: bold;
}

/* ===============================
   FORMULARIOS
   =============================== */

.form-control {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: var(--background-white);
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
  color: var(--text-primary);
}

.form-label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.form-dark {
  background: var(--background-gray);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

/* ===============================
   FOOTER
   =============================== */

.footer {
  background: var(--background-gray);
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer strong {
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
}

footer img {
  height: 24px;
  width: auto;
  margin-right: 0.5rem;
}

/* ===============================
   TIMELINE / PASOS (A1-A5)
   =============================== */

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-step .step-number {
  min-width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 4px 15px rgba(128, 0, 0, 0.3);
}

.timeline-step .step-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.timeline-step .step-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 29px;
  top: 60px;
  width: 2px;
  height: calc(100% + 20px);
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary-light) 50%, transparent 100%);
}

/* ===============================
   TARJETAS DE FILOSOFÍA (3 COLS)
   =============================== */

.philosophy-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--background-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.philosophy-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 8px 24px rgba(128, 0, 0, 0.12);
  transform: translateY(-4px);
}

.philosophy-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.philosophy-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.philosophy-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* ===============================
   ANIMACIONES
   =============================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 768px) {
  .section {
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .timeline-step {
    gap: 1rem;
  }

  .btn-cta,
  .btn-outline-blue {
    padding: 0.65rem 1.4rem;
    font-size: 0.95rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-grid .footer-col:last-child {
    text-align: center;
  }

  .stats-row {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 2.5rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .section h2 {
    font-size: 1.3rem;
  }

  .d-flex.gap-2 {
    flex-direction: column;
  }

  .btn-cta,
  .btn-outline-blue {
    width: 100%;
  }
}

/* ===============================
   SECCIÓN CTA DARK (Hero CTA)
   =============================== */

.hero-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(128, 0, 0, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-cta h2 {
  color: #ffffff;
  font-size: 2rem;
}

.hero-cta p,
.hero-cta li {
  color: rgba(255, 255, 255, 0.75);
}

.hero-cta ul li:before {
  color: var(--primary-light);
}

.hero-cta strong {
  color: #ffffff;
}

.hero-cta .card-dark {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-cta .card-dark h5 {
  color: #ffffff;
}

.hero-cta .card-dark p {
  color: rgba(255, 255, 255, 0.6);
}

/* ===============================
   BOTÓN FLOTANTE WHATSAPP
   =============================== */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1050;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
  animation: none;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0.15);
  }

  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
}

/* ===============================
   FOOTER ENRIQUECIDO
   =============================== */

.footer {
  background: #0f172a;
  border-top: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  padding: 3rem 0 1.5rem;
}

.footer strong,
.footer h6 {
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
}

.footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-light);
}

footer img {
  height: 28px;
  width: auto;
  margin-right: 0.5rem;
}

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

.footer-col h6 {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
  padding-left: 0;
}

.footer-col ul li::before {
  content: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===============================
   BARRA DE MÉTRICAS / COUNTERS
   =============================== */

.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===============================
   STAGGER REVEAL PARA TARJETAS
   =============================== */

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.25s;
}

.reveal-delay-3 {
  transition-delay: 0.4s;
}

/* ===============================
   SECCIÓN: PÁGINAS WEB PARA CAPTAR CLIENTES
   =============================== */

/* Lista de problemas */
.pagweb-lista {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagweb-lista li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.pagweb-lista li:last-child {
  border-bottom: none;
}

/* anula el ::before global de .section ul li */
.pagweb-section ul.pagweb-lista li::before {
  content: none;
}

.pagweb-icono {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Beneficios solución */
.pagweb-beneficio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.pagweb-beneficio span {
  flex-shrink: 0;
}

/* Cards de planes */
.pagweb-plan {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
}

.pagweb-plan-nombre {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.pagweb-plan-precio {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.pagweb-plan-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.pagweb-plan-lista {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  flex: 1;
}

.pagweb-plan-lista li {
  padding: 0.4rem 0;
  padding-left: 1.4rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.92rem;
  border-bottom: none;
}

.pagweb-plan-lista li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: 700;
}

/* Plan Recomendado */
.pagweb-plan--destacado {
  background: linear-gradient(145deg, #fff, #fff8f8);
  border: 2px solid var(--primary-light) !important;
  box-shadow: 0 12px 40px rgba(128, 0, 0, 0.15) !important;
}

.pagweb-plan--destacado .pagweb-plan-nombre {
  color: var(--primary-light);
}

.pagweb-badge-rec {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-light);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(128, 0, 0, 0.3);
}

/* Badges "Ideal para" */
.pagweb-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.pagweb-tag {
  display: inline-block;
  background: var(--background-white);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.pagweb-tag:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: rgba(128, 0, 0, 0.04);
}

/* Botón WhatsApp en la sección */
.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

/* Responsive ajustes */
@media (max-width: 768px) {
  .pagweb-plan-precio {
    font-size: 1.5rem;
  }
  .pagweb-badge-rec {
    font-size: 0.7rem;
    padding: 0.2rem 0.8rem;
  }
}
}