/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

.banner {
    padding: 2rem;
}
.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

main {
    padding: 20px;
    
}

section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section h2 {
    margin-bottom: 10px;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
}
img {
    max-width: 75%;
    height: auto;
} 
.banner-img {
    width: 100vw;
    height: auto;
    display: block; /* Center the image */
    margin: 0 auto; /* Center the image */
}
.responsive-img {
    width: 100%;
    max-width: 400px; /* Adjust the max-width as needed */
    height: auto;
    display: block; /* Center the image */
    margin: 0 auto; /* Center the image */
} 
#slideshow-container {
    width: 40%; /* Adjust the width as needed */
    margin: 20px auto; /* Center the slideshow */
    text-align: center; /* Center the title */
}

.slideshow {
    position: relative;
    overflow: hidden; /* Hide overflowing slides */
    width: 100%;
    height: 600px; /* Adjust the height as needed */
    margin-bottom: 20px;
}

.slide {
    position: absolute; /* Place slides on top of each other */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Hide all slides initially */
    transition: opacity 1s ease-in-out; /* Fade transition */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain aspect ratio and cover container */
}

.slide.active {
    opacity: 1; /* Show the active slide */
}
.slideshow-nav button {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}
/* Estilos para el submenú */
nav ul li .submenu {
     /* Oculta el submenú por defecto */
    position: absolute; /* Necesario para posicionar el submenú */
    display: none; /* Posiciona el submenú */
    background-color: #f9f9f9; /* Color de fondo del submenú */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); /* Sombra */
    z-index: 1; /* Asegura que el submenú esté por encima de otros elementos */
    padding: 0;
    min-width: 150px;
}

nav ul li:hover .submenu {
    display: block; /* Muestra el submenú al pasar el ratón sobre el elemento padre */
}

nav ul li .submenu li {
    display: block; /* Muestra los elementos del submenú en bloque */
}

nav ul li .submenu a {
    color: black; /* Color del texto de los enlaces del submenú */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

nav ul li .submenu a:hover {
    background-color: #ddd; /* Color de fondo al pasar el ratón sobre los enlaces del submenú */
}

nav ul li {
    position:fixed right 4500px; /* Necesario para posicionar el submenú */
    display: inline-block; /* Permite que el submenú se posicione correctamente */
    margin: 0 10px; /* Espaciado entre los elementos del menú */
}
/* Estilos para la ventana emergente (puedes mover esto a style.css) */
.popup {
    display: none; /* Oculto por defecto */
    position: fixed; /* Se mantiene en su lugar */
    z-index: 1; /* Se sitúa encima de todo */
    left: 0;
    top: 0;
    width: 50%;
    height: 50%;
    overflow: auto; /* Permite scroll si es necesario */
    background-color: rgba(0, 0, 0, 0.4); /* Fondo negro con opacidad */
}

.popup-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% desde arriba y centrado */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Ajusta el ancho según sea necesario */
    max-width: 600px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


