/* Variables Avanzadas */
:root {
    --bg-dark: #050507; /* Negro más profundo con toque azul/púrpura sutil */
    --bg-card: rgba(20, 20, 25, 0.6);
    --primary: #FFD700; /* Oro intenso */
    --primary-hover: #F2C900;
    --text-main: #FFFFFF;
    --text-muted: #A0A0AB;
    --border: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(255, 215, 0, 0.2);
    --gradient-gold: linear-gradient(135deg, #FFD700, #B8860B);
    --glass-blur: blur(16px);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tipografía Especial */
.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-title.left {
    text-align: left;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Utilidades */
.mt-xl { margin-top: 5rem; }
.mt-xxl { margin-top: 8rem; }
.icon-sm { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }

.old-price {
    text-decoration: line-through;
    font-size: 0.5em;
    color: var(--text-muted);
    margin-right: 8px;
    font-weight: 500;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 7, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* Botones */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: #FFF;
    color: #000;
}

.btn-outline {
    border-color: var(--border);
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.05);
}

.full-width { width: 100%; }

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.glow-bg {
    position: absolute;
    top: 20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.stat { display: flex; flex-direction: column; }
.stat-number { font-size: 2rem; font-weight: 800; font-family: 'Outfit'; color: var(--text-main); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* Bento Grid Hero Visual */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1.5rem;
}

.bento-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

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

.bento-item:hover img {
    transform: scale(1.05);
}

.img-1 { }
.img-2 { }
.img-3 { }
.img-4 { }

/* Portafolio Masonry */
.portfolio-section { padding: 8rem 0; background: #020202; }

.masonry-grid {
    column-count: 2;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.7s ease;
}

.masonry-item:hover img { transform: scale(1.08); }

/* Tilt Card Effect base (JS maneja transform) */
.tilt-card {
    transform-style: preserve-3d;
    will-change: transform;
}

/* Services */
.services-section { padding: 8rem 0; }

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

.service-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}

.service-card:hover { border-color: var(--border-glow); }

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.service-card p { color: var(--text-muted); }

/* Pricing */
.pricing-section { padding: 8rem 0; background: #020202; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: var(--glass-blur);
}

.pricing-card.popular {
    background: rgba(25, 20, 5, 0.8);
    border: 1px solid var(--primary);
    transform: scale(1.05);
    z-index: 2;
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-header { margin-bottom: 2rem; text-align: center; }
.card-icon { width: 40px; height: 40px; color: var(--primary); margin-bottom: 1rem; }
.card-header h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--text-muted); }
.card-header .price { font-size: 3rem; font-weight: 800; font-family: 'Outfit'; color: var(--text-main); }

.features { list-style: none; margin-bottom: 2.5rem; flex-grow: 1; }
.features li { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; color: var(--text-muted); font-size: 0.95rem; }
.features li svg { color: var(--primary); width: 18px; flex-shrink: 0; }

.custom-banner {
    margin-top: 5rem;
    background: linear-gradient(90deg, rgba(20,20,25,0.8), rgba(40,35,10,0.8));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* FAQ */
.faq-section { padding: 8rem 0; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 2rem 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
}
.faq-question .arrow { transition: transform 0.3s; color: var(--primary); }
.faq-question.active .arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer p { padding-bottom: 2rem; color: var(--text-muted); }

/* Contacto */
.contact-section { padding: 8rem 0; background: #020202; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.contact-list { list-style: none; margin-top: 2rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; color: var(--text-muted); }
.contact-list li svg { color: var(--primary); }

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    backdrop-filter: var(--glass-blur);
    padding: 3rem;
    border-radius: 24px;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 12px;
    font-family: inherit;
    transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0,0,0,0.8);
}

.error-text { color: #ff4d4d; font-size: 0.8rem; margin-top: 0.5rem; display: block; }
.form-status { margin-top: 1rem; font-weight: 500; text-align: center; }
.form-status.success { color: #25d366; }
.form-status.error { color: #ff4d4d; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 3rem 0; }
.footer-container { display: flex; justify-content: space-between; align-items: center; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--text-muted); transition: color 0.3s; }
.footer-social a:hover { color: var(--primary); }

/* WhatsApp */
.whatsapp-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.whatsapp-tooltip {
    background: #FFF;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.whatsapp-wrapper:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }
.whatsapp-btn {
    width: 65px;
    height: 65px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
}

/* Responsivo */
@media (max-width: 968px) {
    .hero-container, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-content { text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .custom-banner { flex-direction: column; text-align: center; gap: 2rem; }
    .pricing-card.popular { transform: scale(1); }
    .footer-container { flex-direction: column; gap: 1.5rem; text-align: center; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .masonry-grid { column-count: 1; }
}

/* Transformation Section (Before/After) */
.transformation-section { padding: 8rem 0; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem; }
.comparison-card { background: var(--bg-card); border: 1px solid var(--border); padding: 2rem; border-radius: 24px; }
.comparison-card h3 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--primary); }
.comparison-card .card-desc { color: var(--text-muted); margin-bottom: 2rem; }

.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1; /* Square to fit ecommerce images perfectly */
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ba-slider:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.15);
}
.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.ba-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ba-slider:hover .ba-image.after img {
    transform: scale(1.03); /* Subtle zoom for dynamism */
}
.ba-image.before {
    width: 50%; /* Inicial al 50% */
    z-index: 2;
}
.ba-label {
    position: absolute;
    bottom: 15px;
    padding: 5px 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.label-after { right: 15px; z-index: 1;}
.label-before { left: 15px; z-index: 3;}

.bad-photo-filter { filter: brightness(0.65) contrast(0.8) sepia(0.4) blur(1.5px); }
.bad-photo-filter-2 { filter: brightness(0.6) contrast(0.9) grayscale(0.3); }

.ba-slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}
.ba-slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--primary);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 5;
}
.ba-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
}

/* Negocios Section */
.business-section { padding: 8rem 0; background: #020202; }
.grid-2 { grid-template-columns: 1fr 1fr; max-width: 900px; margin: 0 auto; }

/* Models Savings Section */
.models-savings-grid { display: flex; gap: 4rem; align-items: center; }
.models-text { flex: 1; }
.models-gallery { flex: 1; }
.models-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

@media (max-width: 968px) {
    .comparison-grid { grid-template-columns: 1fr; gap: 3rem; }
    .grid-2 { grid-template-columns: 1fr; }
    
    .showcase-container {
        flex-direction: column;
        padding: 1.5rem;
    }
    .showcase-before {
        width: 100%;
        flex: auto;
    }
    .showcase-after {
        width: 100%;
        flex: auto;
    }
    
    .mobile-zoom-link {
        pointer-events: auto !important;
        cursor: pointer !important;
    }
    
    .models-savings-grid { flex-direction: column; gap: 2rem; }
    .models-gallery-grid { grid-template-columns: 1fr; }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 1rem;
    }
    .bento-item {
        aspect-ratio: 1/1;
    }
    
    .marquee-wrapper {
        padding: 1rem 0;
    }
    .marquee-track img {
        height: 280px;
        width: 280px;
        max-width: 85vw;
        aspect-ratio: 1/1;
    }
}

.mobile-zoom-link {
    pointer-events: none;
    cursor: default;
    display: block;
}

/* Showcase Carousel */
.showcase-container {
    display: flex;
    gap: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 5rem;
    backdrop-filter: var(--glass-blur);
    align-items: center;
}

.showcase-before {
    flex: 0 0 35%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.3);
}

.showcase-before img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 1/1;
    opacity: 0.9;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.showcase-after {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.showcase-label {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-muted);
}

.showcase-label.highlight {
    color: var(--primary);
}

.marquee-wrapper {
    width: 100%;
    position: relative;
    border-radius: 16px;
    padding: 1rem 3rem;
    display: flex;
    align-items: center;
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
}

/* Custom Scrollbar */
.marquee-track::-webkit-scrollbar {
    height: 8px;
}
.marquee-track::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}
.marquee-track::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.marquee-track img {
    height: 250px;
    aspect-ratio: 1/1;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    scroll-snap-align: start;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.marquee-track img:hover {
    transform: scale(1.08) translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.2);
    z-index: 2;
}

.carousel-btn {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.carousel-btn:hover {
    background: var(--primary);
    color: #000;
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

@media (max-width: 968px) {
    .showcase-container {
        flex-direction: column;
    }
    .showcase-before {
        flex: auto;
        width: 100%;
    }
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(5px);
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 80vh;
    border-radius: 8px;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 100000;
}
.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}
@keyframes zoomIn {
    from {transform:scale(0.9); opacity:0;} 
    to {transform:scale(1); opacity:1;}
}
