/* AtodoClicks — hoja de estilos única de la tienda */
    /* =========================================================
       SISTEMA DE DISEÑO PREMIUM — AtodoClicks
       Mantiene los nombres de variables de styles.css y los
       sobrescribe, para que el resto de páginas sigan funcionando.
       ========================================================= */
    :root {
      --bg-primary: #05070d;
      --bg-secondary: #0b1020;
      --bg-card: rgba(13, 18, 32, 0.72);
      --border-color: rgba(255, 255, 255, 0.09);
      --text-main: #eef2fb;
      --text-muted: #98a2b8;
      --accent-blue: #3de8ff;
      --accent-purple: #8b7cff;
      --accent-green: #38f2a0;
      --gold: #e9c77b;
      --shadow-glow: 0 24px 60px -24px rgba(61, 232, 255, 0.45);
      --transition: all 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
      --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
      --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
    }

    html { scroll-behavior: smooth; }

    /* ---------- Base propia (el index ya no depende de styles.css) ---------- */
    *, *::before, *::after { box-sizing: border-box; }
    body { margin: 0; min-height: 100vh; line-height: 1.5; }
    body a { color: inherit; text-decoration: none; }
    body ul { list-style: none; margin: 0; padding: 0; }
    body h1, body h2, body h3, body h4, body p { margin: 0; }
    button, input { font: inherit; }
    img, svg { max-width: 100%; }

    body header { position: sticky; top: 0; z-index: 100; }
    .nav-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0.85rem 1.5rem;
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }
    body .logo {
      font-size: 1.35rem;
      color: #fff;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      white-space: nowrap;
    }
    body .nav-menu {
      display: flex !important;
      gap: 1.4rem;
      flex: 1;
      font-size: 0.93rem;
    }
    body .nav-menu a { color: var(--text-muted); }
    body .menu-toggle {
      display: none;
      place-items: center;
      width: 42px;
      height: 42px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border-color);
      color: #fff;
      border-radius: 10px;
      font-size: 1.3rem;
      cursor: pointer;
    }
    .nav-actions { display: flex; align-items: center; gap: 0.8rem; }
    .search-box {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 0.5rem 0.8rem;
    }
    .search-box svg { width: 18px; height: 18px; fill: var(--text-muted); flex-shrink: 0; }
    .search-box input {
      background: none;
      border: 0;
      outline: 0;
      color: var(--text-main);
      width: 150px;
      font-size: 0.9rem;
    }
    .search-box:focus-within { border-color: var(--accent-blue); }
    body .cart-btn {
      padding: 0.5rem 0.9rem;
      border: 1px solid var(--border-color);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.05);
      font-size: 0.9rem;
      color: #fff;
      white-space: nowrap;
    }
    body .cart-badge {
      min-width: 22px;
      height: 22px;
      border-radius: 11px;
      display: inline-grid;
      place-items: center;
      font-size: 0.75rem;
      padding: 0 0.35rem;
    }

    body footer { margin-top: 4rem; padding: 3.5rem 1.5rem 1.5rem; }
    .footer-grid {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1.6fr 1fr 1fr 1fr;
      gap: 2.2rem;
    }
    .footer-col h4 { margin-bottom: 0.9rem; font-size: 1rem; }
    .footer-col li { margin-bottom: 0.55rem; }
    .footer-col li a { color: var(--text-muted); font-size: 0.93rem; }
    .footer-bottom {
      max-width: 1200px;
      margin: 2.2rem auto 0;
      padding-top: 1.3rem;
      border-top: 1px solid var(--border-color);
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 0.6rem;
      color: var(--text-muted);
      font-size: 0.85rem;
    }

    @media (max-width: 1000px) {
      .nav-container { flex-wrap: wrap; gap: 0.8rem; }
      body .logo { order: 1; }
      .nav-actions { order: 2; margin-left: auto; }
      body .menu-toggle { order: 3; display: grid; }
      body .nav-menu {
        order: 4;
        width: 100%;
        flex: none;
        flex-direction: column;
        gap: 0;
        display: none !important;
        padding: 0.4rem 0 0.6rem;
        border-top: 1px solid var(--border-color);
      }
      body .nav-menu.is-open { display: flex !important; }
      body .nav-menu a { display: block; padding: 0.8rem 0.2rem; font-size: 1rem; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 640px) {
      .search-box { display: none; }
      .footer-grid { grid-template-columns: 1fr; }
    }

    body {
      font-family: var(--font-body);
      color: var(--text-main);
      background:
        radial-gradient(900px 600px at 85% -10%, rgba(139, 124, 255, 0.16), transparent 60%),
        radial-gradient(800px 600px at -10% 20%, rgba(61, 232, 255, 0.10), transparent 60%),
        var(--bg-primary);
      background-attachment: fixed;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    h1, h2, h3, h4, .logo, .section-title { font-family: var(--font-display); }

    ::selection { background: rgba(61, 232, 255, 0.28); color: #fff; }

    :focus-visible {
      outline: 2px solid var(--accent-blue);
      outline-offset: 3px;
      border-radius: 6px;
    }

    .skip-link {
      position: fixed;
      top: -60px;
      left: 1rem;
      z-index: 1000;
      background: var(--accent-blue);
      color: #04121a;
      padding: 0.6rem 1rem;
      border-radius: 8px;
      font-weight: 700;
      text-decoration: none;
      transition: top 0.2s;
    }
    .skip-link:focus { top: 1rem; }

    .icon {
      width: 1.25em;
      height: 1.25em;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.7;
      stroke-linecap: round;
      stroke-linejoin: round;
      flex-shrink: 0;
    }

    /* Canvas de fondo animado */
    #bg-canvas {
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100vh;
      z-index: -1;
      pointer-events: none;
      opacity: 0.85;
    }

    /* ---------- Cabecera ---------- */
    body header {
      background: rgba(5, 7, 13, 0.55);
      -webkit-backdrop-filter: blur(16px) saturate(140%);
      backdrop-filter: blur(16px) saturate(140%);
      border-bottom: 1px solid transparent;
      transition: background 0.3s, border-color 0.3s;
    }
    body header.scrolled {
      background: rgba(5, 7, 13, 0.85);
      border-bottom-color: var(--border-color);
    }
    body .logo {
      font-weight: 800;
      letter-spacing: -0.02em;
    }
    body .nav-menu a { transition: color 0.2s; }
    body .nav-menu a:hover,
    body .nav-menu a.active { color: var(--accent-blue); }
    body .cart-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }
    body .cart-badge {
      background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
      color: #04121a;
      font-weight: 700;
    }

    /* ---------- Botones ---------- */
    body .btn-primary,
    body .btn-secondary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.95rem 1.7rem;
      border-radius: 12px;
      font-family: var(--font-body);
      font-weight: 700;
      font-size: 1rem;
      text-decoration: none;
      cursor: pointer;
      transition: var(--transition);
    }
    body .btn-primary {
      background: linear-gradient(135deg, var(--accent-blue), #7aa2ff 60%, var(--accent-purple));
      color: #04121a;
      border: none;
      box-shadow: 0 10px 30px -10px rgba(61, 232, 255, 0.55);
    }
    body .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 16px 38px -10px rgba(61, 232, 255, 0.7);
    }
    body .btn-secondary {
      background: rgba(255, 255, 255, 0.04);
      color: var(--text-main);
      border: 1px solid var(--border-color);
    }
    body .btn-secondary:hover {
      border-color: rgba(255, 255, 255, 0.28);
      background: rgba(255, 255, 255, 0.08);
    }

    /* ---------- Hero ---------- */
    body .hero {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      align-items: center;
      gap: 3.5rem;
      max-width: 1200px;
      margin: 0 auto;
      padding: 5rem 1.5rem 4rem;
      background: none;
      min-height: 0;
    }
    body .hero-content { max-width: 620px; }
    body .hero h1 {
      font-size: clamp(2.5rem, 6vw, 4.6rem);
      font-weight: 800;
      line-height: 1.02;
      letter-spacing: -0.035em;
      margin-bottom: 1.4rem;
      color: #fff;
    }
    body .hero p {
      color: var(--text-muted);
      font-size: 1.12rem;
      line-height: 1.65;
      max-width: 52ch;
    }
    body .hero-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 0.9rem;
      margin-top: 2.2rem;
    }
    body .hero-image { display: flex; justify-content: center; }

    /* Tarjeta de entrega: es lo memorable de la home */
    .delivery-card {
      width: 100%;
      max-width: 440px;
      background: linear-gradient(160deg, rgba(20, 27, 48, 0.9), rgba(10, 14, 26, 0.92));
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 20px;
      padding: 1.6rem;
      box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(61, 232, 255, 0.05), var(--shadow-glow);
      position: relative;
      overflow: hidden;
    }
    .delivery-card::before {
      content: "";
      position: absolute;
      inset: 0 0 auto 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
      opacity: 0.7;
    }
    .delivery-status {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      font-weight: 700;
      font-family: var(--font-display);
      margin-bottom: 0.4rem;
    }
    .status-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--accent-green);
      box-shadow: 0 0 0 0 rgba(56, 242, 160, 0.6);
      animation: pulse 2.4s ease-out infinite;
    }
    @keyframes pulse {
      70% { box-shadow: 0 0 0 10px rgba(56, 242, 160, 0); }
      100% { box-shadow: 0 0 0 0 rgba(56, 242, 160, 0); }
    }
    .delivery-note {
      color: var(--text-muted);
      font-size: 0.9rem;
      margin-bottom: 1.3rem;
    }
    .delivery-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
    .delivery-item {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 0.85rem;
      background: rgba(255, 255, 255, 0.035);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 0.8rem 0.95rem;
    }
    .delivery-item .file-ico {
      display: grid;
      place-items: center;
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: rgba(61, 232, 255, 0.1);
      color: var(--accent-blue);
    }
    .delivery-item strong { display: block; font-size: 0.92rem; font-weight: 700; }
    .delivery-item small { color: var(--text-muted); font-size: 0.78rem; }
    .bar {
      height: 3px;
      border-radius: 3px;
      background: rgba(255, 255, 255, 0.08);
      margin-top: 0.45rem;
      overflow: hidden;
    }
    .bar i {
      display: block;
      height: 100%;
      background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
      transform-origin: left;
      transform: scaleX(0);
      animation: fill 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
      animation-delay: var(--d, 0.4s);
    }
    @keyframes fill { to { transform: scaleX(1); } }
    .delivery-item .done {
      color: var(--accent-green);
      opacity: 0;
      animation: appear 0.4s ease forwards;
      animation-delay: calc(var(--d, 0.4s) + 1s);
    }
    @keyframes appear { to { opacity: 1; } }
    .delivery-card .btn-primary { width: 100%; margin-top: 1.2rem; }

    /* ---------- Contenedor y títulos ---------- */
    body .container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 4rem; }
    body .section-title {
      font-size: clamp(1.7rem, 3.4vw, 2.4rem);
      font-weight: 800;
      letter-spacing: -0.025em;
      margin-bottom: 0.5rem;
    }
    body .section-subtitle {
      color: var(--text-muted);
      margin-bottom: 2.2rem;
      font-size: 1.02rem;
    }

    /* Resplandor que sigue al cursor (tarjetas) */
    .category-card, .feature-box, body .product-card { position: relative; overflow: hidden; }
    .category-card::after, .feature-box::after, body .product-card::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: 0;
      background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(61, 232, 255, 0.12), transparent 60%);
      transition: opacity 0.3s;
    }
    .category-card:hover::after, .feature-box:hover::after, body .product-card:hover::after { opacity: 1; }

    /* ---------- Categorías ---------- */
    .categories-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
      gap: 1rem;
      margin-bottom: 5rem;
    }
    .category-card {
      background: var(--bg-card);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
      border: 1px solid var(--border-color);
      padding: 1.5rem 1.3rem;
      border-radius: 16px;
      text-decoration: none;
      color: var(--text-main);
      transition: var(--transition);
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 1.1rem;
    }
    .category-card:hover {
      border-color: rgba(61, 232, 255, 0.45);
      transform: translateY(-4px);
      box-shadow: var(--shadow-glow);
    }
    .category-icon {
      display: grid;
      place-items: center;
      width: 46px;
      height: 46px;
      border-radius: 13px;
      color: var(--accent-blue);
      background: linear-gradient(145deg, rgba(61, 232, 255, 0.16), rgba(139, 124, 255, 0.12));
      border: 1px solid rgba(61, 232, 255, 0.2);
      font-size: 1.35rem;
    }
    .category-title { font-weight: 700; font-size: 1.02rem; font-family: var(--font-display); }

    /* ---------- Productos ---------- */
    body .products-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 1.4rem;
    }
    body .product-card {
      background: var(--bg-card);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
      border: 1px solid var(--border-color);
      border-radius: 18px;
      display: flex;
      flex-direction: column;
      transition: var(--transition);
    }
    body .product-card:hover {
      transform: translateY(-5px);
      border-color: rgba(61, 232, 255, 0.4);
      box-shadow: var(--shadow-glow);
    }
    body .product-thumb {
      position: relative;
      height: 150px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.55rem;
      color: rgba(255, 255, 255, 0.85);
      font-weight: 700;
      font-size: 0.9rem;
      background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(135deg, hsl(var(--h, 190) 85% 45% / 0.38), hsl(calc(var(--h, 190) + 70) 80% 40% / 0.2));
      border-bottom: 1px solid var(--border-color);
    }
    body .product-tag {
      position: absolute;
      top: 12px;
      left: 12px;
      background: rgba(5, 7, 13, 0.7);
      border: 1px solid rgba(233, 199, 123, 0.55);
      color: var(--gold);
      padding: 0.25rem 0.65rem;
      border-radius: 999px;
      font-size: 0.72rem;
      font-weight: 700;
    }
    body .product-content {
      padding: 1.25rem 1.3rem 1.3rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      flex: 1;
    }
    body .product-category { color: var(--accent-blue); font-size: 0.8rem; font-weight: 700; }
    body .product-title {
      font-family: var(--font-display);
      font-size: 1.12rem;
      font-weight: 700;
      line-height: 1.25;
      color: var(--text-main);
      text-decoration: none;
    }
    body .product-title:hover { color: var(--accent-blue); }
    body .product-desc {
      color: var(--text-muted);
      font-size: 0.9rem;
      line-height: 1.55;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    body .product-footer {
      margin-top: auto;
      padding-top: 1rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.8rem;
    }
    body .product-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: #fff; }
    body .product-price small { color: var(--text-muted); font-size: 0.72rem; font-weight: 500; margin-left: 0.2rem; }
    body .product-actions { display: flex; gap: 0.5rem; }
    body .btn-icon {
      display: grid;
      place-items: center;
      width: 40px;
      height: 40px;
      border-radius: 11px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border-color);
      color: var(--text-main);
      cursor: pointer;
      text-decoration: none;
      transition: var(--transition);
    }
    body .btn-icon:hover {
      background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
      color: #04121a;
      border-color: transparent;
      transform: translateY(-2px);
    }
    .products-more { text-align: center; margin-top: 2.2rem; }

    /* ---------- Cómo funciona (secuencia real) ---------- */
    .steps { margin-top: 6rem; }
    .steps-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
      position: relative;
      counter-reset: step;
    }
    .step {
      position: relative;
      padding: 1.6rem 1.5rem 1.7rem;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 18px;
      counter-increment: step;
    }
    .step::before {
      content: counter(step);
      display: grid;
      place-items: center;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      margin-bottom: 1rem;
      font-family: var(--font-display);
      font-weight: 800;
      color: #04121a;
      background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    }
    .step h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
    .step p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.55; }

    /* ---------- Ventajas ---------- */
    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.4rem;
      margin: 2.2rem 0 0;
    }
    .feature-box {
      background: var(--bg-card);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
      border: 1px solid var(--border-color);
      border-radius: 18px;
      padding: 2rem 1.7rem;
      text-align: left;
      transition: var(--transition);
    }
    .feature-box:hover { border-color: rgba(255, 255, 255, 0.2); }
    .feature-icon {
      display: grid;
      place-items: center;
      width: 50px;
      height: 50px;
      border-radius: 14px;
      margin-bottom: 1.1rem;
      font-size: 1.45rem;
      color: var(--gold);
      background: rgba(233, 199, 123, 0.09);
      border: 1px solid rgba(233, 199, 123, 0.28);
    }
    .feature-box h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
    .feature-box p { color: var(--text-muted); font-size: 0.94rem; line-height: 1.6; }

    /* ---------- FAQ ---------- */
    .faq-item {
      background: var(--bg-card);
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
      border: 1px solid var(--border-color);
      border-radius: 14px;
      margin-bottom: 0.8rem;
      overflow: hidden;
      transition: border-color 0.25s;
    }
    .faq-item.active { border-color: rgba(61, 232, 255, 0.4); }
    .faq-question {
      padding: 1.2rem 1.5rem;
      width: 100%;
      text-align: left;
      background: none;
      border: none;
      color: var(--text-main);
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 1.02rem;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
    }
    .faq-question .plus {
      display: grid;
      place-items: center;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 1px solid var(--border-color);
      color: var(--accent-blue);
      font-size: 1.2rem;
      line-height: 1;
      transition: transform 0.3s, background 0.3s;
      flex-shrink: 0;
    }
    .faq-item.active .plus { transform: rotate(45deg); background: rgba(61, 232, 255, 0.12); }
    .faq-answer {
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
    }
    .faq-item.active .faq-answer { grid-template-rows: 1fr; }
    .faq-answer > div {
      overflow: hidden;
      padding: 0 1.5rem;
      color: var(--text-muted);
      font-size: 0.97rem;
      line-height: 1.65;
    }
    .faq-item.active .faq-answer > div { padding-bottom: 1.3rem; }

    /* ---------- Newsletter ---------- */
    .newsletter-section {
      position: relative;
      overflow: hidden;
      background: linear-gradient(135deg, rgba(61, 232, 255, 0.09), rgba(139, 124, 255, 0.1));
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 24px;
      padding: 3.5rem 1.5rem;
      text-align: center;
      margin-top: 6rem;
    }
    .newsletter-section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
    .newsletter-form {
      display: flex;
      justify-content: center;
      gap: 0.7rem;
      max-width: 520px;
      margin: 1.6rem auto 0;
    }
    .newsletter-input {
      flex: 1;
      min-width: 0;
      background: rgba(5, 7, 13, 0.7);
      border: 1px solid var(--border-color);
      padding: 0.9rem 1.2rem;
      border-radius: 12px;
      color: var(--text-main);
      font-family: var(--font-body);
      font-size: 1rem;
      transition: border-color 0.2s;
    }
    .newsletter-input:focus { outline: none; border-color: var(--accent-blue); }
    .newsletter-msg { min-height: 1.4rem; margin-top: 0.9rem; font-size: 0.92rem; color: var(--accent-green); }

    /* ---------- Pie de página ---------- */
    body footer { border-top: 1px solid var(--border-color); background: rgba(5, 7, 13, 0.7); }
    body footer a { transition: color 0.2s; }
    body footer a:hover { color: var(--accent-blue); }

    /* ---------- Responsive ---------- */
    @media (max-width: 900px) {
      body .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3rem; }
      body .hero-content { max-width: none; }
      .steps-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 520px) {
      .newsletter-form { flex-direction: column; }
      body .hero-buttons .btn-primary,
      body .hero-buttons .btn-secondary { flex: 1 1 100%; }
    }

    /* Respeta a quien prefiere menos movimiento */
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
      .bar i { transform: scaleX(1); }
      .delivery-item .done { opacity: 1; }
    }
  

/* =========================================================
   PÁGINAS DE LA TIENDA (tienda, producto, carrito, gracias, contacto)
   ========================================================= */
.page-head { max-width: 1200px; margin: 0 auto; padding: 3.5rem 1.5rem 1.5rem; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.page-head p { color: var(--text-muted); margin-top: 0.6rem; max-width: 60ch; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 2rem; }
.chip {
  padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.9rem; font-weight: 500; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-color); color: var(--text-muted);
  transition: var(--transition); font-family: var(--font-body);
}
.chip:hover { color: var(--text-main); border-color: rgba(255,255,255,0.25); }
.chip.active { color: #04121a; background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); border-color: transparent; font-weight: 700; }
.empty-state {
  text-align: center; padding: 3rem 1.5rem; border: 1px dashed var(--border-color); border-radius: 18px;
  color: var(--text-muted); background: var(--bg-card);
}
.empty-state h2 { color: var(--text-main); font-size: 1.3rem; margin-bottom: 0.5rem; }
.empty-state .btn-primary { margin-top: 1.2rem; }

/* Producto */
.detail { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.detail-thumb {
  position: relative; aspect-ratio: 4 / 3; border-radius: 22px; border: 1px solid var(--border-color); overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem; font-weight: 700; color: rgba(255,255,255,0.9);
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(135deg, hsl(var(--h, 190) 85% 45% / 0.4), hsl(calc(var(--h, 190) + 70) 80% 40% / 0.2));
}
.detail-info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 0.5rem 0 1rem; color: #fff; }
.detail-info .lead { color: var(--text-muted); line-height: 1.7; }
.detail-price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; margin: 1.5rem 0 1.2rem; color: #fff; }
.detail-price small { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; margin-left: 0.3rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.includes { margin-top: 1.8rem; display: grid; gap: 0.7rem; color: var(--text-muted); font-size: 0.95rem; }
.includes li { display: flex; gap: 0.6rem; align-items: center; }
.includes .icon { color: var(--accent-green); }

/* Carrito */
.cart-layout { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem 4rem; display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; }
.cart-list { display: grid; gap: 0.9rem; }
.cart-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 1rem;
}
.cart-item .mini { width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--border-color);
  background: linear-gradient(135deg, hsl(var(--h, 190) 85% 45% / 0.4), hsl(calc(var(--h, 190) + 70) 80% 40% / 0.2)); display: grid; place-items: center; color: #fff; }
.cart-item h3 { font-size: 1rem; line-height: 1.3; }
.cart-item small { color: var(--text-muted); }
.cart-item .right { text-align: right; display: grid; gap: 0.3rem; justify-items: end; }
.cart-item .price { font-family: var(--font-display); font-weight: 800; }
.link-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.85rem; text-decoration: underline; padding: 0; }
.link-btn:hover { color: #ff8a8a; }
.summary { position: sticky; top: 90px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; padding: 1.5rem; }
.summary h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.summary .row { display: flex; justify-content: space-between; color: var(--text-muted); margin-bottom: 0.6rem; }
.summary .total { color: #fff; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; border-top: 1px solid var(--border-color); padding-top: 1rem; margin-top: 0.8rem; }
#paypal-buttons { margin-top: 1.2rem; min-height: 50px; }
.notice { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 12px; font-size: 0.9rem; line-height: 1.5; background: rgba(61,232,255,0.07); border: 1px solid rgba(61,232,255,0.25); color: var(--text-main); }
.notice.error { background: rgba(255,90,90,0.08); border-color: rgba(255,90,90,0.35); }
.notice.ok { background: rgba(56,242,160,0.08); border-color: rgba(56,242,160,0.35); }
.secure-note { display: flex; gap: 0.6rem; align-items: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 1rem; }

/* Gracias */
.thanks { max-width: 720px; margin: 0 auto; padding: 4rem 1.5rem; }
.thanks h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; margin-bottom: 0.6rem; }
.download-list { display: grid; gap: 0.8rem; margin: 2rem 0 1.2rem; }
.download-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 1rem 1.2rem; }
.download-item strong { font-family: var(--font-display); }

/* Contacto */
.contact-grid { max-width: 900px; margin: 0 auto; padding: 0 1.5rem 4rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.contact-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; padding: 1.6rem; }
.contact-card h3 { margin: 0.9rem 0 0.4rem; }
.contact-card p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.95rem; }

/* Aviso flotante */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 500;
  background: #0f1628; border: 1px solid rgba(61,232,255,0.4); color: #fff; padding: 0.8rem 1.2rem; border-radius: 14px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.7); transition: all 0.3s; font-size: 0.95rem;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 800px) {
  .detail { grid-template-columns: 1fr; gap: 1.8rem; padding-top: 1.5rem; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .cart-item { grid-template-columns: 52px 1fr; }
  .cart-item .mini { width: 52px; height: 52px; }
  .cart-item .right { grid-column: 1 / -1; grid-template-columns: 1fr auto; justify-items: stretch; align-items: center; }
  .cart-item .right .price { text-align: right; }
}

/* Portadas de producto */
.product-thumb .cover, .detail-thumb .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-thumb .product-tag, .detail-thumb .product-tag { z-index: 1; }
body .product-thumb:has(.cover) { height: 220px; }


/* Producto: vistas previas, cómo funciona, compra */
.previews, .how, .buy-box { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 0; }
.previews h2, .how h2, .buy-box h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1rem; }
.previews-row { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.8rem; }
.previews-row img { flex: 0 0 min(280px, 72vw); width: min(280px, 72vw); height: auto; border-radius: 12px; border: 1px solid var(--border-color); scroll-snap-align: start; background: #fff; }
.how-list { display: grid; gap: 0.9rem; padding-left: 1.2rem; color: var(--text-muted); line-height: 1.6; max-width: 46rem; }
.how-list strong { color: var(--text-main); }
.how-note { margin-top: 1rem; color: var(--text-muted); font-size: 0.95rem; }
.buy-box { max-width: 520px; padding-bottom: 4rem; scroll-margin-top: 5rem; }
.buy-price { font-size: 2rem; font-weight: 800; margin-bottom: 1.2rem; }
.buy-price small { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
#buy-msg { margin-top: 1rem; }

/* Campo de correo de entrega */
.email-field { margin-bottom: 1.2rem; }
.email-field label { display: block; font-weight: 700; margin-bottom: 0.5rem; }
.email-field input { width: 100%; padding: 0.85rem 1rem; border-radius: 10px; border: 1px solid var(--border-color); background: rgba(255,255,255,0.05); color: var(--text-main); font-size: 1rem; }
.email-field input:focus-visible { outline: 3px solid var(--accent-blue); outline-offset: 2px; }
.email-hint { margin-top: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }
