/* --- CSS Variables & Theming --- */
:root {
    --primary-color: #C5A059; /* Sophisticated Gold */
    --primary-dark: #A68549;
    --whatsapp-color: #25D366;
    --whatsapp-dark: #128C7E;
    
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --text-light: #FFFFFF;
    
    --bg-main: #050B18; /* Deep Navy Blue */
    --bg-light: #0A1428;
    --bg-dark: #02060F;
    
    --glass-bg: rgba(5, 11, 24, 0.7);
    --glass-border: rgba(197, 160, 89, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(197, 160, 89, 0.1);
    
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --border-radius: 4px;
    --nav-height: 100px;
}

/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    background-image: 
        linear-gradient(rgba(197, 160, 89, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 160, 89, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

h1 { 
    font-size: 4rem; 
    text-transform: uppercase;
    background: linear-gradient(90deg, #FFFFFF, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.3));
}
h2 { font-size: 2.8rem; text-shadow: 0 0 10px rgba(197, 160, 89, 0.2); }
h3 { font-size: 1.5rem; color: var(--primary-color); }
p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

.section-title {
    margin-bottom: 4rem;
}
.section-title .subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: rgba(0, 255, 102, 0.1);
    color: var(--whatsapp-color);
    border: 1px solid var(--whatsapp-color);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.2), inset 0 0 10px rgba(0, 255, 102, 0.1);
}

.btn-primary:hover {
    background-color: var(--whatsapp-color);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 255, 102, 0.6), inset 0 0 15px rgba(0, 255, 102, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: rgba(0, 240, 255, 0.05);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

/* --- Header & Nav --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary-color);
}

.logo span {
    color: var(--primary-color);
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    background: linear-gradient(to right, #C5A059 0%, #F5E0B0 50%, #C5A059 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(197, 160, 89, 0.5));
    transition: var(--transition);
}

.logo:hover .logo-text {
    filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.8));
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .logo-img {
        height: 50px;
    }
    .logo-text {
        font-size: 1rem;
        letter-spacing: 0;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 0.85rem;
        letter-spacing: 0;
    }
}

.footer-brand .logo-img {
    height: 65px;
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.3));
}



.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--text-light);
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-nav-cta {
    background-color: rgba(197, 160, 89, 0.1);
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-nav-cta::after { display: none; }
.btn-nav-cta:hover { 
    background-color: var(--primary-color); 
    color: #000 !important;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.5);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
}
.header.scrolled .mobile-toggle {
    color: var(--text-main);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--bg-dark); /* Fallback */
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.15),
        rgba(0,0,0,0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 3;
    pointer-events: none;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: saturate(1.2) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(6, 9, 19, 0.95) 0%, rgba(6, 9, 19, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--text-light);
    max-width: 800px;
}

.hero-content h1 {
    color: var(--text-light);
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    color: #CBD5E1;
    font-size: 1.3rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.features-list {
    margin-top: 2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.features-list i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    padding: 1rem;
}

.image-wrapper img {
    width: 100%;
    border-radius: calc(var(--border-radius) - 8px);
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: rgba(6, 9, 19, 0.9);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
    backdrop-filter: blur(10px);
}
.experience-badge .number {
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

/* --- Products Section --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-light);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
    border-color: rgba(0, 240, 255, 0.5);
}

.product-img {
    height: 220px;
    overflow: hidden;
}

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

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- Services Section --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--glass-shadow), inset 0 0 20px rgba(0, 240, 255, 0.05);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0,240,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}
.glass-card:hover::before { opacity: 1; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--bg-light);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(197, 160, 89, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto 2rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.service-icon i {
    transform: rotate(-45deg);
    font-size: 2.5rem;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: white;
}

/* --- CTA Section --- */
.cta {
    background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&q=80&w=1920') center/cover fixed;
    position: relative;
    color: white;
    padding: 8rem 0;
}

.cta-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85);
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta h2 { color: white; }
.cta p { color: #E2E8F0; font-size: 1.2rem; margin-bottom: 2rem; }

/* --- Footer --- */
.footer {
    background-color: var(--bg-dark);
    color: #94A3B8;
    padding: 4rem 0 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul li, .footer-contact ul li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.footer-bottom {
    background-color: #0B1120;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* --- Floating WhatsApp --- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: rgba(0, 255, 102, 0.1);
    border: 2px solid var(--whatsapp-color);
    color: var(--whatsapp-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
    backdrop-filter: blur(5px);
}

.floating-whatsapp:hover {
    background-color: var(--whatsapp-color);
    color: #000;
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.8);
}

/* --- Animations --- */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(0, 255, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 102, 0); }
}

.cta-pulse {
    animation: pulse 2s infinite;
}

/* Scroll Animations */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.slide-left { opacity: 0; transform: translateX(50px); transition: all 0.8s ease; }
.slide-right { opacity: 0; transform: translateX(-50px); transition: all 0.8s ease; }

.fade-up.visible, .slide-left.visible, .slide-right.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* --- Swiper Slider Styles --- */
.ultimo-trabajo-swiper {
    padding-bottom: 50px; /* Space for pagination */
    padding-top: 20px;
}

.swiper-pagination-bullet {
    background: var(--text-muted);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color);
    background: rgba(6, 9, 19, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--primary-color);
    color: var(--bg-main);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .about-grid, .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .experience-badge {
        bottom: 10px;
        left: 10px;
    }
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
    }
    .nav-menu.active { left: 0; }
    
    .nav-link { color: var(--text-main); font-size: 1.2rem; }
    
    .header { background: var(--bg-main); box-shadow: 0 2px 10px rgba(0,0,0,0.5); }
    .logo, .mobile-toggle { color: var(--text-main); }
    
    .hero-content h1 { font-size: 2.5rem; }
    
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
}

/* --- Gallery Grid / Slider --- */
.gallery-grid {
    /* No longer a grid, handled by Swiper */
}

.gallery-swiper {
    padding-bottom: 50px;
    padding-top: 10px;
}

.gallery-swiper .swiper-slide {
    height: 350px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    background: var(--bg-light);
    border: 1px solid rgba(0, 240, 255, 0.1);
    transition: var(--transition);
    position: relative;
    height: 100% !important;
    width: 100% !important;
    display: block !important;
}

.gallery-item a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: relative;
}

.gallery-media,
.gallery-swiper video, 
.gallery-swiper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.2);
    border-color: rgba(0, 240, 255, 0.5);
}

.gallery-media {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-media {
    transform: scale(1.05);
}

.gallery-item:hover .zoom-icon {
    opacity: 1 !important;
}
