/* =====================================================
   FUNNEL CSS - Diego Salama
   Rediseño completo moderno
   ===================================================== */

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

:root {
  --orange: #E8713A;
  --orange-dark: #D4612C;
  --orange-light: #FFF3E0;
  --dark: #1a1a2e;
  --dark-blue: #16213e;
  --dark-surface: #0f3460;
  --text: #2d3436;
  --text-light: #636e72;
  --text-muted: #b2bec3;
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --bg-warm: #FFF8F3;
  --border: #e9ecef;
  --success: #27ae60;
  --warning: #f39c12;
  --danger: #e74c3c;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 30px rgba(232,113,58,0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange-dark); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
p { margin-bottom: 1rem; }

.text-orange { color: var(--orange); }
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.highlight { background: linear-gradient(180deg, transparent 60%, rgba(232,113,58,0.2) 60%); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-xl); font-weight: 600;
  font-size: 1rem; cursor: pointer; border: none; transition: var(--transition);
  text-decoration: none; position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; background: rgba(255,255,255,0.2);
  border-radius: 50%; transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.btn:hover::after { width: 300px; height: 300px; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white; box-shadow: 0 4px 15px rgba(232,113,58,0.4);
}
.btn-primary:hover {
  box-shadow: var(--shadow-glow); transform: translateY(-2px); color: white;
}
.btn-secondary {
  background: transparent; color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-secondary:hover { background: var(--orange); color: white; }
.btn-dark {
  background: var(--dark); color: white;
}
.btn-dark:hover { background: var(--dark-blue); color: white; }
.btn-whatsapp {
  background: #25D366; color: white;
}
.btn-whatsapp:hover { background: #20BD5A; color: white; }
.btn-lg { padding: 18px 42px; font-size: 1.1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-pulse { animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(232,113,58,0.4); }
  50% { box-shadow: 0 4px 30px rgba(232,113,58,0.7); }
}

/* === NAVIGATION === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 12px 0;
  transition: var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-md); padding: 8px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-size: 1.3rem; font-weight: 800; color: var(--dark); }
.nav-logo span { color: var(--orange); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 0.9rem; }
.nav-links a:hover { color: var(--orange); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; transition: var(--transition); }

/* === HERO SECTION === */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; position: relative;
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,113,58,0.08), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-block; background: var(--orange-light); color: var(--orange);
  padding: 6px 16px; border-radius: var(--radius-xl); font-size: 0.85rem;
  font-weight: 600; margin-bottom: 16px;
}
.hero h1 { margin-bottom: 20px; }
.hero p { font-size: 1.15rem; color: var(--text-light); margin-bottom: 28px; max-width: 500px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 40px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--orange); }
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* === SECTIONS === */
section { padding: 80px 0; }
.section-light { background: var(--bg-soft); }
.section-dark { background: var(--dark); color: white; }
.section-dark h2, .section-dark h3 { color: white; }
.section-dark p { color: rgba(255,255,255,0.8); }
.section-warm { background: var(--bg-warm); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; }
.section-label {
  display: inline-block; color: var(--orange); font-weight: 600;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 12px;
}

/* === QUIZ === */
.quiz-container {
  background: white; border-radius: var(--radius-lg); padding: 48px;
  box-shadow: var(--shadow-lg); max-width: 680px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.quiz-container::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: linear-gradient(90deg, var(--orange), var(--orange-dark));
}
.quiz-progress {
  height: 6px; background: var(--border); border-radius: 3px;
  margin-bottom: 32px; overflow: hidden;
}
.quiz-progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  border-radius: 3px; transition: width 0.5s ease;
}
.quiz-step-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.quiz-question { font-size: 1.25rem; font-weight: 600; margin-bottom: 24px; color: var(--dark); }
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-option {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  border: 2px solid var(--border); border-radius: var(--radius-md);
  cursor: pointer; transition: var(--transition); background: white;
}
.quiz-option:hover { border-color: var(--orange); background: var(--orange-light); }
.quiz-option.selected { border-color: var(--orange); background: var(--orange-light); }
.quiz-option-radio {
  width: 22px; height: 22px; border: 2px solid var(--border);
  border-radius: 50%; flex-shrink: 0; position: relative; transition: var(--transition);
}
.quiz-option.selected .quiz-option-radio {
  border-color: var(--orange); background: var(--orange);
}
.quiz-option.selected .quiz-option-radio::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: 8px; height: 8px;
  background: white; border-radius: 50%;
}
.quiz-nav { display: flex; justify-content: space-between; margin-top: 32px; }
.quiz-lead-form { display: flex; flex-direction: column; gap: 16px; }

/* === RESULTS === */
.result-card {
  text-align: center; padding: 40px; border-radius: var(--radius-lg);
  background: white; box-shadow: var(--shadow-lg);
}
.result-score {
  width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 6px solid; position: relative;
}
.result-score-num { font-size: 2.5rem; font-weight: 800; }
.result-score-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.result-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; text-align: left; }
.result-area { padding: 16px; border-radius: var(--radius-sm); background: var(--bg-soft); }
.result-area-name { font-size: 0.85rem; color: var(--text-light); margin-bottom: 6px; }
.result-area-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.result-area-fill { height: 100%; border-radius: 4px; transition: width 1s ease; }

/* === CARDS === */
.card {
  background: white; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--border);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-body { padding: 28px; }
.card-img { width: 100%; height: 200px; object-fit: cover; }

/* === SERVICE CARDS === */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.service-card {
  background: white; border-radius: var(--radius-md); padding: 36px;
  border: 1px solid var(--border); transition: var(--transition);
  position: relative; overflow: hidden;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card.featured {
  border: 2px solid var(--orange); box-shadow: var(--shadow-glow);
}
.service-card.featured::before {
  content: 'MAS POPULAR'; position: absolute; top: 16px; right: -32px;
  background: var(--orange); color: white; padding: 4px 40px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
  transform: rotate(45deg);
}
.service-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  background: var(--orange-light); display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px;
}
.service-price {
  font-size: 2rem; font-weight: 800; color: var(--dark); margin: 16px 0 4px;
}
.service-price span { font-size: 0.9rem; font-weight: 400; color: var(--text-light); }
.service-duration { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.service-features { list-style: none; margin: 20px 0; }
.service-features li {
  padding: 8px 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; font-size: 0.95rem;
}
.service-features li:last-child { border: none; }
.service-features .check { color: var(--success); font-weight: bold; }

/* === TESTIMONIALS === */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial {
  background: white; border-radius: var(--radius-md); padding: 32px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.testimonial-stars { color: #FFC107; margin-bottom: 12px; font-size: 1.1rem; }
.testimonial-text { font-style: italic; color: var(--text-light); margin-bottom: 16px; font-size: 0.95rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--orange-light);
}
.testimonial-name { font-weight: 600; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* === FAQ === */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: 12px; overflow: hidden; transition: var(--transition);
}
.faq-item.active { border-color: var(--orange); }
.faq-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; background: white; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--dark); text-align: left;
}
.faq-trigger svg { transition: var(--transition); flex-shrink: 0; }
.faq-item.active .faq-trigger svg { transform: rotate(180deg); }
.faq-content {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  padding: 0 24px;
}
.faq-item.active .faq-content { max-height: 500px; padding: 0 24px 20px; }
.faq-content p { color: var(--text-light); }

/* === ABOUT / AUTHOR === */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.about-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-credentials { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.credential-badge {
  display: inline-flex; padding: 6px 14px; background: var(--bg-soft);
  border-radius: var(--radius-xl); font-size: 0.8rem; color: var(--text-light);
  border: 1px solid var(--border);
}

/* === VALUE LADDER (Brunson) === */
.value-ladder {
  display: flex; flex-direction: column; gap: 0;
  max-width: 600px; margin: 0 auto;
}
.ladder-step {
  padding: 20px 28px; position: relative;
  border-left: 3px solid var(--border); margin-left: 20px;
}
.ladder-step::before {
  content: ''; position: absolute; left: -9px; top: 24px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--border); border: 3px solid white;
}
.ladder-step.active { border-left-color: var(--orange); }
.ladder-step.active::before { background: var(--orange); box-shadow: 0 0 0 4px rgba(232,113,58,0.2); }
.ladder-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.ladder-title { font-weight: 700; font-size: 1.1rem; }
.ladder-price { color: var(--orange); font-weight: 600; }

/* === FORMS === */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--dark); }
.form-input {
  width: 100%; padding: 14px 18px; border: 2px solid var(--border);
  border-radius: var(--radius-md); font-size: 1rem; font-family: var(--font);
  transition: var(--transition); background: white;
}
.form-input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,113,58,0.1); }
.form-input::placeholder { color: var(--text-muted); }
.form-error { color: var(--danger); font-size: 0.85rem; margin-top: 4px; }
.form-help { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

/* === CHECKOUT === */
.checkout-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: flex-start; }
.checkout-summary {
  background: var(--bg-soft); border-radius: var(--radius-md);
  padding: 32px; border: 1px solid var(--border);
}
.checkout-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.checkout-total { font-size: 1.4rem; font-weight: 800; color: var(--dark); padding-top: 16px; }
.checkout-secure { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.85rem; margin-top: 16px; }

/* === DASHBOARD === */
.dash-layout { display: grid; grid-template-columns: 260px 1fr; gap: 0; min-height: 100vh; }
.dash-sidebar {
  background: var(--dark); padding: 32px 20px; color: white;
  display: flex; flex-direction: column;
}
.dash-sidebar a { color: rgba(255,255,255,0.7); padding: 12px 16px; border-radius: var(--radius-sm); display: flex; gap: 10px; align-items: center; transition: var(--transition); }
.dash-sidebar a:hover, .dash-sidebar a.active { background: rgba(255,255,255,0.1); color: white; }
.dash-main { padding: 32px; background: var(--bg-soft); }
.dash-card {
  background: white; border-radius: var(--radius-md); padding: 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 20px;
}
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 28px; }
.dash-stat {
  background: white; border-radius: var(--radius-md); padding: 24px;
  border: 1px solid var(--border);
}
.dash-stat-num { font-size: 2rem; font-weight: 800; color: var(--orange); }
.dash-stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* === FOOTER === */
.footer {
  background: var(--dark); color: rgba(255,255,255,0.7); padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: white; margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.85rem; }

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  padding: 60px 0; text-align: center; color: white;
}
.cta-banner h2 { color: white; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 28px; }

/* === URGENCY BAR === */
.urgency-bar {
  background: var(--dark); color: white; text-align: center;
  padding: 10px; font-size: 0.9rem; position: fixed; bottom: 0;
  left: 0; right: 0; z-index: 999; display: flex; align-items: center;
  justify-content: center; gap: 16px;
}
.urgency-bar .timer { color: var(--orange); font-weight: 700; font-size: 1.1rem; }

/* === GUARANTEE === */
.guarantee {
  display: flex; align-items: center; gap: 24px;
  padding: 28px; background: var(--bg-warm); border-radius: var(--radius-md);
  border: 1px solid rgba(232,113,58,0.2);
}
.guarantee-icon { font-size: 3rem; flex-shrink: 0; }

/* === SOCIAL PROOF === */
.social-proof {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap; justify-content: center; opacity: 0.7;
}
.social-proof img { height: 40px; filter: grayscale(100%); transition: var(--transition); }
.social-proof img:hover { filter: grayscale(0); opacity: 1; }

/* === LOADING / SPINNER === */
.spinner {
  width: 40px; height: 40px; border: 4px solid var(--border);
  border-top-color: var(--orange); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === NOTIFICATIONS === */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: white; border-radius: var(--radius-md); padding: 16px 24px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
  transform: translateY(120%); transition: var(--transition);
}
.toast.show { transform: translateY(0); }
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }

/* === ANIMATIONS === */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.slide-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.6s, transform 0.6s; }
.slide-left.visible { opacity: 1; transform: translateX(0); }
.slide-right { opacity: 0; transform: translateX(40px); transition: opacity 0.6s, transform 0.6s; }
.slide-right.visible { opacity: 1; transform: translateX(0); }

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-media { order: -1; max-width: 400px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { flex-direction: row; overflow-x: auto; padding: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.active {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: white; padding: 20px;
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: block; }
  .result-areas { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  section { padding: 48px 0; }
  .quiz-container { padding: 28px 20px; }
  .service-card { padding: 24px; }
  .btn-lg { padding: 14px 28px; font-size: 1rem; }
  .hero-stats { flex-direction: column; align-items: center; gap: 16px; }
}

/* === UTILITY === */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 48px; }
.py-1 { padding-top: 8px; padding-bottom: 8px; } .py-2 { padding-top: 16px; padding-bottom: 16px; } .py-3 { padding-top: 24px; padding-bottom: 24px; }
.d-none { display: none; } .d-flex { display: flex; } .gap-2 { gap: 16px; }
.w-100 { width: 100%; }
