
/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    background: url('assets/imagenes/.Logo.jpeg') no-repeat center center fixed;
    background-size: cover;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
header {
    background-color: #2c3e50; /* Azul marino */
    color: white;
    width: 100%;
    padding: 15px 0;
    text-align: left; /* Logo alineado a la izquierda */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between; /* Para separar logo y menú */
    align-items: center; /* Centrado verticalmente */
    padding-left: 50px; /* Se agrega espacio extra para separar el logo de la izquierda */
}

header img.logo {
    max-width: 195px; /* Agrandado el tamaño del logo */
    height: auto;
    border-radius: 20%;
}

/* Menú de navegación */
nav {
    display: flex;
    gap: 20px; /* Espacio entre los botones */
    margin-right: 50px; /* Separar los botones del borde derecho */
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px; /* Se agregaron más padding para hacerlo más tipo botón */
    background-color: #34495e; /* Fondo más claro para los botones */
    border-radius: 5px; /* Bordes redondeados */
    display: inline-block;
    transition: background-color 0.3s ease; /* Transición suave en hover */
    font-size: 1.3rem; /* Aumento el tamaño de fuente para los enlaces de navegación */
}

nav a:hover {
    background-color: #172242; /* Color verde en hover */
    text-decoration: none;
}

/* Main Section */
main {
    width: 90%;
    max-width: 1200px;
    padding: 30px;
    background-color:#2c3e50;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1, h2, h3 {
    text-align: center;
    color: white; /* Azul marino */
}

/* Animación de aparición al hacer scroll */
.fade-in-section {
    opacity: 0; /* Inicia invisible */
    transform: translateY(30px); /* Desplazado hacia abajo */
    transition: opacity 1s ease, transform 1s ease; /* Transiciones suaves */
}

.fade-in-section.show {
    opacity: 1; /* Visible */
    transform: translateY(0); /* Regresa a su lugar original */
}

/* Estilo de las imágenes */
.image-container {
    position: relative;
    margin: 30px 0;
    overflow: hidden;
}

.story-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in-section.show .story-image {
    opacity: 1; /* Imagen se hace visible cuando la sección es visible */
}

/* Box section for interactive content (Misión, Visión, etc.) */
.box {
    background-color: white; /* Azul marino */
    color: #2c3e50;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    cursor: pointer;
    text-align: left;
    transition: transform 0.3s ease-in-out;
}

.box:hover {
    transform: translateY(-5px);
    background-color: white; /* Mismo color verde en hover */
}

.box-content {
    display: none;
    margin-top: 10px;
}

.box.active .box-content {
    display: block;
}

/* Títulos de las cajas (Misión, Visión, etc.) */
.box-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white; /* Blanco */
    margin-bottom: 10px;
}

/* Estilo para los títulos de servicios */
.carousel-item h3 {
    background-color: #2c3e50;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    font-size: 1.2rem;
    color: white; /* Azul oscuro para contraste */
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase; /* Opcional: transforma a mayúsculas */
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    width: 100%;
    padding: 10px 0; /* Reducido el tamaño del footer */
    text-align: left;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrado del contenido dentro del footer */
}

/* Contact methods (Footer) */
.contact-options {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    cursor: pointer;
}

.contact-methods {
    display: none;
    justify-content: center;
    margin-top: 10px;
}

.contact-methods a {
    margin: 0 10px;
    text-decoration: none;
    font-size: 1rem;
    color: #2c3e50;
}

.contact-methods a img {
    width: 30px;
    margin-right: 10px;
}

.contact-options:hover .contact-methods {
    display: flex;
}

footer .contact-info-footer {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
}

footer .contact-info-footer .contact-info-section,
footer .contact-info-footer .branches-section {
    flex: 1;
    max-width: 400px;
    margin: 10px;
}

footer .contact-info-footer h2 {
    color: white;
    margin-bottom: 10px;
}

/* Carousel */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 30px auto;
}

.carousel {
    display: flex;
    overflow: hidden;
    width: 100%;
    background-color: white;
    border-radius: 10px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px;
    text-align: center;
    color: #2c3e50;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-button.prev {
    left: -40px;
}

.carousel-button.next {
    right: -40px;
}

/* Mapa de ubicación */
.mapa-ubicacion {
    width: 90%; /* Aumentamos el ancho al 90% para que sea más grande */
    max-width: 1200px; /* Tamaño máximo para pantallas más grandes */
    margin: 0 auto; /* Centrado horizontalmente */
    padding: 20px 0;
    box-sizing: border-box;
    background-color: #fff; /* Fondo blanco */
    border-radius: 10px;
    height: 400px; /* Aumentamos la altura para hacerlo más grande */
    display: block; /* Asegura que el elemento sea tratado como bloque */
    margin-bottom: 20px; /* Margen inferior para separarlo del contenido posterior */
}

/* Imágenes y elementos multimedia */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Estilos básicos para las cajas */
.box {
    border: 1px solid #ccc;
    margin-bottom: 20px;
    cursor: pointer;
    overflow: hidden;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px; /* Suaviza las esquinas */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Añade sombras para estética */
}

.box-header {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #2c3e50;
}

.box-logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.box-title {
    font-size: 1.5em;
    margin: 0;
    display: flex;
    align-items: center;
}

.box-content {
    padding: 10px;
    line-height: 1.5;
    max-height: 200px;
    overflow-y: auto; /* Scroll para contenido largo */
    text-align: justify;
}

/* Estilos para el carrusel */
.carousel-container {
    position: relative;
}

.carousel-control-prev, .carousel-control-next {
    top: 50%;
    transform: translateY(-50%);
}
