:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent: #D90429;
    --gray: #f4f4f4;
    --font-display: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg-color); color: var(--text-color); font-family: var(--font-body); overflow-x: hidden; cursor: none; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* CURSOR */
.cursor {
    width: 20px; height: 20px; border: 2px solid var(--accent); border-radius: 50%;
    position: fixed; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%); transition: transform 0.2s, background 0.2s;
    mix-blend-mode: difference;
}
.cursor.hovered { transform: translate(-50%, -50%) scale(2.5); background: var(--accent); border-color: transparent; mix-blend-mode: normal; opacity: 0.8;}

/* WHATSAPP FLOTANTE */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    width: 60px; height: 60px; background: #25D366; color: white;
    border-radius: 50%; z-index: 999;
    display: flex; justify-content: center; align-items: center;
    font-size: 2rem; box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}

/* HEADER & LOGO */
header {
    position: fixed; top: 0; width: 100%; padding: 20px 5%;
    display: grid;
    grid-template-columns: 1fr auto auto; /* Logo, CTA, Menú */
    gap: 20px;
    align-items: center;
    z-index: 100; 
    color: white; /* Ajuste: Blanco para contraste inicial */
}

/* Aplicamos mix-blend-mode solo a los elementos interactivos que necesitan contraste */
header .logo-container, header .menu-trigger, header .header-cta {
    mix-blend-mode: difference;
}

.logo-container {
    width: 150px; 
    display: flex; align-items: center;
}
.logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.header-cta {
    color: white; 
    font-weight: 700;
    font-size: 0.85rem; /* TAMAÑO AJUSTADO */
    letter-spacing: 1px;
    padding: 10px 15px;
    border: 2px solid white;
    border-radius: 5px;
    text-transform: uppercase;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.header-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.menu-trigger {
    font-weight: 700; 
    font-size: 0.85rem; /* TAMAÑO AJUSTADO */
    letter-spacing: 1px;
    display: flex; gap: 10px; align-items: center;
    cursor: pointer; text-transform: uppercase;
}

/* MENU OVERLAY */
.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #000; z-index: 999; padding: 5%; 
    display: flex; flex-direction: column; justify-content: center;
    opacity: 0; pointer-events: none; visibility: hidden;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.menu-overlay.active { opacity: 1; pointer-events: auto; visibility: visible; }
.menu-close {
    position: absolute; top: 25px; right: 5%; color: #fff;
    font-weight: 700; letter-spacing: 2px; cursor: pointer; display: flex; gap: 10px; align-items: center;
}
.menu-nav { display: flex; flex-direction: column; gap: 20px; }
.menu-link {
    font-family: var(--font-display); 
    font-size: clamp(1.5rem, 4vw, 2.5rem); 
    font-weight: 800; color: transparent; -webkit-text-stroke: 2px #fff;
    text-transform: uppercase; transition: 0.3s;
}
.menu-link:hover { color: var(--accent); -webkit-text-stroke: 0px; padding-left: 20px;}
.menu-cta {
    margin-top: 30px; display: inline-block; font-family: var(--font-display);
    font-size: 2rem; color: var(--accent); font-weight: 700;
}
.menu-footer { position: absolute; bottom: 30px; left: 5%; color: rgba(255,255,255,0.5); }

/* HERO VISUAL */
.hero-visual {
    height: 100vh; width: 100%; position: relative;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity 0.6s ease-in-out; transform: scale(1.1);
}
.hero-img.active { opacity: 1; transform: scale(1); transition: opacity 0.6s ease-in-out, transform 8s ease-out; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 1; }
.hero-interaction { position: relative; z-index: 10; width: 90%; display: flex; justify-content: space-between; align-items: flex-end; height: 80%; }
.hero-list { display: flex; flex-direction: column; }
.hero-link {
    font-family: var(--font-display); 
    font-size: clamp(3rem, 4vw, 4rem); 
    font-weight: 800; line-height: 0.9; color: transparent;
    -webkit-text-stroke: 2px rgba(255,255,255,0.5); transition: all 0.3s; cursor: pointer;
}
.hero-link:hover, .hero-link.active { color: #fff; -webkit-text-stroke: 0px; padding-left: 20px; }

.hero-sub { color: #fff; text-align: right; font-size: 0.9rem; letter-spacing: 1px; line-height: 1.5; }
.hero-slogan {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

/* SECCIÓN CLIENTES Y TESTIMONIOS */
.container { width: 90%; max-width: 1600px; margin: 0 auto; }
.section { padding: 100px 0; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 4rem); text-transform: uppercase; margin-bottom: 10px; }
.section-desc { margin-bottom: 50px; font-size: 1.2rem; opacity: 0.7; }

.client-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    align-items: center;
    margin-bottom: 60px;
    padding: 30px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}
.client-logo {
    width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    opacity: 0.3;
    transition: 0.3s;
    filter: grayscale(100%);
}
.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Nuevo: Grid para tres testimonios */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-bubble {
    background: var(--gray);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.bubble-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 15px;
}
.bubble-author {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* SECCIÓN VIDEO VERTICAL (MOTION SHOWCASE) */
.vertical-video-section {
    padding: 80px 0;
    background: #000;
    color: white;
    text-align: center;
}
.vertical-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.vertical-desc {
    margin-bottom: 50px;
    font-size: 1.2rem;
    opacity: 0.7;
}
.video-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.tiktok-frame {
    position: relative;
    width: 250px;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.tiktok-mockup {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}
.tiktok-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    z-index: 10;
    transition: transform 0.3s;
}
.tiktok-play:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

/* SERVICIOS: CTA de Paquetes y Acordeón */
.services-wrapper { border-top: 2px solid #000; }
.cat-header {
    padding: 30px 0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    cursor: pointer; 
    transition: 0.3s;
}
.cat-header:hover { padding-left: 10px; background: var(--gray); }
.cat-header h3 { font-size: 2rem; display: flex; gap: 20px; font-weight: 700; }
.cat-num { color: var(--accent); font-family: var(--font-body); font-size: 1rem; margin-top: 5px; }

.cat-cta-group {
    display: flex;
    align-items: center;
    gap: 20px;
}
.download-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 5px 10px;
    border-radius: 5px;
    transition: 0.3s;
}
.download-btn:hover {
    background: var(--accent);
    color: #fff;
}
.cat-header:hover .download-btn {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.cat-header:hover .ri-add-line {
    color: #fff;
}

.service-category { border-bottom: 1px solid #ddd; }
.cat-content { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; background: #000; color: #fff; }
.cat-content-inner { 
    padding: 40px; 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px; 
}
.service-item h4 { color: var(--accent); margin-bottom: 10px; text-transform: uppercase; font-size: 1.1rem; }
.service-item p { font-size: 0.95rem; opacity: 0.8; line-height: 1.5; }
.service-category.active .cat-content { max-height: 2000px; }
.service-category.active .cat-header { background: #000; color: #fff; padding-left: 20px; }


/* MARQUEE */
.section-marquee { padding: 0; background: #000; overflow: hidden; }
.portfolio-marquee { padding: 0; }
.marquee-content { display: flex; animation: scroll 20s linear infinite; }
.marquee-content img { height: 50vh; width: auto; object-fit: cover; filter: grayscale(100%); transition: 0.3s; }
.marquee-content img:hover { filter: grayscale(0%); }


/* CONTACTO */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.big-cta { font-family: var(--font-display); font-size: 5rem; line-height: 0.9; font-weight: 800; }
.outlined { color: transparent; -webkit-text-stroke: 2px #000; }
.clean-form { display: flex; flex-direction: column; gap: 20px; }
.clean-form input, .clean-form select, .clean-form textarea { width: 100%; padding: 20px; border: none; border-bottom: 2px solid #000; background: transparent; font-family: var(--font-body); font-size: 1rem; outline: none; }
.clean-form input:focus, .clean-form textarea:focus { border-color: var(--accent); }
.submit-btn { padding: 20px; background: #000; color: #fff; border: none; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: 0.3s; display: flex; justify-content: space-between; }
.submit-btn:hover { background: var(--accent); }
.clean-form select option:disabled {
    color: #999;
}

footer { padding: 30px 0; border-top: 1px solid #ddd; margin-top: 50px; }
.footer-content { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 600; }

@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 768px) {
    .logo-container { width: 120px; }
    
    .header-cta { display: none; }
    header { grid-template-columns: 1fr auto; }
    
    .hero-link { font-size: 1.5rem; }
    .hero-slogan { font-size: 1.2rem; }
    .hero-interaction { flex-direction: column; align-items: flex-start; justify-content: center; gap: 30px; }
    
    .contact-wrapper { grid-template-columns: 1fr; }
    .big-cta { font-size: 3.5rem; }
    .menu-link { font-size: 1.5rem; }
    
    .cat-content-inner { grid-template-columns: 1fr; }
    
    /* Testimonios en móvil: Apilados */
    .testimonial-grid { grid-template-columns: 1fr; }
    
    .video-grid { flex-direction: column; align-items: center; }
    .tiktok-frame { width: 100%; max-width: 300px; height: 450px; }
    .desktop-only { display: none; }
    
    .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: 20px; right: 20px;}
}
/* Nuevo: Botón Regresar Arriba */
.back-to-top {
    position: fixed; 
    bottom: 100px; /* Separación del botón de WhatsApp */
    right: 30px;
    width: 50px; 
    height: 50px; 
    background: #000; /* Fondo negro para ser discreto */
    color: white;
    border-radius: 50%; 
    z-index: 998; /* Un nivel debajo del WhatsApp */
    display: flex; 
    justify-content: center; 
    align-items: center;
    font-size: 1.5rem; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0; /* Inicialmente invisible */
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--accent); /* Cambia a acento al pasar el ratón */
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 80px; /* Ajuste en móvil */
        right: 20px;
        font-size: 1.2rem;
    }
}