/* ============================================
   CLARITY STATE AI — Landing Page Styles
   Dark / Light mode | Inter font
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---- Variables — Dark mode (default) ---- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0e1117;
  --bg-card: #121a24;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #1e3a5f;
  --accent-glow: rgba(59, 130, 246, 0.12);
  --accent-glow-strong: rgba(59, 130, 246, 0.28);
  --text-primary: #f0f4f8;
  --text-muted: #8892a4;
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(59, 130, 246, 0.22);
  --font: 'Inter', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
  --container: 1100px;
  /* Logo PNG con colores reales — sin filter */
  --logo-filter: none;
}

/* ---- Variables — Light mode ---- */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-dark: #1e3a5f;
  --accent-glow: rgba(37, 99, 235, 0.10);
  --accent-glow-strong: rgba(37, 99, 235, 0.22);
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --border: rgba(0, 0, 0, 0.08);
  --border-accent: rgba(37, 99, 235, 0.25);
  /* Logo PNG con colores reales — sin filter */
  --logo-filter: none;
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ---- Utilities ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}

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

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow-strong);
}

.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 0 36px var(--accent-glow-strong);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
}

.btn-outline:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-1px);
}

/* ---- Fade-in animation ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 0;
  transition: background var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 12, 16, 0.95);
  backdrop-filter: blur(12px);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.navbar-logo span {
  color: var(--accent);
}

.navbar-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-spotlight {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease both;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-social-proof {
  margin-top: 64px;
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.proof-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.proof-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- PROBLEMA ---- */
.problema-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.problema-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition);
}

.problema-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.problema-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.problema-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

/* ---- SOLUCIÓN ---- */
.solucion-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 56px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 32px var(--accent-glow);
}

.step-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.solucion-cta {
  margin-top: 48px;
  text-align: center;
}

/* ---- LEAD MAGNETS ---- */
.magnets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.magnet-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--transition), transform var(--transition);
}

.magnet-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.magnet-mockup {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, rgba(59,130,246,0.12) 0%, rgba(8,12,16,0.8) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.magnet-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.magnet-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.magnet-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

/* ---- MODAL ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 40px 36px;
  max-width: 460px;
  width: 100%;
  position: relative;
  animation: fadeInUp 0.3s ease both;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ---- FORMULARIO ---- */
/* TODO: Reemplazar con embed de Systeme.io cuando esté listo */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus {
  border-color: var(--accent);
}

.form-group input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

/* ---- SOBRE MÍ ---- */
.sobre-mi-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
  max-width: 800px;
  margin: 0 auto;
}

.avatar-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59,130,246,0.25) 0%, rgba(8,12,16,0.9) 100%);
  border: 2px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}

.sobre-mi-text h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.sobre-mi-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--accent-glow);
}

/* ---- AGENDA ---- */
.agenda-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.calendar-placeholder {
  margin: 40px 0;
  padding: 48px 32px;
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.calendar-placeholder p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.calendar-placeholder .calendar-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* TODO: Pegar aquí el embed de Calendly o Cal.com */
#calendar-embed {
  width: 100%;
}

.agenda-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.agenda-divider::before,
.agenda-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
}

.footer-logo span {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE — TABLET (≤768px)
   ============================================ */
@media (max-width: 768px) {
  /* Secciones */
  .section { padding: 64px 0; }

  /* Hero */
  .hero { padding: 160px 0 56px; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-social-proof { gap: 24px; margin-top: 48px; }
  .proof-number { font-size: 1.5rem; }

  /* Navbar */
  .navbar-cta .btn-outline { display: none; }
  .navbar-logo img,
  .navbar-logo .logo-img { height: 140px; max-width: 380px; }
  .theme-toggle { padding: 5px 10px; font-size: 0.75rem; }

  /* Grids */
  .problema-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .solucion-steps { grid-template-columns: 1fr; gap: 20px; }
  .magnets-grid { grid-template-columns: 1fr; }

  /* Sobre mí */
  .sobre-mi-inner { grid-template-columns: 1fr; text-align: center; }
  .profile-photo { margin: 0 auto; width: 130px; height: 130px; }
  .social-links { justify-content: center; }
  .formado-con-list { justify-content: center; }

  /* Agenda */
  .agenda-inner { padding: 0 8px; }
  .calendly-wrapper { margin: 24px 0 16px; }

  /* Modal */
  .modal-box { padding: 28px 20px; }
  .modal-overlay { padding: 16px; }

  /* Footer */
  .footer-logo img,
  .footer-logo .logo-img { height: 100px; }
  .footer-links { gap: 16px; }
}

/* ============================================
   RESPONSIVE — MOBILE (≤480px)
   ============================================ */
@media (max-width: 480px) {
  /* Contenedor */
  .container { padding: 0 16px; }

  /* Hero */
  .hero { padding: 180px 0 48px; }
  .hero-title { font-size: 1.9rem; line-height: 1.15; }
  .hero-eyebrow { font-size: 0.7rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-social-proof { flex-direction: column; gap: 20px; align-items: center; }

  /* Navbar */
  .navbar-logo img,
  .navbar-logo .logo-img { height: 100px; max-width: 280px; }
  .theme-toggle span:last-of-type { display: none; } /* oculta label texto */

  /* Grids */
  .problema-grid { grid-template-columns: 1fr; }
  .solucion-steps { grid-template-columns: 1fr; }

  /* Steps */
  .step-number { font-size: 2.5rem; }

  /* Cards */
  .magnet-card { padding: 24px 20px; }
  .magnet-mockup { height: 140px; }

  /* Sobre mí */
  .profile-photo { width: 110px; height: 110px; }
  .sobre-mi-text h2 { font-size: 1.3rem; }
  .formado-item { font-size: 0.75rem; }
  .formado-sep { margin: 0 6px; }

  /* Agenda */
  .calendly-inline-widget { min-width: unset !important; }

  /* Footer */
  .footer-logo img,
  .footer-logo .logo-img { height: 80px; }
  .footer-links { flex-direction: column; gap: 10px; align-items: center; }
  .footer-copy { font-size: 0.72rem; }

  /* Modal */
  .modal-box { padding: 24px 16px; }
  .btn { padding: 12px 20px; font-size: 0.9rem; }

  /* WhatsApp widget */
  .wa-widget { bottom: 16px; right: 12px; }
  .wa-bubble { width: 48px; height: 48px; }
  .wa-bubble svg { width: 26px; height: 26px; }
}

/* ---- Foto de perfil real ---- */
.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-accent);
  flex-shrink: 0;
  display: block;
}

@media (max-width: 768px) {
  .profile-photo {
    margin: 0 auto;
  }
}

/* ---- Sección "Formado con" ---- */
.formado-con {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.formado-con-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block;
}

.formado-con-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  align-items: center;
}

.formado-item {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.formado-sep {
  margin: 0 10px;
  color: var(--border-accent);
  font-size: 0.8rem;
}

/* ---- Mockups ebook mejorados ---- */
.magnet-mockup {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-accent);
}

.magnet-mockup-1 {
  background: linear-gradient(135deg, #0e1f38 0%, #1e3a5f 60%, #0a0a0f 100%);
}

.magnet-mockup-2 {
  background: linear-gradient(135deg, #0f2030 0%, #0d2d4a 60%, #0a0a0f 100%);
}

.magnet-mockup-3 {
  background: linear-gradient(135deg, #0c1a2e 0%, #162d4a 60%, #0a0a0f 100%);
}

.magnet-mockup::before {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.magnet-mockup-icon {
  font-size: 2.4rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.magnet-mockup-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* ---- Calendly embed ---- */
.calendly-wrapper {
  margin: 36px 0 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.calendly-inline-widget {
  width: 100% !important;
}

.agenda-cta-direct {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.agenda-cta-direct:hover {
  color: var(--text-primary);
}

/* ---- Navbar logo imagen ---- */
.navbar-logo img,
.navbar-logo .logo-img {
  height: 200px;
  width: auto;
  max-width: 600px;
  filter: var(--logo-filter);
  transition: filter var(--transition);
}

/* ---- Hero logo ---- */
.hero-logo {
  margin: 0 auto 32px;
  display: flex;
  justify-content: center;
}

.hero-logo img,
.hero-logo .logo-img {
  height: 280px;
  width: auto;
  max-width: 800px;
  filter: var(--logo-filter);
  transition: filter var(--transition);
}

/* ---- Footer logo imagen ---- */
.footer-logo img,
.footer-logo .logo-img {
  height: 140px;
  width: auto;
  max-width: 500px;
  opacity: 0.85;
  filter: var(--logo-filter);
  transition: filter var(--transition);
}

/* ---- Ajustes light mode específicos ---- */
[data-theme="light"] .navbar.scrolled {
  background: rgba(248, 250, 252, 0.95);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .hero-spotlight {
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .step-card:hover {
  box-shadow: 0 0 32px rgba(37,99,235,0.12);
}

[data-theme="light"] .modal-overlay {
  background: rgba(15, 23, 42, 0.6);
}

[data-theme="light"] .wa-tooltip {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* ---- Toggle dark/light mode ---- */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  white-space: nowrap;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.theme-toggle .icon-dark { display: inline; }
.theme-toggle .icon-light { display: none; }
[data-theme="light"] .theme-toggle .icon-dark { display: none; }
[data-theme="light"] .theme-toggle .icon-light { display: inline; }

/* ---- Widget flotante de WhatsApp ---- */
.wa-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.wa-bubble {
  background: #25D366;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.wa-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.wa-bubble svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.wa-tooltip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-primary);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  animation: fadeInUp 0.3s ease both;
  display: none;
}

.wa-widget:hover .wa-tooltip {
  display: block;
}

@media (max-width: 480px) {
  .wa-widget {
    bottom: 20px;
    right: 16px;
  }

  .wa-bubble {
    width: 50px;
    height: 50px;
  }
}
