/*
Theme Name: Comercializadora Nico Core Engine
Theme URI: #
Author: Leidy Jaimes
Author URI: #
Description: Ecosistema digital nativo de alto rendimiento (95+ Lighthouse). Diseño único por Leidy Jaimes para Comercializadora Nico.
Version: 1.0.0
Text Domain: nico-core
*/

:root {
    /* Paleta original inspirada en la línea gráfica: negro, dorado, rojo cálido */
    --gold: #c9a84c;
    --gold-light: #e2c97e;
    --gold-dark: #9e7d2a;
    --red-warm: #c4392a;
    --red-glow: #e0523f;
    
    --dark-bg: #0a0a0a;
    --bg-surface: #131313;
    --card-bg: rgba(26, 26, 26, 0.85);
    
    --text-main: #f5f0e8;
    --text-muted: #a89f91;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Variables Híbridas (Light Mode by Default) */
    --bg-primary: #f8f6f0;
    --bg-surface: #ffffff;
    --text-primary: #1a1a1a;
    --text-muted: #5a544c;
    --glass-bg: rgba(248, 246, 240, 0.7);
    --glass-bg-solid: rgba(248, 246, 240, 0.95);
    --glass-border: rgba(201, 168, 76, 0.3);
    --card-bg-hybrid: #ffffff;
}

[data-theme="dark"] {
    --bg-primary: var(--dark-bg);
    --bg-surface: #131313;
    --text-primary: var(--text-main);
    --text-muted: #a89f91;
    --glass-bg: rgba(10, 10, 10, 0.7);
    --glass-bg-solid: rgba(10, 10, 10, 0.95);
    --glass-border: rgba(201, 168, 76, 0.15);
    --card-bg-hybrid: var(--card-bg);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Typography Fluid */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h3 { font-weight: 700; }
h4 {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==============================
   BANNER CAROUSEL / SLIDER
   ============================== */
.banner-carousel {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
    box-shadow: none;
}

.banner-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide.slide-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 5%;
    color: #fff;
}

.banner-label {
    display: inline-block;
    background: var(--gold);
    color: #0a0a0a;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.banner-content h1 {
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.banner-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--gold);
    background: var(--gold);
    color: #0a0a0a;
}

.banner-btn:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
}

.banner-btn-whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
}

.banner-btn-whatsapp:hover {
    background: transparent;
    border-color: #25D366;
    color: #25D366;
}

/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background: var(--gold);
    color: #0a0a0a;
    border-color: var(--gold);
}

.carousel-control.prev { left: 20px; }
.carousel-control.next { right: 20px; }

.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.dot.active, .dot:hover {
    background: var(--gold);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .banner-carousel {
        height: 70vh;
        min-height: 400px;
    }
    .carousel-control {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .carousel-control.prev { left: 10px; }
    .carousel-control.next { right: 10px; }
    .banner-btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
}

/* Header & Glassmorphism oscuro */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: var(--transition);
}

/* Fix for WordPress Admin Bar overlap */
body.admin-bar .glass-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .glass-header {
        top: 46px;
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Header */
.logo-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.6rem;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 3px;
    color: var(--gold);
}

.logo-tagline {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-primary);
    margin-left: 24px;
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.desktop-nav a:hover {
    color: var(--gold);
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--gold);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(10px);
    z-index: 90;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
}

.mobile-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 20px;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 800;
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: var(--gold);
}

/* Main Content */
.main-content {
    padding: 120px 5% 0;
    max-width: 1400px;
    margin: 0 auto;
}

.section-spacing {
    margin-bottom: 80px;
}

/* Section Headings */
.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 10px;
    padding: 6px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    background: rgba(201, 168, 76, 0.05);
}

/* Banner Carousel */
.banner-carousel {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 80px;
    border: 1px solid var(--glass-border);
}

.banner-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.banner-slide {
    flex-shrink: 0;
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.5) 60%, rgba(10,10,10,0.3) 100%);
}

.banner-content {
    position: relative;
    z-index: 2;
    color: var(--text-primary);
    max-width: 600px;
}

.banner-label {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 15px;
    padding: 6px 18px;
    border: 1px solid var(--gold);
    border-radius: 100px;
}

.banner-content h1 { color: var(--text-primary); }

.highlight-gold { color: var(--gold); }

.banner-content p {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    margin: 20px 0 30px;
    color: var(--text-muted);
}

.banner-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--gold);
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 100px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 186, 94, 0.3);
}

.banner-btn svg {
    width: 18px;
    height: 18px;
}

.banner-btn-whatsapp {
    background: #25d366;
    color: white;
}

.banner-btn-whatsapp:hover {
    background: #20bd5a;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.banner-btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.banner-btn-outline:hover {
    background: var(--gold);
    color: var(--dark-bg);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(232, 186, 94, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(232, 186, 94, 0.3);
    color: var(--gold);
    font-size: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-control:hover {
    background: var(--gold);
    color: var(--dark-bg);
}

.carousel-control.prev { left: 20px; }
.carousel-control.next { right: 20px; }

.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(232, 186, 94, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--gold);
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(232, 186, 94, 0.5);
}

/* Ad Banners */
.ad-banner-section { width: 100%; }

.ad-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 40px;
    border-radius: 24px;
    background: var(--card-bg-hybrid);
    border: 1px solid var(--glass-border);
    flex-wrap: wrap;
    gap: 20px;
}

.glass-ad-warm {
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.15) 0%, rgba(232, 186, 94, 0.1) 100%);
    border-color: rgba(255, 59, 59, 0.3);
}

.ribbon-banner .ad-banner {
    background: linear-gradient(135deg, var(--card-bg-hybrid) 0%, rgba(232, 186, 94, 0.05) 100%);
}

.ad-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ad-icon {
    font-size: 2.5rem;
}

.ad-content h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--text-primary);
}

.ad-content p {
    font-size: 0.95rem;
    margin-top: 4px;
    color: var(--text-muted);
}

.ad-btn {
    padding: 12px 28px;
    background: var(--gold);
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ad-btn:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(232, 186, 94, 0.3);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--card-bg-hybrid);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 20px 0;
    line-height: 1.8;
}

.about-features {
    list-style: none;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.feature-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.about-image {
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    min-height: 350px;
    border: 1px solid var(--glass-border);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    grid-auto-rows: 420px;
}

.bento-card {
    background: var(--card-bg-hybrid);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(232, 186, 94, 0.1);
}

.bento-card.span-2 {
    grid-column: span 2;
}

/* Image Wrapper */
.image-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
    background: var(--bg-primary);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bento-card:hover .image-wrapper img {
    transform: scale(1.05);
}

/* Badges */
.badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    z-index: 10;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.badge-new {
    background: rgba(201, 168, 76, 0.9);
    color: var(--bg-color);
    border: 1px solid var(--gold);
}

.badge-hot {
    background: rgba(196, 57, 42, 0.9);
    color: white;
    border: 1px solid var(--red-warm);
}

.badge-season {
    background: rgba(34, 120, 60, 0.9);
    color: white;
    border: 1px solid #2a7a3e;
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-card);
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.view-btn {
    margin-top: auto;
    padding: 12px 24px;
    background: var(--gold);
    color: var(--bg-color);
    border: none;
    border-radius: 100px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.bento-card:hover .view-btn {
    background: var(--gold-light);
    transform: translateX(5px);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.glass-modal {
    position: relative;
    width: 90%;
    max-width: 550px;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    padding: 40px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .glass-modal {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--gold);
    color: var(--bg-color);
    border-color: var(--gold);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.download-btn, .contact-btn {
    padding: 12px 24px;
    border-radius: 100px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-btn {
    background: #25d366;
    color: white;
}

.download-btn:hover {
    background: #20bd5a;
    transform: translateY(-2px);
}

.download-btn svg {
    width: 18px;
    height: 18px;
}

.contact-btn {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.contact-btn:hover {
    background: var(--gold);
    color: var(--bg-color);
}

/* Corporate Footer */
.corporate-footer {
    background: var(--bg-surface);
    color: var(--text-secondary);
    padding: 60px 5% 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand { grid-column: 1; }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-icon {
    font-size: 2.5rem;
}

.footer-logo h3 {
    color: var(--gold);
    font-size: 1.3rem;
}

.footer-slogan {
    font-size: 0.85rem;
    margin-top: 4px;
}

.footer-links a,
.footer-contact a {
    display: block;
    text-decoration: none;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--gold);
}

.footer-contact p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    color: var(--text-secondary);
    width: 42px;
    height: 42px;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--bg-color);
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.social-icons svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 99;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .ad-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .ad-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }

    .bento-card.span-2 {
        grid-column: span 1;
    }
    
    .glass-header {
        width: 95%;
        border-radius: 20px;
        padding: 12px 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }

    .banner-carousel {
        height: 55vh;
        min-height: 400px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .banner-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-grid {
        padding: 30px;
    }
}
/* Elegant Glassmorphism Search Box */
.glass-search-input {
    padding: 10px 35px 10px 20px;
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    width: 220px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.glass-search-input:focus {
    outline: none;
    background: var(--glass-bg-solid);
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.2), inset 0 2px 4px rgba(0,0,0,0.05);
    width: 260px;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    pointer-events: none;
    font-size: 0.9rem;
}

.glass-search-results {
    position: absolute;
    top: 120%;
    right: 0;
    width: 280px;
    border-radius: 16px;
    padding: 15px;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: none;
}
.live-search-container {
    position: relative;
    display: flex;
    align-items: center;
}


/* Client Filter */
.client-filter-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.client-filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.client-filter-btn.active, .client-filter-btn:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
    border-color: var(--gold);
}

/* Dynamic Actions */
.dynamic-catalog-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}
.dynamic-catalog-actions .btn-print, .dynamic-catalog-actions .btn-export {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none !important;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    color: white !important;
    transition: var(--transition);
}
.dynamic-catalog-actions .btn-print {
    background: var(--gold);
    box-shadow: 0 4px 15px rgba(206,154,58,0.3);
}
.dynamic-catalog-actions .btn-export {
    background: #217346;
    box-shadow: 0 4px 15px rgba(33,115,70,0.3);
}
.dynamic-catalog-actions .btn-print:hover, .dynamic-catalog-actions .btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}


/* Theme Toggle Button */
#theme-toggle {
    background: transparent;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    outline: none;
}
#theme-toggle:focus {
    outline: none;
}
#theme-toggle:hover {
    transform: scale(1.1);
}

/* Integrated Search Container */
.live-search-integrated {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 0 15px 0 10px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.live-search-integrated .glass-search-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 10px;
    flex: 1;
    outline: none;
    min-width: 200px;
}
.live-search-integrated .search-icon {
    color: var(--text-muted);
    cursor: pointer;
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Glass Search Input */
.glass-search-input {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 10px;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-primary);
    min-width: 180px;
}
.glass-search-input::placeholder {
    color: var(--text-muted);
}

/* Search Result Items */
.search-result-item {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 10px;
    transition: var(--transition);
    font-size: 0.9rem;
}
.search-result-item:hover {
    background: var(--glass-bg);
}
.search-result-item small {
    color: var(--text-muted);
}

/* Standalone Download Buttons (inside cards) */
.btn-print, .btn-export {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none !important;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    color: white !important;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
}
.btn-print {
    background: var(--gold);
    box-shadow: 0 4px 15px rgba(206,154,58,0.3);
}
.btn-export {
    background: #217346;
    box-shadow: 0 4px 15px rgba(33,115,70,0.3);
}
.btn-print:hover, .btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

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


/* ==============================
   AD BANNER / PAUTAS
   ============================== */
.ad-banner-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}
.ad-banner {
    background: var(--card-bg-hybrid);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.ad-banner:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(201, 168, 76, 0.15);
    transform: translateY(-3px);
}
.ad-banner-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.ad-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ad-banner:hover .ad-banner-img img {
    transform: scale(1.05);
}
.ad-banner-body {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.ad-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}
.ad-text {
    flex: 1;
    min-width: 200px;
}
.ad-text h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.ad-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.ad-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    background: var(--gold);
    color: #0a0a0a;
    border: 2px solid var(--gold);
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.ad-btn:hover {
    background: transparent;
    color: var(--gold);
    transform: translateY(-2px);
}
@media (min-width: 768px) {
    .ad-banner {
        flex-direction: row;
    }
    .ad-banner-img {
        width: 320px;
        height: auto;
        min-height: 200px;
        flex-shrink: 0;
    }
}
@media (max-width: 768px) {
    .ad-banner-body {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
}

