:root {
    --primary-color: #2c3e50;    
    --secondary-color: #27ae60;  
    --accent-color: #e67e22;     
    --light-bg: #f4f7f6;
    --text-color: #333;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.header {
    background-color: var(--white);
    border-bottom: 3px solid var(--secondary-color);
}

.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre los dos logos */
    flex-wrap: wrap; /* Por si los logos son muy anchos en pantallas pequeñas */
}

.logo {
    max-height: 70px;
    width: auto;
}

.header-left {
    color: var(--secondary-color);
}

.header-right {
    text-align: right;
    font-weight: bold;
}

.header-right a:hover {
    color: var(--secondary-color);
}

/* NAVEGACIÓN */
.navbar {
    background-color: var(--primary-color);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.navbar li {
    position: relative;
}

.navbar ul li ul {
    display: none;
    position: absolute;
    flex-direction: column;
}

.navbar ul li:hover > ul {
    display: block; 
}

.navbar a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--white);
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: background 0.3s;
}

.navbar a:hover, .navbar a.active {
    background-color: var(--secondary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    display: none;
    flex-direction: column;
    background-color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: all 0.3s ease;
}

.dropdown-menu li a {
    padding: 12px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
    text-align: right;
}

/* MAIN CONTENT */
main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

h2, h3, h4 {
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem;
}

p {
    margin-bottom: 1rem;
    text-align: left;
}

.image-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.image-gallery img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    object-fit: cover;
}


.footer-contact {
    background-color: var(--light-bg);
    padding: 3rem 1rem;
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid #ddd;
}

.footer-div p {
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.service-grid {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 30px;
}

.service-card {
    background: white; 
    border: 1px solid #eee; 
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    transition: 0.3s;
    flex: 0 1 350px;
    min-width: 300px;
}


@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .header-info {
        flex-direction: column;
        text-align: center;
    }

    .header-logo {
        justify-content: center; 
    }

    .header-right {
        text-align: center;
    }

    .menu-toggle {
        display: block;
        background: var(--primary-color);
        color: white;
    }

    .navbar ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .navbar ul.active {
        display: flex;
    }

    .dropdown-menu {
        display: none;
        position: static;
        width: 100%;
        padding-left: 1rem;
    }

    .dropdown-menu .dropdown-menu {
        position: static;
    }

    h1 {
        font-size: 1.5rem;
    }

    .dropdown:hover > .dropdown-menu {
        display: block;
    }
}