body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden; /* Ocultar scroll en el body */
}

header {
    background: url('../images/header-bg.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header h1, header h2 {
    margin: 0;
    color: #fff;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 5;
    background-color: #333;
    overflow: hidden;
    position: fixed;
    top: 80px; /* Altura del header */
    width: 100%;
    z-index: 1000;
}

nav ul li {
    display: inline-block;
}

nav ul li.left {
    float: left;
}

nav ul li.right {
    float: right;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    padding: 10px 20px;
    display: block;
}

nav ul li a:hover {
    background-color: #555;
}

main {
    flex: 1;
    padding: 160px 20px 60px 20px; /* Ajusta el padding superior e inferior según la altura del header y footer */
    overflow-y: auto; /* Permite el scroll solo en el main */
    background: url('../images/main-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    z-index: 1;
    color: #fff;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0); /* Color gris translúcido */
    z-index: -1;
}

section {
    background: rgba(0, 0, 0, 0.8); /* Color gris translúcido más oscuro para el contenido */
    padding: 20px;
    border-radius: 10px;
    color: #fff; /* Cambia el color del texto a blanco */
    text-aling: center;
}

.service {
    display: flex;
    align-items: center; /* Alinea verticalmente los elementos */
    margin-bottom: 20px;
    justify-content: space-evenly;
    text-aling: center;
}

.service-img {
    margin-left: 10ps;	
    margin-right: 10px; /* Espacio entre la imagen y el texto */
    width: 40%; /* Ajusta el tamaño según sea necesario */
    height: auto; /* Mantiene la proporción de la imagen */
}

.service p {
    margin: 0; /* Elimina el margen del párrafo */
    text-align: center; /* Centra el texto horizontalmente */
}

footer {
    background-color: #444;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

.images img {
    width: 150px; /* Ajusta el tamaño según tus necesidades */
    height: 150px; /* Ajusta el tamaño según tus necesidades */
    margin: 10px;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.external-link {
    color: #fff; /* Color blanco para el texto del enlace */
    text-decoration: underline;
}

.external-link:hover {
    color: #ddd; /* Color ligeramente más claro al pasar el mouse */
    text-decoration: none;
}

/* recuadro imagenes*/
.carousel {
    width: 80%;
    max-width: 600px;
    overflow: hidden;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    background-color: #000; /* Fondo negro para el contenedor del carrusel */
}

.carousel img {
    width: 100%;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}


.carousel .carousel-image.show {
    opacity: 1;
}

