/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: Arial, sans-serif;
}

/* Header styling */
header {
    background-color: rgb(31, 78, 121);
    color: white;
    padding: 20px 0;
    position: relative;
}

.header-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 30px;
    font-weight: bold;
}

.logo a, .phone-number {
    color: white;
    text-decoration: none;
}

.phone-number {
    font-size: 18px;
    color: white;
    text-decoration: none;
}

.phone-number:hover {
    text-decoration: underline;
}

/* Main navigation styles */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 18px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a, .footer-link {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px;
}

.nav-menu > li > a:hover,
.footer-link:hover {
    text-decoration: underline;
}

/* Dropdown menu */
.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1f4e79;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 1000;
    list-style: none;
}

.dropdown-menu li {
    width: 180px;
}

.dropdown-menu li a {
    display: block;
    color: white;
    padding: 8px 20px;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: rgba(31, 78, 121, 0.9);
    text-decoration: underline;
}

/* Hamburger Menu Icon for Mobile */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Footer styling */
footer {
    background-color: rgb(31, 78, 121);
    color: white;
    padding: 10px 0;
    text-align: center;
}

.footer-link {
    color: white;
    text-decoration: none;
}

/* Social icons */
.social-icon {
    width: 24px;
    height: 24px;
    margin-left: 10px;
    vertical-align: middle;
}

/* Main content */
main {
    padding: 40px 0;
    width: 90%;
    margin: 0 auto;
}

/* Image background section */
.image-background {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

/* Page-specific background images */
.home .image-background { background-image: url('img/inicio.jpg'); }
.about .image-background { background-image: url('img/nosotros.jpg'); }
.services .image-background { background-image: url('img/servicios.jpg'); }
.film .image-background { background-image: url('img/lamina.jpg'); }
.solutions .image-background { background-image: url('img/soluciones.jpg'); }
.mirror .image-background { background-image: url('img/espejo1.jpg'); }
.shower .image-background { background-image: url('img/ducha.jpg'); }
.shelves .image-background { background-image: url('img/estante.jpg'); }
.top .image-background { background-image: url('img/tablero1.jpg'); }
.board .image-background { background-image: url('img/pizarra2.jpg'); }
.door .image-background { background-image: url('img/mampara.jpg'); }
.window .image-background { background-image: url('img/ventana.jpg'); }
.design .image-background { background-image: url('img/decoracion.jpg'); }
.exhibitor .image-background { background-image: url('img/mostrador.jpg'); }
.dry .image-background { background-image: url('img/drywall.jpg'); }
.melamine .image-background { background-image: url('img/melamina.jpg'); }
.contact .image-background { background-image: url('img/contactenos.jpg'); }

/* Services and Products section styling */
section.servicios, section.productos {
    padding: 40px 0;
    background-color: #f4f4f4;
}

.servicios h2, .productos h2 {
    text-align: center;
    font-size: 30px;
    color: rgb(31, 78, 121);
    margin-bottom: 40px;
}

.servicios h3, .productos h3 {
    font-size: 22px;
    color: rgb(31, 78, 121);
    margin-bottom: 10px;
}

.service-list, .product-list {
    width: 90%;
    margin: 0 auto;
}

.service-item, .product-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.service-item img, .product-item img {
    width: 400px;
    height: auto;
    border-radius: 8px;
}

.service-text, .product-text {
    flex: 1;
    padding: 20px;
}

.service-item:nth-child(odd), .product-item:nth-child(odd) {
    flex-direction: row;
}

.service-item:nth-child(even), .product-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* Contact Card */
.contact-card {
    background-color: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 500px;
    margin: 20px auto;
}

.contact-card h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1f4e79;
}

.contact-info p {
    margin: 10px 0;
    font-size: 16px;
    color: #333;
}

.contact-info a {
    color: #1f4e79;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
}

.whatsapp-button img {
    width: 100%;
    height: auto;
}

/* Responsive styling */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 50%;
        background-color: rgb(31, 78, 121);
        flex-direction: column;
        padding: 20px 0;
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-menu li a {
        color: white;
        font-size: 18px;
    }

    .dropdown-menu {
        position: static;
        display: none;
        background-color: rgba(31, 78, 121, 0.9);
    }
    .dropdown-menu li a {
        font-size: 16px;
        padding: 12px;
    }
    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: flex;
        flex-direction: column;
    }

    .service-text, .product-text {
        padding: 10px;
    }

    .servicios h2, .productos h2 {
        font-size: 24px;
    }

    .servicios h3, .productos h3 {
        font-size: 18px;
    }
}

/* Stack and center items on screens below 820px */
@media (max-width: 820px) {
    .service-item, .product-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        max-width: 90%;
        margin: 0 auto;
    }

    .service-item img, .product-item img {
        width: 100%;
        max-width: 350px; /* Control max-width for mobile */
        margin-bottom: 20px;
    }

    .service-text, .product-text {
        text-align: center;
    }

}
.phone-number {
    filter: brightness(0) invert(1);
}





