/* =============================================
   MenToyPlay — Secciones Homepage v3.0
   ============================================= */

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1a4a8a 55%, #2563EB 100%);
    min-height: 580px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
}
.hero-section::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(255,107,53,0.18) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px; right: -100px;
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.25) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px; left: -80px;
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-head);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
}
.hero-label i { color: var(--orange-light); }
.hero-title {
    font-family: var(--font-head);
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.08;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}
.hero-title .highlight { color: var(--orange); }
.hero-subtitle {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
    max-width: 480px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat-num {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 4px; }

/* Hero images */
.hero-images {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-img-main {
    width: 260px; height: 260px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 64px rgba(0,0,0,0.35);
    border: 4px solid rgba(255,255,255,0.15);
    position: relative;
    z-index: 2;
}
.hero-img-f {
    position: absolute;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-xl);
    border: 3px solid rgba(255,255,255,0.2);
}
.hero-img-f:nth-child(2) { width: 140px; height: 140px; top: 10px; right: 10px; animation: float 6s ease-in-out infinite; }
.hero-img-f:nth-child(3) { width: 120px; height: 120px; bottom: 10px; left: 0px; animation: float 5s ease-in-out infinite 1.2s; }
.hero-img-f:nth-child(4) { width: 105px; height: 105px; top: 40px; left: 20px; animation: float 7s ease-in-out infinite 0.6s; }

/* ══════════════════════════════════════════════
   CATEGORÍAS OVERVIEW (grid de 6 cards)
   ══════════════════════════════════════════════ */
.categories-overview {
    padding: 52px 0 40px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.categories-ov-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
}
.cat-ov-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.cat-ov-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 12px 18px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    text-align: center;
    background: var(--gray-50);
}
.cat-ov-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.cat-ov-card.armables:hover { box-shadow: 0 8px 24px rgba(59,130,246,0.2); }
.cat-ov-card.cubos:hover    { box-shadow: 0 8px 24px rgba(139,92,246,0.2); }
.cat-ov-card.mesa:hover     { box-shadow: 0 8px 24px rgba(236,72,153,0.2); }
.cat-ov-card.logica:hover   { box-shadow: 0 8px 24px rgba(16,185,129,0.2); }
.cat-ov-card.bloques:hover  { box-shadow: 0 8px 24px rgba(245,158,11,0.2); }
.cat-ov-card.puzzles:hover  { box-shadow: 0 8px 24px rgba(239,68,68,0.2); }

.cat-ov-icon {
    width: 54px; height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    transition: transform var(--transition);
}
.cat-ov-card:hover .cat-ov-icon { transform: scale(1.1) rotate(-5deg); }
.cat-ov-card.armables .cat-ov-icon { background: var(--cat-armables-bg); color: var(--cat-armables); }
.cat-ov-card.cubos    .cat-ov-icon { background: var(--cat-cubos-bg);    color: var(--cat-cubos);    }
.cat-ov-card.mesa     .cat-ov-icon { background: var(--cat-mesa-bg);     color: var(--cat-mesa);     }
.cat-ov-card.logica   .cat-ov-icon { background: var(--cat-logica-bg);   color: var(--cat-logica);   }
.cat-ov-card.bloques  .cat-ov-icon { background: var(--cat-bloques-bg);  color: var(--cat-bloques);  }
.cat-ov-card.puzzles  .cat-ov-icon { background: var(--cat-puzzles-bg);  color: var(--cat-puzzles);  }

.cat-ov-name {
    font-family: var(--font-head);
    font-size: 12.5px;
    font-weight: 800;
    color: var(--gray-800);
    line-height: 1.2;
}
.cat-ov-count { font-size: 11px; color: var(--gray-400); font-weight: 500; }

/* ══════════════════════════════════════════════
   CATEGORY SECTIONS (una por categoría)
   ══════════════════════════════════════════════ */
.cat-section { padding: 64px 0; border-bottom: 1px solid var(--border); }
.cat-section:nth-child(even) { background: var(--white); }
.cat-section:nth-child(odd)  { background: var(--gray-50); }

.cat-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}
.cat-sec-left { display: flex; align-items: center; gap: 16px; }
.cat-sec-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    flex-shrink: 0;
}
.cat-sec-armables .cat-sec-icon { background: var(--cat-armables-bg); color: var(--cat-armables); }
.cat-sec-cubos    .cat-sec-icon { background: var(--cat-cubos-bg);    color: var(--cat-cubos);    }
.cat-sec-mesa     .cat-sec-icon { background: var(--cat-mesa-bg);     color: var(--cat-mesa);     }
.cat-sec-logica   .cat-sec-icon { background: var(--cat-logica-bg);   color: var(--cat-logica);   }
.cat-sec-bloques  .cat-sec-icon { background: var(--cat-bloques-bg);  color: var(--cat-bloques);  }
.cat-sec-puzzles  .cat-sec-icon { background: var(--cat-puzzles-bg);  color: var(--cat-puzzles);  }

.cat-sec-name {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.02em;
}
.cat-sec-desc { font-size: 13px; color: var(--gray-400); margin-top: 3px; }
.cat-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-head);
    color: var(--primary-light);
    transition: gap var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.cat-ver-mas:hover { gap: 10px; }

/* Accent bar */
.cat-accent-bar {
    display: none;
}

/* Product grid inside category */
.cat-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ══════════════════════════════════════════════
   PRODUCT CARD (homepage)
   ══════════════════════════════════════════════ */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1.5px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.product-card:hover {
    border-color: transparent;
    box-shadow: 0 16px 48px rgba(30,58,95,0.14);
    transform: translateY(-5px);
}
/* Image wrapper */
.product-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--gray-100);
}
.product-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-card-img img { transform: scale(1.08); }

/* Quick-add overlay */
.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30,58,95,0.75) 0%, transparent 55%);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 14px;
}
.product-card:hover .product-overlay { opacity: 1; }
.product-quick-add {
    width: 100%;
    padding: 10px;
    background: var(--white);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-head);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.product-quick-add:hover { background: var(--orange); color: var(--white); }

/* Wishlist btn */
.product-wish {
    position: absolute;
    top: 10px; right: 10px;
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--gray-400);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition);
    opacity: 0;
    z-index: 2;
    border: none;
}
.product-card:hover .product-wish { opacity: 1; }
.product-wish:hover, .product-wish.active { color: #EF4444; }
.product-wish.active i::before { font-family: 'Font Awesome 6 Free'; font-weight: 900; content: '\f004'; }

/* Badge */
.product-cat-badge {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 2;
}

/* Body */
.product-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.product-cat-label {
    font-size: 10px;
    font-weight: 800;
    font-family: var(--font-head);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
}
.product-name {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 800;
    color: var(--gray-800);
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.product-desc {
    font-size: 12.5px;
    color: var(--gray-500);
    line-height: 1.55;
}
.product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11.5px;
    color: var(--gray-400);
    margin-top: 2px;
    flex-wrap: wrap;
}
.product-meta span { display: flex; align-items: center; gap: 5px; }

/* Footer */
.product-footer {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.product-price { display: flex; flex-direction: column; gap: 1px; }
.product-price-label {
    font-size: 10px;
    color: var(--gray-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.product-price-val {
    font-family: var(--font-head);
    font-size: 23px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1;
}
.product-price-val small { font-size: 13px; font-weight: 600; color: var(--gray-400); letter-spacing: 0; }
.product-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.btn-add-cart {
    width: 40px; height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    flex-shrink: 0;
}
.btn-add-cart:hover { background: var(--primary-dark); transform: scale(1.06); }
.btn-add-cart:disabled { background: var(--gray-200); color: var(--gray-400); cursor: not-allowed; transform: none; }

.btn-wa-product {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #25D366;
    color: var(--white);
    border-radius: var(--radius);
    font-size: 12.5px;
    font-weight: 700;
    font-family: var(--font-head);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    white-space: nowrap;
    text-decoration: none;
}
.btn-wa-product:hover { background: #1EB358; transform: translateY(-1px); }
.btn-wa-product:disabled { background: var(--gray-200); color: var(--gray-400); cursor: not-allowed; transform: none; }

/* ══════════════════════════════════════════════
   BENEFITS
   ══════════════════════════════════════════════ */
.benefits-section {
    background: var(--primary);
    padding: 48px 0;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 22px;
    background: rgba(255,255,255,0.03);
    transition: background var(--transition);
}
.benefit-item:hover { background: rgba(255,255,255,0.07); }
.benefit-icon {
    width: 50px; height: 50px;
    background: rgba(255,107,53,0.18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: var(--orange-light);
    flex-shrink: 0;
}
.benefit-title {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 3px;
}
.benefit-desc { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.4; }

/* ══════════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════════ */
.testimonials-section { padding: var(--section-py) 0; background: var(--white); }
.testimonials-header { margin-bottom: 40px; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.testimonial-card {
    background: var(--gray-50);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all var(--transition);
}
.testimonial-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}
.testimonial-stars { color: #F59E0B; font-size: 14px; letter-spacing: 2px; }
.testimonial-text  { font-size: 14px; line-height: 1.75; color: var(--gray-600); font-style: italic; flex: 1; }
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.testimonial-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 900;
    color: var(--white);
    flex-shrink: 0;
}
.testimonial-name   { font-family: var(--font-head); font-size: 14px; font-weight: 800; color: var(--gray-800); }
.testimonial-loc    { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

/* ══════════════════════════════════════════════
   CTA BANNER
   ══════════════════════════════════════════════ */
.cta-banner {
    background: linear-gradient(135deg, var(--orange) 0%, #E85500 100%);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    top: -200px; left: -100px;
}
.cta-banner::after {
    content: '';
    position: absolute;
    width: 350px; height: 350px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -100px; right: -50px;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner-title {
    font-family: var(--font-head);
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.cta-banner-sub { font-size: 16px; color: rgba(255,255,255,0.82); margin-bottom: 34px; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.cta-banner-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.main-footer {
    background: var(--black);
    color: rgba(255,255,255,0.55);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 14px;
}
.footer-logo-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--white);
}
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 280px; margin-bottom: 22px; }
.footer-social  { display: flex; gap: 10px; }
.footer-social a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    transition: all var(--transition);
}
.footer-social a:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    transform: translateY(-2px);
}
.footer-col h4 {
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.22);
    flex-wrap: wrap;
    gap: 8px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .cat-ov-grid      { grid-template-columns: repeat(3, 1fr); }
    .benefits-grid    { grid-template-columns: repeat(2, 1fr); }
    .footer-grid      { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero-inner  { grid-template-columns: 1fr; text-align: center; gap: 0; }
    .hero-images { display: none; }
    .hero-buttons { justify-content: center; }
    .hero-stats   { justify-content: center; }
    .hero-subtitle, .hero-label { margin-left: auto; margin-right: auto; }
    .cat-section-header { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .cat-ov-grid        { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .cat-products-grid  { grid-template-columns: 1fr; }
    .benefits-grid      { grid-template-columns: 1fr; }
    .testimonials-grid  { grid-template-columns: 1fr; }
    .footer-grid        { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom      { flex-direction: column; text-align: center; }
}
@media (max-width: 400px) {
    .cat-ov-grid { grid-template-columns: repeat(2, 1fr); }
}
