
  :root {
    --bg-deep: #faf6f0;
    --bg-mid: #f4ebe0;
    --bg-warm: #ede0d4;
    --primary: #6b4f8a;
    --primary-soft: #a78bfa;
    --lila-light: #d4c5e8;
    --rose: #e89bb7;
    --rose-soft: #f4c0d1;
    --peach: #f5c89b;
    --gold: #c9a96e;
    --gold-soft: #dbbe8a;
    --text: #3d2e4a;
    --text-soft: #6b5878;
    --text-dim: #9b8aae;
    --display: 'Cormorant Garamond', serif;
    --body: 'Inter', system-ui, sans-serif;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }

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

  @media screen {
    body { padding: 30px 0; }
    .page { box-shadow: 0 8px 60px rgba(107, 79, 138, 0.2); }
  }

  .page {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto 24px;
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-warm) 100%);
    padding: 22mm 18mm;
    position: relative;
    overflow: hidden;
    page-break-after: always;
  }
  .page:last-child { page-break-after: auto; }

  .page::before, .page::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-soft);
    border-radius: 50%;
    box-shadow:
      40mm 30mm 0 0 var(--rose),
      80mm 50mm 0 0 var(--gold),
      150mm 80mm 0 0 var(--lila-light),
      30mm 150mm 0 0 var(--rose),
      170mm 200mm 0 0 var(--gold),
      90mm 250mm 0 0 var(--lila-light);
    opacity: 0.45;
  }

  h1 {
    font-family: var(--display);
    font-style: italic;
    font-weight: 400;
    color: var(--primary);
    line-height: 1.1;
  }
  h2 {
    font-family: var(--display);
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 1px;
  }
  h3 {
    font-family: var(--display);
    font-style: italic;
    font-weight: 500;
    color: var(--primary);
  }
  p { font-size: 12pt; line-height: 1.75; color: var(--text); }
  em, .italic { font-family: var(--display); font-style: italic; color: var(--primary); }
  strong { font-weight: 600; color: var(--primary); }
  .small { font-size: 11.5pt; color: var(--text-soft); line-height: 1.6; }
  .tiny { font-size: 10pt; color: var(--text-dim); letter-spacing: 1.5px; }

  .divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 18px 0;
  }
  .divider .line { height: 0.5px; flex: 1; max-width: 60mm; background: var(--gold); opacity: 0.6; }
  .divider .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: 0.8; }

  .page-number {
    position: absolute;
    bottom: 12mm;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--display);
    font-style: italic;
    font-size: 10pt;
    color: var(--primary);
    opacity: 0.55;
    letter-spacing: 2px;
  }

  .brand-mark {
    font-family: var(--display);
    font-style: italic;
    font-size: 10pt;
    color: var(--primary);
    letter-spacing: 4px;
    text-align: center;
  }

  .card {
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(107, 79, 138, 0.15);
    border-radius: 14px;
    padding: 16px 18px;
    margin: 12px 0;
  }
  .card-warm {
    background: linear-gradient(135deg, rgba(245, 200, 155, 0.18), rgba(219, 190, 138, 0.10));
    border-color: rgba(201, 169, 110, 0.30);
  }
  .card-rose {
    background: linear-gradient(135deg, rgba(232, 155, 183, 0.18), rgba(244, 192, 209, 0.10));
    border-color: rgba(232, 155, 183, 0.30);
  }
  .card-lila {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.14), rgba(212, 197, 232, 0.08));
    border-color: rgba(167, 139, 250, 0.28);
  }

  .icon-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 14px 0;
  }
  .icon-row .icon {
    font-size: 22pt;
    line-height: 1;
    flex-shrink: 0;
    width: 36pt;
    text-align: center;
  }
  .icon-row .text p:first-child { color: var(--primary); font-weight: 600; font-size: 11pt; margin-bottom: 4px; }
  .icon-row .text p { font-size: 11.5pt; }

  .cover {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30mm 18mm;
  }
  .cover .heart-icon {
    font-size: 78pt;
    line-height: 1;
    margin-bottom: 8mm;
    filter: drop-shadow(0 0 30px rgba(232, 155, 183, 0.5));
  }
  .cover h1 {
    font-size: 50pt;
    margin-bottom: 4mm;
  }
  .cover .subtitle {
    font-family: var(--display);
    font-size: 18pt;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 28mm;
    font-weight: 400;
  }
  .cover .tagline {
    font-family: var(--display);
    font-style: italic;
    color: var(--text-soft);
    font-size: 13pt;
    max-width: 120mm;
    line-height: 1.6;
  }
  .cover .brand-mark {
    margin-top: 28mm;
  }

  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

  .step-num {
    text-align: center;
    color: var(--gold);
    font-size: 9pt;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
  }

  .menu-mockup {
    background: white;
    border-radius: 14px;
    padding: 14px 12px;
    border: 1px solid rgba(107, 79, 138, 0.18);
    box-shadow: 0 4px 14px rgba(107, 79, 138, 0.10);
  }
  .menu-mockup .mock-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 10.5pt;
    color: var(--text);
  }
  .menu-mockup .mock-item .ico { width: 20px; font-size: 13pt; }
  .menu-mockup .mock-item.active { background: rgba(167, 139, 250, 0.18); color: var(--primary); font-weight: 600; }

  @media print {
    @page {
      size: A4 portrait;
      margin: 0;
    }
    body { padding: 0; background: var(--bg-deep); }
    .page {
      margin: 0;
      box-shadow: none;
      width: 210mm;
      height: 297mm;
    }
    .no-print { display: none; }
  }

  @media screen {
    p { font-size: 13.5pt !important; }
    .small { font-size: 12.5pt !important; }
    .tiny { font-size: 10.5pt !important; }
    li { font-size: 13.5pt !important; }
    .icon-row .text p:first-child { font-size: 13pt !important; }
    .icon-row .text p { font-size: 12.5pt !important; }
  }

  html { scroll-behavior: smooth; }

  .progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--rose));
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.5);
  }

  .menu-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 999;
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    color: white;
    border: none;
    border-radius: 14px;
    padding: 14px 22px;
    font-family: var(--body);
    font-size: 14pt;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(107, 79, 138, 0.35);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 56px;
  }
  .menu-toggle:hover { transform: scale(1.05); box-shadow: 0 8px 32px rgba(107, 79, 138, 0.5); }
  .menu-toggle:active { transform: scale(0.97); }

  .sidebar {
    position: fixed;
    top: 0;
    right: -380px;
    width: 360px;
    max-width: 90vw;
    height: 100vh;
    background: linear-gradient(180deg, #fff, #faf2ea);
    border-left: 2px solid rgba(107, 79, 138, 0.20);
    box-shadow: -10px 0 40px rgba(107, 79, 138, 0.25);
    z-index: 998;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px 20px 40px;
  }
  .sidebar.open { right: 0; }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(60, 40, 80, 0.5);
    z-index: 997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .sidebar-overlay.open { opacity: 1; pointer-events: auto; }
  .sidebar h2 {
    font-size: 22pt;
    color: var(--primary);
    margin-bottom: 4px;
    letter-spacing: 1px;
  }
  .sidebar .subtitle {
    font-family: var(--display);
    font-style: italic;
    color: var(--text-dim);
    font-size: 12pt;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(107, 79, 138, 0.18);
    padding-bottom: 12px;
  }
  .sidebar a {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 13px 16px;
    border-radius: 10px;
    margin-bottom: 4px;
    font-size: 13pt;
    line-height: 1.4;
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
    border-left: 3px solid transparent;
  }
  .sidebar a:hover, .sidebar a:focus {
    background: rgba(167, 139, 250, 0.12);
    color: var(--primary);
    padding-left: 22px;
    border-left-color: var(--primary);
  }
  .sidebar a .num {
    display: inline-block;
    width: 28px;
    color: var(--gold);
    font-family: var(--display);
    font-style: italic;
    font-weight: 500;
  }
  .sidebar-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: 1px solid rgba(107, 79, 138, 0.35);
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18pt;
    cursor: pointer;
    line-height: 1;
  }

  .text-size-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 996;
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(107, 79, 138, 0.20);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 18px rgba(107, 79, 138, 0.15);
  }
  .text-size-controls button {
    background: transparent;
    border: 1px solid rgba(107, 79, 138, 0.30);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13pt;
  }
  .text-size-controls button:hover { background: rgba(167, 139, 250, 0.15); }

  .back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 996;
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20pt;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: 0 4px 18px rgba(107, 79, 138, 0.35);
  }
  .back-to-top.visible { opacity: 1; pointer-events: auto; }

  .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    max-width: 100%;
  }
  .action-btn {
    display: block;
    padding: 16px 22px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 14pt;
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .action-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    color: white;
    box-shadow: 0 6px 24px rgba(107, 79, 138, 0.35);
  }
  .action-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
  }
  .action-btn.secondary {
    background: rgba(255,255,255,0.65);
    color: var(--primary);
    border: 1px solid rgba(107, 79, 138, 0.30);
  }
  .action-btn:hover { transform: translateY(-2px); }

  .interactive-hint {
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(167, 139, 250, 0.30);
    border-radius: 14px;
    padding: 14px 18px;
    margin-top: 14mm;
    max-width: 130mm;
    text-align: left;
  }
  .interactive-hint h3 {
    color: var(--primary);
    font-size: 14pt;
    margin-bottom: 8px;
    font-style: normal;
  }
  .interactive-hint ul { list-style: none; padding-left: 0; }
  .interactive-hint li {
    font-size: 11pt;
    margin: 5px 0;
    padding-left: 18px;
    position: relative;
    color: var(--text-soft);
  }
  .interactive-hint li::before {
    content: '🌷';
    position: absolute;
    left: 0;
  }

  /* Imágenes paso a paso (Android / iPhone) */
  .install-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0;
  }
  .install-step {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(107, 79, 138, 0.18);
    border-radius: 12px;
    padding: 8px;
    text-align: center;
  }
  .install-step img {
    width: 100%;
    border-radius: 8px;
    display: block;
    margin-bottom: 6px;
  }
  .install-step .step-label {
    font-family: var(--display);
    font-style: italic;
    color: var(--gold);
    font-size: 10pt;
    letter-spacing: 1px;
  }
  .img-placeholder {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.10), rgba(232, 155, 183, 0.10));
    border: 1px dashed rgba(107, 79, 138, 0.35);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-dim);
    font-size: 10pt;
    font-style: italic;
    padding: 14px 10px;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 6px;
  }
  .img-placeholder::before {
    content: '📷';
    font-size: 28pt;
    font-style: normal;
    margin-bottom: 6px;
  }


/* ===== MÓVIL: hacer páginas responsivas ===== */
@media screen and (max-width: 820px) {
  body { padding: 12px 0; }
  .page {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    margin: 0 0 16px;
    padding: 22px 18px;
    border-radius: 0;
  }
  .page::before, .page::after { display: none; }
  .cover { padding: 36px 18px; }
  .cover .heart-icon { font-size: 56pt; margin-bottom: 4mm; }
  .cover h1 { font-size: 32pt; }
  .cover .subtitle { font-size: 13pt; letter-spacing: 2px; margin-bottom: 14mm; }
  .cover .tagline { font-size: 11pt; max-width: 95%; }
  .cover .brand-mark { margin-top: 14mm; }
  h1 { font-size: 24pt !important; line-height: 1.15; }
  h3 { font-size: 14pt; }
  p, li { font-size: 13pt !important; }
  .small { font-size: 12pt !important; }
  .tiny { font-size: 10pt !important; }
  .card { padding: 14px 16px; }
  .icon-row .icon { font-size: 18pt; width: 30pt; }
  .icon-row .text p:first-child { font-size: 12pt !important; }
  .icon-row .text p { font-size: 12pt !important; }
  .menu-mockup { max-width: 280px !important; }
  .page-number { font-size: 9pt; bottom: 8mm; }
  .install-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .install-step { padding: 6px; }
  .install-step .step-label { font-size: 9pt; }
  /* Botones flotantes más pequeños en móvil */
  .menu-toggle {
    top: 10px;
    right: 10px;
    padding: 10px 14px;
    font-size: 13pt;
    min-height: 44px;
    border-radius: 12px;
  }
  .text-size-controls {
    bottom: 12px;
    left: 12px;
    padding: 4px;
  }
  .text-size-controls button {
    width: 36px;
    height: 36px;
    font-size: 12pt;
  }
  .back-to-top {
    width: 42px;
    height: 42px;
    font-size: 16pt;
    bottom: 12px;
    right: 12px;
  }
  /* Sidebar más angosto */
  .sidebar { width: 90vw; padding: 18px 14px 30px; }
  .sidebar a { font-size: 12pt; padding: 11px 14px; }
  .divider .line { max-width: 30mm; }
}

@media screen and (max-width: 480px) {
  .page { padding: 18px 14px; }
  .cover { padding: 28px 14px; }
  .cover .heart-icon { font-size: 48pt; }
  .cover h1 { font-size: 28pt; }
  h1 { font-size: 22pt !important; }
  .grid-2 { grid-template-columns: 1fr; }
}

