/* ==========================================================================
   ÁNGEL CÓRDOBA - CLEAN, AUTHENTIC, HIGH-CONVERTING FUNNEL
   Aesthetic: Deep Midnight Theme, Clean Typography & Natural High-CTR Elements
   ========================================================================== */

:root {
  --bg-dark: #09080e;
  --bg-card: #13101c;
  --bg-card-alt: #1a1626;
  --border-card: #272138;
  --border-subtle: rgba(255, 255, 255, 0.08);

  --accent-gold: #f59e0b;
  --accent-gold-light: #fde68a;
  --accent-red: #e11d48;
  --accent-green: #22c55e;
  --accent-green-dark: #16a34a;

  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-main);
  color: var(--text-body);
  background: radial-gradient(circle at 50% -10%, #1c1533 0%, var(--bg-dark) 60%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.main-container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==================== 1. TOP BAR EN LOOP ==================== */
.top-bar-red {
  background: linear-gradient(90deg, #991b1b, #dc2626, #b91c1c, #991b1b);
  background-size: 200% auto;
  animation: bgScroll 6s ease infinite;
  color: #ffffff;
  padding: 8px 0;
  font-size: 0.82rem;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

@keyframes bgScroll {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
  animation: marqueeLoop 20s linear infinite;
}

.marquee-content .bullet {
  color: #fde047;
}

@keyframes marqueeLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==================== 2. HEADER ==================== */
.page-header {
  padding: 2.25rem 0 1.5rem;
  text-align: center;
}

.author-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.dot-online {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

.main-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

@media (min-width: 600px) {
  .main-title {
    font-size: 2.35rem;
  }
}

.highlight-word {
  color: #fbbf24;
}

.text-underline {
  text-decoration: underline;
  text-decoration-color: #ef4444;
  text-decoration-thickness: 3px;
}

.main-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 650px;
  margin: 0 auto;
}

/* ==================== 3. HERO CARD & CTA ==================== */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  margin-bottom: 2.75rem;
}

.hero-image-box {
  position: relative;
  max-width: 400px;
  margin: 1.5rem auto 0.5rem;
  padding: 0 1rem;
}

.angel-photo {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.photo-footer-badge {
  position: absolute;
  bottom: 12px;
  left: 25px;
  right: 25px;
  background: rgba(10, 8, 16, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 6px 12px;
  text-align: center;
}

.photo-footer-badge strong {
  display: block;
  font-size: 0.85rem;
  color: #ffffff;
}

.photo-footer-badge span {
  font-size: 0.72rem;
  color: var(--accent-gold-light);
}

.hero-cta-block {
  padding: 1.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-subtle);
}

.free-pill {
  display: inline-block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}

.cta-direct-text {
  font-size: 0.95rem;
  color: #f1f5f9;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Big Green WhatsApp Button */
.btn-whatsapp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  color: #ffffff;
  padding: 1.1rem 1.5rem;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp-cta i {
  font-size: 2rem;
  flex-shrink: 0;
}

.btn-cta-text strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.2;
}

.btn-cta-text small {
  display: block;
  font-size: 0.75rem;
  color: #fef08a;
  font-weight: 500;
}

.btn-whatsapp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.6);
}

.btn-pulse {
  animation: btnPulseGlow 2.2s infinite;
}

@keyframes btnPulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.privacy-notice {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.privacy-notice i {
  color: var(--accent-gold);
}

/* ==================== 4. LETTER SECTION ==================== */
.letter-section {
  margin-bottom: 3rem;
}

.section-heading {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-sub {
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.letter-p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
}

.problem-boxes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.problem-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 1.25rem;
}

.problem-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.problem-header h3 {
  font-size: 1.05rem;
  color: #ffffff;
  font-weight: 700;
}

.icon-red { color: #ef4444; font-size: 1.2rem; }
.icon-gold { color: #fbbf24; font-size: 1.2rem; }
.icon-purple { color: #c084fc; font-size: 1.2rem; }

.problem-item p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.55;
  margin: 0;
}

.honest-box {
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid var(--accent-gold);
  padding: 1.15rem 1.35rem;
  border-radius: 0 10px 10px 0;
}

.honest-box p {
  font-size: 0.98rem;
  color: #fef3c7;
  margin: 0;
}

/* ==================== 5. TESTIMONIALS ==================== */
.testimonials-section {
  margin-bottom: 3rem;
}

.reviews-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 1.25rem;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.user-avatar-initial {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2b2247;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid var(--accent-gold);
}

.user-meta {
  flex-grow: 1;
}

.user-meta strong {
  display: block;
  font-size: 0.92rem;
  color: #ffffff;
}

.user-meta span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stars {
  color: #fbbf24;
  font-size: 0.85rem;
}

.review-body {
  font-size: 0.92rem;
  color: #f1f5f9;
  line-height: 1.55;
  font-style: italic;
  margin: 0;
}

/* WhatsApp Chat Preview */
.wa-chat-box {
  background: #0b141a;
  border-radius: 14px;
  border: 1px solid #222d34;
  overflow: hidden;
}

.wa-chat-header {
  background: #202c33;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.wa-chat-pic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.wa-chat-header strong {
  font-size: 0.85rem;
  color: #e9edef;
  display: block;
}

.wa-chat-header small {
  font-size: 0.7rem;
  color: #25d366;
}

.wa-chat-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.msg-in, .msg-out {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.msg-in {
  align-self: flex-start;
  background: #202c33;
  color: #e9edef;
}

.msg-out {
  align-self: flex-end;
  background: #005c4b;
  color: #e9edef;
}

.msg-time {
  display: block;
  text-align: right;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
}

.msg-check {
  color: #53bdeb;
}

/* ==================== 6. TOPIC PICKER ==================== */
.topic-picker-section {
  margin-bottom: 3rem;
}

.picker-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .picker-buttons {
    grid-template-columns: 1fr 1fr;
  }
}

.picker-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  text-align: left;
  transition: all 0.2s ease;
}

.picker-btn i:first-child {
  font-size: 1.15rem;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.picker-btn span {
  flex-grow: 1;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.picker-btn .arrow {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.picker-btn:hover {
  border-color: var(--accent-gold);
  background: var(--bg-card-alt);
  transform: translateY(-2px);
}

/* ==================== 7. WHY FREE ==================== */
.why-free-section {
  margin-bottom: 3rem;
}

.why-free-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 1.5rem;
}

.why-free-card h3 {
  font-size: 1.05rem;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.why-free-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 0.75rem;
}

.why-free-card p:last-child {
  margin-bottom: 0;
}

/* ==================== 8. FAQ ==================== */
.faq-section {
  margin-bottom: 3rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-card.active {
  border-color: var(--border-subtle);
}

.faq-btn {
  width: 100%;
  padding: 1.1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.faq-icon {
  font-size: 0.8rem;
  color: var(--accent-gold);
  transition: transform 0.25s ease;
}

.faq-card.active .faq-icon {
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.25rem;
}

.faq-card.active .faq-body {
  max-height: 200px;
  padding: 0 1.25rem 1.15rem;
}

.faq-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ==================== 9. FINAL CTA ==================== */
.final-box {
  background: linear-gradient(145deg, #1e1533 0%, #110d1e 100%);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 2.25rem 1.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.final-box h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.final-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-links-row strong {
  color: #ffffff;
}

.contact-links-row a {
  color: var(--accent-gold-light);
}

/* ==================== 10. FOOTER ==================== */
.footer-clean {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: #64748b;
}

.footer-clean small {
  display: block;
  margin-top: 4px;
}

/* ==================== 11. FLOATING & MOBILE STICKY ==================== */
.wa-float {
  position: fixed;
  bottom: 85px;
  right: 20px;
  z-index: 999;
}

@media (min-width: 768px) {
  .wa-float {
    bottom: 25px;
    right: 25px;
  }
}

.wa-float-btn {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
  position: relative;
  transition: transform 0.2s ease;
}

.wa-float-btn:hover {
  transform: scale(1.08);
}

.wa-float-tooltip {
  position: absolute;
  right: 66px;
  top: 50%;
  transform: translateY(-50%);
  background: #171226;
  border: 1px solid var(--border-card);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

@media (min-width: 768px) {
  .wa-float-tooltip {
    opacity: 1;
  }
}

.mobile-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 10, 20, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-card);
  padding: 9px 15px;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.mobile-sticky-text strong {
  display: block;
  font-size: 0.85rem;
  color: #4ade80;
}

.mobile-sticky-text small {
  font-size: 0.7rem;
  color: #fecaca;
}

.btn-mobile-act {
  background: #22c55e;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 25px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==================== 12. LIVE TOAST ==================== */
.live-toast {
  position: fixed;
  bottom: 90px;
  left: 20px;
  background: rgba(19, 16, 28, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 990;
  max-width: 300px;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.live-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-wa-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.toast-content strong {
  display: block;
  font-size: 0.78rem;
  color: #ffffff;
}

.toast-content p {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.2;
  margin: 0;
}

.toast-content small {
  font-size: 0.65rem;
  color: var(--accent-gold);
}

.toast-close {
  color: var(--text-muted);
  font-size: 1rem;
  margin-left: auto;
  align-self: flex-start;
}
