/* ============================================
   Impulso Local Digital - Light Mode v1
   Colors: #F5F5F5 + Morado + Amarillo Gold
   Fonts: Inter (headings + body) + JetBrains Mono
   ============================================ */

:root {
  /* Primarios - LIGHT MODE */
  --bg: #F5F5F5;               /* Gris claro (fondo principal) */
  --bg-soft: #FFFFFF;          /* Blanco puro (cards) */
  --bg-dark: #E8E8E8;          /* Gris medio (secciones) */
  --text: #1F1F1F;             /* Oscuro (texto principal) */
  --text-secondary: #6B7280;   /* Gris (texto secundario) */
  --text-muted: #9CA3AF;       /* Gris claro (muted) */

  /* Acentos - IGUAL */
  --accent-primary: #7C3AED;    /* Purple Bold */
  --accent-light: #C084FC;      /* Purple Light */
  --accent-gold: #FBBF24;       /* Yellow Gold */
  --accent-gold-soft: #FCD34D;  /* Yellow Soft */

  /* Estados */
  --success: #10B981;
  --warning: #F97316;
  --error: #EF4444;
  --info: #06B6D4;

  /* Layout */
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* ============================================
   Global Reset & Base Styles
   ============================================ */

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0;
  color: var(--text);
}

h1 {
  font-size: 2rem;   /* 32px mobile */
}

h2 {
  font-size: 1.5rem; /* 24px mobile */
  font-weight: 700;
}

h3 {
  font-size: 1.25rem; /* 20px mobile */
  font-weight: 600;
}

h4 {
  font-size: 1.125rem; /* 18px mobile */
  font-weight: 600;
}

p {
  margin: 0;
  line-height: 1.6;
}

/* Highlight accent for keywords */
.highlight {
  color: var(--accent-primary);
  font-weight: 800;
  position: relative;
}

h1 .highlight {
  display: inline-block;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.small {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.micro {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ============================================
   Links & Interactive
   ============================================ */

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 300ms ease-in-out;
}

a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* ============================================
   Buttons
   ============================================ */

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent-primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 300ms ease-in-out;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.button:hover {
  background: #6D28D9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.25);
}

.button:active {
  background: #5B21B6;
  transform: translateY(0);
}

.button-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.button-ghost {
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: none;
}

.button-ghost:hover {
  background: #F3E8FF;
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

/* ============================================
   Layout
   ============================================ */

section[id] {
  scroll-margin-top: 90px;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #E8E8E8;
  padding: 1rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  transition: color 300ms;
}

.brand:hover {
  color: var(--accent-primary);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-primary);
  color: #FFFFFF;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
}

.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-soft);
  border-bottom: 1px solid #E8E8E8;
  padding: 1rem;
  flex-direction: column;
  gap: 0.5rem;
}

.main-nav.active {
  display: flex;
}

.main-nav a {
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 200ms;
}

.main-nav a:hover {
  background: #F3E8FF;
  color: var(--accent-primary);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    border: none;
    padding: 0;
    gap: 2rem;
  }

  .main-nav a {
    padding: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
  }

  .main-nav a:hover {
    background: none;
    color: var(--accent-primary);
  }

  .menu-toggle {
    display: none;
  }
}

@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  padding: 4rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text);
}

.hero .lead {
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-points li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--text-secondary);
}

.hero-points li:before {
  content: '✓';
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.hero-metrics article {
  text-align: left;
}

.hero-metrics strong {
  display: block;
  font-size: 1.75rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.hero-metrics span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-card {
  background: var(--bg-soft);
  border: 1px solid #E8E8E8;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 300ms ease-in-out;
}

.hero-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.hero-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
}

.hero-card ol {
  list-style: decimal;
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
  color: var(--text-secondary);
}

.hero-card ol li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

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

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 4rem 0;
}

.section-dark {
  background: var(--bg-dark);
  border-top: 1px solid #E8E8E8;
  border-bottom: 1px solid #E8E8E8;
}

.section-accent {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-light) 100%);
  color: #FFFFFF;
}

.section-accent h2,
.section-accent h3 {
  color: #FFFFFF;
}

.section-accent .lead {
  color: rgba(255, 255, 255, 0.9);
}

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

.section > .container > .lead {
  margin-bottom: 3rem;
}

/* ============================================
   Cards Grid
   ============================================ */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--bg-soft);
  border: 1px solid #E8E8E8;
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 300ms ease-in-out;
}

.card:hover {
  border-color: var(--accent-primary);
  background: #FAFAFA;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   Steps / Process
   ============================================ */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.steps article {
  position: relative;
  padding-left: 4rem;
}

.steps span {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
  border-radius: 50%;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
}

.steps h3 {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.steps p {
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   Results Grid
   ============================================ */

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.check-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-left: 3px solid var(--accent-primary);
  padding-left: 1rem;
  color: var(--text-secondary);
}

.quote-card {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.quote-card p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--text);
}

.quote-card strong {
  display: block;
  color: var(--accent-primary);
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .results-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   Contact Section
   ============================================ */

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form label {
  display: block;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #FAFAFA;
  border: 1px solid #E8E8E8;
  border-radius: 8px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 200ms;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
  background: #FFFFFF;
}

.contact-form button {
  align-self: flex-start;
}

.form-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  min-height: 1.5rem;
}

.form-note.success {
  color: var(--success);
}

.form-note.error {
  color: var(--error);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   FAQ Section
   ============================================ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

details {
  background: var(--bg-soft);
  border: 1px solid #E8E8E8;
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 200ms ease-in-out;
}

details:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow);
}

details[open] {
  background: #FAFAFA;
}

summary {
  font-weight: 600;
  color: var(--accent-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent-primary);
  transition: transform 200ms;
}

details[open] summary::after {
  transform: rotate(45deg);
  content: '+';
}

details p {
  margin-top: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid #E8E8E8;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-wrap p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-wrap a {
  color: var(--accent-primary);
}

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

#year {
  font-weight: 600;
}

/* ============================================
   Mobile CTA
   ============================================ */

.mobile-wa-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #25D366;
  color: #FFFFFF;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  transition: all 300ms ease-in-out;
  z-index: 50;
  text-align: center;
}

.mobile-wa-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
  background: #20BA5A;
}

@media (min-width: 768px) {
  .mobile-wa-cta {
    display: none;
  }
}

/* ============================================
   Utility Classes
   ============================================ */

.check-list li::before {
  content: '✓';
  color: var(--accent-gold);
  font-weight: 700;
  margin-right: 0.75rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 767px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .hero {
    padding: 2.5rem 0;
  }

  .section {
    padding: 2.5rem 0;
  }

  .container {
    padding: 0 1rem;
  }
}

/* ============================================
   Light Mode (Default)
   ============================================ */

@media (prefers-color-scheme: light) {
  /* Ya está en light mode por defecto */
}

/* ============================================
   Accessibility
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: more) {
  --text: #000000;
  --text-secondary: #333333;
  border-color: var(--text) !important;
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .mobile-wa-cta {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
