/* Reset general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font y body */
body {
    font-family: 'Montserrat', sans-serif;
    color: #273746;
    background-color: #D5DBDB;
    overflow-x: hidden;
}

/* Header */
header {
    background-color: #222;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.logo {
    height: 50px;
}

.nav-toggle {
    display: none;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    margin-right: 400px;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #FFD700;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.banner {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.banner-video video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.banner-content h2 {
    margin: 0 0 1em;
    font-size: 2.5em;
}

.banner-content button {
    background-color: #ff5722;
    color: white;
    border: none;
    padding: 1em 2em;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
}

.productos, .ventajas, .showroom {
    background-color: white;
    padding: 2em 1em;
    text-align: center;
}

.productos h2, .ventajas h2, .showroom h2 {
    margin-bottom: 1em;
    font-size: 2em;
}

.product-list, .advantages-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.product-card, .advantage-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 1em;
    padding: 1em;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover, .advantage-card:hover {
    transform: scale(1.05);
}

.product-card img, .advantage-card img {
    width: 40%;
    border-radius: 8px 8px 0 0;
}


.product-carousel {
    position: relative;
}

.product-carousel img {
    display: none;
    width: 100%;
    border-radius: 8px 8px 0 0;
}

.product-carousel img:first-child {
    display: block;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.5em;
    cursor: pointer;
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.product-card h3, .advantage-card h3 {
    margin: 0.5em 0;
}

.product-card ul {
    text-align: left;
    padding: 0;
    list-style: none;
}

.product-card li {
    margin: 0.5em 0;
}

.product-card button, .advantage-card button {
    background-color: #ff5722;
    color: white;
    border: none;
    padding: 0.5em 1em;
    font-size: 0.9em;
    border-radius: 4px;
    cursor: pointer;
    margin: 0.5em 0.5em 0 0;
}

.showroom-images {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.showroom-images img {
    margin: 0.5em;
    border-radius: 8px;
}

.showroom-images .small-image {
    width: 30%;
}

.showroom-images .medium-image {
    width: 35%;
}

.showroom-images .large-image {
    width: 50%;
}

.location {
    margin-top: 2em;
    text-align: center;
}

.location img {
    width: 50px;
}

.info {
    background-color: #e9ecef;
    padding: 2em 1em;
    text-align: center;
}

.info h2 {
    margin-bottom: 1em;
    font-size: 23px;
}

.projects {
    animation: fadeIn 2s ease-in-out;
    padding: 70px 20px;
    text-align: center;
}

/* Projects Gallery */
.gallery {
    position: relative;
    display: flex;
    overflow-x: hidden;
}


.carousel {
    display: flex;
    transition: transform 1s ease-in-out;
}

.carousel img {
    width: 100%;
    height: 300px;
    margin: 0 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.carousel img:hover {
    transform: scale(1.1);
}

.carousel-control {
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    font-size: 24px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1;
    padding: 10px;
    border-radius: 5px;
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

.btn-container {
    margin-top: 40px;
}

.faq, .contact {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2em 1em;
}

.faq h2, .contact h2 {
    margin-bottom: 1em;
    font-size: 2em;
}

.faq-question {
    background-color: #444;
    color: white;
    border: none;
    padding: 0.5em;
    width: 50%;
    text-align: left;
    cursor: pointer;
    display: inline-block;
}

.faq-answer {
    display: none;
    
    padding: 0.5em;
    
}

.faq ul {
    list-style: none;
    padding: 0;
}

.faq li {
    margin: 0.5em 0;
}

.contact button {
    background-color: #ff5722;
    color: white;
    border: none;
    padding: 1em 2em;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
}

footer {
    background-color: #222;
    color: white;
    padding: 2em 1em;
    text-align: center;
}

.footer-content {
    
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-info {
    width: 100%;
    margin: 1em 0;
}

.contact-info h3 {
    
    font-size: 1.5em;
    border-radius: 5px;
}

.contact-info p {
    text-decoration: none;
    padding: 10px;
}

.contact-info a {
    text-decoration: none;
    color: #ff5722;
}

.contact-img img {
    width: 300px;
}

.whatsapp img {
    width: 24px;
    vertical-align: middle;
}

.whatsapp a {
    color: white;
    text-decoration: none;
}

.whatsapp a:hover {
    text-decoration: underline;
}

#whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#whatsapp-button img {
    width: 50px;
}

/* Modal */
.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    position: relative;
    padding: 1em;
    background: white;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
}

.modal .close {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    font-size: 1.5em;
    cursor: pointer;
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FFD700;
    color: #273746;
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    transition: background-color 0.3s, transform 0.3s;
}

.floating-contact a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-contact img {
    width: 20px;
    height: 20px;
}

.floating-contact:hover {
    background-color: #e6b800;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        color: #ffffff;
        font-size: 24px;
        cursor: pointer;
    }

    .sidebar {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #273746;
        z-index: 1000;
        padding-top: 60px;
        text-align: center;
    }

    .sidebar.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        margin: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    section {
        padding: 50px 0px;
        text-align: center;
    }

    .banner-content h2 {
        font-size: 1.5em;
    }

    .product-card {
        width: 100%;
        margin: 0.5em 0;
    }
    .advantage-card {
        
        margin: 0.5em 0;
    }

    .showroom-images .small-image, .showroom-images .medium-image, .showroom-images .large-image {
        width: 100%;
    }

    .carousel-item {
        min-width: 50%;
    }
}

@media (max-width: 480px) {

    .banner-content {
        text-align: center;
        padding: 50px;       
    }
    
    .banner-content h2 {
        font-size: 2em;
    }
    
    .banner-content button {
        padding: 1em 2em;
        font-size: 1em;
    }


    .carousel-item {
        min-width: 100%;
    }

    .faq-question {
        padding: 0.5em 0.5em;
        width: 100%;
        display: inline-block;
    }
    
    .faq-answer {
        width: 100%;
    }

    .contact h2 {
        font-size: 1.5em;
    }
}
