/* ============================================================================
   CITARA — ESTILO EDITORIAL BOUTIQUE & SPA (FRESHA / GLOSSGENIUS INSPIRED)
   Paleta: Marfil Cálido (#FAF8F5), Púrpura Real (#3B0D66 / #673AB7),
           Verde Esmeralda WhatsApp (#0F766E / #128C7E), Piedra Suave (#E6DFD5)
   ============================================================================ */

:root {
  --bg-ivory: #faf8f5;
  --bg-cream: #f3efe9;
  --bg-card: #ffffff;
  --text-dark: #1c1624;
  --text-body: #4a4354;
  --text-muted: #766d82;
  --purple-deep: #3b0d66;
  --purple-royal: #5e35b1;
  --purple-brand: #673ab7;
  --purple-soft: #f3ecf9;
  --emerald-deep: #0d685e;
  --emerald-wa: #128c7e;
  --emerald-mint: #00bfa5;
  --emerald-soft: #e6f6f3;
  --border-warm: #e6dfd5;
  --border-subtle: #efeae2;
  --gold-accent: #b7791f;
  --gold-soft: #fef9e7;
  --shadow-soft: 0 12px 32px -8px rgba(42, 20, 70, 0.07);
  --shadow-elevated: 0 24px 48px -12px rgba(42, 20, 70, 0.14);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-ivory);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.font-serif-editorial {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  letter-spacing: -0.01em;
}

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

/* ============================================================================
   NAVBAR EDITORIAL STICKY
   ============================================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-warm);
  transition: box-shadow 0.25s ease;
}

.navbar.scrolled {
  box-shadow: 0 6px 24px rgba(28, 22, 36, 0.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--purple-deep);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(103, 58, 183, 0.22);
  border: 1px solid rgba(103, 58, 183, 0.15);
}

.brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--purple-deep);
  line-height: 1;
}

.brand-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-deep);
  background: var(--emerald-soft);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--purple-royal);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================================================
   BOTONES BOUTIQUE
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.22s ease;
  line-height: 1.2;
}

.btn-primary {
  background: var(--purple-deep);
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(59, 13, 102, 0.35);
}

.btn-primary:hover {
  background: #4d1385;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -4px rgba(59, 13, 102, 0.45);
}

.btn-whatsapp {
  background: var(--emerald-wa);
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(18, 140, 126, 0.35);
}

.btn-whatsapp:hover {
  background: #0e7266;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(18, 140, 126, 0.45);
}

.btn-outline {
  background: #ffffff;
  color: var(--purple-deep);
  border: 1.5px solid var(--border-warm);
}

.btn-outline:hover {
  border-color: var(--purple-royal);
  background: var(--purple-soft);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13.5px;
}

/* ============================================================================
   HERO EDITORIAL
   ============================================================================ */
.hero {
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 58, 183, 0.08) 0%, rgba(0, 191, 165, 0.05) 55%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.editorial-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--purple-soft);
  color: var(--purple-deep);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  border: 1px solid rgba(103, 58, 183, 0.16);
}

.hero-title {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-title em {
  font-style: italic;
  color: var(--purple-royal);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-body);
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--border-warm);
}

.metric-item strong {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--purple-deep);
  line-height: 1.1;
}

.metric-item span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Showcase de Teléfono en el Hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.boutique-phone-card {
  background: #ffffff;
  border: 1px solid var(--border-warm);
  border-radius: 30px;
  padding: 18px;
  width: 100%;
  max-width: 410px;
  box-shadow: var(--shadow-elevated);
  position: relative;
}

.phone-top-bar {
  background: var(--purple-brand);
  color: #ffffff;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.phone-top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-top-bar-left img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.pro-chip {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.view-pills-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--bg-ivory);
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--border-subtle);
}

.view-pills-mini span {
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 0;
  border-radius: 8px;
  color: var(--text-muted);
}

.view-pills-mini span.active {
  background: #ffffff;
  color: var(--purple-deep);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.appt-demo-item {
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-left: 4px solid var(--purple-brand);
  background: var(--purple-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.appt-demo-item.mint {
  border-left-color: var(--emerald-mint);
  background: var(--emerald-soft);
}

.appt-demo-item.gold {
  border-left-color: #d97706;
  background: var(--gold-soft);
}

.appt-time {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--purple-deep);
}

.appt-client {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.appt-service {
  font-size: 12px;
  color: var(--text-body);
}

.appt-price {
  font-weight: 800;
  font-size: 14px;
  color: var(--purple-deep);
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  border-radius: 10px;
}

.floating-wa-toast {
  margin-top: 12px;
  background: #ecf9f2;
  border: 1.5px solid #a7f3d0;
  border-radius: 16px;
  padding: 12px 14px;
}

.floating-wa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 4px;
}

.floating-wa-body {
  font-size: 12.5px;
  color: #064e3b;
  line-height: 1.45;
}

/* ============================================================================
   SECCIONES GENERALES
   ============================================================================ */
.section {
  padding: 84px 0;
}

.section-cream {
  background-color: var(--bg-cream);
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 14px;
  font-weight: 700;
}

.section-desc {
  font-size: 16px;
  color: var(--text-body);
}

/* ============================================================================
   SELECTOR POR GIRO DE NEGOCIO (BOUTIQUE TABS)
   ============================================================================ */
.giro-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.giro-tab {
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-warm);
  background: #ffffff;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.giro-tab:hover {
  border-color: var(--purple-royal);
  color: var(--purple-deep);
}

.giro-tab.active {
  background: var(--purple-deep);
  color: #ffffff;
  border-color: var(--purple-deep);
  box-shadow: 0 8px 20px -4px rgba(59, 13, 102, 0.3);
}

.giro-showcase {
  background: #ffffff;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.giro-services-list {
  display: grid;
  gap: 12px;
}

.giro-service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--bg-ivory);
  border: 1px solid var(--border-subtle);
}

/* ============================================================================
   SIMULADOR INTERACTIVO EN VIVO (CALENDARIO + WHATSAPP)
   ============================================================================ */
.simulator-wrapper {
  background: #ffffff;
  border: 1.5px solid var(--border-warm);
  border-radius: 26px;
  padding: 32px;
  box-shadow: var(--shadow-elevated);
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: stretch;
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sim-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sim-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.sim-field input,
.sim-field select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-warm);
  background: var(--bg-ivory);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}

.sim-field input:focus,
.sim-field select:focus {
  border-color: var(--purple-brand);
  background: #ffffff;
}

.sim-calendar-tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-ivory);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border-warm);
}

.sim-cal-tab {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.sim-cal-tab.active {
  background: var(--purple-brand);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(103, 58, 183, 0.25);
}

.sim-calendar-viewport {
  background: var(--bg-ivory);
  border: 1px solid var(--border-warm);
  border-radius: 16px;
  padding: 16px;
  min-height: 230px;
}

.conflict-banner {
  display: none;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  color: #991b1b;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

/* Pantalla Simulada de WhatsApp */
.wa-phone-simulator {
  background: #e5ddd5;
  border-radius: 24px;
  overflow: hidden;
  border: 6px solid #26212e;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
}

.wa-header {
  background: #075e54;
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wa-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa-mode-tabs {
  display: flex;
  background: #054c44;
  padding: 6px 10px;
  gap: 8px;
}

.wa-mode-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  color: #d1fae5;
  transition: all 0.2s;
}

.wa-mode-btn.active {
  background: #ffffff;
  color: #064e3b;
}

.wa-chat-area {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 0);
  background-size: 18px 18px;
}

.wa-system-pill {
  align-self: center;
  background: #fef3c7;
  color: #78350f;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.wa-bubble {
  background: #dcf8c6;
  color: #111b21;
  padding: 12px 14px;
  border-radius: 14px 14px 2px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  align-self: flex-end;
  max-width: 92%;
  white-space: pre-line;
  transition: transform 0.2s ease;
}

.wa-bubble-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #536471;
  margin-top: 6px;
}

/* ============================================================================
   VENTAJAS BOUTIQUE GRID (6 TARJETAS)
   ============================================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: #d3c4e8;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  background: var(--purple-soft);
  color: var(--purple-deep);
}

.feature-card:nth-child(even) .feature-icon {
  background: var(--emerald-soft);
  color: var(--emerald-deep);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-body);
}

/* ============================================================================
   COMPARATIVA DE PLANES (BÁSICO GRATIS VS CITARA PRO)
   ============================================================================ */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto 44px;
  align-items: stretch;
}

.plan-card {
  background: #ffffff;
  border: 1.5px solid var(--border-warm);
  border-radius: 26px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-card.pro-featured {
  background: linear-gradient(165deg, #2b094d 0%, #3b0d66 60%, #1d1136 100%);
  color: #ffffff;
  border: 2px solid #8b5cf6;
  box-shadow: 0 24px 50px -12px rgba(59, 13, 102, 0.38);
  position: relative;
}

.plan-badge-top {
  position: absolute;
  top: -14px;
  right: 28px;
  background: linear-gradient(90deg, #00bfa5, #10b981);
  color: #042f2e;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.plan-list {
  list-style: none;
  margin: 24px 0 30px;
  display: grid;
  gap: 13px;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
}

.comparison-table-wrap {
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.comparison-table th {
  background: var(--bg-ivory);
  font-weight: 800;
  color: var(--purple-deep);
}

/* ============================================================================
   PREGUNTAS FRECUENTES (FAQ)
   ============================================================================ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-warm);
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 14.5px;
  color: var(--text-body);
}

.faq-item.open .faq-answer {
  display: block;
}

/* ============================================================================
   FOOTER Y BOTÓN FLOTANTE DE WHATSAPP
   ============================================================================ */
.footer {
  background: #181124;
  color: #d6cfe2;
  padding: 56px 0 40px;
}

.wa-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 95;
  background: #128c7e;
  color: #ffffff;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(18, 140, 126, 0.42);
  transition: transform 0.2s ease, background 0.2s ease;
}

.wa-floating-btn:hover {
  transform: translateY(-3px);
  background: #0e7266;
}

/* ============================================================================
   RESPONSIVE DESIGN (MÓVIL Y TABLET)
   ============================================================================ */
@media (max-width: 960px) {
  .hero-grid,
  .giro-showcase,
  .simulator-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .features-grid,
  .hero-metrics,
  .sim-form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 36px 0 52px;
  }

  .simulator-wrapper,
  .giro-showcase,
  .plan-card {
    padding: 22px 18px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 11px 12px;
    font-size: 12.5px;
  }
}
