/* ============================================================
   GETTIN' BETTER — COMPONENTS (Light-first redesign)
   components.css
   ============================================================ */

/* ── Material Symbols Alignment ─────────────────────────────────── */
.material-symbols-outlined {
  vertical-align: middle;
  line-height: 1;
  display: inline-block;
}

/* ── Badge ───────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  background-color: rgba(255, 154, 118, 0.10);
  color: var(--accent-deep);
  border: 1px solid rgba(255, 154, 118, 0.25);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.75rem;
}

/* Badge on dark sections */
.bg-dark .badge {
  background-color: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 4px 15px rgba(22, 7, 21, 0.4);
}

/* ── CTA Button ──────────────────────────────────────────────── */
.cta-btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--bg-deep);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  transition: var(--transition);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--accent-glow);
  cursor: pointer;
  letter-spacing: 0.01em;
}

.cta-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-btn--large {
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
}

/* WhatsApp button variant */
.cta-btn--whatsapp {
  background-color: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 30px var(--whatsapp-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.cta-btn--whatsapp:hover {
  background-color: var(--whatsapp-hover);
  box-shadow: 0 15px 35px rgba(232, 81, 26, 0.5);
  transform: translateY(-3px);
}

/* BancoEstado */
.cta-btn--banco {
  background: linear-gradient(135deg, #003087 0%, #0052CC 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 48, 135, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.cta-btn--banco:hover {
  background: linear-gradient(135deg, #001f5c 0%, #003087 100%);
  box-shadow: 0 15px 35px rgba(0, 48, 135, 0.45);
  transform: translateY(-3px);
  color: #fff;
}

/* Ghost (outline) for secondary links */
.cta-btn--ghost {
  background: transparent;
  color: var(--accent-deep);
  border: 1px solid rgba(255, 154, 118, 0.35);
  box-shadow: none;
}

.cta-btn--ghost:hover {
  background: rgba(255, 154, 118, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ── Icon in buttons ─────────────────────────────────────────── */
.btn-icon {
  display: inline-flex;
  align-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Navbar ──────────────────────────────────────────────────── */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: var(--transition);
  background-color: transparent;
}

.main-header.scrolled {
  background-color: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(22, 7, 21, 0.06);
  box-shadow: 0 1px 12px rgba(22, 7, 21, 0.06);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav-logo {
  height: 44px;
  width: auto;
  transition: var(--transition);
  display: block;
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-cta {
  /* inherits .cta-btn */
  padding: 0.55rem 1.2rem;
  font-size: 0.82rem;
}

/* ── Feature Cards (Light context — white card) ──────────────── */
.feature-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: var(--border-light);
  transition: var(--transition);
  box-shadow: var(--shadow-light-sm);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 154, 118, 0.35);
  box-shadow: var(--shadow-light-glow);
}

.feature-card__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.35rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--text-muted-light);
  line-height: 1.65;
}

.feature-card__num {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  padding-top: 3px;
  padding-bottom: 3px;
  padding-right: 3px;
  box-sizing: border-box;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 154, 118, 0.3);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ── Module Cards (white on light sections) ──────────────────── */
.module-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: var(--border-light);
  transition: var(--transition);
  box-shadow: var(--shadow-light-sm);
}

.module-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 154, 118, 0.4);
  box-shadow: var(--shadow-light-glow);
}

.module-card h3 {
  font-size: 1.2rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.module-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--text-muted-light);
}

/* ── Pain Card (light bg, accent left border) ─────────────────── */
.pain-card {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.75rem 2rem;
  border-top: var(--border-light);
  border-right: var(--border-light);
  border-bottom: var(--border-light);
  transition: var(--transition);
  box-shadow: var(--shadow-light-sm);
}

.pain-card:hover {
  transform: translateX(6px);
  border-left-color: var(--bg-medium);
  box-shadow: var(--shadow-light-glow);
}

.pain-card__emoji {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.pain-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}

.pain-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--text-muted-light);
}

/* ── Pricing Box (Dark context — inside .bg-dark #pago) ──────── */
.pricing-box {
  background: var(--bg-medium);
  border: 2px solid var(--accent);
  padding: 3.5rem 3rem;
  border-radius: var(--radius-xl);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 25px 60px rgba(255, 154, 118, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-box h3 {
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.pricing-box .price-label {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
  margin-bottom: 1.5rem;
}

.pricing-box p {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  text-align: left;
}

.pricing-box .disclaimer {
  font-size: 0.9rem;
  background: rgba(255, 154, 118, 0.05);
  border: 1px dashed rgba(255, 154, 118, 0.25);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 2rem;
  color: var(--text-primary);
  text-align: left;
}

.pricing-box .disclaimer strong {
  color: var(--accent);
}

/* Features list inside pricing */
.pricing-features {
  text-align: left;
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-features li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: rgba(37, 211, 102, 0.12);
  color: #1DAE54;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Rhythm cards (plan format cards — inside pricing/dark) */
.rhythm-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
  text-align: left;
}

.rhythm-card {
  background: rgba(22, 7, 21, 0.5);
  border: 1px solid rgba(255, 154, 118, 0.15);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.rhythm-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 154, 118, 0.35);
  box-shadow: var(--shadow-md);
}

.rhythm-card h4 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.rhythm-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

.rhythm-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-intensivo {
  background: rgba(255, 154, 118, 0.15);
  color: var(--accent);
  border: 1px solid rgba(255, 154, 118, 0.25);
}

.badge-progresivo {
  background: rgba(197, 173, 196, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(197, 173, 196, 0.25);
}

/* ── Form (Light context) ────────────────────────────────────── */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

.form-label span {
  color: var(--accent-deep);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid rgba(22, 7, 21, 0.12);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-body);
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(22, 7, 21, 0.35);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 154, 118, 0.10);
  background: var(--bg-card);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--mandarina);
  box-shadow: 0 0 0 3px rgba(232, 81, 26, 0.1);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233D2A3C' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-body);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: 0.78rem;
  color: var(--mandarina);
  font-weight: 600;
  display: none;
}

.form-error.visible {
  display: block;
}

/* ── Profile Tabs — Segmented Control (Light context) ────────── */
.profile-tabs {
  display: flex;
  gap: 0.35rem;
  background: rgba(22, 7, 21, 0.04);
  border: 1px solid rgba(22, 7, 21, 0.08);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.75rem;
  max-width: 520px;
}

.profile-tab {
  flex: 1;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted-light);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  border: none;
  background: none;
}

.profile-tab.active {
  background: var(--accent);
  color: var(--bg-deep);
  box-shadow: 0 2px 8px rgba(255, 154, 118, 0.25);
}

.profile-tab:hover:not(.active) {
  color: var(--accent-deep);
  background: rgba(255, 154, 118, 0.06);
}

.profile-content {
  display: none;
}

.profile-content.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

/* Panel content (light) */
.profile-panel {
  background: var(--bg-card);
  border: var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-light-sm);
}

.profile-panel h3 {
  font-size: 1.2rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.profile-panel__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-panel__item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted-light);
  line-height: 1.5;
}

.profile-panel__item::before {
  content: '→';
  color: var(--accent-deep);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── MAPCA Acronym Rows (Light context) ───────────────────────── */
.mapca-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-light-sm);
}

.mapca-row:last-child {
  margin-bottom: 0;
}

.mapca-row:hover {
  transform: translateX(6px);
  border-color: rgba(255, 154, 118, 0.35);
  box-shadow: var(--shadow-light-glow);
}

.mapca-letter {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 154, 118, 0.10);
  border: 1px solid rgba(255, 154, 118, 0.2);
  color: var(--accent-deep);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mapca-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-heading);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.mapca-text span {
  font-size: 0.8rem;
  color: var(--text-muted-light);
}

/* ── WhatsApp Floating Button ────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: var(--z-float);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px var(--whatsapp-glow);
  transition: var(--transition);
  animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(232, 81, 26, 0.55);
  animation-play-state: paused;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.whatsapp-float__tooltip {
  position: absolute;
  right: 68px;
  background: var(--bg-card);
  border: var(--border-light);
  color: var(--text-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: var(--shadow-light-md);
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
}

/* ── FAQ Accordion ───────────────────────────────────────────── */
.faq-item {
  background: var(--bg-card);
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: var(--border-light);
  transition: var(--transition);
  box-shadow: var(--shadow-light-sm);
}

.faq-item[open] {
  border-color: rgba(255, 154, 118, 0.4);
  box-shadow: var(--shadow-light-glow);
}

.faq-item summary {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-heading);
  list-style: none;
  position: relative;
  padding-right: 2rem;
  cursor: pointer;
  outline: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--text-heading);
  transition: var(--transition);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-muted-light);
}

/* ── Footer (Dark context — always inside .bg-dark) ──────────── */
.site-footer {
  background-color: #0E040E;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--bg-light-dark);
  padding: 4rem 0;
}

.footer-logo {
  max-width: 200px;
  height: auto;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.footer-logo:hover {
  opacity: 1;
}

.site-footer h3 {
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.site-footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 154, 118, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-social-btn:hover {
  background: rgba(255, 154, 118, 0.12);
  border-color: rgba(255, 154, 118, 0.3);
  color: var(--accent);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.5rem;
}

.footer-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.footer-divider {
  color: var(--text-muted);
  opacity: 0.4;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(197, 173, 196, 0.5) !important;
}

/* ── Responsive Components ───────────────────────────────────── */
@media (max-width: 767px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .profile-tabs {
    flex-direction: column;
    border-radius: var(--radius-xl);
    max-width: 100%;
  }

  .profile-tab {
    border-radius: var(--radius-lg);
  }

  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }

  .rhythm-options {
    grid-template-columns: 1fr;
  }

  .pricing-box {
    padding: 2.5rem 1.75rem;
  }
}

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