/* --- Reseteo y Variables Globales --- */ 
:root { 
    --primary-color: #ffffff; 
    --secondary-color: #a0a0a0; 
    --background-color: #000000; 
    --accent-color: #ffbb00; 
} 

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

html { 
    scroll-behavior: smooth; 
} 

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: var(--background-color); 
    color: var(--primary-color); 
    line-height: 1.6; 
} 


html, body {
    width: 100%!important;
    overflow-x: hidden!important;
}

main { 
    padding-top: 70px; /* Ajuste para compensar la altura del nav fijo */ 
} 

/* --- Estilos Generales --- */ 
.container { 
    max-width: 960px; 
    margin: auto; 
    padding: 4rem 2rem; 
    text-align: center; 
} 

h1, h2, h3 { 
    font-weight: 700; 
    margin-bottom: 1rem; 
} 

h2 { 
    font-size: 2.5rem; 
    color: var(--primary-color); 
    margin-bottom: 3rem; 
} 

h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
}

p { 
    color: var(--secondary-color); 
    font-size: 1.1rem; 
    max-width: 700px; 
    margin: 0 auto 1rem; /* Añadido margen inferior */
} 

hr { 
    border: 0; 
    height: 1px; 
    background: #333; 
    width: 80%; 
    margin: 0 auto; 
} 

/* --- Header y Hero Section --- */ 

iframe{
    opacity: 0.85;
}
.hero { 
    height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    position: relative;
    overflow: hidden; /* Oculta lo que se salga del contenedor */
} 

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 1920px;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Evita interacción con el video */
}

.hero-video-container iframe {
    width: 100vw;
    height: 56.25vw; /* 100/56.25 = 1.778 -> 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 100*16/9 = 177.77 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero { 
    opacity: 0; 
    transition: opacity 1s ease-in-out; 
} 

.hero.visible { 
    opacity: 1; 
} 

.hero::after { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.5); 
    z-index: 2; /* Por encima del video */
} 

.hero::before { 
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: 0; 
    width: 100%; 
    height: 200px; 
    background: linear-gradient(to top, rgba(0,0,0,1), transparent); 
    pointer-events: none; 
    z-index: 3; /* Por encima de la capa negra */
}  

.hero-text { 
    z-index: 4; /* Por encima de todo */
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
} 

.hero h1 { 
    font-size: 4rem; 
    margin-bottom: 0.5rem; 
} 

.hero span { 
    margin-top: -.5rem;
    font-size: 1.5rem; 
    font-weight: 300; 
    color: var(--primary-color); 
} 

.hero span b { 
    font-weight: 700; 
} 


.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    /* Estilos adicionales si los tienes */
}

/* --- Navbar (sin cambios significativos) --- */
.navbar { 
    background: var(--background-color); 
    padding: 1rem 2rem; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1000; 
    border-bottom: 1px solid #333; 
    box-shadow: 0 6px 24px -8px rgba(0,0,0,0.7); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
} 

.nav-links { 
    display: flex; 
    flex-direction: column; /* Vertical en móvil */ 
    background-color: var(--background-color); 
    position: absolute; 
    top: 60px; /* Altura del navbar */ 
    left: -100%; /* Oculto fuera de la pantalla */ 
    width: 100%; 
    padding: 1rem 0; 
    transition: left 0.3s ease-in-out; 
    border-bottom: 1px solid #333; 
} 

.nav-links.active { 
    left: 0; /* Lo trae a la pantalla */ 
} 

.nav-links a { 
    text-align: center ; 
    color: var(--primary-color); 
    text-decoration: none; 
    text-transform: uppercase; 
    font-weight: bold; 
    transition: color 0.3s ease; 
    padding: 1rem; 
    margin: 0 2.5rem; /* Espacio aumentado entre elementos */ 
} 

.nav-links a:hover { 
    color: var(--accent-color); 
    background-color: #1a1a1a; 
} 

.hamburger { 
    display: block; /* Visible por defecto en móvil */ 
    cursor: pointer; 
} 

.hamburger .bar { 
    display: block; 
    width: 25px; 
    height: 3px; 
    margin: 5px auto; 
    background-color: var(--primary-color); 
    transition: all 0.3s ease-in-out; 
} 

.hamburger.active .bar:nth-child(2) { opacity: 0; } 
.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); } 
.hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); } 

.img_head{
    margin: 4rem auto;
    display: grid;
    grid-template-columns: 1fr;
    max-width: 100vw;
    text-align: center;
}

.img_head div span{
    font-size: 2rem;
    padding-bottom: -2rem;
    transition: all .3s ease-in-out;
}

.img_head div span b{
    font-weight: 700;
}

.img_head span:hover{
    color: var(--accent-color);
}

.slider{
    overflow: hidden;
    width: 80vw;
    margin: -40px auto 20px auto;
    padding-top: 5px;
}

.slider::after{
    content: '';
    position: absolute;
    right:9.5%;
    top: 75%;
    width: 10%;
    height: 200px;
    background: linear-gradient(to left, rgb(0, 0, 0), transparent);
    pointer-events: none;
    z-index: 2;
}

.slider::before{
    content: '';
    position: absolute;
    left:9.5%;
    top: 75%;
    width: 10%;
    height: 200px;
    background: linear-gradient(to right, rgb(0, 0, 0), transparent);
    pointer-events: none;
    z-index: 2;
}

.slider-track{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    animation: scroll 40s ease-in-out infinite;
    -webkit-animation: scroll 40s ease-in-out infinite;
    width: calc(120px * 18); /* Ajusta según el número de imágenes */
}

.slider-track .slide{
    width: 120px;
}

.slider-track .slide img{
    width: 100%;
}

.slide{
    transition: all .5s ease-in-out;
}
.slide:hover{
    opacity: 1;
    transform: scale(1.07);
    z-index: 10;
}
@media screen and (min-width: 550px) {
   @keyframes scroll {
    0% {-webkit-transform: translateX(0); transform: translateX(0); }
    
    50% {-webkit-transform: translateX(calc(-120px *5.5)); transform: translateX(calc(-120px * 5.5)); } /* Ajusta según el número de imágenes */
    100% {-webkit-transform: translateX(0); transform: translateX(0); }
} 
}

 
@media screen and (max-width: 550px) {
    .slider-track .slide{
    width: 70px;
}

   @keyframes scroll {
    0% {-webkit-transform: translateX(calc(-120px * 3)); transform: translateX(calc(-120px * 3)); }
    
    50% {-webkit-transform: translateX(calc(-120px *8.5)); transform: translateX(calc(-120px * 8.5)); } /* Ajusta según el número de imágenes */
    100% {-webkit-transform: translateX(calc(-120px * 3)); transform: translateX(calc(-120px * 3)); }
} 
}


.img_head div.img_top img:nth-child(1){width: 200px; margin-bottom: 30px; margin-right: 1.2rem; animation: wiggle 10s ease-in-out infinite;}
.img_head div.img_top img:nth-child(2){width: 280px; animation: wiggle 12s ease-in-out infinite;}
.img_head div.img_top img:nth-child(3){width: 200px; margin-bottom: 30px; margin-left: 1.2rem; animation: wiggle 7s ease-in-out infinite;}


@keyframes wiggle {
    0%, 100% { transform: translateX(0);}
    25% { transform: scale(1.05);}
    50% { transform: scale(1.01);}
    75% { transform: scale(1.05);}
}
/* --- Nuevos Estilos para Bloques --- */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: left;
}

.service-item h3 {
    margin-bottom: 1.5rem;
}

.service-item.full-width {
    text-align: center;
}

.service-item p {
    margin: 0.5rem 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.image-placeholder {
    background: #1a1a1a;
    height: 250px;
    border-radius: 8px;
    border: 1px solid #333;
}

.about-text {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.logo-placeholder {
    height: 80px;
    width: 200px;
    background: #222;
    border: 1px solid #444;
    margin: 0 auto 3rem auto;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555;
}
.logo-placeholder::after {
    content: 'Logo';
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: center;
}

.contact-column1{
    display: flex;
    flex-direction: column;
    align-items: center;
}


.contact-column1 div{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

.contact-column1 img{
    width: 18px;
    opacity: .7;
}


.contact-column p {
    font-size: 1rem;
    margin: 0 auto;
}

.contact-column b {
    color: var(--primary-color);
}

/* --- Sección Contacto --- */ 
.cta-button { 
    display: inline-block; 
    background: var(--accent-color); 
    color: var(--background-color); 
    padding: 1rem 2.5rem; 
    text-decoration: none; 
    border-radius: 5px; 
    font-weight: 700; 
    margin-top: 1rem; 
    transition: all 0.3s ease; /* Transición para todo */
    border: 2px solid var(--accent-color);
} 

.cta-button:hover { 
    background: transparent;
    color: var(--accent-color);
    transform: scale(1.05); /* Efecto de escala */
} 


.cta-button2{
    margin-top: -1rem;
}
/* --- Footer --- */ 
footer { 
    text-align: center; 
    padding: 2rem; 
    background: #1a1a1a; 
    color: var(--secondary-color); 
    font-size: 0.9rem; 
} 

.img_about {
    height: 200px;
    width: 100%;
    background-image: url(./../img/IMG_7787.JPG);
    background-position: center;
    background-size: 100%;    
    transition: all .3s ease-in-out;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.img_about:hover{
    background-size: 103%;
}

.img_about::before {
    content: '';
    position: absolute;
    left: 3%;
    top: 20;
    width: 20%;
    height: 200px;
    background: linear-gradient(to right, rgba(0, 0, 0, 1), transparent);
    pointer-events: none;
    z-index: 2;
}

.img_about::after {
    content: '';
    position: absolute;
    right:3%;
    top: 20;
    width: 20%;
    height: 200px;
    background: linear-gradient(to left, rgba(0, 0, 0, 1), transparent);
    pointer-events: none;
    z-index: 2;
}

.image-placeholder {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-placeholder:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.image-placeholder:nth-child(1){
    background-image: url(./../img/p1\ \(1\).jpg);
    background-position: center;
    background-size: 400px;
        background-position-y: -100px;

}

.image-placeholder:nth-child(2){
    background-image: url(./../img/p1\ \(2\).png);
    background-position: center;
    background-position-y: -110px;
    background-size: 400px;
}

.image-placeholder:nth-child(3){
    background-image: url(./../img/p1\ \(3\).jpg);
        background-position: center;
    background-position-y: -320px;
    background-size: 700px;

}



.br-active {
    display: none;
}
/* --- Media Queries --- */
@media (max-width: 768px) { 
    .br-active { display: block; }
    .container { padding: 2rem 1rem; } 
    h1 { font-size: 1.5rem; } 
    h2 { font-size: 1.8rem; margin-bottom: 2rem; } 
    .hero h1 { font-size: 2.1rem; } 
    .hero-text span { font-size: 1.1rem; }
    .hero p { font-size: 1rem; } 
    nav { padding: 0.5rem; } 
    nav a, .logo { margin: 0 1rem; font-size: 1rem; } 

    .service-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }


    .image-grid {
        gap: 0.5rem;
    }
    .image-placeholder {
        width: 100%;
    }

    .cta-button { padding: 0.8rem 1.5rem; font-size: 1rem; } 
    footer { padding: 1rem; font-size: 0.8rem; } 
        .img_about::after {
            right: 2%;
        }
        .img_about::before {
            left: 2%;
        }
    .img_head div span{
        font-size: 1rem;
        margin-bottom: -0.3rem;
    }

} 

@media (max-width: 800px) { 


        .img_head div .img_top img:nth-child(2){
            width: 200px;
        }

        .img_head div .img_top img:nth-child(1){
            width: 120px;
        }

        .img_head div .img_top img:nth-child(3){
            width: 120px;
        }
                .slider::after{
            right:9%;
            top: 70%;
            width: 10%;
            height: 140px;
            background: linear-gradient(to left, rgb(0, 0, 0), transparent);
        }

        .slider::before{
            right:9%;
            top: 70%;
            width: 10%;
            height: 140px;
            background: linear-gradient(to right, rgb(0, 0, 0), transparent);
        }


}

@media (min-width: 769px) { 

    .hamburger { display: none; } 
    .nav-links { 
        position: static; 
        flex-direction: row; 
        background: none; 
        width: auto; 
        border: none; 
        left: 0; 
        padding: 0; 
    } 
    .nav-links a { 
        padding: 0; 
        margin: 0 1.5rem; 
    } 
    .nav-links a:hover { 
        background-color: transparent; 
    } 
    .navbar { justify-content: center; } 
    .logo { 
        position: absolute; 
        left: 50%; 
        transform: translateX(-50%); 
    } 
}

#bloque2 h2, #bloque3 h2, #bloque1 h2{
    color: var(--accent-color);
    font-size: 2rem;
}


#bloque1, #bloque2, #bloque3{
    margin: 3rem auto 4rem auto;
    max-width: 1200px;
    text-align: center;
    
}

#bloque1 .service-grid, #bloque2 .service-grid, #bloque3 .service-grid{
    gap: 4rem;
}
#bloque2 .service-item:nth-child(1){
    text-align: right;
}
#bloque1 .service-item:nth-child(2), #bloque2 .service-item:nth-child(1){
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#bloque1 .service-item img{
    width: 120%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: -1;
    transition: all .3s ease-in-out;
}

#bloque1 .service-item img:hover{
    transform: scale(1.02);

}
#bloque2 .service-grid .service-item iframe{
    position: relative;
    width: 350px;
    display: block;
    margin: 24px auto 0 auto;
    border: 8px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    z-index: -10;
}


#bloque2{
    margin-bottom:6rem ;
}
#bloque2 .service-item img{
    width: 230px;
    position: absolute;
    z-index: 10;
    bottom: -6%;
}
#bloque2 .service-item .img_service1{
    right: 2%;
    transform: rotate(10deg);
    border: 8px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all .3s ease-in-out;
}



#bloque2 .service-item .img_service2{
    transform: rotate(-10deg);
    border: 8px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all .3s ease-in-out;
}

#bloque2 .service-item .img_service1:hover{
    transform: rotate(7deg);
}

 #bloque2 .service-item .img_service2:hover{
    transform: rotate(-7deg);
 }
#bloque3 {
    margin-top: 5rem;
    margin-bottom: 10rem ;
}
 #bloque3 .service-grid .service-item iframe{
    position: absolute;
    width: 300px;
    display: block;
    margin: 24px auto 0 auto;
    border: 8px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: -10;
    opacity: 1;
 }

.iframe_service3{
    left:19%;
    transform: rotate(5deg);
    z-index: 10;
}

.iframe_service4{
    transform: rotate(-5deg);
    top: -2%;
    left: -0%;

}

#bloque3 .service-item img{
    width: 180px;
    position: absolute;
    z-index: 10;
}

#bloque3 .service-item .img_service3{
    left: 32%;
    transform: rotate(10deg);
    border: 8px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        transition: all .3s ease-in-out;
        bottom: -25%;
}
#bloque3 .service-item .img_service4{
    left: -5%;
    bottom: -22%;
    transform: rotate(-10deg);
    border: 8px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        transition: all .3s ease-in-out;
}

#bloque3 .service-item .img_service3:hover{
    transform: rotate(7deg);
}

 #bloque3 .service-item .img_service4:hover{
    transform: rotate(-7deg);
 }

#bloque3 .service-item:nth-child(2){
    padding: 5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


@media (max-width: 550px) {
    .image-placeholder{
        height: 200px;
    }
        .slider::after{
            right:9.2%;
            top: 70%;
            width: 10%;
            height: 120px;
            background: linear-gradient(to left, rgb(0, 0, 0), transparent);
        }

        .slider::before{
            right:8.5%;
            top: 70%;
            width: 10%;
            height: 120px;
            background: linear-gradient(to right, rgb(0, 0, 0), transparent);
        }

    
        .img_head div .img_top img:nth-child(2){
            width: 150px;
        }

        .img_head div .img_top img:nth-child(1){
            margin-right: 10px;
            margin-bottom: 0;
            width: 80px;
        }

        .img_head div .img_top img:nth-child(3){
            margin-left: 10px;
                       margin-bottom: 0;
            width: 80px;
        }
    #bloque5 h2{
        font-size: 1.5rem;
    }
}

/* --- Estilos para la Pantalla de Carga (AÑADIDO) --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color); /* Fondo negro */
    z-index: 9999; /* Asegura que esté por encima de todo */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.75s ease, visibility 0.75s ease; /* Transición de salida */
}

.loader {
    border: 8px solid #333; /* Círculo gris */
    border-top-color: var(--accent-color); /* Color naranja para la parte que gira */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Estilos para la Página "Mis Trabajos" (AÑADIDO) --- */

/* Estilo para el enlace de navegación activo */

.container2 { 
    max-width: 960px; 
    margin: auto; 
    padding: 1rem 2rem; 
    text-align: center; 
} 
.nav-links a.active-link {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Contenedor principal de la página de portafolio */
.hero-video-container2 {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 100%;
    height: 10%;
    z-index: -5;
    pointer-events: none; /* Evita interacción con el video */
}

.hero-video-container2 iframe {

    max-width: 99.2vw;
    height: 56.25vw; /* 100/56.25 = 1.778 -> 16:9 Aspect Ratio */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    
}
.hero-video-container2::before { 
    content: ''; 
    position: absolute;
    top: 342%;
    width: 100%; 
    height: 200px; 
    background: linear-gradient(to top, rgba(0,0,0,1), transparent); 
    pointer-events: none; 
    z-index: 3; /* Por encima de la capa negra */
}  

.intro-text {
    margin-bottom: 3rem;
    max-width: 600px;
}

/* Cuadrícula para la galería completa */
#portfolio-page h2{
    margin-top: 7rem;
    margin-bottom: 3rem;
    font-size: 3.5rem;
}

.portfolio-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.portfolio-item-full {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #222;
}

.portfolio-item-full:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.portfolio-item-full img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.portfolio-info-full {
    padding: 1rem;
}

.portfolio-info-full h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--primary-color);
}

.portfolio-info-full p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin: 0;
}


/* --- Estilos para la Ventana Modal de Video (AÑADIDO) --- */

.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 900px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.close-button {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: var(--accent-color);
}

.footer_iconos {
    margin: 0 auto;
    justify-content: center;
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer_iconos div{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.footer_iconos div p{
    margin: 0;
    font-size: .9rem;
    color: var(--secondary-color);
}

.footer_iconos div img{
    width: 30px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
    .produccion-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        text-align: center;
        margin-top: 3rem;
    }

    .columna-servicio h3 {
        font-size: 1.5rem;
        color: var(--accent-color); /* Color de acento para destacar */
        margin-bottom: 1.5rem;
    }

    .columna-servicio ul {
        list-style: none;
        padding: 0;
    }

    .columna-servicio li {
        color: var(--secondary-color);
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .site-footer{
        margin-top: 5rem;
        padding: 2rem 1rem;
        background: #1a1a1a;
        color: var(--secondary-color);
        text-align: center;
        font-size: 0.9rem;
    }
    /* Para que se vea bien en móviles */
    @media (max-width: 768px) {


        p.xd{
            font-size: 0.9rem;
            margin-bottom: 1.2rem;

        }
        .footer_iconos div img{
            width: 25px;
        }
        .footer_iconos div{
            gap: .3rem;
        }

        .footer_iconos{
            gap: .5rem;
        }

        #portfolio-page h2{
            margin-top: 4rem;
            margin-bottom: 2rem;
            font-size: 2.5rem;
        }
        .produccion-grid {
            grid-template-columns: 1fr;
        }


    }
    @media (min-width: 1689px) {

        .hero-video-container2::before { 
            top: 416%;
        }  

    }
.h2-special1{
    display: inline-block;
}

.h2-special2{
    display: none;
}

.h3-special1{
    display: inline-block;
}

.h3-special2{
    display: none;
}


@media (max-width: 768px) {
    
    #bloque1 .service-item:nth-child(2){
        padding: 2rem;
        margin-top: -5rem;
    }
    #bloque1 .service-item img{
        width: 100%;
    }

    #bloque2 .service-grid{
        display: flex;
        flex-direction: column-reverse;

    }

    #bloque2 .service-item:nth-child(2) iframe{
        width: 300px;
    }


    #bloque2 .service-item .img_service1{
        width: 200px;
        right: 20%;
        bottom: 32%;
    }

    #bloque2 .service-item .img_service2{
        width: 180px;
        left: 20%;
        bottom: 33%;
    }

    #bloque2 .service-item:nth-child(1){
        text-align: left;
        padding: 2rem;
    }


    #bloque1 h2{
        padding: .5rem;
        font-size: 1.5rem;
        margin-bottom: .5rem;
    }

    #bloque2 h2{
        padding: 1rem;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    #bloque3 h2{
        padding: .5rem;
        font-size: 1.5rem;
    }

    .h3-special1{
        display: none;
    }
    .h3-special2{
        display: inline-block;
    }

    .h2-special1{
        display: none;
    }
    .h2-special2{
        display: inline-block;
    }
    #bloque3 .service-item:nth-child(1) .iframe_service3{
        width: 250px;
        right: -15%;
        top: 17%;
        transform: rotate(5deg);
    }
    #bloque3 .service-item:nth-child(1) .iframe_service4{
        width: 250px;
        left: 16%;
        top: 12%;
        transform: rotate(-5deg);
    }

    #bloque3 .service-item .img_service3{
        width: 150px;
        left: 70%;
        top: 55%;
    }
    #bloque3 .service-item .img_service4{
        width: 130px;
        left: 10%;
        top: 52%;
    }

    .service-item-special2{
        margin: 0 2rem;
        margin-top: 28rem;
        margin-bottom: -10rem;
    }
        #bloque2 h2{
            padding: 1rem;
        }
    
}



@media (max-width: 550px) {

    #bloque1 h2{
        padding: .5rem;
        font-size: 1.5rem;
        margin-bottom: .5rem;
    }

    #bloque2 h2{
        padding: 1rem;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    #bloque3 h2{
        padding: .5rem;
        font-size: 1.5rem;
    }
    #bloque2 .service-item:nth-child(1){
        margin-bottom: -1.5rem;
    }

    
    #bloque2 .service-item:nth-child(2) iframe{
        width: 200px;
    }
    #bloque2 .service-item .img_service1{
        width: 140px;
        right: 15%;
        top: 40%;
    }

    #bloque2 .service-item .img_service2{
        width: 120px;
        left: 15%;
        top: 42%;
    }

    #bloque3 .service-item:nth-child(1) .iframe_service3{
        width: 180px;
        right: -15%;
        top: 17%;
        transform: rotate(5deg);
    }

    #bloque3 .service-item:nth-child(1) .iframe_service4{
        width: 180px;
        left: 12%;
        top: 12%;
        transform: rotate(-5deg);
    }

        #bloque3 .service-item .img_service3{
        width: 120px;
        left: 65%;
        top: 45%;
        }

    #bloque3 .service-item .img_service4{
        width: 110px;
        left: 8%;
        top: 42%;
    }

    .service-item-special2{
        margin: 0 2rem;
        margin-top: 19rem;
        margin-bottom: -10rem;
    }

    
}




.cta-button {
  position: relative; /* Necesario para la estela dentro del botón */
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.5s ease;
  cursor: pointer;
  overflow: hidden; /* Oculta cualquier parte de la estela que se salga del botón */
  z-index: 1; /* Asegura que el botón esté sobre la estela */
}


.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -103%; /* Empieza fuera del botón a la izquierda */
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3); /* Color semi-transparente para la estela */
  transform: skewX(-30deg); /* Inclina la estela */
  transition: left 0.9s ease; /* Duración de la animación de la estela */
  z-index: -1; /* Asegura que la estela esté detrás del texto del botón */
    transition: all 0.5s ease;
}

.cta-button:hover::before {
  left: 102%; /* Se desliza a la derecha al pasar el mouse */
}

@media (max-width: 550px) {
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
}