/* ============================================
   QQR - Regalos personalizados
   Diseño: premium, cálido, emocional
   ============================================ */

:root {
  --primary: #8b2f3f;       /* borgoña profundo */
  --primary-dark: #6d2431;
  --primary-light: #c26a78;
  --gold: #c9a227;
  --cream: #faf7f2;
  --dark: #241d1f;
  --text: #3d3537;
  --text-light: #7a7073;
  --white: #ffffff;
  --border: #e8e2db;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(36, 29, 31, 0.08);
  --shadow-lg: 0 20px 50px rgba(36, 29, 31, 0.14);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Quicksand', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); color: var(--dark); line-height: 1.2; }

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

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

/* ===== BARRAS ===== */
.topbar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.offerbar {
  background: linear-gradient(90deg, #c9a227, #e6c65c, #c9a227);
  color: var(--dark);
  text-align: center;
  padding: 7px 16px;
  font-size: 0.88rem;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.02em;
}

.logo .logo-r { color: var(--primary); }

.logo .logo-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-left: 6px;
}

.nav-links { display: flex; gap: 28px; }

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.25s;
}
.nav-links a:hover::after { width: 100%; }

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(139, 47, 63, 0.35);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(139, 47, 63, 0.42); }

.btn-ghost {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-lg { padding: 17px 36px; font-size: 1.05rem; }
.btn-small { padding: 9px 20px; font-size: 0.85rem; }

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.6rem;
  margin-right: 2px;
}

/* ===== HERO ===== */
.hero {
  background:
    radial-gradient(ellipse 60% 80% at 15% 20%, rgba(139, 47, 63, 0.07), transparent),
    radial-gradient(ellipse 50% 60% at 85% 80%, rgba(201, 162, 39, 0.1), transparent),
    var(--cream);
  padding: 90px 24px 70px;
}

.hero-inner { max-width: 900px; margin: 0 auto; text-align: center; }

.hero-badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--primary);
  position: relative;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 34px;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }

.hero-trust {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
}

.hero-small { padding: 48px 24px 40px; }

/* ===== SECCIONES ===== */
.section { padding: 80px 24px; max-width: 1200px; margin: 0 auto; }
.section-alt { background: #f3ede4; max-width: none; }

.section-head { text-align: center; margin-bottom: 46px; }

.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 10px; }
.section-sub { color: var(--text-light); max-width: 560px; margin: 0 auto; }

/* ===== CATEGORÍAS ===== */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.cat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }

.cat-icon { font-size: 2.6rem; margin-bottom: 14px; }
.cat-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.cat-card p { font-size: 0.88rem; color: var(--text-light); }

/* ===== PRODUCTOS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.product-img {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  position: relative;
  overflow: hidden;
}

/* ===== PREVIEW ANIMADA NÍTIDA (canvas a resolución real) ===== */
.product-preview { position: absolute; inset: 0; z-index: 0; }
.product-preview canvas {
  width: 100%; height: 100%; display: block;
  filter: none;
}
.product-img-emoji {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 1.6rem; line-height: 1;
  background: rgba(255,255,255,0.85); border-radius: 12px;
  padding: 6px 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.preview-badge {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
  color: #fff; background: rgba(0,0,0,0.45);
  border-radius: 99px; padding: 4px 10px;
}

/* En el detalle, al elegir una foto de la galería la preview desaparece */
.product-detail-img.photo-selected .product-preview,
.product-detail-img.photo-selected .product-img-emoji,
.product-detail-img.photo-selected .preview-badge { display: none !important; }

.product-info { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.product-info h3 { font-size: 1.15rem; }
.product-info p { font-size: 0.87rem; color: var(--text-light); flex: 1; }

.product-prices { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-weight: 700; font-size: 1.2rem; color: var(--primary); }
.price-short { font-size: 0.75rem; font-weight: 700; color: var(--muted); }

/* ===== FILTRO ===== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }

.chip {
  padding: 10px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}

.chip:hover { border-color: var(--primary-light); }
.chip-active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== PASOS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 26px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.step-num {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.4);
}

.step-icon { font-size: 2.4rem; margin-bottom: 14px; margin-top: 8px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--text-light); }

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.review-stars { color: var(--gold); font-size: 1.15rem; letter-spacing: 3px; margin-bottom: 14px; }

.review-card p { font-size: 0.95rem; margin-bottom: 16px; }

.review-author { font-weight: 700; font-size: 0.88rem; color: var(--primary); }
.review-author span { color: var(--text-light); font-weight: 600; }

/* ===== GARANTÍA ===== */
.guarantee { max-width: none; padding-top: 60px; padding-bottom: 60px; }

.guarantee-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  box-shadow: var(--shadow-lg);
}

.guarantee-icon { font-size: 3rem; margin-bottom: 14px; }
.guarantee-card h2 { color: #fff; margin-bottom: 12px; }
.guarantee-card p { opacity: 0.88; margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.guarantee-card .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.guarantee-card .btn-primary:hover { background: var(--cream); }

/* ===== VIEWS SPA ===== */
/* [hidden] siempre gana: flex/display en componentes no debe anularlo */
[hidden] { display: none !important; }

.view[hidden] { display: none; }

/* ===== DETALLE PRODUCTO ===== */
.product-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-detail-img {
  border-radius: var(--radius-lg);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.product-gallery-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.product-gallery-img:hover { transform: translateY(-2px); }
.product-gallery-img.active { border-color: var(--primary); }

.product-detail-info h1 { font-size: 2rem; margin-bottom: 12px; }
.product-detail-info .price { font-size: 1.6rem; display: inline-block; margin-bottom: 6px; }

.product-detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.detail-badge {
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 50px;
}

.detail-desc { color: var(--text-light); margin-bottom: 20px; font-size: 1rem; }

.detail-list { list-style: none; margin: 18px 0 26px; display: grid; gap: 8px; }
.detail-list li { padding-left: 30px; position: relative; font-size: 0.95rem; }
.detail-list li::before { content: '✓'; position: absolute; left: 0; color: #2e7d32; font-weight: 700; }

/* ===== FORMULARIO ===== */
.form-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 90px;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.form-card > p { color: var(--text-light); margin-bottom: 26px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
}

.form-group label .req { color: var(--primary); }

.form-group input,
.form-group textarea,
.form-group select {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: var(--cream);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

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

.form-error {
  color: #c62828;
  font-size: 0.78rem;
  font-weight: 600;
  min-height: 12px;
}

/* Subida de fotos */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 26px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: var(--cream);
}

.upload-area:hover, .upload-area.dragover { border-color: var(--primary); background: #fdf6f6; }
.upload-area .upload-icon { font-size: 1.8rem; }
.upload-area p { font-size: 0.85rem; color: var(--text-light); margin-top: 6px; }

.upload-preview-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.upload-thumb {
  width: 72px; height: 72px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--border);
}

.upload-status {
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 8px;
  color: var(--text-light);
}
.upload-status.ok { color: #2e7d32; }
.upload-status.err { color: #c62828; }

/* Preview */
.preview-box {
  margin-top: 28px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}

.preview-box h3 { font-size: 1.15rem; margin-bottom: 4px; }
.preview-box p { font-size: 0.82rem; color: var(--text-light); margin-bottom: 16px; }

/* Vista previa = replica la experiencia real (regalo.html):
   fondo oscuro romántico, serif, rosa + dorado. */
.preview-card {
  background: #140d10;
  background-image: radial-gradient(ellipse 70% 55% at 50% 45%, #2a1820, transparent);
  border-radius: 22px;
  padding: 32px 26px;
  text-align: center;
  border: 1px solid rgba(217, 138, 149, 0.35);
  max-width: 380px;
  margin: 0 auto;
  box-shadow: 0 18px 44px rgba(20, 13, 16, 0.28);
}

.preview-card .p-emoji {
  font-size: 3.2rem;
  filter: drop-shadow(0 0 18px rgba(217, 138, 149, 0.5));
}
.preview-card h4 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-style: italic;
  color: #faf3ee;
  margin: 10px 0 4px;
}
.preview-card .p-date {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: #e6c65c;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.preview-card .p-names { font-size: 1.05rem; font-weight: 700; color: #faf3ee; }
.preview-card .p-counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e6c65c;
  margin-top: 8px;
  letter-spacing: 0.03em;
}
.preview-card .p-msg {
  font-size: 0.9rem;
  font-style: italic;
  color: #d9c4cd;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(217, 138, 149, 0.35);
  white-space: pre-line;
}

.preview-fotos { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
/* Máximo 5 fotos en la preview, como el límite del pedido */
.preview-foto {
  width: 58px; height: 58px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(217, 138, 149, 0.45);
}

/* Resumen pedido */
.order-summary {
  margin-top: 28px;
  background: #fff9f0;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.order-summary .os-product { font-weight: 700; font-size: 1.05rem; }
.order-summary .os-price { font-size: 1.5rem; font-weight: 800; color: var(--primary); }

.btn-submit { width: 100%; margin-top: 24px; padding: 18px; font-size: 1.1rem; }

.pay-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
@media (max-width: 560px) { .pay-options { grid-template-columns: 1fr; } }
.pay-opt {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 12px 14px; cursor: pointer; transition: all 0.2s;
  font-size: 0.92rem; background: #fff;
}
.pay-opt:has(input:checked) { border-color: var(--primary); background: var(--bg-soft, #fdf6f3); }
.pay-note { font-size: 0.78rem; color: var(--text-light); margin-top: 8px; }

.btn-loading { opacity: 0.7; pointer-events: none; }
.btn-loading::after {
  content: '';
  display: inline-block;
  width: 16px; height: 16px;
  margin-left: 10px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: #d8d0d2;
  padding: 60px 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer .logo { color: #fff; }
.footer .logo .logo-tag { color: #a99fa2; }

.footer-brand p { font-size: 0.88rem; color: #a99fa2; margin-top: 12px; max-width: 280px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col a, .footer-col p { display: block; font-size: 0.9rem; color: #b8b0b2; margin-bottom: 8px; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid #3d3537;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: #8d8487;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; gap: 26px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-inner { padding: 12px 16px; }
  .hero { padding: 60px 20px 50px; }
  .section { padding: 60px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
}

/* ============================================
   Eterna - Secciones ampliadas y animaciones
   (reglas nuevas, no modifican las originales)
   ============================================ */

/* Contador +2.000 */
.count-num { font-variant-numeric: tabular-nums; }

/* Hero: contenedor de partículas (solo transform + opacity) */
.hero { position: relative; overflow: hidden; }

.hero-fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-fx span {
  position: absolute;
  bottom: -16px;
  border-radius: 50%;
  animation: floatUp 12s linear infinite;
}

@keyframes floatUp {
  0%   { transform: translateY(0); opacity: 0; }
  12%  { opacity: var(--p-op, 0.25); }
  88%  { opacity: var(--p-op, 0.25); }
  100% { transform: translateY(calc(var(--p-rise, 320px) * -1)); opacity: 0; }
}

/* Scroll reveal: visible por defecto; solo se oculta con .anim-ready */
html.anim-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 350ms ease-out, transform 350ms ease-out;
}

html.anim-ready .reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PASOS AMPLIADOS ===== */
.steps-wide { max-width: 1200px; }
.steps-wide .step h3 { margin-top: 6px; }

/* ===== POR QUÉ ELEGIRNOS ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }

.why-icon { font-size: 2.6rem; margin-bottom: 14px; }
.why-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.why-card p { font-size: 0.9rem; color: var(--text-light); }

/* ===== PLANES ===== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.plan-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 42px 30px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.plan-card-popular {
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.plan-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.4);
  white-space: nowrap;
}

.plan-name { font-size: 1.5rem; margin-bottom: 2px; }
.plan-tagline { font-size: 0.85rem; font-weight: 600; color: var(--text-light); margin-bottom: 14px; }
.plan-price { font-size: 2.5rem; font-weight: 800; color: var(--primary); margin-bottom: 18px; }

.plan-list { list-style: none; margin: 0 0 26px; display: grid; gap: 8px; }
.plan-list li { padding-left: 30px; position: relative; font-size: 0.92rem; text-align: left; }
.plan-list li::before { content: '✓'; position: absolute; left: 0; color: #2e7d32; font-weight: 700; }

.plan-btn { width: 100%; margin-top: auto; }

.plans-note { text-align: center; color: var(--text-light); font-size: 0.9rem; margin-top: 28px; }

/* ===== CARRUSEL VIRALES ===== */
.carousel { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 18px;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-track .product-card { scroll-snap-align: start; }

.carousel-arrow {
  position: absolute;
  top: 36%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.carousel-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.carousel-prev { left: -4px; }
.carousel-next { right: -4px; }

@media (hover: none) {
  .carousel-arrow { display: none; }
}

.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }

.carousel-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active { background: var(--gold); }

/* ===== RESPONSIVE NUEVAS SECCIONES ===== */
@media (max-width: 900px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 420px; }
  .plan-card-popular { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html.anim-ready .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-fx { display: none; }
  .hero-fx span { animation: none; }
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 22px rgba(37, 211, 102, 0.55); }

.whatsapp-tooltip {
  position: absolute;
  right: 66px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #1f2937;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float, .whatsapp-float:hover { transform: none; transition: none; }
}

/* ===== AGENTE DE CHAT ===== */
.chat-agent { position: fixed; right: 18px; bottom: 84px; z-index: 950; }

.chat-fab {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--primary, #8b2f3f);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(139, 47, 63, 0.45);
  transition: transform 0.2s ease;
}
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab:hover { transform: scale(1.08); }

.chat-panel {
  position: fixed; right: 18px; bottom: 152px;
  width: min(360px, calc(100vw - 36px));
  max-height: min(560px, calc(100vh - 190px));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border, #e8e2d8);
  display: flex; flex-direction: column;
  overflow: hidden;
}

.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--primary, #8b2f3f);
  color: #fff;
}
.chat-header-title { display: flex; align-items: center; gap: 10px; }
.chat-avatar { font-size: 1.4rem; }
.chat-header small { display: block; opacity: 0.85; font-size: 0.72rem; }
.chat-close {
  border: none; background: transparent; color: #fff;
  font-size: 1rem; cursor: pointer; padding: 4px 6px; border-radius: 6px;
}
.chat-close:hover { background: rgba(255,255,255,0.15); }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  background: #faf7f2;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-line;
}

.chat-msg-bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border, #e8e2d8);
  border-bottom-left-radius: 4px;
  color: #333;
}

.chat-msg-user {
  align-self: flex-end;
  background: var(--primary, #8b2f3f);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-quick {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 10px 14px 4px;
  background: #faf7f2;
}

.chat-chip {
  border: 1px solid var(--gold, #c9a227);
  background: #fff;
  color: var(--primary, #8b2f3f);
  font-size: 0.8rem; font-weight: 600;
  padding: 6px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}
.chat-chip:hover { background: var(--gold, #c9a227); color: #fff; }

.chat-form {
  display: flex; gap: 8px;
  padding: 10px 14px 14px;
  background: #faf7f2;
  border-top: 1px solid var(--border, #e8e2d8);
}

.chat-form input {
  flex: 1;
  border: 1px solid var(--border, #e8e2d8);
  border-radius: 50px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background: #fff;
}
.chat-form input:focus { border-color: var(--gold, #c9a227); }

.chat-send {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--gold, #c9a227);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.chat-send:hover { background: var(--primary, #8b2f3f); }

.chat-wa-link {
  display: inline-block;
  margin-top: 8px;
  background: #25d366; color: #fff;
  font-weight: 700; font-size: 0.85rem;
  padding: 8px 14px; border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s;
}
.chat-wa-link:hover { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  .chat-fab, .chat-fab:hover { transform: none; transition: none; }
}