/* ===========================
   General Reset
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* ===========================
   Header Section
=========================== */
header {
    background: #000;
    padding: 15px 20px;
    position: relative;
    z-index: 1000;
}

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

.logo {
    width: 180px;
}

/* ===========================
   Menu Styles
=========================== */
.menu {
    list-style: none;
    display: flex;
    position: relative;
}

.menu li {
    position: relative;
}

.menu li a {
    text-decoration: none;
    color: #fff;
    padding: 10px;
    display: block;
}

.menu li a:hover {
    color: #f7a800;
}

/* Submenu Styles */
.submenu ul, .submenu-interno {
    display: none;
    position: absolute;
    background: #111;
    width: 240px;
    top: 100%;
    left: 0;
    z-index: 1000;
}

.submenu:hover > ul {
    display: block;
}

.submenu ul li {
    width: 100%;
}

.submenu ul li:hover > .submenu-interno {
    display: block;
    top: 0;
    left: 240px;
}

/* Menu Toggle for Mobile */
.menu-toggle {
    display: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: #000;
    }

    .menu li {
        width: 100%;
    }

    .submenu ul, .submenu-interno {
        position: static;
    }

    .menu.show {
        display: flex;
    }
}

.banner-trabajos {
    background-image: url('assets/imagenes/TRABAJOS.jpg'); /* usa una imagen optimizada de 1920px x 500px */
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.overlay {
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.banner-trabajos h2 {
    font-size: 45px;
    color: #fff;
    margin-bottom: 5px;
    opacity: 0;
    animation: fadeInText 2s ease forwards;
}

.banner-trabajos p {
    font-size: 18px;
    letter-spacing: 5px;
    color: #fff;
    opacity: 0;
    animation: fadeInText 3s ease forwards;
    animation-delay: 1s;
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.trabajos-destacados {
    background-color: #000;
    color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.fade-in-title {
    font-size: 35px;
    opacity: 0;
    animation: fadeIn 2s forwards;
}

.fade-in-subtext {
    font-size: 16px;
    opacity: 0;
    animation: fadeIn 2s forwards;
    animation-delay: 1s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel {
    display: flex;
    animation: slide 16s infinite ease-in-out;
}

.carousel-item {
    position: relative;
    flex: 0 0 25%;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: filter 0.4s ease;
}

.carousel-item:hover img {
    filter: brightness(50%);
}

.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    text-shadow: 0 0 5px rgba(0,0,0,0.7);
}

.carousel-caption span {
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.carousel-caption h3 {
    font-size: 18px;
    margin: 0;
}

@keyframes slide {
    0%   {transform: translateX(0);}
    25%  {transform: translateX(0);}
    30%  {transform: translateX(-25%);}
    50%  {transform: translateX(-25%);}
    55%  {transform: translateX(-50%);}
    75%  {transform: translateX(-50%);}
    80%  {transform: translateX(-75%);}
    100% {transform: translateX(-75%);}
}

@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 100%;
    }

    .carousel-caption h3 {
        font-size: 16px;
    }
}

.categorias-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 50px auto;
    flex-wrap: wrap;
}

.categoria {
    position: relative;
    width: 300px;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.categoria img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(40%);
    transition: filter 0.4s ease;
}

.categoria:hover img {
    filter: brightness(100%);
}

.titulo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFA500;
    font-size: 22px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    pointer-events: none;
}

@media (max-width: 768px) {
    .categorias-container {
        flex-direction: column;
        align-items: center;
    }

    .categoria {
        width: 90%;
        height: 250px;
        margin-bottom: 20px;
    }

    .titulo {
        font-size: 20px;
    }
}

.clientes-container {
    width: 100%;
    margin: 50px 0;
    overflow: hidden;
    text-align: center;
    background-color: #fff;
    padding: 20px 0;
}

.titulo-clientes {
    font-size: 22px;
    color: #555;
    margin-bottom: 20px;
}

.logos-carousel {
    overflow: hidden;
    width: 100%;
}

.logos-slide {
    display: inline-flex;
    animation: desplazamientoLogos 20s linear infinite;
}

.logos-slide img {
    width: 150px;
    height: auto;
    margin: 0 30px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.logos-slide img:hover {
    filter: grayscale(0%);
}

@keyframes desplazamientoLogos {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .logos-slide img {
        width: 100px;
        margin: 0 15px;
    }
}

.info-section {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 70px 20px;
    font-size: 1.5rem;
}

.info-section .container {
    max-width: 900px;
    margin: auto;
}

.info-section .titulo-principal {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #f7a800;
}

.info-section .motivos {
    margin-top: 20px;
}

.info-section .motivos h3 {
    margin-bottom: 15px;
    color: #fff;
}

.info-section .motivos ul {
    display: inline-block;
    text-align: left;
    list-style: square;
}

.info-section .motivos ul li {
    margin-bottom: 10px;
}

.info-section .footer-info {
    color: #f7a800;
    font-weight: bold;
    margin-top: 40px;
    font-size: 1.2rem;
}

/* Inicio de estilo del pie de página */
.footer {
    background-color: #f0f0f0;
    padding: 40px 20px;
    font-size: 14px;
    color: #333;
}

.contenedor-footer {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.footer-logo {
    flex: 1;
    min-width: 220px;
}

.footer-logo img {
    width: 180px;
    margin-bottom: 15px;
}

.footer-logo p {
    margin-bottom: 10px;
}

.footer-columna {
    flex: 1;
    min-width: 180px;
}

.footer-columna h4 {
    margin-bottom: 15px;
}

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

.footer-columna ul li {
    margin-bottom: 10px;
}

.footer-columna ul li a {
    color: #555;
    text-decoration: none;
}

.footer-columna ul li a:hover {
    text-decoration: underline;
}

/* Estilo del botón de WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.whatsapp-button img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.whatsapp-button img:hover {
    transform: scale(1.1);
}

/* Styles for social media buttons with icons */
.social-buttons {
    text-align: center;
    margin: 20px 0;
}

.social-button {
    display: inline-block;
    margin: 0 10px;
    padding: 10px;
    border-radius: 50%;
    transition: transform 0.3s;
}

.social-button img {
    width: 40px;
    height: 40px;
}

.social-button:hover {
    transform: scale(1.1);
}