@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #6B21A8;
    --primary-light: #9333EA;
    --primary-dark: #581C87;
    --secondary: #10b981;
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    border: 3px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    padding: 0.8rem 5%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

nav.scrolled .nav-links a {
    color: var(--white);
}

.logo-nav {
    height: 45px;
    transition: var(--transition);
}

.nav-toggle {
    display: none;
}

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

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

nav:not(.scrolled) .nav-links a {
    color: var(--white);
}

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

.nav-links a.active {
    border-bottom: 2px solid var(--white) !important;
    padding-bottom: 5px;
    opacity: 1 !important;
}

.btn-nav {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(107, 33, 168, 0.3);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(107, 33, 168, 0.4);
}

.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    /* Eliminamos el padding global para que el video pueda tocar el borde real */
    background: var(--bg-dark);
    background-image: radial-gradient(circle at 20% 30%, rgba(107, 33, 168, 0.05) 0%, transparent 50%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
                var(--bg-dark) 0%, 
                var(--bg-dark) 50%, 
                transparent 90%);
    z-index: 2;
    pointer-events: none;
}

.hero-video-wrap {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%; 
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.3); 
    pointer-events: none;
}

.hero-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding-left: 10%; 
}

.hero h4 {
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn-main {
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-solid {
    background: var(--primary);
    color: var(--white);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-main:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.btn-solid:hover {
    background: var(--primary-light);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--white);
    opacity: 0.6;
    z-index: 10;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% { transform: translate(-50%, 0); opacity: 0; }
    50% { transform: translate(-50%, 10px); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

.scroll-down span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stats {
    padding: 5rem 10%;
    background: var(--bg-light);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.section {
    padding: 8rem 10%;
}

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

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(107, 33, 168, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(107, 33, 168, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#reel {
    position: relative;
}

#reel::before,
#reel::after {
    content: "";
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
}

#reel::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%);
}

#reel::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%);
}

.reel-container {
    display: flex;
    gap: 0;
    width: fit-content;
    animation: scrollReel 40s linear infinite;
}

.reel-container:hover {
    animation-play-state: paused;
}

.reel-item {
    position: relative;
    height: 600px;
    width: 800px;
    overflow: hidden;
    flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.reel-item img,
.reel-item video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reel-item:hover img,
.reel-item:hover video {
    filter: brightness(0.9);
    transform: scale(1.1);
}

.reel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    color: white;
    padding: 80px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    transition: var(--transition);
}

.reel-caption h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.reel-item:hover .reel-caption {
    padding-bottom: 50px;
}

@keyframes scrollReel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.about {
    display: flex;
    align-items: center;
    gap: 5rem;
    background: #fafafa;
}

.about-img {
    flex: 1;
    border-radius: 40px;
    overflow: hidden;
    height: 500px;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    flex: 1;
}

.gallery-grid-main {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 250px;
    gap: 30px;
    padding: 0 5%;
    margin-top: 5rem;
}

.gallery-card {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    background: var(--bg-dark);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:nth-child(6n+1) { grid-column: span 7; grid-row: span 2; }
.gallery-card:nth-child(6n+2) { grid-column: span 5; grid-row: span 1; }
.gallery-card:nth-child(6n+3) { grid-column: span 2; grid-row: span 1; }
.gallery-card:nth-child(6n+4) { grid-column: span 3; grid-row: span 1; }
.gallery-card:nth-child(6n+5) { grid-column: span 12; grid-row: span 1; }

.gallery-card img, .gallery-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s ease;
    filter: brightness(0.8);
}

.gallery-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 40px 80px rgba(107, 33, 168, 0.2);
}

.gallery-card:hover img, .gallery-card:hover video {
    filter: brightness(1);
}

.gallery-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 50px 30px 30px;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.95));
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.gallery-card:hover .gallery-card-info {
    opacity: 1;
    transform: translateY(0);
}

.gallery-card-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    /* Hero Adjustments */
    .hero {
        height: 100vh;
        padding-top: 80px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        padding-left: 5%;
        padding-right: 5%;
        max-width: 100%;
    }

    .hero-content img {
        height: 120px !important;
        margin-bottom: 2rem !important;
    }

    .hero h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 1.1rem !important;
        margin-bottom: 2.5rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .btn-main {
        width: 100%;
        padding: 1rem;
        text-align: center;
    }

    .hero-video-wrap {
        width: 100%;
        opacity: 0.4;
    }

    .hero-overlay {
        background: linear-gradient(to bottom, var(--bg-dark) 0%, rgba(15, 23, 42, 0.8) 50%, var(--bg-dark) 100%);
    }

    .section {
        padding: 5rem 5%;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 4rem 5%;
    }

    .stat-item h2 {
        font-size: 2.2rem;
    }

    .whatsapp-float, .instagram-float, .facebook-float, .linkedin-float {
        width: 50px !important;
        height: 50px !important;
        font-size: 24px !important;
        right: 20px !important;
    }

    .whatsapp-float { bottom: 20px !important; }
    .instagram-float { bottom: 85px !important; }
    .facebook-float { bottom: 150px !important; }
    .linkedin-float { bottom: 215px !important; }

    nav {
        padding: 1rem 5% !important;
        background: var(--bg-dark) !important;
    }

    .nav-toggle {
        display: flex !important;
        font-size: 1.6rem;
        color: var(--white);
        cursor: pointer;
        z-index: 1100;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        gap: 2.5rem !important;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .logo-nav {
        height: 35px;
    }
}
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem !important;
    }

    .hero-content img {
        height: 100px !important;
    }
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
    box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.4);
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    color: white;
    background-color: #128c7e;
    box-shadow: 2px 10px 25px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.instagram-float {
    position: fixed;
    bottom: 100px; /* Posicionado arriba del botón de WhatsApp */
    right: 30px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.instagram-float:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 2px 2px 15px rgba(220, 39, 67, 0.4);
}

/* --- FACEBOOK FLOATING BUTTON --- */
.facebook-float {
    position: fixed;
    bottom: 170px; /* Posicionado arriba del botón de Instagram */
    right: 30px;
    background-color: #1877F2; /* Color oficial de Facebook */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.facebook-float:hover {
    transform: scale(1.1);
    background-color: #166fe5;
    color: white;
    box-shadow: 2px 2px 15px rgba(24, 119, 242, 0.4);
}

.linkedin-float {
    position: fixed;
    bottom: 240px; 
    right: 30px;
    background-color: #0077B5; /* Color oficial de LinkedIn */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.linkedin-float:hover {
    transform: scale(1.1);
    background-color: #005582;
    color: white;
    box-shadow: 2px 2px 15px rgba(0, 119, 181, 0.4);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-active.reveal-left,
.reveal-active.reveal-right {
    opacity: 1;
    transform: translateX(0);
}

.clients-section {
    background: #000;
    padding: 3rem 0;
    overflow: hidden;
    color: white;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.clients-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 350px 1fr;
    align-items: center;
    padding: 0 5%;
}

.clients-info {
    border-right: 1px solid rgba(255,255,255,0.1);
    padding-right: 2.5rem;
}

.clients-info h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    font-weight: 800;
    color: white;
}

.clients-info p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
}

.clients-slider {
    padding-left: 3rem;
    overflow: hidden;
    position: relative;
}

.clients-track {
    display: flex;
    gap: 6rem;
    width: max-content;
    animation: scrollClients 40s linear infinite;
}

.clients-track img {
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: var(--transition);
}

.clients-track img:hover {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scrollClients {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 992px) {
    .clients-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 2rem;
    }
    .clients-info {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-right: 0;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .clients-slider {
        padding-left: 0;
    }
}

.main-footer {
    background: var(--bg-dark);
    padding: 3rem 2rem 1.5rem;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    height: 45px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-tagline {
    max-width: 500px;
    margin-bottom: 2rem;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: var(--transition);
    opacity: 0.6;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #475569;
}

@media (max-width: 768px) {
    .main-footer {
        padding: 4rem 1.5rem 2rem;
    }
    .footer-nav {
        gap: 1.5rem;
    }
}

#player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
