/* Reseteo y configuración general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d22630;
    --primary-hover: #7d0b11;
    --background-color: #dad7d54c;
    --text-color: #4b4b4b;
    --dark: #212529;
    --white: #ffffff;
    --background-btn-color-white: #ffffff44;
    --overlay-color: rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Syne', sans-serif;
    color: var(--text-color);
    font-size: 1.1rem;
    overflow-x: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    background-color: var(--background-color);
    line-height: 1.5;
}

/* Contenedores y utilidades */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: transparent;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 999;
}

.logo img:not(.logo-secondary) {
    height: 130px;
    width: auto;
    transition: all 0.3s ease;
    
}

.logo-secondary {
    height: auto;
    width: 150px;
    display: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.menu {
   display: flex;
    gap: 30px;
}

.menu a {
    color: var(--white);
    font-weight:700;
    font-size: 1.2rem;
    position: relative;
    padding: 5px 0;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu a:hover::after,
.menu a.active::after {
    width: 80%;
}

/* Menú hamburguesa */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.hamburger {
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1002;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--white);
    border-radius: 3px;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 10px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

.hamburger.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
    background: var(--primary-color);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
    background: var(--primary-color);
}

/* Menú a pantalla completa */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease, height 0s 0.5s;
}

.fullscreen-menu.active {
    height: 100%;
    opacity: 1;
    transition: opacity 0.5s ease, height 0s 0s;
}

.menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.menu-content a {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    padding: 10px;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.4s ease;
}

.fullscreen-menu.active .menu-content a {
    transform: translateY(0);
    opacity: 1;
}

.menu-content a:hover {
    color: var(--primary-color);
}

.menu-content .tel-link {
    margin-top: 20px;
    font-size: 24px;
}

.menu-content .phone-number {
    font-size: 28px;
    border-top: 2px solid var(--primary-color);
    padding-top: 15px;
    font-weight: 800;
}

/* Slider/Carrusel */
.slider {
    position: relative;   
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.slide-content {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 0 20px;
    z-index: 10;
}

.slide .title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-30px);
    transition: all 1s ease 0.3s;
    max-width: 800px;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1.2;
    margin-top: 20px;
}

.slide .subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease 0.6s;
    max-width: 500px;
    padding-bottom: 20px;
}

.slide .buttons {
    display: flex;
    gap: 15px;
    opacity: 0;
    transition: opacity 1s ease 0.9s;
}

.slide.active .title,
.slide.active .subtitle {
    opacity: 1;
    transform: translateY(0);
}

.slide.active .buttons {
    opacity: 1;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

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

.btn-outline {
    background-color: var(--background-btn-color-white);
    color: var(--white);
    border: 2px solid var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 30px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark);
}

/* Links sociales */
.social-links {
    width: 30px;
    position: absolute;
    bottom: 50px;
    left: 10px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
    
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Media queries */
@media (max-width: 992px) {
    .menu {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .slide .title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .slide .title {
        font-size: 2rem;
    }
    
    .slide .buttons {
        flex-direction: column;
        gap: 10px;
    }
    .slide-content {
        margin-top: -30px;
    }

    .slide-content .title {
        width: 100%;
        max-width: 400px;
    }
    .slide-content .subtitle {
        width: 100%;
        max-width: 300px;
    }
    
    .menu-content a {
        font-size: 26px;
    }
    
    .social-links {
        right: 20px;
        bottom: 15px;
        gap: 10px;
        height: 250px;
    }
    
    .social-links a {
        font-size: 1.5rem;
        margin-left: 10px;
    }
}

/* Ajustes específicos para Safari */
@supports (-webkit-touch-callout: none) {
    .slide-bg {
        background-attachment: scroll;
    }
    
    .slider {
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}

/* Añadimos nuevas reglas usando un enfoque diferente */
.navbar .hamburger.active ~ .menu {
    display: block;
}

/* Vamos a usar JavaScript para controlar la visibilidad de los logos */ 

/* Card Presentation */
.card-presentation {
    display: flex;
    align-items: center;
    justify-content: center;
    
   
    
}

.card-presentation-content {
    flex: 1;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: all 0.3s ease;
}
.card-presentation-content-text-1{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 380px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)), url(../assets/img/page/houseLux2.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
   
}
.card-presentation-content-text-2{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 380px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)), url(../assets/img/page/albañiles1.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; 
   
}
.card-presentation-content-text-3{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 380px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)), url(../assets/img/page/planos.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
}
.card-presentation-content img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-presentation-content h3 {
    font-size: 1.8rem;
    font-weight: 900;
    text-align: center;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.card-presentation-content h3:first-child {
    font-size: 1.4rem;
}



.card-presentation-content p {
    font-size: 1.2rem;
    text-align: center;
    padding: 0 20px;
    color: var(--white);
    max-width: 450px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.card-presentation-content:hover {
    /* transform: translateY(-10px); */
    transition: all 0.3s ease;
}

.card-presentation-content:hover img {
    filter: brightness(0.5);
}

/* Sobre nosotros */
.about-us {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 80px;
}
.p-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;

}

.about-us-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark);
}


.about-us-content {
    flex: 1;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}   

.about-us-image {
    flex: 1;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
} 

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

.btn {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.628), 0 2px 8px rgba(0, 0, 0, 0.39);
}

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

.about-us-content ul {
    margin-bottom: 50px;
    margin-left: 20px;
    line-height: 1.5;
}

.about-us-content ul li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.about-us-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Lema */
.h2-about {
    width: 100%;
    height: 400px;
    font-size: 3rem;
    margin: 200px auto;
    text-align: center;
    padding: 40px;
    margin-top: -60px;
    /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); */
    font-weight: 700;
    letter-spacing: -3px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(rgba(89, 89, 89, 0.5), rgba(128, 128, 128, 0.5)), url('../assets/img/carruselWork/workRealizer(4).jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 100px;
}

.h2-about p {
    max-width: 600px;
    color: var(--white);
     font-weight: 700;
     text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Servicios */
.title-h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark);
}

.container-services{
    margin-top: -110px;
} 


.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    padding: 20px;
    /* margin: 0 auto;
    max-width: 1400px; */
}

.gallery-item {
    height: 500px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.379), 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    position: relative;

}
.gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.0),rgba(0, 0, 0, 0.8));
    z-index: 3;
    pointer-events: none;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: brightness(0.6); */
   
    transition: all 0.3s ease;
   
}

.gallery-item:hover img {
    filter: brightness(0.8);
   
}

.gallery-item .overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}   

.gallery-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 4;
}   

.gallery-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}   

.gallery-description {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 20px;
}           

.gallery-link {
    display: inline-block;
    padding: 10px 0px 5px 0px;
    /* background-color: rgba(255, 255, 255, 0.2); */
    /* background-color: var(--primary-color); */
    font-weight: 400;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--primary-color);
}

.gallery-link:hover {
    /* background-color: var(--primary-hover); */
    transform: scale(1.08);
}

/* Presupuestos */
.presupuestos-section {
    background-color: var(--background-color);
    margin-top: 40px;
}
.presupuestos{
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
   
}
.presupuestos h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--dark);
    text-align: center;
}

.presupuestos p {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 20px;
    
}
.presupuestos h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 20px;
    text-align: center;
}
.presupuestos h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 10px;
    border-top: 2px solid var(--primary-color);
    padding-top: 5px;
   
}



/* Accordion para sección de presupuestos - Versión actualizada */
.accordion-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.accordion-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-color);
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--white);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.accordion-item.active .accordion-header {
    background-color: var(--primary-color);
    color: var(--white);
    border-left: 3px solid var(--primary-hover);
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--white);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    background-color: var(--white);
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-content p {
    padding: 20px;
    margin: 0;
    color: var(--text-color);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .accordion-header h3 {
        font-size: 1rem;
    }
    
    .accordion-header {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .card-presentation  {
        flex-direction: column;
        /* margin-top: 10px; */
        
    }
    .logo img:not(.logo-secondary) {
        height: auto;
        width: 150px;
       
        
    }
    .about-us{
        flex-direction: column;
    }
    .about-us-image {
       margin-top: 50px;
    }
    .container-services{
        margin-top: -110px;
    }  
    
    .fontaneria{
        display: none;
    }
    .gallery-container{
        padding: 0px;
        
    }
    .p-0{
        padding: 5px;
    }
    

    
 }

/* Sección de presupuestos */
.presupuestos-section {
    padding: 80px 0;
    background-color: var(--background-color);
   
    margin: 0 auto;
   
}
.presupuestos{
    max-width: 800px;
    margin: 0 auto;
}

.presupuestos-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.section-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.cta-button {
    margin-top: 30px;
}

/* Sección hablamos */
.hablamos-section {
    text-align: center;
    margin-bottom: 50px;
}

.hablamos-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

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

.phone-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Testimonios - Versión corregida */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--white);
    position: relative;
}

.testimonials-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: left;
    text-transform: uppercase;
}

.testimonials-layout {
    position: relative;
    height: 500px;
    display: flex;
}

.testimonials-image-container {
    width: 70%;
    height: 100%;
    position: relative;
}

.testimonials-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonials-card {
    position: absolute;
    top: 100px;
    right: 0;
    width: 45%;
    background-color:rgb(222, 222, 222);
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
    height: 320px; /* Altura fija para evitar saltos */
}

/* Swiper específico */
.testimonials.swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

.testimonials .swiper-wrapper {
    height: 100%;
}

.testimonials .swiper-slide {
    opacity: 0; /* Ocultar los slides inactivos */
    transition: opacity 0.5s ease;
    height: auto;
    display: flex;
    flex-direction: column;
}

.testimonials .swiper-slide-active {
    opacity: 1; /* Mostrar solo el slide activo */
}

.testimonial-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonials-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
}

.testimonials-heading {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 10px;
    text-align: center;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    text-align: left;
    font-style: italic;
}

/* Paginación */
.testimonials .swiper-pagination {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
}

.testimonials .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #ccc;
    opacity: 0.7;
}

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

/* Imagen con Logo */
.imglogo-section {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    margin-top: 100px;
}

.imglogo-background {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/img/page/houseLux4.jpeg');
    background-size: cover;
    background-position: center;
    /* background-attachment: fixed; */
    filter: brightness(0.4);
    z-index: 1;
}  

.imglogo-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.imglogo-container img {
    width: 300px;
    height: auto;
    object-fit: cover;
}

.imglogo-container-text{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 5;
    padding: 20px;
    color: var(--white);
}

.imglogo-container-text h2{
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.imglogo-container-text p{
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 20px;
    max-width: 600px;
}
.imglogo-container-text p:nth-child(1){
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    max-width: 600px;
}

.imglogo-container-text .btn-trabajo {
    color: var(--white);
    border-bottom: 1px solid var(--primary-color);
    margin-top: 20px;
}

/* Botón de WhatsApp flotante */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 50px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* Botón para subir */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px);
}

/* Media queries para testimonios */
@media (max-width: 992px) {
    .testimonials-layout {
        height: auto;
        flex-direction: column;
    }
    
    .testimonials-image-container {
        width: 100%;
        height: 350px;
    }
    
    .testimonials-card {
        position: relative;
        top: -50px;
        right: 0;
        width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .testimonials-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .testimonials-heading {
        font-size: 1.5rem;
    }
    
    .testimonials-subtitle {
        font-size: 1rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        left: 20px;
    }
    
    .scroll-top-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
    .testimonials-card {
        position: absolute;
        top: 200px;
        left: 50%;
        transform: translateX(-50%);
        width: 350px;
        background-color:rgb(222, 222, 222);
        padding: 40px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        z-index: 2;
        height: 320px; /* Altura fija para evitar saltos */
    }
    .imglogo-section {
        position: relative;
        width: 100%;
        height: 70vh;
        overflow: hidden;
        margin-top: 150px;
    }
    .imglogo-container img {
        width: 85%;
        height: auto;
        object-fit: cover;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.82));
    }
       
}

/* Sección de Contacto */
.contact-section {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-description {
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
}

.contact-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check input {
    width: auto;
}

.form-check label {
    margin-bottom: 0;
    font-weight: normal;
}

.contact-form .btn {
    width: 100%;
    margin-top: 10px;
}

.contact-info-container {
    flex: 1;
    min-width: 300px;
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px;
    border-radius: 5px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-info-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.contact-info-item a {
    color: var(--white);
    text-decoration: none;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.contact-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    background-color: var(--white);
}

.contact-social a:hover i {
    color: var(--primary-color);
}

.contact-social i {
    font-size: 1.2rem;
}

/* Responsive para contacto */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-form-container,
    .contact-info-container {
        width: 100%;
    }
    
    .contact-info {
        margin-top: 30px;
    }
}

/* Footer Styles */
.site-footer {
    background-color: #f5f5f5;
    color: var(--text-color);
    padding-top: 60px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-info {
    flex: 2;
    min-width: 300px;
}

.footer-logo img {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-highlight {
    font-weight: 700;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul,
.footer-services ul {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-services li,
.footer-contact p {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a,
.footer-contact a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover,
.footer-contact a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid #e1e1e1;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-legal {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-separator {
    color: #999;
}

/* **************Estilos y animaciones con js********************* */
.box-scroll{
    transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
    opacity: 0;
    transform:translateY(60px) ;
}
.box-scroll.show{
    transform: translateY(0);
    opacity: 1;
}

.tituloTop{
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.42, 0, 0.58, 1);
}
.tituloTop.show{
    opacity: 1;
    transform: translateY(0);
}

.box-scale{
    box-shadow: 0px 4px 10px rgba(0,0, 0,0.1);
    transform: scale(0.5);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
}
.titulo-scale.show,
.box-scale.show{
    transform: scale(1);
    opacity: 1;
}

.titulo-scale{
    transform: scale(0.5);
    opacity: 0;
}

.box-left{
    transform:translateX(-50px);
    opacity: 0;
    transition: all 0.9s cubic-bezier(0.42, 0, 0.58, 1);
}
.titulo-left.show,
.box-left.show{
    transform: translate(0);
    opacity: 1;
}

.titulo-left{
    transform: translateX(-50px);
    opacity: 0;
}
.box-right{
    transform:translateX(50px);
    opacity: 0;
    transition: all 1.1s cubic-bezier(0.42, 0, 0.58, 1);}
.titulo-right.show,
.box-right.show{
    transform: translate(0);
    opacity: 1;
}

.titulo-right{
    transform: translateX(50px);
    opacity: 0;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        gap: 30px;
    }
    
    .footer-column {
        min-width: 40%;
    }
    
    .footer-info {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-column {
        min-width: 100%;
        text-align: center;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .footer-title {
        margin-top: 10px;
    }
    
    .site-footer {
        padding-top: 40px;
    }
    
    .footer-content {
        padding-bottom: 20px;
    }
    .footer-social {
        justify-content: center;
        align-items: center;
      
    }

    .footer-logo img {
        margin-top: -80px;
    }
}

/* Clase para ocultar la navbar al hacer scroll */
.navbar-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

/* Estilos para Carrusel de Trabajos */
.trabajos-section {
    padding: 80px 0;
    margin: 40px 0;
    overflow-x: hidden; /* Solo evita overflow horizontal */
}

.trabajos-header {
    text-align: start;
    margin-bottom: 50px;
}

.trabajos-carrusel-container {
    position: relative;
    padding: 20px 10px 60px;
    width: 100%;
}

.trabajos-carrusel {
    width: 100%;
}

.trabajos-carrusel .swiper-slide {
    height: auto;
    overflow: hidden;
    /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); */
    /* background-color: var(--white); */
    transition: transform 0.3s ease;
}


.trabajo-img-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.trabajo-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.8);
}

.trabajo-item:hover .trabajo-img-container img {
    transform: scale(1.1);
}

.trabajo-info {
    padding: 20px;
    
}

.trabajo-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.trabajo-info p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 20px;
    height: 50px;
}

.btn-trabajo {
    display: inline-block;
    padding: 10px 0px 5px 0px;
    border-bottom: 1px solid var(--primary-color);
    text-transform: uppercase;
    color: var(--dark);
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Syne', sans-serif;
}

.btn-trabajo:hover {
    transform: translateY(-3px);
}

/* Botones de navegación */
.trabajos-carrusel .swiper-button-next,
.trabajos-carrusel .swiper-button-prev {
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* background-color: var(--white); */
    /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); */
}

.trabajos-carrusel .swiper-button-next:after,
.trabajos-carrusel .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.trabajos-carrusel .swiper-button-disabled {
    opacity: 0.5;
}

/* Paginación */
.trabajos-carrusel .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    opacity: 0.5;
}

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

/* Media queries para el carrusel de trabajos */
@media (max-width: 992px) {
    .trabajos-carrusel-container {
        padding: 20px 0 60px;
    }
    
    .trabajos-section .container {
        padding: 0 15px;
    }
    
    .trabajos-carrusel .swiper-button-next,
    .trabajos-carrusel .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    .p-2 {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        max-width: 410px;
        margin: 0 auto;
        width: 100%;
        margin: 0 auto;
       
    }
    .trabajos-section {
        padding: 0px;
        max-width: 410px;
        margin: 0 auto;
    }
    .trabajo-img-container {
        height: 400px;
    }
    
    .trabajo-info h3 {
        font-size: 1.5rem;
    }
    
    .trabajo-info p {
        font-size: 1.1rem;
    }
    
    .trabajos-carrusel-container {
        /* padding: 10px 0 50px; */
        max-width: 410px;
        margin: 0 auto;
    }
    
    .trabajos-section {
        padding: 50px 0;
    }
    
    .btn-trabajo {
        padding: 8px 0px 5px 0px;
        font-size: 0.9rem;
    }
    
    /* Posición de botones de navegación */
    .trabajos-carrusel .swiper-button-next {
        right: 5px;
    }
    
    .trabajos-carrusel .swiper-button-prev {
        left: 5px;
    }
    
    /* Ajuste del contenedor principal */
    .trabajos-section .container {
        padding-left: 5px; 
        padding-right: 5px;
    }
}
