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 ul {
    display: none; 
    position: absolute; 
    top: 100%;
    left: 0;
    background-color: #04437d;
    padding: 10px 0;
    z-index: 10; 
}

nav ul li:hover > ul {
    display: block; 
}

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; 
}

.hero {
    background: url('hero-bg.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 10px;
    margin-bottom: -180px;
}

.hero h1 {
    margin: 0;
    font-size: 48px;
}

.about, .services, .contact {
    padding: 60px 20px;
}

.about h2, .services h2, .contact h2 {
    text-align: center;
    margin-bottom: 40px;
}

.services .service {
    margin-bottom: 40px;
}

footer {
    background-color: #04437d; 
    color: white;
    text-align: center;
    padding: 10px 0;
}

footer p {
    margin: 0;
}

footer .container1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    padding: 0 20px; 
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-info .logo {
    flex: 1;
    text-align: left;
    margin-left: 60px; 
}

.footer-info .social-media {
    flex: 2;
    text-align: center;
    margin-left: 50px;
}

.footer-info .contact {
    flex: 1;
    text-align: right;
    margin-right: 60px; 
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
}

.container {
    width: 80%;
    margin: 0 auto;
}

.container h1{
    color: #04437d;
    margin-top: -65px; 
    font-family: 'Montserrat', sans-serif;
}

.container p{
    color: #555555;
    text-align: center;
    font-size: 1.2rem;
    font-family: 'Montserrat';
}

.container h2{
    color: black;
    font-size: 2.7rem;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.container1 h1,.container1 p{
    color: white
}

.container2 {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 20px;
}

.container2 {
    text-align: center;
    width: 100%;
    margin-top: 20px;
    font-family: 'Montserrat';
}

.contact p {
    font-size: 1.0rem;
    font-family: 'Montserrat';
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-bottom: 5px;
}

form input, form textarea {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    padding: 10px 20px;
    background-color: #333333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #555;
}

.social-media {
    text-align: center;
    margin-top: 20px;
}

.social-media h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-family: 'Montserrat', sans-serif;
}

.social-icon1, .social-icon2, .social-icon3, .social-icon4 {
    display: inline-block;
    width: 50px; 
    height: 50px; 
    border-radius: 20%; 
    overflow: hidden; 
    margin-right: 10px; 
}

.social-icon1 img, .social-icon2 img, .social-icon3 img, .social-icon4 img {
    width: 100%; 
    height: auto; 
    display: block; 
    transition: opacity 0.3s ease; 
}

.social-icon1:hover img, .social-icon2:hover img, .social-icon3:hover img, .social-icon4:hover img {
    opacity: 0.8; 
}

.contact h3{
    font-family: 'Montserrat', sans-serif;
}

.whatsapp-float {
    position: fixed;
    width: auto; 
    height: 70px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 14px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex; 
    align-items: center; 
    padding: 0 15px; 
    text-decoration: none; 
}

.whatsapp-float img {
    width: 40px; 
    height: 40px;
    border-radius: 50%;
    padding: 5px;
    margin-right: 10px; 
}

.whatsapp-float span {
    display: inline-block;
    font-size: 14px; 
    text-decoration: none; 
    font-family: 'Montserrat';
}

html {
    scroll-behavior: smooth;
}

.slideshow {
    position: relative;
    width: 100%; 
    max-width: 1100px; 
    aspect-ratio: 16/8.5; 
    margin: 20px auto; 
    border-radius: 10px;
    overflow: hidden;
    border: 10px solid #cdbe5c; 
}

.slideshow img {
    width: 100%; 
    height: 100%; 
    position: absolute; 
    top: 0;
    left: 0;
    opacity: 0; 
    transition: opacity 1s ease-in-out; 
}

.slideshow img.active {
    opacity: 1; 
}
