/*
Theme Name: Unique Exotics
Theme URI: https://uniqueexotics.com
Author: Unique Exotics Team
Author URI: https://uniqueexotics.com
Description: Tema premium de WordPress para Unique Exotics -  TALLER DE PERSONALIZACION DE COCHES EXOTICOS para vehículos de alta gama. Diseño oscuro con acentos amarillos, totalmente responsive con Tailwind CSS.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: unique-exotics
Tags: custom-menu, custom-logo, featured-images, full-width-template, theme-options, dark, luxury, automotive
*/

/* =====================================================
   UNIQUE EXOTICS - VARIABLES CSS PERSONALIZADAS
   ===================================================== */

:root {
    /* Colores Principales */
    --ue-black: #0a0a0a;
    --ue-black-light: #1a1a1a;
    --ue-black-medium: #141414;
    --ue-yellow: #f5c518;
    --ue-yellow-light: #ffd93d;
    --ue-yellow-dark: #d4a90f;
    --ue-white: #ffffff;
    --ue-gray: #888888;
    --ue-gray-light: #cccccc;
    --ue-gray-dark: #333333;
    
    /* Gradientes */
    --ue-gradient-gold: linear-gradient(135deg, #f5c518 0%, #ffd93d 50%, #d4a90f 100%);
    --ue-gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    
    /* Tipografía */
    --ue-font-primary: 'Montserrat', sans-serif;
    --ue-font-secondary: 'Playfair Display', serif;
    
    /* Transiciones */
    --ue-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --ue-transition-fast: all 0.2s ease;
    --ue-transition-slow: all 0.6s ease;
}

/* =====================================================
   ESTILOS BASE
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--ue-font-primary);
    background-color: var(--ue-black);
    color: var(--ue-white);
    line-height: 1.6;
    overflow-x: clip;
    max-width: 100vw;
}

/* =====================================================
   TIPOGRAFÍA PERSONALIZADA
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ue-font-secondary);
    font-weight: 700;
    line-height: 1.2;
}

.heading-xl {
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -0.02em;
}

.heading-lg {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.heading-md {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.text-gradient {
    background: var(--ue-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   BOTONES
   ===================================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--ue-yellow);
    color: var(--ue-black);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: var(--ue-transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--ue-transition);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--ue-yellow-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 197, 24, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--ue-white);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid var(--ue-yellow);
    cursor: pointer;
    transition: var(--ue-transition);
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--ue-yellow);
    color: var(--ue-black);
    transform: translateY(-2px);
}

/* =====================================================
   HEADER STYLES
   ===================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--ue-transition);
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-logo img {
    height: 50px;
    width: auto;
    transition: var(--ue-transition);
}

.site-header.scrolled .header-logo img {
    height: 40px;
}

/* Navegación */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    color: var(--ue-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--ue-transition);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ue-yellow);
    transition: var(--ue-transition);
}

.main-navigation a:hover {
    color: var(--ue-yellow);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Menú Móvil */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--ue-white);
    transition: var(--ue-transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-background img,
.hero-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Poster image para video hero */
.hero-poster {
    z-index: 1;
}

#hero-video {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10, 10, 10, 0.9) 0%,
        rgba(10, 10, 10, 0.6) 50%,
        rgba(10, 10, 10, 0.3) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--ue-yellow);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.hero-subtitle::before {
    content: '';
    width: 60px;
    height: 2px;
    background: var(--ue-yellow);
}

.hero-title {
    color: var(--ue-white);
    margin-bottom: 1.5rem;
}

.hero-description {
    color: var(--ue-gray-light);
    font-size: 1.125rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

/* =====================================================
   FEATURES / STATS SECTION
   ===================================================== */

.features-section {
    background: var(--ue-black-light);
    position: relative;
}

.feature-card {
    background: var(--ue-black-medium);
    border: 1px solid var(--ue-gray-dark);
    padding: 2.5rem;
    text-align: center;
    transition: var(--ue-transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ue-yellow);
    transform: scaleX(0);
    transition: var(--ue-transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--ue-yellow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ue-yellow);
    border-radius: 50%;
    color: var(--ue-yellow);
    font-size: 2rem;
    transition: var(--ue-transition);
}

.feature-card:hover .feature-icon {
    background: var(--ue-yellow);
    color: var(--ue-black);
}

.feature-title {
    color: var(--ue-white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-text {
    color: var(--ue-gray);
}

/* Contador */
.counter-number {
    font-family: var(--ue-font-secondary);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--ue-yellow);
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */

.about-section {
    background: var(--ue-black);
    position: relative;
    overflow: hidden;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--ue-yellow);
    z-index: -1;
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.about-badge {
    position: absolute;
    bottom: -30px;
    right: 30px;
    background: var(--ue-yellow);
    color: var(--ue-black);
    padding: 1.5rem 2rem;
    text-align: center;
}

.about-badge .number {
    font-family: var(--ue-font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.about-badge .text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--ue-yellow);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.about-subtitle::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--ue-yellow);
}

.about-list {
    list-style: none;
    margin-top: 2rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--ue-gray-dark);
}

.about-list li svg {
    color: var(--ue-yellow);
    flex-shrink: 0;
}

/* =====================================================
   FLEET / SERVICES SECTION
   ===================================================== */

.fleet-section {
    background: var(--ue-black-light);
}

.fleet-card {
    position: relative;
    overflow: hidden;
    background: var(--ue-black-medium);
    transition: var(--ue-transition);
}

.fleet-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.fleet-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--ue-transition-slow);
}

.fleet-card:hover .fleet-card-image img {
    transform: scale(1.1);
}

.fleet-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, transparent 60%);
    opacity: 0;
    transition: var(--ue-transition);
}

.fleet-card:hover .fleet-card-overlay {
    opacity: 1;
}

.fleet-card-content {
    padding: 1.5rem;
    transition: var(--ue-transition);
}

.fleet-card:hover .fleet-card-content {
    background: var(--ue-yellow);
}

.fleet-card-title {
    color: var(--ue-white);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    transition: var(--ue-transition);
}

.fleet-card:hover .fleet-card-title {
    color: var(--ue-black);
}

.fleet-card-price {
    color: var(--ue-yellow);
    font-weight: 600;
    transition: var(--ue-transition);
}

.fleet-card:hover .fleet-card-price {
    color: var(--ue-black);
}

.fleet-card-link {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--ue-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ue-black);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--ue-transition);
}

.fleet-card:hover .fleet-card-link {
    transform: translateY(0);
    opacity: 1;
}

/* =====================================================
   CTA SECTION
   ===================================================== */

.cta-section {
    position: relative;
    background: var(--ue-black);
    overflow: hidden;
}

.cta-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-discount {
    background: var(--ue-yellow);
    color: var(--ue-black);
    padding: 2rem;
    text-align: center;
}

.cta-discount .percentage {
    font-family: var(--ue-font-secondary);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
}

/* =====================================================
   TESTIMONIALS SECTION
   ===================================================== */

.testimonials-section {
    background: var(--ue-black-medium);
}

.testimonial-card {
    background: var(--ue-black-light);
    padding: 2.5rem;
    position: relative;
    border: 1px solid var(--ue-gray-dark);
    transition: var(--ue-transition);
}

.testimonial-card:hover {
    border-color: var(--ue-yellow);
}

.testimonial-quote {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 4rem;
    color: var(--ue-yellow);
    opacity: 0.3;
    font-family: serif;
    line-height: 1;
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-stars svg {
    color: var(--ue-yellow);
    width: 20px;
    height: 20px;
}

.testimonial-text {
    color: var(--ue-gray-light);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ue-yellow);
}

.testimonial-author-name {
    color: var(--ue-white);
    font-weight: 600;
}

.testimonial-author-role {
    color: var(--ue-yellow);
    font-size: 0.875rem;
}

/* =====================================================
   FOOTER STYLES
   ===================================================== */

.site-footer {
    background: var(--ue-black);
    border-top: 1px solid var(--ue-gray-dark);
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: var(--ue-gray);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ue-black-light);
    color: var(--ue-white);
    border: 1px solid var(--ue-gray-dark);
    transition: var(--ue-transition);
}

.footer-social a:hover {
    background: var(--ue-yellow);
    color: var(--ue-black);
    border-color: var(--ue-yellow);
}

.footer-title {
    color: var(--ue-white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--ue-yellow);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--ue-gray);
    text-decoration: none;
    transition: var(--ue-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--ue-yellow);
    padding-left: 0.5rem;
}

.footer-contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--ue-gray);
}

.footer-contact-item svg {
    color: var(--ue-yellow);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.footer-bottom {
    background: var(--ue-black-medium);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--ue-gray);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: var(--ue-yellow);
    text-decoration: none;
}

/* =====================================================
   ANIMACIONES AOS PERSONALIZADAS
   ===================================================== */

[data-aos="fade-up"] {
    transform: translateY(50px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

[data-aos="fade-left"] {
    transform: translateX(50px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
    opacity: 1;
}

/* =====================================================
   RESPONSIVE STYLES
   ===================================================== */

@media (max-width: 1024px) {
    /* El menú móvil usa Alpine.js con translate-x-full */
    /* Asegurar que no cause overflow horizontal */
    .main-navigation {
        overflow: hidden;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .main-navigation a {
        font-size: 1.125rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
    
    .about-image-wrapper::before {
        display: none;
    }
    
    .about-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.75rem;
    }
    
    .hero-section {
        min-height: 80vh;
    }
}

/* =====================================================
   UTILIDADES ADICIONALES
   ===================================================== */

.section-padding {
    padding: 6rem 0;
}

.section-padding-lg {
    padding: 8rem 0;
}

.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f5c518' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--ue-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: var(--ue-transition-slow);
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--ue-gray-dark);
    border-top-color: var(--ue-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--ue-yellow);
    color: var(--ue-black);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--ue-transition);
    z-index: 999;
    border: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--ue-yellow-light);
    transform: translateY(-5px);
}

/* =====================================================
   BRANDS / MARCAS PARTNERS SECTION
   ===================================================== */

.brands-section {
    overflow: hidden;
}

.brands-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.brand-item {
    flex: 0 0 auto;
}

.brand-item img {
    max-width: 120px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.brand-item:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(245, 197, 24, 0.5));
}

/* =====================================================
   STATS PARALLAX SECTION
   ===================================================== */

.stats-parallax-section {
    position: relative;
}

.stats-bg-image {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Fix parallax en móvil (iOS no soporta background-attachment: fixed) */
@media (max-width: 1024px) {
    .stats-bg-image {
        background-attachment: scroll;
    }
}

.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(10, 10, 10, 0.7);
}

.stat-number {
    line-height: 1;
}

/* Features Bar */
.feature-item {
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: var(--ue-yellow);
    color: var(--ue-black);
}

.feature-icon {
    transition: all 0.3s ease;
}

/* =====================================================
   NOW PLAYING AUDIO OVERLAY
   ===================================================== */

.now-playing-overlay {
    pointer-events: auto;
}

.now-playing-container {
    min-width: 280px;
}

/* Equalizer Animation */
.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.eq-bar {
    width: 3px;
    background: var(--ue-yellow);
    border-radius: 2px;
    animation: equalizer 0.8s ease-in-out infinite;
}

.eq-bar:nth-child(1) {
    height: 60%;
    animation-delay: 0s;
}

.eq-bar:nth-child(2) {
    height: 100%;
    animation-delay: 0.2s;
}

.eq-bar:nth-child(3) {
    height: 40%;
    animation-delay: 0.4s;
}

.eq-bar:nth-child(4) {
    height: 80%;
    animation-delay: 0.6s;
}

@keyframes equalizer {
    0%, 100% {
        height: 20%;
    }
    50% {
        height: 100%;
    }
}

/* Pausar animación cuando el audio está pausado */
.now-playing-overlay.paused .eq-bar {
    animation-play-state: paused;
}

/* Audio button hover effects */
.audio-btn {
    transition: all 0.3s ease;
}

.audio-btn:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 640px) {
    .now-playing-overlay {
        left: auto !important;
        right: 1rem !important;
        bottom: 5rem !important; /* Arriba del botón de WhatsApp */
    }
    
    .now-playing-container {
        min-width: auto;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }
    
    /* Ocultar texto en móvil - solo icono y botón */
    .now-playing-info {
        display: none !important;
    }
    
    /* Ocultar botón cerrar en móvil */
    #audio-close {
        display: none !important;
    }
    
    .now-playing-controls {
        margin-left: 0;
    }
    
    /* Botón más pequeño en móvil */
    .now-playing-controls #audio-toggle {
        width: 2.25rem;
        height: 2.25rem;
    }
    
    .now-playing-controls #audio-toggle svg {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    .equalizer {
        height: 14px;
    }
    
    .eq-bar {
        width: 2px;
    }
}

/* =====================================================
   NUESTROS TRABAJOS - GALERÍA EDITORIAL (Hasta 12 columnas)
   ===================================================== */

.trabajos-grid-wrapper {
    position: relative;
}

.trabajos-grid {
    --grid-cols: 4; /* Default, se sobrescribe con inline style */
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0.5rem;
    position: relative;
}

/* Móvil grande: 2 columnas */
@media (min-width: 480px) {
    .trabajos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Tablet: mitad de columnas configuradas (min 3) */
@media (min-width: 768px) {
    .trabajos-grid {
        grid-template-columns: repeat(calc(var(--grid-cols) / 2), 1fr);
        gap: 0.875rem;
    }
    
    /* Mínimo 3 columnas en tablet */
    .trabajos-grid[data-columns="4"],
    .trabajos-grid[data-columns="5"],
    .trabajos-grid[data-columns="6"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* PC Normal (1024px+): TODAS las columnas configuradas */
@media (min-width: 1024px) {
    .trabajos-grid {
        grid-template-columns: repeat(var(--grid-cols), 1fr) !important;
        gap: 1rem;
    }
}

.trabajo-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform: translateZ(0);
    will-change: transform;
}

/* Solo zoom en hover, sin overlay oscuro */
.trabajo-item img,
.trabajo-item video {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.trabajo-item:hover img,
.trabajo-item:hover video {
    transform: scale(1.1);
}

/* Tablet: ajustar items que excedan columnas disponibles */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Limitar items grandes a la mitad de columnas */
    .trabajos-grid .trabajo-item[style*="grid-column: span 4"],
    .trabajos-grid .trabajo-item[style*="grid-column: span 5"],
    .trabajos-grid .trabajo-item[style*="grid-column: span 6"] {
        grid-column: span 3 !important;
    }
    
    .trabajos-grid .trabajo-item[style*="grid-column: span 7"],
    .trabajos-grid .trabajo-item[style*="grid-column: span 8"],
    .trabajos-grid .trabajo-item[style*="grid-column: span 9"],
    .trabajos-grid .trabajo-item[style*="grid-column: span 10"],
    .trabajos-grid .trabajo-item[style*="grid-column: span 11"],
    .trabajos-grid .trabajo-item[style*="grid-column: span 12"] {
        grid-column: span 3 !important;
    }
}

/* Móvil: ajustar items grandes */
@media (max-width: 767px) {
    .trabajos-grid .trabajo-item[style*="grid-column: span 3"],
    .trabajos-grid .trabajo-item[style*="grid-column: span 4"],
    .trabajos-grid .trabajo-item[style*="grid-column: span 5"],
    .trabajos-grid .trabajo-item[style*="grid-column: span 6"],
    .trabajos-grid .trabajo-item[style*="grid-column: span 7"],
    .trabajos-grid .trabajo-item[style*="grid-column: span 8"],
    .trabajos-grid .trabajo-item[style*="grid-column: span 9"],
    .trabajos-grid .trabajo-item[style*="grid-column: span 10"],
    .trabajos-grid .trabajo-item[style*="grid-column: span 11"],
    .trabajos-grid .trabajo-item[style*="grid-column: span 12"] {
        grid-column: span 2 !important;
    }
    
    .trabajos-grid .trabajo-item[style*="grid-row: span 3"],
    .trabajos-grid .trabajo-item[style*="grid-row: span 4"] {
        grid-row: span 2 !important;
    }
    
    .trabajos-grid .trabajo-item {
        min-height: 150px !important;
    }
}

/* Móvil pequeño: todo a 1 columna */
@media (max-width: 479px) {
    .trabajos-grid .trabajo-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: 200px !important;
    }
}

/* Móvil pequeño */
@media (max-width: 640px) {
    .trabajos-grid {
        max-height: none !important;
    }
    
    .trabajos-fade-overlay {
        display: none;
    }
}

/* Fade overlay gradient */
.trabajos-fade-overlay {
    background: linear-gradient(
        to top,
        var(--ue-black) 0%,
        rgba(10, 10, 10, 0.95) 20%,
        rgba(10, 10, 10, 0.7) 50%,
        rgba(10, 10, 10, 0) 100%
    );
}

/* Ver Todos Button */
.trabajos-section .inline-flex.bg-ue-yellow {
    position: relative;
    z-index: 20;
}

/* Archive page - sin fade */
.gallery-section .trabajos-grid {
    max-height: none !important;
    overflow: visible !important;
}

/* =====================================================
   PAGINATION STYLES
   ===================================================== */

.pagination-wrapper .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-wrapper .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--ue-black-medium);
    color: var(--ue-white);
    font-weight: 600;
    text-decoration: none;
    transition: var(--ue-transition);
    border: 1px solid transparent;
}

.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
    background: var(--ue-yellow);
    color: var(--ue-black);
    border-color: var(--ue-yellow);
}

.pagination-wrapper .prev,
.pagination-wrapper .next {
    background: transparent;
    border: 1px solid var(--ue-gray-dark);
}

.pagination-wrapper .prev:hover,
.pagination-wrapper .next:hover {
    background: var(--ue-yellow);
    border-color: var(--ue-yellow);
}

.pagination-wrapper .dots {
    background: transparent;
    pointer-events: none;
}

/* =====================================================
   TOPBAR STYLES
   ===================================================== */

.topbar {
    position: relative;
    z-index: 50;
    border-bottom: 1px solid rgba(51, 51, 51, 0.3);
}

.topbar a:hover svg {
    transform: scale(1.1);
}

/* =====================================================
   FILTER BUTTONS
   ===================================================== */

.filter-btn {
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ue-yellow);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before {
    transform: translateX(0);
}

/* =====================================================
   SERVICES 3D SCROLL-DRIVEN SECTION
   ===================================================== */

.services-3d-section {
    position: relative;
    overflow: hidden;
}

.services-3d-sticky {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

#services-3d-canvas {
    display: block;
}

/* Service text cards - stacked, only active one shows */
.service-3d-card {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(40px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 420px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(196, 163, 90, 0.15);
    padding: 2rem;
    pointer-events: auto;
}

.service-3d-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Progress dots */
.svc3d-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(196, 163, 90, 0.25);
    cursor: pointer;
    transition: all 0.4s ease;
}

.svc3d-dot.active {
    background: var(--ue-yellow);
    box-shadow: 0 0 12px rgba(196, 163, 90, 0.5);
    transform: scale(1.3);
}

/* Mobile: 3D section adjustments */
@media (max-width: 1023px) {
    .services-3d-wrapper {
        height: 500vh !important;
    }

    /* Full-width overlay container sits at the top */
    .services-3d-sticky .absolute.inset-0.z-10 {
        display: flex;
        align-items: flex-start !important;
    }

    .services-3d-sticky .absolute.inset-0.z-10 > .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        align-items: flex-start !important;
    }

    .services-3d-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }

    .service-3d-card {
        max-width: 100% !important;
        width: 100% !important;
        padding: 1rem 1.25rem;
        padding-top: 70px;
        background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95) 50%, rgba(10, 10, 10, 0) 100%);
        border: none;
        border-radius: 0;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateY(-10px) !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s ease;
    }

    .service-3d-card.active {
        transform: translateY(0) !important;
        opacity: 1;
        visibility: visible;
    }

    .service-3d-card h2 {
        font-size: 1.35rem !important;
        margin-bottom: 0.25rem !important;
    }

    .service-3d-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 0.25rem !important;
    }

    .service-3d-card p {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.4 !important;
    }

    .service-3d-card .flex.items-center.gap-3.mb-4 {
        margin-bottom: 0.35rem !important;
    }

    .service-3d-card .w-12.h-12 {
        width: 2rem !important;
        height: 2rem !important;
    }

    .service-3d-card .w-12.h-12 svg {
        width: 1rem !important;
        height: 1rem !important;
    }

    .service-3d-card .flex.flex-wrap.gap-2 {
        gap: 0.25rem !important;
    }
    
    .service-3d-card .flex.flex-wrap.gap-2 span {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.4rem !important;
    }

    .service-3d-card .flex.items-center.gap-2.mt-2 span {
        width: 1.1rem !important;
        height: 1.1rem !important;
    }

    .services-3d-progress {
        bottom: 16px !important;
    }

    #svc3d-label {
        display: none;
    }
}

@media (max-width: 640px) {
    .services-3d-wrapper {
        height: 400vh !important;
    }
}