*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'Quicksand', sans-serif;
      color: #2D2D2D;
      background: #F9F5F0;
      overflow-x: hidden;
    }
    img { max-width: 100%; height: auto; display: block; }
    a { text-decoration: none; color: inherit; }

    /* ═══ GRAIN OVERLAY ═══ */
    body::after {
      content: '';
      position: fixed; inset: 0; z-index: 9998;
      pointer-events: none;
      opacity: 0.035;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
      background-repeat: repeat;
      background-size: 256px 256px;
      mix-blend-mode: overlay;
    }
    @media (prefers-reduced-motion: reduce) { body::after { display: none; } }

    :root {
      --terracota: #D4A574;
      --rosa-flamenco: #FF6B9D;
      --verde-cactus: #4A7C59;
      --lila-estelar: #9B7ED9;
      --salmón: #F4A698;
      --crema: #F9F5F0;
      --texto: #2D2D2D;
      --texto-claro: #6B5E55;
    }

    h1, h2, h3, .hand { font-family: 'Caveat', cursive; }

    /* ═══ TOP STRIP ═══ */
    .top-strip {
      position: fixed; top: 0; left: 0; right: 0; z-index: 101;
      background: linear-gradient(90deg, var(--terracota) 0%, var(--salmón) 100%);
      color: #fff; text-align: center;
      padding: 0.55rem 1rem;
      font-family: 'Caveat', cursive;
      font-size: 1.05rem; font-weight: 600;
      box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }

    /* ═══ NAV ═══ */
    nav {
      position: fixed; top: 36px; width: 100%; z-index: 100;
      background: rgba(249,245,240,0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(212,165,116,0.2);
    }
    nav .inner {
      max-width: 1100px; margin: 0 auto;
      display: flex; align-items: center; justify-content: space-between;
      padding: 0.8rem 1.5rem;
    }
    nav .logo { font-family: 'Caveat', cursive; font-size: 1.5rem; font-weight: 700; color: var(--terracota); }
    nav .logo span { color: var(--rosa-flamenco); }
    nav .links { display: flex; gap: 2rem; align-items: center; }
    nav .links a { font-size: 0.9rem; font-weight: 600; color: var(--texto-claro); transition: color 0.2s; }
    nav .links a:hover { color: var(--rosa-flamenco); }
    nav .links a.active { color: var(--rosa-flamenco); }
    nav .btn-amazon {
      background: var(--verde-cactus); color: white !important;
      padding: 0.5rem 1.2rem; border-radius: 999px;
      font-size: 0.8rem !important; transition: all 0.2s;
    }
    nav .btn-amazon:hover { background: #3D6B4A; transform: translateY(-1px); }
    .nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
    .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--texto); margin: 5px 0; border-radius: 2px; transition: 0.3s; }
    .cart-btn {
      position: relative;
      background: var(--rosa-flamenco); color: white;
      border: none; width: 40px; height: 40px; border-radius: 50%;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: all 0.2s;
    }
    .cart-btn:hover { background: #E85A8A; transform: translateY(-1px); }
    .cart-btn .cart-count {
      position: absolute; top: -4px; right: -4px;
      background: var(--verde-cactus); color: white;
      width: 20px; height: 20px; border-radius: 50%;
      font-size: 0.7rem; font-weight: 700;
      display: flex; align-items: center; justify-content: center;
      display: none;
    }
    .cart-btn .cart-count.visible { display: flex; }

    /* ═══ PAGE HEADER ═══ */
    .page-hero {
      padding: 8rem 1.5rem 3rem;
      text-align: center;
      background: linear-gradient(160deg, #2D1F1A 0%, #4A2C20 40%, #3D2B1E 100%);
      position: relative; overflow: hidden;
    }
    .page-hero .tag {
      display: inline-block;
      background: rgba(255,107,157,0.15);
      border: 1px solid rgba(255,107,157,0.3);
      color: var(--rosa-flamenco);
      padding: 0.4rem 1.2rem; border-radius: 999px;
      font-size: 0.85rem; font-weight: 600; margin-bottom: 1.2rem;
    }
    .page-hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); color: white; line-height: 1.1; margin-bottom: 1rem; }
    .page-hero h1 span { color: var(--rosa-flamenco); }
    .page-hero p { font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto; }

    /* ═══ SHOP GRID ═══ */
    .shop-section { padding: 4rem 1.5rem; }
    .shop-section .inner { max-width: 1100px; margin: 0 auto; }
    .shop-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
    }
    .product-card {
      background: white;
      border-radius: 1.5rem;
      overflow: hidden;
      border: 1px solid rgba(212,165,116,0.15);
      transition: all 0.3s;
      box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    }
    .product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
    .product-card .product-img {
      aspect-ratio: 1/1;
      overflow: hidden;
      background: #F0E8DD;
    }
    .product-card .product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
    .product-card:hover .product-img img { transform: scale(1.05); }
    .product-card .product-info { padding: 1.5rem; }
    .product-card .product-info h3 { font-family: 'Quicksand', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
    .product-card .product-info .product-desc { font-size: 0.85rem; line-height: 1.6; color: var(--texto-claro); margin-bottom: 1rem; }
    .product-card .product-info .product-price { font-size: 1.2rem; font-weight: 700; color: var(--rosa-flamenco); margin-bottom: 1rem; }
    .product-card .product-info .product-actions { display: flex; gap: 0.8rem; }
    .product-card .btn-add {
      flex: 1;
      background: var(--rosa-flamenco); color: white;
      border: none; padding: 0.8rem 1.2rem; border-radius: 999px;
      font-weight: 700; font-size: 0.9rem; cursor: pointer;
      transition: all 0.2s;
    }
    .product-card .btn-add:hover { background: #E85A8A; transform: translateY(-1px); }
    .product-card .btn-add:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
    .product-card .product-img { position: relative; }
    .product-card .product-img img.img-blur { filter: blur(7px); transform: scale(1.08); }
    .product-card .product-info .product-price.soon { font-size: 0.95rem; color: var(--texto-claro); font-weight: 600; }
    .product-card .product-info .stock-note { font-size: 0.8rem; font-weight: 600; color: #C0392B; margin-bottom: 1rem; min-height: 1rem; }
    .img-badge {
      position: absolute; top: 0.8rem; left: 0.8rem; z-index: 2;
      background: var(--rosa-flamenco); color: #fff;
      font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
      text-transform: uppercase; padding: 0.35rem 0.75rem; border-radius: 999px;
    }
    /* ═══ MINI-GALERÍA DEL PRODUCTO ═══ */
    .product-thumbs {
      display: flex; gap: 0.5rem; padding: 0.75rem 0.85rem 0.85rem;
      overflow-x: auto; background: white;
      border-top: 1px solid rgba(212,165,116,0.15);
      scrollbar-width: thin;
    }
    .product-thumbs button {
      flex: 1 1 0; min-width: 46px; aspect-ratio: 1; padding: 0; cursor: pointer;
      border-radius: 0.65rem; overflow: hidden; background: #F0E8DD;
      border: 2px solid transparent; transition: border-color 0.2s, transform 0.2s;
    }
    .product-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .product-thumbs button:hover { transform: translateY(-1px); }
    .product-thumbs button[aria-current="true"] { border-color: var(--rosa-flamenco); }
    .product-thumbs button:focus-visible { outline: 2px solid var(--rosa-flamenco); outline-offset: 2px; }
    @media (max-width: 600px) { .product-thumbs { gap: 0.4rem; padding: 0.6rem 0.65rem 0.7rem; } }

    /* ═══ LIGHTBOX: VER EL LIBRO ═══ */
    .product-card .product-img.viewable img { cursor: zoom-in; }
    .book-lightbox {
      display: none; position: fixed; inset: 0; z-index: 10000;
      background: rgba(45,31,26,0.82); align-items: center; justify-content: center;
      padding: 1.5rem;
    }
    .book-lightbox.open { display: flex; }
    .book-lightbox .lb-stage { position: relative; }
    .book-lightbox .lb-stage img {
      max-width: 88vw; max-height: 82vh; border-radius: 1rem;
      box-shadow: 0 24px 70px rgba(0,0,0,0.5); background: #F9F5F0;
    }
    .book-lightbox .lb-close {
      position: absolute; top: -14px; right: -14px; width: 40px; height: 40px;
      border-radius: 50%; border: none; background: #fff; color: var(--texto);
      font-size: 1.3rem; font-weight: 700; cursor: pointer;
      box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    }
    .book-lightbox .lb-nav {
      position: absolute; top: 50%; transform: translateY(-50%);
      width: 46px; height: 46px; border-radius: 50%; border: none;
      background: rgba(255,255,255,0.92); color: var(--texto);
      font-size: 1.6rem; line-height: 1; cursor: pointer;
      box-shadow: 0 4px 14px rgba(0,0,0,0.25);
      display: flex; align-items: center; justify-content: center;
    }
    .book-lightbox .lb-nav:hover { background: #fff; }
    .book-lightbox .lb-prev { left: -60px; }
    .book-lightbox .lb-next { right: -60px; }
    .book-lightbox .lb-counter {
      position: absolute; bottom: -2.2rem; left: 0; right: 0; text-align: center;
      color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight: 600;
    }
    @media (max-width: 700px) {
      .book-lightbox .lb-prev { left: -8px; }
      .book-lightbox .lb-next { right: -8px; }
      .book-lightbox .lb-nav { width: 40px; height: 40px; }
    }
    /* ═══ INFO: DESPACHO Y PAGO ═══ */
    .shop-info { padding: 3.5rem 1.5rem 4.5rem; }
    .shop-info .inner { max-width: 1100px; margin: 0 auto; }
    .shop-info .info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
    .shop-info .info-item {
      background: #fff; border: 1px solid rgba(212,165,116,0.2);
      border-radius: 1.25rem; padding: 1.6rem; text-align: center;
    }
    .shop-info .info-icon { font-size: 1.8rem; }
    .shop-info .info-item h3 { font-family: 'Quicksand', sans-serif; font-size: 1rem; font-weight: 700; margin: 0.6rem 0 0.4rem; }
    .shop-info .info-item p { font-size: 0.88rem; line-height: 1.6; color: var(--texto-claro); }
    .shop-info .info-item a { color: var(--rosa-flamenco); font-weight: 700; }
    .cart-drawer .cart-paynote { font-size: 0.8rem; color: var(--texto-claro); text-align: center; margin-top: 0.8rem; }
    .cart-drawer .cart-paynote a { color: var(--rosa-flamenco); font-weight: 700; }

    /* ═══ SCROLL REVEAL ═══ */
    .fade-up {
      opacity: 0; transform: translateY(30px);
      transition: all 0.7s ease;
    }
    .fade-up.visible { opacity: 1; transform: translateY(0); }

    /* ═══ CART DRAWER ═══ */
    .cart-overlay {
      display: none;
      position: fixed; inset: 0; z-index: 200;
      background: rgba(0,0,0,0.5);
      backdrop-filter: blur(4px);
    }
    .cart-overlay.open { display: block; }
    .cart-drawer {
      position: fixed; top: 0; right: -400px; width: 400px; max-width: 100vw;
      height: 100vh; z-index: 201;
      background: white;
      box-shadow: -20px 0 60px rgba(0,0,0,0.2);
      transition: right 0.3s ease;
      display: flex; flex-direction: column;
    }
    .cart-drawer.open { right: 0; }
    .cart-drawer .cart-header {
      padding: 1.5rem;
      border-bottom: 1px solid rgba(212,165,116,0.2);
      display: flex; justify-content: space-between; align-items: center;
    }
    .cart-drawer .cart-header h2 { font-family: 'Caveat', cursive; font-size: 1.6rem; color: var(--texto); }
    .cart-drawer .cart-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--texto-claro); }
    .cart-drawer .cart-items { flex: 1; overflow-y: auto; padding: 1.5rem; }
    .cart-drawer .cart-empty { text-align: center; color: var(--texto-claro); padding: 3rem 1rem; }
    .cart-drawer .cart-empty .cart-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
    .cart-item {
      display: flex; gap: 1rem; padding: 1rem 0;
      border-bottom: 1px solid rgba(212,165,116,0.1);
    }
    .cart-item .cart-item-img { width: 70px; height: 90px; border-radius: 0.5rem; overflow: hidden; flex-shrink: 0; }
    .cart-item .cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
    .cart-item .cart-item-info { flex: 1; }
    .cart-item .cart-item-info h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; }
    .cart-item .cart-item-info .cart-item-price { font-size: 0.85rem; color: var(--rosa-flamenco); font-weight: 600; }
    .cart-item .cart-item-qty { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
    .cart-item .cart-item-qty button {
      width: 24px; height: 24px; border-radius: 50%;
      border: 1px solid rgba(212,165,116,0.3);
      background: var(--crema); cursor: pointer;
      font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
    }
    .cart-item .cart-item-qty span { font-size: 0.9rem; font-weight: 600; min-width: 20px; text-align: center; }
    .cart-item .cart-item-remove {
      background: none; border: none; color: #E85A5A;
      font-size: 0.8rem; cursor: pointer; align-self: flex-start;
    }
    .cart-drawer .cart-footer {
      padding: 1.5rem;
      border-top: 1px solid rgba(212,165,116,0.2);
    }
    .cart-drawer .cart-total {
      display: flex; justify-content: space-between; align-items: center;
      margin-bottom: 1rem;
    }
    .cart-drawer .cart-total span { font-size: 1rem; font-weight: 600; }
    .cart-drawer .cart-total .cart-total-price { font-size: 1.4rem; font-weight: 700; color: var(--rosa-flamenco); }
    .cart-drawer .btn-checkout {
      width: 100%;
      background: var(--rosa-flamenco); color: white;
      border: none; padding: 1rem; border-radius: 999px;
      font-weight: 700; font-size: 1rem; cursor: pointer;
      transition: all 0.2s;
    }
    .cart-drawer .btn-checkout:hover { background: #E85A8A; transform: translateY(-1px); }
    .cart-drawer .btn-checkout:disabled { opacity: 0.5; cursor: not-allowed; }
    .cart-drawer .checkout-msg { font-size: 0.85rem; color: var(--texto-claro); text-align: center; margin-top: 0.8rem; min-height: 1.2rem; }

    /* ═══ FOOTER ═══ */
    footer {
      background: #2D1F1A; color: rgba(255,255,255,0.5);
      text-align: center; padding: 3rem 1.5rem; font-size: 0.8rem;
    }
    footer .footer-logo { font-family: 'Caveat', cursive; font-size: 1.3rem; font-weight: 600; color: var(--terracota); margin-bottom: 0.5rem; }
    footer a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
    footer a:hover { color: var(--rosa-flamenco); }
    footer p { margin-top: 0.5rem; }

    /* ═══ MOBILE ═══ */
    @media (max-width: 768px) {
      nav .links {
        position: fixed; top: 93px; left: 0; right: 0;
        background: rgba(249,245,240,0.98);
        backdrop-filter: blur(12px);
        flex-direction: column; padding: 1.5rem; gap: 1.2rem;
        border-bottom: 1px solid rgba(212,165,116,0.2);
        display: none;
      }
      nav .links.open { display: flex; }
      .nav-toggle { display: block; }
      .page-hero { padding-top: 7rem; }
      .shop-grid { grid-template-columns: 1fr; }
      .cart-drawer { width: 100%; }
    }
