/* ═══════════════════════════════════════════════════════════════
   home.css — DevProPerú Homepage
   Coloca este archivo en: public/css/home.css
   ═══════════════════════════════════════════════════════════════ */

/* ── VARIABLES ──────────────────────────────────────────────────── */
:root {
    --ink:       #08080f;
    --ink-soft:  #14141f;
    --surface:   #f4f3ef;
    --surface-2: #eae9e3;
    --white:     #ffffff;
    --accent:    #ff4520;       /* rojo-naranja */
    --accent-2:  #2f54eb;       /* azul índigo  */
    --gold:      #f5c330;
    --green:     #00c47d;
    --purple:    #9b5de5;
    --radius:    1.25rem;
    --font-head: 'Syne', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --font-body: 'DM Sans', sans-serif;
  }
  
  /* ── RESET BASE ─────────────────────────────────────────────────── */
  *, *::before, *::after { box-sizing: border-box; }
  
  body {
    font-family: var(--font-body);
    background: var(--surface);
    color: var(--ink);
    overflow-x: hidden;
  }
  
  /* ── TIPOGRAFÍA GLOBAL ──────────────────────────────────────────── */
  .section-eyebrow {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
    display: block;
  }
  
  .section-title {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.03em;
    color: var(--ink);
    margin: 0 0 .9rem;
  }
  
  .section-subtitle {
    font-size: 1.05rem;
    color: #666;
    font-weight: 300;
    line-height: 1.7;
    max-width: 520px;
    margin: 0;
  }
  
  .section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
  }
  
  /* ── BOTONES ────────────────────────────────────────────────────── */
  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .9rem;
    padding: .85rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 6px 20px rgba(8,8,15,.22);
    white-space: nowrap;
  }
  
  .btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,69,32,.35); }
  .btn-primary.btn-sm { font-size: .82rem; padding: .7rem 1.4rem; }
  .btn-primary.btn-lg { font-size: 1rem;  padding: 1rem 2.2rem; }
  
  .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.8);
    font-weight: 500;
    font-size: .9rem;
    padding: .85rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
    white-space: nowrap;
  }
  
  .btn-ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); color: #fff; }
  .btn-ghost.btn-lg { font-size: 1rem; padding: 1rem 2.2rem; }
  
  /* ── CONTAINER ──────────────────────────────────────────────────── */
  .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .section { padding: 6rem 0; }
  
  /* ═══════════════════════════════════════════════════════════════
     HERO
     ═══════════════════════════════════════════════════════════════ */
  .hero {
    background: var(--ink);
    min-height: 94vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
  }
  
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 60% 55% at 85% 35%, rgba(47,84,235,.16) 0%, transparent 65%),
      radial-gradient(ellipse 45% 45% at 12% 75%, rgba(255,69,32,.12) 0%, transparent 60%),
      radial-gradient(ellipse 30% 30% at 55% 90%, rgba(155,93,229,.08) 0%, transparent 60%);
    pointer-events: none;
  }
  
  /* ── Hero Left ─────────────────────────────────────────────────── */
  .hero-left {
    padding: 6rem 3rem 5rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
  }
  
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.6);
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .4rem .95rem;
    border-radius: 100px;
    width: fit-content;
    margin-bottom: 1.8rem;
    animation: fadeUp .7s ease both;
  }
  
  .hero-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 1.8s ease infinite;
  }
  
  .hero-title {
    font-family: var(--font-head);
    font-size: clamp(3.2rem, 5.5vw, 6rem);
    font-weight: 900;
    line-height: .95;
    letter-spacing: -.04em;
    color: #fff;
    margin: 0 0 1.4rem;
    animation: fadeUp .7s .08s ease both;
  }
  
  .hero-title-accent {
    color: var(--accent);
  }
  
  .hero-desc {
    color: rgba(255,255,255,.5);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.75;
    max-width: 430px;
    margin-bottom: 1.8rem;
    animation: fadeUp .7s .14s ease both;
  }
  
  /* Categorías rápidas */
  .hero-cats {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2.2rem;
    animation: fadeUp .7s .2s ease both;
  }
  
  .hero-cat {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.55);
    font-size: .72rem;
    font-weight: 500;
    padding: .3rem .75rem;
    border-radius: 100px;
    transition: background .2s, color .2s, border-color .2s;
    cursor: default;
  }
  
  .hero-cat:hover {
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.9);
    border-color: rgba(255,255,255,.25);
  }
  
  .hero-actions {
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
    animation: fadeUp .7s .26s ease both;
    margin-bottom: 3rem;
  }
  
  .hero-stats {
    display: flex;
    gap: 2.2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.08);
    animation: fadeUp .7s .34s ease both;
    flex-wrap: wrap;
  }
  
  .stat-item { display: flex; flex-direction: column; gap: .15rem; }
  
  .stat-num {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 1.8rem;
    color: #fff;
    line-height: 1;
  }
  
  .stat-label {
    font-size: .68rem;
    color: rgba(255,255,255,.38);
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  
  /* ── Hero Right — Big Carousel ─────────────────────────────────── */
  .hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 3rem 3rem 1rem;
    z-index: 2;
  }
  
  .hero-carousel {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4/3;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 80px rgba(0,0,0,.55);
    animation: fadeUp .8s .1s ease both;
  }
  
  .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
    transform: scale(1.03);
  }
  
  .hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
  }
  
  .hero-slide-inner {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
  }
  
  .slide-icon-bg {
    position: absolute;
    top: -20px; right: -20px;
    font-size: 9rem;
    color: rgba(61,90,254,.15);
    line-height: 1;
    pointer-events: none;
    transition: transform .6s;
  }
  
  .hero-slide.active .slide-icon-bg { transform: scale(1.08) rotate(-5deg); }
  
  .slide-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(61,90,254,.12);
    border: 1px solid rgba(61,90,254,.3);
    color: #82aaff;
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .3rem .75rem;
    border-radius: 100px;
    margin-bottom: 1rem;
    width: fit-content;
  }
  
  .slide-title {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 1.8rem;
    color: #fff;
    line-height: 1.1;
    margin-bottom: .65rem;
    letter-spacing: -.02em;
  }
  
  .slide-desc {
    font-size: .9rem;
    color: rgba(255,255,255,.5);
    font-weight: 300;
    margin-bottom: 1.2rem;
  }
  
  .slide-price-pill {
    display: inline-flex;
    background: rgba(61,90,254,.18);
    border: 1px solid rgba(61,90,254,.4);
    color: #82aaff;
    font-family: var(--font-mono);
    font-size: .8rem;
    font-weight: 700;
    padding: .4rem 1rem;
    border-radius: 100px;
    width: fit-content;
  }
  
  /* Carousel controls */
  .hc-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.8);
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, color .2s;
  }
  
  .hc-btn:hover { background: rgba(255,255,255,.22); color: #fff; }
  .hc-prev { left: .9rem; }
  .hc-next { right: .9rem; }
  
  .hc-dots {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .45rem;
    z-index: 10;
  }
  
  .hc-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    cursor: pointer;
    transition: background .3s, transform .3s, width .3s;
  }
  
  .hc-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 3px;
  }
  
  .hc-cat-label {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: .6rem;
    color: rgba(255,255,255,.3);
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 10;
  }
  
  /* Floating cards */
  .float-card {
    position: absolute;
    background: rgba(20,20,30,.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .85rem;
    padding: .75rem 1.1rem;
    z-index: 5;
  }
  
  .float-card-1 { top: 12%; left: 2%; animation: floatA 5s ease-in-out infinite; }
  .float-card-2 { bottom: 16%; right: 2%; animation: floatB 4.5s ease-in-out infinite; }
  
  .float-card-label { font-size: .6rem; color: rgba(255,255,255,.38); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .25rem; }
  .float-card-val   { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: .95rem; }
  
  /* ═══════════════════════════════════════════════════════════════
     OFERTAS CAROUSEL
     ═══════════════════════════════════════════════════════════════ */
  .carousel-section {
    background: var(--ink-soft);
    padding: 6rem 0;
  }
  
  .carousel-section .section-title   { color: #fff; }
  .carousel-section .section-eyebrow { color: var(--gold); }
  .carousel-section .section-subtitle { color: rgba(255,255,255,.4); }
  
  .carousel-wrapper {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
  }
  
  .carousel-track {
    display: flex;
    gap: 1.5rem;
    /* transition: transform .5s cubic-bezier(.4,0,.2,1); */
    will-change: transform;
  }
  
  .carousel-card {
    min-width: 280px;
    background: #1a1a28;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color .3s, transform .3s;
  }
  
  .carousel-card:hover { border-color: rgba(255,255,255,.2); transform: translateY(-5px); }
  
  .carousel-card-img {
    height: 175px;
    background: #111122;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
  }
  
  .carousel-card-img img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    opacity: 1 !important; /* 👈 Agrega esto aquí también si no lo tiene */
    transition: transform .5s;
  }
  
  .carousel-card:hover .carousel-card-img img { transform: scale(1.06); }
  
  .carousel-card-icon { color: rgba(255,255,255,.15); font-size: 2.5rem; }
  
  .offer-tag {
    position: absolute; top: .75rem; left: .75rem;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-mono);
    font-size: .6rem;
    font-weight: 700;
    padding: .28rem .65rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: .07em;
  }
  
  .discount-badge {
    position: absolute; top: .75rem; right: .75rem;
    background: var(--gold);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 900;
    padding: .28rem .65rem;
    border-radius: .35rem;
  }
  
  .carousel-card-body { padding: 1.3rem; }
  
  .carousel-card-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .95rem;
    color: #fff;
    margin-bottom: .65rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6rem;
  }
  
  .carousel-card-price-row { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
  
  .price-old  { font-family: var(--font-mono); font-size: .78rem; color: rgba(255,255,255,.28); text-decoration: line-through; }
  .price-new  { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 700; color: var(--gold); }
  .price-free { font-family: var(--font-head); font-size: 1.1rem; font-weight: 900; color: var(--green); }
  
  .carousel-card-btn {
    display: block;
    text-align: center;
    background: rgba(47,84,235,.15);
    border: 1px solid rgba(47,84,235,.35);
    color: #82aaff;
    font-weight: 600;
    font-size: .82rem;
    padding: .65rem;
    border-radius: .65rem;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
  }
  
  .carousel-card-btn:hover { background: rgba(47,84,235,.32); border-color: rgba(47,84,235,.6); color: #fff; }
  
  .carousel-controls { display: flex; align-items: center; gap: .9rem; margin-top: 2.2rem; }
  
  .carousel-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .85rem;
    transition: background .2s, color .2s;
  }
  
  .carousel-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
  
  .carousel-dots { display: flex; gap: .45rem; }
  
  .dot-item {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    cursor: pointer;
    transition: background .3s, transform .3s, width .3s;
  }
  
  .dot-item.active { background: var(--gold); width: 18px; border-radius: 3px; }
  
  /* ═══════════════════════════════════════════════════════════════
     FEATURES
     ═══════════════════════════════════════════════════════════════ */
  .features-section { background: var(--surface-2); }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.2rem;
  }
  
  .feature-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.8rem 1.5rem;
    border: 1px solid rgba(0,0,0,.05);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s ease, transform .5s ease, box-shadow .3s;
  }
  
  .feature-card.visible { opacity: 1; transform: none; }
  .feature-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.08); }
  
  .feature-icon {
    width: 46px; height: 46px;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
  }
  
  .fi-red    { background: #fff1ee; }
  .fi-blue   { background: #eef1ff; }
  .fi-green  { background: #eafff5; }
  .fi-gold   { background: #fffbe8; }
  .fi-purple { background: #f5eeff; }
  
  .feature-title { font-family: var(--font-head); font-weight: 800; font-size: .9rem; color: var(--ink); margin-bottom: .45rem; }
  .feature-desc  { font-size: .83rem; color: #777; line-height: 1.65; }
  
  /* ═══════════════════════════════════════════════════════════════
     PRODUCTOS
     ═══════════════════════════════════════════════════════════════ */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.4rem;
  }
  
  .product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .3s, box-shadow .3s;
  }
  
  .product-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,0,0,.1); }
  
  .product-card-img {
    height: 195px;
    background: var(--surface-2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  
  /* .product-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s, opacity .4s;
  } */
  .product-card-img img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    /* ✅ FUERZA VISIBILIDAD TOTAL */
    opacity: 1 !important; 
    visibility: visible !important; 
    display: block !important;
    
    transition: transform .5s ease;
  }
  
  .product-card:hover .product-card-img img { transform: scale(1.06); }
  
  .img-placeholder {
    position: absolute; inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #ccc;
  }
  
  .product-badge {
    position: absolute;
    top: .75rem; left: .75rem;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: .3rem .75rem;
    border-radius: 100px;
  }
  
  .badge-offer { background: var(--accent);  color: #fff; box-shadow: 0 3px 12px rgba(255,69,32,.35); }
  .badge-free  { background: var(--green);   color: #fff; box-shadow: 0 3px 12px rgba(0,196,125,.3); }
  
  .product-card-body {
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  
  .product-card-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .98rem;
    color: var(--ink);
    margin-bottom: .75rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.65rem;
    transition: color .2s;
  }
  
  .product-card:hover .product-card-name { color: var(--accent-2); }
  
  .product-price-block { margin-bottom: 1.1rem; }
  .product-price-old  { font-size: .78rem; color: #aaa; text-decoration: line-through; font-family: var(--font-mono); }
  .product-price-new  { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 700; color: var(--accent-2); }
  .product-price-free { font-family: var(--font-head); font-size: 1.15rem; font-weight: 900; color: var(--green); }
  
  .product-card-actions { display: flex; gap: .7rem; margin-top: auto; }
  
  .btn-detail {
    flex: 1;
    text-align: center;
    padding: .6rem;
    border-radius: .65rem;
    background: var(--surface-2);
    color: #555;
    font-weight: 600;
    font-size: .8rem;
    text-decoration: none;
    transition: background .2s, color .2s;
  }
  
  .btn-detail:hover { background: #dddbd4; color: var(--ink); }
  
  .btn-cart {
    flex: 1;
    padding: .6rem;
    border-radius: .65rem;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    cursor: pointer;
    border: none;
    transition: background .2s, transform .15s;
    box-shadow: 0 4px 14px rgba(8,8,15,.18);
  }
  
  .btn-cart:hover   { background: var(--accent-2); }
  .btn-cart:active  { transform: scale(.95); }
  
  .ver-mas-wrap { text-align: center; margin-top: 3rem; }
  
  /* ═══════════════════════════════════════════════════════════════
     CTA
     ═══════════════════════════════════════════════════════════════ */
  .cta-section {
    background: var(--ink);
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
  }
  
  .cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 55% 55% at 50% 50%, rgba(47,84,235,.15) 0%, transparent 70%),
      radial-gradient(ellipse 30% 40% at 10% 80%, rgba(255,69,32,.1) 0%, transparent 60%);
    pointer-events: none;
  }
  
  .cta-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
  }
  
  .cta-text { max-width: 520px; }
  .cta-text .section-title { color: #fff; }
  .cta-text .section-subtitle { color: rgba(255,255,255,.42); }
  
  .cta-actions { display: flex; flex-direction: column; gap: 1rem; min-width: 200px; }
  
  /* ═══════════════════════════════════════════════════════════════
     SCROLL TO TOP
     ═══════════════════════════════════════════════════════════════ */
  #scrollTop {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--ink);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s, transform .3s, background .2s;
    z-index: 9999;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
  }
  
  #scrollTop.visible { opacity: 1; transform: none; }
  #scrollTop:hover   { background: var(--accent); }
  
  /* ═══════════════════════════════════════════════════════════════
     ANIMACIONES
     ═══════════════════════════════════════════════════════════════ */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
  }
  
  @keyframes floatA {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-9px); }
  }
  
  @keyframes floatB {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(9px); }
  }
  
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .25; }
  }
  
  /* ═══════════════════════════════════════════════════════════════
     RESPONSIVE (Optimizado para 2 columnas en celular)
     ═══════════════════════════════════════════════════════════════ */
  @media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-left { padding: 5rem 2rem 3rem; }
    .hero-right { padding: 0 2rem 4rem; }
    .hero-carousel { max-width: 100%; }
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-text .section-subtitle { margin: 0 auto; }
    .cta-actions { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  }
  
  /* 🔥 AQUÍ ESTÁ EL CAMBIO MAESTRO 🔥 */
  /* ═══════════════════════════════════════════════════════════════
     RESPONSIVE HOME - 2 COLUMNAS POR JCELL
     ═══════════════════════════════════════════════════════════════ */
  
     @media (max-width: 640px) {
        .hero-left { padding: 4rem 1.5rem 2.5rem; }
        .hero-right { padding: 0 1.5rem 3.5rem; }
        .hero-title { font-size: 2.8rem; }
    
        /* 🚀 AQUÍ EL CAMBIO: De 1fr a repeat(2, 1fr) */
        .products-grid { 
            grid-template-columns: repeat(2, 1fr) !important; 
            gap: 0.8rem !important; 
        }
    
        /* Ajustamos las tarjetas para que no se vean gigantes */
        .product-card-img { height: 140px !important; }
        .product-card-body { padding: 0.8rem !important; }
        .product-card-name { 
            font-size: 0.85rem !important; 
            min-height: 2.2rem !important; 
            margin-bottom: 0.4rem !important; 
        }
        .product-price-new, .product-price-free { font-size: 1rem !important; }
    
        .product-card-actions { gap: 0.4rem !important; }
        .btn-detail, .btn-cart { 
            padding: 0.5rem 0.2rem !important; 
            font-size: 0.7rem !important; 
        }
    
        .section { padding: 3.5rem 0; }
        .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
        .features-grid { grid-template-columns: 1fr 1fr; }
        .hero-stats { gap: 1.2rem; }
        .float-card { display: none; }
        .carousel-card { min-width: 250px; }
      }
      
      @media (max-width: 400px) {
        .features-grid { grid-template-columns: 1fr; }
        .hero-actions { flex-direction: column; }
        /* Ajuste extra para pantallas muy pequeñas */
        .products-grid { gap: 0.5rem !important; }
        .product-card-name { font-size: 0.8rem !important; }
      }
  
  @media (max-width: 400px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    /* En celulares muy chiquitos bajamos un pelo más la fuente */
    .product-card-name { font-size: 0.8rem !important; }
  }

  /* ═══════════════════════════════════════════════════════════════════
   catalogo.css — DevProPerú · Página de catálogo
   Coloca este archivo en: public/css/catalogo.css

   ⚠️  TODO el CSS está encapsulado dentro de [data-page="catalogo"]
       para que NO choque con el CSS de otras páginas.
   ═══════════════════════════════════════════════════════════════════ */

/* ── VARIABLES LOCALES ─────────────────────────────────────────────
   Se definen dentro del scope para no pisar las del home u otras páginas */
[data-page="catalogo"] {
    --c-ink:       #08080f;
    --c-ink-soft:  #13131e;
    --c-surface:   #f3f2ee;
    --c-surface-2: #e9e8e2;
    --c-white:     #ffffff;
    --c-accent:    #ff4520;
    --c-blue:      #2f54eb;
    --c-gold:      #f5c330;
    --c-green:     #00c47d;
    --c-radius:    1rem;
    --c-font-head: 'Syne', sans-serif;
    --c-font-mono: 'Space Mono', monospace;
    --c-font-body: 'DM Sans', sans-serif;
  
    font-family: var(--c-font-body);
    background: var(--c-surface);
    color: var(--c-ink);
  }
  
  /* ── CONTAINER ─────────────────────────────────────────────────────── */
  [data-page="catalogo"] .cat-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  /* ═══════════════════════════════════════════════════════════════════
     HERO BANNER
     ═══════════════════════════════════════════════════════════════════ */
  [data-page="catalogo"] .cat-hero {
    background: var(--c-ink-soft);
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
  }
  
  [data-page="catalogo"] .cat-hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
  }
  
  [data-page="catalogo"] .cat-hero-glow-1 {
    width: 420px; height: 420px;
    background: rgba(47, 84, 235, .18);
    top: -120px; right: -80px;
  }
  
  [data-page="catalogo"] .cat-hero-glow-2 {
    width: 300px; height: 300px;
    background: rgba(255, 69, 32, .12);
    bottom: -80px; left: -60px;
  }
  
  [data-page="catalogo"] .cat-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  [data-page="catalogo"] .cat-eyebrow {
    display: inline-block;
    font-family: var(--c-font-mono);
    font-size: .65rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: .65rem;
  }
  
  [data-page="catalogo"] .cat-hero-title {
    font-family: var(--c-font-head);
    font-weight: 900;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.02;
    letter-spacing: -.04em;
    color: #fff;
    margin: 0 0 .75rem;
  }
  
  [data-page="catalogo"] .cat-hero-accent {
    color: var(--c-accent);
  }
  
  [data-page="catalogo"] .cat-hero-sub {
    color: rgba(255, 255, 255, .45);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    max-width: 540px;
  }
  
  [data-page="catalogo"] .cat-hero-sub strong {
    color: rgba(255, 255, 255, .75);
    font-weight: 600;
  }
  
  /* ── Búsqueda ─────────────────────────────────────────────────────── */
  [data-page="catalogo"] .cat-hero-search {
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
  }
  
  [data-page="catalogo"] .cat-search-wrap {
    flex: 1;
    min-width: 220px;
    position: relative;
    display: flex;
    align-items: center;
  }
  
  [data-page="catalogo"] .cat-search-icon {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, .35);
    font-size: .85rem;
    pointer-events: none;
  }
  
  [data-page="catalogo"] .cat-search-input {
    width: 100%;
    padding: .85rem 2.5rem .85rem 2.6rem;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 100px;
    color: #fff;
    font-family: var(--c-font-body);
    font-size: .9rem;
    outline: none;
    transition: background .2s, border-color .2s;
  }
  
  [data-page="catalogo"] .cat-search-input::placeholder {
    color: rgba(255, 255, 255, .3);
  }
  
  [data-page="catalogo"] .cat-search-input:focus {
    background: rgba(255, 255, 255, .11);
    border-color: rgba(255, 255, 255, .28);
  }
  
  [data-page="catalogo"] .cat-search-clear {
    position: absolute;
    right: .9rem;
    color: rgba(255, 255, 255, .35);
    font-size: .8rem;
    text-decoration: none;
    transition: color .2s;
  }
  
  [data-page="catalogo"] .cat-search-clear:hover { color: rgba(255, 255, 255, .7); }
  
  [data-page="catalogo"] .cat-search-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--c-accent);
    color: #fff;
    font-family: var(--c-font-head);
    font-weight: 800;
    font-size: .88rem;
    padding: .85rem 1.8rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 6px 20px rgba(255, 69, 32, .3);
    white-space: nowrap;
  }
  
  [data-page="catalogo"] .cat-search-btn:hover {
    background: #e03a18;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(255, 69, 32, .4);
  }
  
 /* ═══════════════════════════════════════════════════════════════════
   BARRA DE RESULTADOS — VERSIÓN FINAL JCELL 🚀
   ═══════════════════════════════════════════════════════════════════ */
[data-page="catalogo"] .cat-bar {
    background: var(--c-white);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    padding: 1.2rem 0; /* Un poco más de aire para que se vea premium */
    
    /* 🔥 SOLUCIÓN AL DISEÑO PEGADO 🔥 */
    position: relative !important; 
    top: auto !important; 
    z-index: 10;
    box-shadow: none !important;
    
    /* Aseguramos que ocupe todo el ancho pero respete el fondo */
    width: 100%;
    margin-bottom: 2rem; /* Espacio para que respire antes de los productos */
}

[data-page="catalogo"] .cat-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 1280px; /* Ajusta esto al ancho de tu contenedor */
    margin: 0 auto;
    padding: 0 2rem;
}

[data-page="catalogo"] .cat-bar-count {
    font-size: .9rem;
    color: #666;
    font-weight: 400;
}

[data-page="catalogo"] .cat-bar-count strong {
    color: var(--c-ink);
    font-weight: 800;
}

/* El selector de orden (Select) */
[data-page="catalogo"] .cat-sort-select {
    font-family: var(--c-font-body);
    font-size: .85rem;
    font-weight: 600;
    color: var(--c-ink);
    background: #f8f9fa; /* Un gris muy suave */
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: .6rem;
    padding: .5rem 1rem;
    cursor: pointer;
    transition: all .2s ease;
}

[data-page="catalogo"] .cat-sort-select:hover {
    border-color: var(--c-accent);
    background: #fff;
}
  /* ═══════════════════════════════════════════════════════════════════
     GRID DE PRODUCTOS
     ═══════════════════════════════════════════════════════════════════ */
  [data-page="catalogo"] .cat-main {
    padding: 2.5rem 0 5rem;
  }
  
  [data-page="catalogo"] .cat-container > .cat-card,
  [data-page="catalogo"] .cat-container {
    /* grid container */
  }
  
  [data-page="catalogo"] .cat-container:has(.cat-card) {
    display: grid;
    grid-template-columns: repeat(4, 1fr);   /* Desktop: 4 col */
    gap: 1.25rem;
    align-items: start;
  }
  
  /* ── Tarjeta ──────────────────────────────────────────────────────── */
  [data-page="catalogo"] .cat-card {
    background: var(--c-white);
    border-radius: var(--c-radius);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .04);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease;
  }
  
  [data-page="catalogo"] .cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .1);
  }
  
  /* Badge top-left */
  [data-page="catalogo"] .cat-badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    z-index: 3;
    font-family: var(--c-font-mono);
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .25rem .6rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: .25rem;
  }
  
  [data-page="catalogo"] .cat-badge-offer {
    background: var(--c-accent);
    color: #fff;
    box-shadow: 0 2px 10px rgba(255, 69, 32, .35);
  }
  
  [data-page="catalogo"] .cat-badge-free {
    background: var(--c-green);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 196, 125, .3);
  }
  
  /* Descuento top-right */
  [data-page="catalogo"] .cat-discount {
    position: absolute;
    top: .6rem;
    right: .6rem;
    z-index: 3;
    background: var(--c-gold);
    color: var(--c-ink);
    font-family: var(--c-font-head);
    font-size: .72rem;
    font-weight: 900;
    padding: .22rem .55rem;
    border-radius: .35rem;
  }
  
  /* Imagen */
  [data-page="catalogo"] .cat-card-img {
    display: block;
    height: 170px;
    background: var(--c-surface-2);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    text-decoration: none;
  }
  
  [data-page="catalogo"] .cat-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease, opacity .4s ease;
    opacity: 1 !important; /* ✅ Siempre visible */
  }
  
  /* Fade-in cuando la imagen carga */
  [data-page="catalogo"] .cat-card-img img.cat-loaded { opacity: 1; }
  
  [data-page="catalogo"] .cat-card:hover .cat-card-img img {
    transform: scale(1.06);
  }
  
  [data-page="catalogo"] .cat-card-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ccc;
  }
  
  [data-page="catalogo"] .cat-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .04);
    opacity: 0;
    transition: opacity .3s;
  }
  
  [data-page="catalogo"] .cat-card:hover .cat-card-overlay { opacity: 1; }
  
  /* Cuerpo */
  [data-page="catalogo"] .cat-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .7rem;
  }
  
  [data-page="catalogo"] .cat-card-name {
    font-family: var(--c-font-head);
    font-weight: 800;
    font-size: .88rem;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4rem;
  }
  
  [data-page="catalogo"] .cat-card-name a {
    color: var(--c-ink);
    text-decoration: none;
    transition: color .2s;
  }
  
  [data-page="catalogo"] .cat-card:hover .cat-card-name a { color: var(--c-blue); }
  
  /* Footer de la tarjeta */
  [data-page="catalogo"] .cat-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding-top: .7rem;
    border-top: 1px solid rgba(0, 0, 0, .05);
    margin-top: auto;
  }
  
  [data-page="catalogo"] .cat-card-price {
    display: flex;
    flex-direction: column;
    gap: .1rem;
  }
  
  [data-page="catalogo"] .cat-price-old {
    font-family: var(--c-font-mono);
    font-size: .68rem;
    color: #bbb;
    text-decoration: line-through;
  }
  
  [data-page="catalogo"] .cat-price-new {
    font-family: var(--c-font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-ink);
    line-height: 1;
  }
  
  [data-page="catalogo"] .cat-price-free {
    font-family: var(--c-font-head);
    font-size: 1rem;
    font-weight: 900;
    color: var(--c-green);
    display: flex;
    align-items: center;
    gap: .3rem;
    line-height: 1;
  }
  
  /* Botones de acción */
  [data-page="catalogo"] .cat-card-actions {
    display: flex;
    gap: .45rem;
    flex-shrink: 0;
  }
  
  [data-page="catalogo"] .cat-btn-detail,
  [data-page="catalogo"] .cat-btn-cart {
    width: 36px;
    height: 36px;
    border-radius: .6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    cursor: pointer;
    transition: background .2s, transform .15s, color .2s;
    border: none;
    text-decoration: none;
  }
  
  [data-page="catalogo"] .cat-btn-detail {
    background: var(--c-surface-2);
    color: #666;
  }
  
  [data-page="catalogo"] .cat-btn-detail:hover { background: #dddbd5; color: var(--c-ink); }
  
  [data-page="catalogo"] .cat-btn-cart {
    background: var(--c-ink);
    color: #fff;
    box-shadow: 0 3px 10px rgba(8, 8, 15, .2);
  }
  
  [data-page="catalogo"] .cat-btn-cart:hover { background: var(--c-blue); }
  [data-page="catalogo"] .cat-btn-cart:active { transform: scale(.92); }
  
  /* ═══════════════════════════════════════════════════════════════════
     ESTADO VACÍO
     ═══════════════════════════════════════════════════════════════════ */
  [data-page="catalogo"] .cat-empty {
    grid-column: 1 / -1;
    padding: 5rem 2rem;
    text-align: center;
    background: var(--c-white);
    border-radius: 1.25rem;
    border: 2px dashed rgba(0, 0, 0, .1);
  }
  
  [data-page="catalogo"] .cat-empty-icon {
    width: 64px; height: 64px;
    background: var(--c-surface-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #bbb;
    margin: 0 auto 1.2rem;
  }
  
  [data-page="catalogo"] .cat-empty-title {
    font-family: var(--c-font-head);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--c-ink);
    margin: 0 0 .5rem;
  }
  
  [data-page="catalogo"] .cat-empty-title em {
    color: var(--c-accent);
    font-style: normal;
  }
  
  [data-page="catalogo"] .cat-empty-sub {
    font-size: .88rem;
    color: #888;
    margin: 0 0 1.5rem;
  }
  
  [data-page="catalogo"] .cat-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--c-ink);
    color: #fff;
    font-family: var(--c-font-head);
    font-weight: 800;
    font-size: .85rem;
    padding: .75rem 1.6rem;
    border-radius: 100px;
    text-decoration: none;
    transition: background .2s;
  }
  
  [data-page="catalogo"] .cat-empty-btn:hover { background: var(--c-accent); }
  
  /* ═══════════════════════════════════════════════════════════════════
     PAGINACIÓN
     ═══════════════════════════════════════════════════════════════════ */
  [data-page="catalogo"] .cat-pagination {
    padding: 1.5rem 0 4rem;
    background: var(--c-surface);
  }
  
  [data-page="catalogo"] .cat-pagination .cat-container {
    display: flex;
    justify-content: center;
  }
  
  /* Estilos para los links de paginación de Laravel */
  [data-page="catalogo"] nav[role="navigation"] span,
  [data-page="catalogo"] nav[role="navigation"] a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 .6rem;
    border-radius: .5rem;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
  }
  
  [data-page="catalogo"] nav[role="navigation"] a {
    color: var(--c-ink);
    background: var(--c-white);
    border: 1px solid rgba(0,0,0,.08);
  }
  
  [data-page="catalogo"] nav[role="navigation"] a:hover {
    background: var(--c-ink);
    color: #fff;
    border-color: var(--c-ink);
  }
  
  [data-page="catalogo"] nav[role="navigation"] span[aria-current] {
    background: var(--c-blue);
    color: #fff;
    border: 1px solid var(--c-blue);
  }
  
  /* ═══════════════════════════════════════════════════════════════════
     LAZY LOAD — clase que agrega el JS
     ═══════════════════════════════════════════════════════════════════ */
  [data-page="catalogo"] .cat-card-img img {
    opacity: 0;
    transition: opacity .4s ease, transform .5s ease;
  }
  
  [data-page="catalogo"] .cat-card-img img.cat-loaded {
    opacity: 1;
  }
  
  /* ═══════════════════════════════════════════════════════════════════
     RESPONSIVE
     ═══════════════════════════════════════════════════════════════════ */
  
  /* Tablet: 3 columnas */
  @media (max-width: 1100px) {
    [data-page="catalogo"] .cat-container:has(.cat-card) {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  /* Tablet chico: 2 columnas */
  @media (max-width: 768px) {
    [data-page="catalogo"] .cat-container:has(.cat-card) {
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }
  
    [data-page="catalogo"] .cat-card-img { height: 140px; }
  
    [data-page="catalogo"] .cat-hero {
      padding: 2.8rem 0 2.5rem;
    }
  
    [data-page="catalogo"] .cat-hero-title {
      font-size: 2.2rem;
    }
  
    [data-page="catalogo"] .cat-bar-inner {
      flex-direction: column;
      align-items: flex-start;
      gap: .6rem;
    }
  }
  
  /* Móvil: 2 columnas fijas ─ SIEMPRE 2 en celular */
  @media (max-width: 480px) {
    [data-page="catalogo"] .cat-container:has(.cat-card) {
      grid-template-columns: repeat(2, 1fr);  /* ← 2 columnas en móvil */
      gap: .75rem;
      padding: 0 .75rem;
    }
  
    [data-page="catalogo"] .cat-container {
      padding: 0 .75rem;
    }
  
    [data-page="catalogo"] .cat-card-img  { height: 120px; }
    [data-page="catalogo"] .cat-card-body { padding: .75rem; gap: .5rem; }
    [data-page="catalogo"] .cat-card-name { font-size: .78rem; min-height: 2.1rem; }
  
    [data-page="catalogo"] .cat-price-new { font-size: .95rem; }
    [data-page="catalogo"] .cat-price-old { font-size: .6rem; }
    [data-page="catalogo"] .cat-price-free { font-size: .88rem; }
  
    [data-page="catalogo"] .cat-btn-detail,
    [data-page="catalogo"] .cat-btn-cart {
      width: 32px; height: 32px;
      font-size: .78rem;
      border-radius: .5rem;
    }
  
    [data-page="catalogo"] .cat-badge { font-size: .5rem; padding: .2rem .5rem; }
    [data-page="catalogo"] .cat-discount { font-size: .62rem; }
  
    [data-page="catalogo"] .cat-hero-title  { font-size: 1.9rem; }
    [data-page="catalogo"] .cat-hero-sub    { font-size: .88rem; }
    [data-page="catalogo"] .cat-search-btn  { padding: .8rem 1.2rem; font-size: .8rem; }
    [data-page="catalogo"] .cat-hero-search { flex-direction: column; }
    [data-page="catalogo"] .cat-search-wrap { min-width: 100%; }
  
    [data-page="catalogo"] .cat-empty { padding: 3rem 1rem; }
  }