/* ==========================================================================
   FIESTA · TIENDA & CATÁLOGO DE INVITACIONES DIGITALES
   Estilos modernos, profesionales y de alta conversión
   ========================================================================== */

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-glow: rgba(79, 70, 229, 0.25);
  --accent: #ec4899;
  --accent-gold: #f59e0b;
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --navy-border: #334155;
  --ink: #0f172a;
  --muted: #64748b;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --line: rgba(148, 163, 184, 0.2);
  --line-strong: rgba(148, 163, 184, 0.35);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.14), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 32px 64px -16px rgba(15, 23, 42, 0.2);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font: "Outfit", "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

html, body {
  margin: 0;
  padding: 0;
}

body.shop {
  font-family: var(--font);
  background: #fdfefe;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* Background ambient glow effects */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: 
    radial-gradient(circle 480px at 15% 10%, rgba(99, 102, 241, 0.12), transparent 80%),
    radial-gradient(circle 520px at 85% 15%, rgba(236, 72, 153, 0.10), transparent 80%),
    radial-gradient(circle 400px at 50% 40%, rgba(245, 158, 11, 0.06), transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.nav-wrap {
  position: sticky;
  top: 14px;
  z-index: 100;
  padding: 0 16px;
}

.nav {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 18px 10px 22px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.logo-badge {
  display: inline-block;
  background: linear-gradient(135deg, #4f46e5, #ec4899);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav nav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
}

.nav nav a:hover {
  color: var(--primary);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.85rem;
}

.btn-lg {
  min-height: 50px;
  padding: 0 26px;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.3);
  color: #ffffff;
}

.btn-accent {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.4);
  color: #ffffff;
}

.btn-ghost {
  background: #ffffff;
  color: var(--navy);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  background: #f8fafc;
  border-color: var(--navy);
  transform: translateY(-2px);
}

.btn-wa {
  background: #25d366;
  color: #ffffff;
}
.btn-wa:hover {
  background: #20ba59;
  transform: translateY(-2px);
  color: #ffffff;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  width: min(1200px, calc(100% - 32px));
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0 28px;
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--navy);
  margin: 0 0 20px;
  font-weight: 800;
}

.hero h1 .text-gradient {
  background: linear-gradient(135deg, #4f46e5 20%, #ec4899 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--muted);
  line-height: 1.65;
  max-width: 48ch;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-quick-demos {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-demos-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.quick-demos-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-pill:hover {
  background: #f8fafc;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.16);
}

.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-soft);
}

.trust-item .icon {
  font-size: 1.15rem;
}

/* Hero Showcase Grid */
.hero-showcase {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 440px;
}

.showcase-card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 4px solid #ffffff;
  background: #ffffff;
}

.showcase-card:hover {
  transform: translateY(-8px) scale(1.02);
  z-index: 10 !important;
}

.sc-main {
  width: 72%;
  height: 72%;
  left: 6%;
  top: 8%;
  z-index: 2;
}

.sc-sub1 {
  width: 58%;
  height: 58%;
  right: 0%;
  bottom: 6%;
  z-index: 3;
}

.sc-sub2 {
  width: 44%;
  height: 44%;
  right: 8%;
  top: 0%;
  z-index: 1;
  opacity: 0.9;
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.floating-badge-price {
  position: absolute;
  top: 14%;
  left: -2%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: floatBadge 4s ease-in-out infinite;
}

.floating-badge-price strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.floating-badge-price span {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

.floating-badge-music {
  position: absolute;
  bottom: 14%;
  left: 2%;
  background: #ffffff;
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid var(--line);
  animation: floatBadge 4.5s ease-in-out infinite 1s;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   FEATURE TICKER
   ========================================================================== */
.feature-ticker {
  background: linear-gradient(90deg, #1e293b, #0f172a);
  color: #ffffff;
  padding: 16px 0;
  overflow: hidden;
  margin-top: 36px;
}

.ticker-inner {
  display: flex;
  gap: 36px;
  width: max-content;
  animation: tickerScroll 35s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.ticker-item span {
  color: #fbbf24;
}

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

/* ==========================================================================
   CATALOG SECTION
   ========================================================================== */
.catalog-section {
  width: min(1200px, calc(100% - 32px));
  margin: 64px auto 0;
  position: relative;
  z-index: 1;
}

.catalog-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Filter & Search Bar */
.catalog-toolbar {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  background: #f1f5f9;
  color: var(--navy-soft);
  border: 1px solid transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-tab:hover {
  background: #e2e8f0;
  color: var(--navy);
}

.filter-tab.is-active {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.tab-badge {
  display: inline-block;
  background: rgba(15, 23, 42, 0.08);
  color: var(--navy-soft);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.filter-tab.is-active .tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.search-box {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 360px;
}

.search-box input {
  width: 100%;
  min-height: 42px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 40px 8px 40px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: all 0.2s ease;
}

.search-box input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: 0.8rem;
  display: none;
}

.search-clear.is-visible {
  display: block;
}

/* Template Results Counter */
.catalog-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

/* Catalog Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ==========================================================================
   CARD DESIGN
   ========================================================================== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(79, 70, 229, 0.3);
}

/* Card Preview */
.card-preview {
  position: relative;
  height: 220px;
  background: #e2e8f0;
  overflow: hidden;
}

.card-preview img.card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-preview img.card-cover {
  transform: scale(1.06);
}

.card-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.card:hover .card-preview-overlay {
  opacity: 0.85;
}

/* Character PNG Sticker */
.card-char-sticker {
  position: absolute;
  bottom: -6px;
  right: 12px;
  width: 100px;
  height: 120px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
  transition: transform 0.35s ease;
}

.card-char-sticker img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
}

.card:hover .card-char-sticker {
  transform: translateY(-4px) scale(1.05);
}

/* Card Badges */
.card-badge-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-badge-pill.vip {
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  color: #451a03;
}

.card-badge-pill.hot {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #ffffff;
}

/* Quick preview button on card */
.card-quick-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 5;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card:hover .card-quick-preview {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.card-quick-preview:hover {
  background: var(--navy);
  color: #ffffff;
}

/* Card Body */
.card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
}

.card-subtitle {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.tag-chip {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.card-price-box {
  display: flex;
  flex-direction: column;
}

.card-price-label {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.card-actions {
  display: flex;
  gap: 8px;
}

/* No results found box */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
}

.no-results h3 {
  font-size: 1.4rem;
  color: var(--navy);
  margin: 0 0 8px;
}

.no-results p {
  color: var(--muted);
  margin: 0 0 20px;
}

/* ==========================================================================
   FEATURES SHOWCASE SECTION
   ========================================================================== */
.features-section {
  width: min(1200px, calc(100% - 32px));
  margin: 90px auto 0;
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #ec4899);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.25);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(236, 72, 153, 0.1));
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
}

.feature-card p {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   HOW IT WORKS (STEPS)
   ========================================================================== */
.steps-section {
  width: min(1200px, calc(100% - 32px));
  margin: 90px auto 0;
  position: relative;
  z-index: 1;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-num {
  font-family: var(--font);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #4f46e5, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
}

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

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
  width: min(880px, calc(100% - 32px));
  margin: 90px auto 0;
  position: relative;
  z-index: 1;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(79, 70, 229, 0.3);
}

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

.faq-icon {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.is-open .faq-answer {
  max-height: 200px;
  padding: 0 24px 20px;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
  width: min(1200px, calc(100% - 32px));
  margin: 90px auto 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #312e81 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.25), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner h2 {
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 14px;
}

.cta-banner p {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 54ch;
  margin: 0 auto 28px;
}

.cta-banner .btn {
  font-size: 1rem;
  min-height: 48px;
  padding: 0 28px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot {
  border-top: 1px solid var(--line);
  background: #f8fafc;
  padding: 64px 20px 48px;
  margin-top: 90px;
  position: relative;
  z-index: 1;
}

.foot-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.foot-brand p {
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 34ch;
  margin: 14px 0 0;
}

.foot-col h4 {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin: 0 0 16px;
}

.foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-col a {
  font-size: 0.92rem;
  color: var(--muted);
}

.foot-col a:hover {
  color: var(--primary);
}

.foot-bottom {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.wa-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wa-float-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
}

.wa-float-btn svg {
  width: 32px;
  height: 32px;
}

/* ==========================================================================
   LIVE PREVIEW MODAL (SMARTPHONE MOCKUP)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.phone-mockup-frame {
  position: relative;
  width: min(420px, 94vw);
  height: min(840px, 90vh);
  background: #0f172a;
  border-radius: 46px;
  padding: 14px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.6), 0 0 0 3px #334155;
  display: flex;
  flex-direction: column;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-active .phone-mockup-frame {
  transform: scale(1);
}

/* Phone notch / island */
.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: #000000;
  border-radius: 999px;
  z-index: 10;
  pointer-events: none;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}

.phone-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Modal toolbar at top */
.modal-top-bar {
  position: absolute;
  top: -54px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 800;
}

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

.modal-btn-close {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.modal-btn-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.modal-btn-open {
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  border: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   EDITOR STYLES (PRESERVED & FULLY COMPATIBLE WITH editor.html)
   ========================================================================== */
.editor-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  font-family: var(--font);
  color: var(--ink);
}
.editor-form {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 18px 18px 40px;
  overflow: auto;
  max-height: 100dvh;
}
.editor-form h1 {
  font-family: var(--font);
  font-size: 1.6rem;
  margin: 8px 0 4px;
  font-weight: 700;
}
.editor-form .lead { color: var(--muted); margin: 0 0 18px; font-size: 0.95rem; }
.editor-form label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: 12px;
}
.editor-form input,
.editor-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}
.editor-form textarea { min-height: 90px; resize: vertical; }
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.editor-actions { display: grid; gap: 8px; margin-top: 8px; }
.editor-preview { background: #1a2744; min-height: 100dvh; }
.editor-preview iframe {
  width: 100%;
  height: 100dvh;
  border: 0;
  background: #fff;
}
.nav-mini { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.nav-mini a { font-size: 0.85rem; font-weight: 650; color: var(--primary); }

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1040px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-showcase {
    order: -1;
    min-height: 380px;
  }
}

@media (max-width: 860px) {
  .editor-shell { grid-template-columns: 1fr; }
  .editor-preview { min-height: 70vh; }
  .editor-preview iframe { height: 70vh; }
  .editor-form { max-height: none; }
  .nav nav { display: none; }
  .foot-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 680px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    max-width: 100%;
  }
  .hero h1 {
    font-size: 2.3rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .modal-top-bar {
    top: -46px;
  }
  .phone-mockup-frame {
    height: 82vh;
    padding: 8px;
    border-radius: 36px;
  }
  .phone-screen {
    border-radius: 28px;
  }
}
