* {
    font-family: 'Poppins', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    flex-direction: column;
    display: flex;
    min-height: 100vh;

}

main {
    flex: 1;
}


#menu-toggle {
    display: none;
    visibility: hidden;
    position: absolute;
}

.hamburguesa {
    display: none;
}

.menu {

    flex-direction: row;
    justify-content: end;
}

.logo {
    width: 100%;
    display: flex;
    background-color: #3076d1;
    justify-content: center;
    padding: 10px 0;
}

.logo a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    max-width: 500px;
}

.logo img {
    transition: transform 0.3s ease;
    height: auto;
    width: 100%;
    object-fit: contain;
}

.logo img:hover {
    transform: scale(1.05);

    filter: drop-shadow(1px 1px 2px white);
}

.menu-principal>ul {
    background-color: rgb(90, 90, 90);
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 20px;
    justify-content: flex-end;

}

.menu-principal ul li {
    position: relative;
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease;
    z-index: 1;
    border-left: #444 solid 2px;
}

.menu-principal li {
    transition: transform 0.3s ease;
    z-index: 1;
}

.menu-principal li:hover a {
    transform: scale(1.1);
}

.menu-principal a {
    display: block;
    color: rgb(255, 255, 255);
    padding: 15px 20px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.menu-principal li:last-of-type {
    border-right: #444 solid 2px;
}



.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    min-width: 100%;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 99;
}

.dropdown:hover>.submenu {
    display: block;

}

.submenu>li:hover {
    text-decoration: underline white;
    transition: ease-in-out 0.3s;
    transform: scale(0.9);
}

.footer-info {
    background-color: #303030;
    border-top: 2px solid black;
    width: 100%;
    text-align: center;
    padding: 10px 0;
}

.footer-info span {
    display: flex;
    flex-flow: column;
    flex-wrap: wrap;
    color: #f9f9f9;
    margin-bottom: 15px;
}
.social-container {
    display: flex;
    justify-content: center;
    gap: 20px; 
    margin-top: 10px;
}
a>.flechas {
    display: inline-block;
    transition: transform 0.3s ease;
    color: #ffffff;
    transform: rotate(270deg);
}

.dropdown:hover>a .flechas,
.dropdown:active>a .flechas {
    transform: rotate(360deg);
    color: chocolate;
}

.contenedor {
    width: 500px;
    height: 400px;
    display: flex;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 24px;
    background: rgb(255, 255, 255);
    ;
    border-style: groove;
    border: 2px solid gray;
    align-items: center;
    opacity: 0.5;
}

.carrusel img {
    width: 500px;
    height: 500px;
    object-fit: contain;
    transform: scale(0.9);
}

.carrusel {
    width: 100%;
    display: flex;
    animation: show 16s linear infinite;
}

.contenedor:hover {
    opacity: 1;
}

.bloque-contenido {
    text-align: center;
    padding: 30px 0;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

.bloque-contenido h1 {
    color: #000000;
    font-size: 2rem;
}



.hero-servicios {
    width: 100%;
    min-height: 450px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #3076d1 50%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;

}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    height: 100%;
}

.hero-img-oscuro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.100);
    z-index: 1;
}

.hero-servicios h2 {
    color: white;
    font-size: 3rem;
    text-align: center;
    z-index: 2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin: 10px;
    padding: 0 20px;
}

.catalogo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 300px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h2 {
    font-size: 1.4rem;
    color: #3076d1;

    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

.contact-preview {
    background-color: #f4f4f4;

    padding: 60px 10%;
    display: flex;
    justify-content: center;
}

.contact-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    width: 100%;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-text {
    flex: 2;
}

.contact-text h3 {
    font-size: 2rem;
    color: #3076d1;
    margin-top: 0;
}

.contact-text p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-contacto {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3076d1;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-contacto:hover {
    background-color: #255cad;
    transform: translateY(-3px);
}



@keyframes show {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-500%);
    }
}

@media screen and (max-width:600px) {
    .hamburguesa {
        display: block;
        font-size: 30px;
        cursor: pointer;
        padding: 10px;
        background-color: #000b83c1;
        text-align: center;
        color: white;
    }

    .menu-principal ul li {
        display: block;
    }

    .menu-principal .menu {
        display: none;
        flex-direction: column;
        justify-content: center;
    }

    #menu-toggle:checked~.menu {
        display: flex;
    }

    .submenu {
        width: 100%;
        background-color: #eee;
        text-align: center;
        display: none;
        position: static;
    }

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

    .menu-principal a {
        text-align: center;
        border-left: none;
        border-bottom: 1px solid #ccc;
    }

    .menu li:hover {
        text-decoration: underline white;
    }

    .dropdown:hover>a .flechas {
        transform: rotate(0deg);
        color: chocolate;
    }

    .menu-principal .submenu a {
        font-size: 0.9em;
        color: #303030;
        border-right: #444 solid 2px;
        border-left: #444 solid 2px;
    }

    .menu-principal li:last-of-type {
        border-right: none;
    }

    .contenedor {
        max-width: 300px;
        height: 300px;
    }

    .carrusel img {
        width: 300px;
    }

    .hero-servicios {
        height: 250px;
    }

    .hero-servicios h2 {
        font-size: 1.8rem;
    }

}