body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background-color: #04437d; 
    color: white;
    padding: 0 9px; /* cambio */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    width: 150px;
    margin-top: 20px; /* cambio */
    margin-bottom: 20px; /* cambio */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    font-family: 'Montserrat';
}

nav ul li {
    margin-left: 1px;
    position: relative;
}

nav ul li a{
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    display: block;
    font-size: 18px;  /* cambio */
    transition: background-color 0.3s ease, color 0.3s ease;

}

nav ul li label {
    text-decoration: none;
    padding: 10px;
    display: block;
    color: white;
    text-align: initial;
}

nav ul li a:hover,
nav ul li a:focus {
    background-color: #cdbe5c; 
    color: #fff;
    border-radius: 4px;
}

.dropdown-menu,
.submenu {
    display: none;
    position: absolute;
    background-color: #04437d;
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #cdbe5c;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    top: 100%;
    left: 0;
    min-width: 200px;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu li:hover .submenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    position: relative;
}

.submenu {
    left: 100%;
    top: 0;
}

#toggle-submenu:checked + label + .submenu {
    display: block;
}

.dropdown-menu li a:hover, .submenu li a:hover {
    background-color: #cdbe5c;
}

.dropdown-menu label:hover {
    background-color: #cdbe5c;
    border-radius: 4px;
}

.has-submenu label {
    padding-left: 20px; 
}

.container {
    width: 80%;
    margin: 0 auto;
}

.container h1{
    color: black;
    margin-top: -65px; 
    font-family: 'Merriweather', serif;
}

.container p{
    color: black;
    text-align: center;
    font-size: 1.3rem;
    font-family: 'Lora', serif;
}

.containe h2{
    color: black;
    font-size: 2.7rem;
    margin-bottom: 20px;
    font-family: 'Merriweather', serif;
    color: #060b3b;
}

/* Nuevo */

.hero {
    background: linear-gradient(rgba(231, 231, 231, 0.608), rgba(231, 231, 231, 0.5)), url('electrifica.jpg') no-repeat center center; 
    background-size: cover;
    padding: 40px 20px;
    text-align: center;
}

.hero h1 {
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 50px;
    margin-top: -10px;
    color: #04437d;
    font-size: 2.9rem;
}

.hero p {
    font-family: 'Montserrat', sans-serif;
    color: black;
    font-size: 1.1rem;
    text-align: center;
    margin-left: 10%;
    margin-right: 10%;
}

.services {
    background-color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.service {
    display: flex;
    width: 100%; 
    max-width: 1200px;
    background: #fff;
    margin: 10px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    align-items: center; 
    margin: 20px 0; 
}

.service img {
    width: 45%;
    height: 600px; 
    border: 5px solid #cdbe5c;
    margin-right: 50px;
    margin-left: 15px;
}

.service-left img {
    order: 1; 
    margin-right: 35px;
    margin-left: 35px;
}

.service-right img {
    order: 2; 
   margin-left: 90px;
   margin-right: 35px;
}

.service-left .service-content {
    order: 2; 
    margin-left: 20px;
}

.service-right .service-content {
    order: 1; 
    margin-left: 90px;
}

.service-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 500px; 
    text-align: justify;
}

.service h2 {
    font-family: 'Montserrat', sans-serif; 
    color: #04437d; 
    margin-bottom: 10px;
    position: relative;

}

.service h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 4px;
    background-color: #cdbe5c; 
    position: absolute;
    bottom: -10px;
    left: 0;
}

.service p {
    margin: 10px 0; 
    font-family: 'Montserrat', sans-serif; 
    color: #555555; 
    line-height: 1.6;
    margin-bottom: 15px;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

html {
    scroll-behavior: smooth;
}