@import url('variables.css');

/* ============================================================
   LAYOUT & SECTION STYLES - Cajita Musical v2.0
   ============================================================ */

/* --- Section Spacing --- */
.section { padding: 5rem 0; }
.section-tight { padding: 3rem 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.section-header h2 { margin: 0; font-size: 1.6rem; letter-spacing: -0.5px; }
.section-link { font-weight: 700; color: var(--brand-primary); font-size: 0.85rem; text-decoration: none; transition: var(--transition); }
.section-link:hover { text-decoration: underline; }

/* --- Hero Slider --- */
.hero-slider { background: var(--brand-secondary); position: relative; overflow: hidden; height: 520px; padding-bottom: 30px; }
.hero-slider .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s ease-in-out; display: flex; align-items: center; }
.hero-slider .slide.active { opacity: 1; z-index: 2; }
.hero-slider .slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.3) 100%); }
.hero-slider .slide-content { position: relative; z-index: 10; max-width: 650px; }
.hero-badge { display: inline-block; background: var(--brand-primary); color: white; padding: 6px 16px; border-radius: 6px; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.2rem; }
.hero-slider h1 { font-size: clamp(2rem, 5vw, 3.8rem); color: white; line-height: 1.1; margin-bottom: 1rem; font-weight: 900; }
.hero-slider p { font-size: clamp(1rem, 2vw, 1.3rem); color: #94a3b8; margin-bottom: 2.5rem; line-height: 1.5; }
.hero-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--brand-primary); color: white; padding: 1.1rem 2.8rem; border-radius: 8px; font-weight: 800; text-decoration: none; font-size: 1rem; transition: all 0.3s; border: none; cursor: pointer; }
.hero-btn:hover { background: var(--brand-primary-hover); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(249,115,22,0.4); }
.hero-dots { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 100; }
.hero-dots .dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; transition: all 0.3s; border: 2px solid transparent; }
.hero-dots .dot:hover { background: rgba(255,255,255,0.7); }
.hero-dots .dot.active { background: var(--brand-primary); border-color: rgba(255,255,255,0.6); transform: scale(1.25); }
.hero-orb { position: absolute; border-radius: 50%; opacity: 0.08; filter: blur(80px); pointer-events: none; }
.hero-orb-1 { width: 400px; height: 400px; background: var(--brand-primary); top: -100px; right: -50px; }
.hero-orb-2 { width: 250px; height: 250px; background: #3b82f6; bottom: -50px; right: 200px; }

/* --- Trust Bar --- */
.trust-bar { background: #f8fafc; border-bottom: 1px solid var(--border-soft); padding: 0.6rem 0; font-size: 0.75rem; font-weight: 700; }
.trust-bar-content { display: flex; justify-content: flex-end; gap: 2.5rem; color: var(--text-muted); }
.trust-badge { display: flex; align-items: center; gap: 6px; }
.trust-badge i { color: var(--brand-primary); }

/* --- Trust Cards --- */
.trust-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 4rem; }
.trust-card { background: white; padding: 1.5rem; border-radius: var(--radius-md); border: 1px solid var(--border-soft); display: flex; align-items: center; gap: 1rem; transition: var(--transition); }
.trust-card:hover { border-color: var(--brand-primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.trust-card .tc-icon { font-size: 1.8rem; width: 50px; height: 50px; background: #fff7ed; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-card .tc-icon i { color: var(--brand-primary); }
.trust-card .tc-title { font-weight: 800; font-size: 0.9rem; }
.trust-card .tc-sub { font-size: 0.72rem; color: var(--text-muted); }

/* --- Category Cards --- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; margin-bottom: 5rem; }
.cat-card { 
    background: white; text-align: center; padding: 2rem 1.2rem; 
    border-radius: var(--radius-lg); border: 1px solid var(--border-soft); 
    text-decoration: none; color: inherit; transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    position: relative; overflow: hidden;
}
.cat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--brand-primary); opacity: 0; transition: opacity 0.3s;
}
.cat-card:hover { 
    border-color: var(--brand-primary); box-shadow: var(--shadow-md); transform: translateY(-6px); 
}
.cat-card:hover::before { opacity: 1; }
.cat-card .cat-icon { 
    width: 72px; height: 72px; border-radius: 20px; 
    display: flex; align-items: center; justify-content: center; 
    transition: all 0.35s;
}
.cat-card:hover .cat-icon { transform: scale(1.1); }
.cat-card .cat-icon i { font-size: 1.8rem; }
.cat-card .cat-icon img { max-width: 55%; max-height: 55%; object-fit: contain; }
.cat-card .cat-name { 
    font-size: 0.85rem; font-weight: 800; text-transform: uppercase; 
    letter-spacing: 0.5px; color: var(--brand-secondary);
}
.cat-card .cat-count {
    font-size: 0.7rem; font-weight: 600; color: var(--text-muted);
    background: var(--bg-main); padding: 3px 12px; border-radius: 20px;
}

/* Colores por categoría */
.cat-color-1 .cat-icon { background: #fff7ed; } .cat-color-1 .cat-icon i { color: #f97316; }
.cat-color-2 .cat-icon { background: #eff6ff; } .cat-color-2 .cat-icon i { color: #3b82f6; }
.cat-color-3 .cat-icon { background: #f0fdf4; } .cat-color-3 .cat-icon i { color: #16a34a; }
.cat-color-4 .cat-icon { background: #fefce8; } .cat-color-4 .cat-icon i { color: #eab308; }
.cat-color-5 .cat-icon { background: #fdf2f8; } .cat-color-5 .cat-icon i { color: #ec4899; }
.cat-color-6 .cat-icon { background: #f5f3ff; } .cat-color-6 .cat-icon i { color: #8b5cf6; }
.cat-color-7 .cat-icon { background: #fef2f2; } .cat-color-7 .cat-icon i { color: #ef4444; }
.cat-color-8 .cat-icon { background: #f0fdfa; } .cat-color-8 .cat-icon i { color: #14b8a6; }

/* --- Featured Section --- */
.featured-section { background: var(--brand-secondary); border-radius: var(--radius-lg); padding: 2.5rem; position: relative; overflow: hidden; }
.featured-section::before { content: ''; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px; background: var(--brand-primary); opacity: 0.05; border-radius: 50%; filter: blur(40px); }
.featured-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; color: white; position: relative; z-index: 1; }
.featured-header h2 { color: white; margin: 0; }

/* --- Brands Marquee --- */
.marquee-wrap { margin-bottom: 5rem; overflow: hidden; }
.marquee-wrap .marquee-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.marquee-track { background: white; padding: 2.5rem 0; border-radius: var(--radius-lg); border: 1px solid var(--border-soft); overflow: hidden; position: relative; }
.marquee-track::before, .marquee-track::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.marquee-track::before { left: 0; background: linear-gradient(90deg, white 0%, transparent 100%); }
.marquee-track::after { right: 0; background: linear-gradient(270deg, white 0%, transparent 100%); }
.marquee-inner { display: flex; width: max-content; animation: marquee 35s linear infinite; }
.marquee-inner:hover { animation-play-state: paused; }
.marquee-brand { width: 170px; height: 55px; display: flex; align-items: center; justify-content: center; margin: 0 35px; flex-shrink: 0; }
.marquee-brand img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(100%); opacity: 0.4; transition: all 0.3s; }
.marquee-brand:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.08); }
.marquee-brand span { font-weight: 800; color: #cbd5e1; font-size: 1rem; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Scroll Reveal --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Mobile --- */
@media (max-width: 768px) {
    .section { padding: 3rem 0; }
    .hero-slider { height: 400px; }
    .hero-slider h1 { font-size: 1.8rem; }
    .featured-section { padding: 1.5rem; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .cat-card { padding: 1.2rem 0.6rem; }
    .cat-card .cat-icon { width: 50px; height: 50px; border-radius: 14px; }
    .cat-card .cat-icon i { font-size: 1.3rem; }
    .cat-card .cat-name { font-size: 0.7rem; }
    .trust-cards { grid-template-columns: 1fr; }
    .marquee-brand { width: 120px; margin: 0 20px; }
    .trust-bar-content { justify-content: center; flex-wrap: wrap; gap: 1rem; }
}
@media (max-width: 480px) {
    .hero-slider { height: 320px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
