/* Estilos generales */
:root {
    --primary-color: #004d99;
    --secondary-color: #00366b;
    --accent-color: #f8f9fa;
    --text-color: #333;
    --light-text: #fff;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    margin-bottom: 15px; /* Reducido de 20px */
}

p {
    margin-bottom: 12px; /* Reducido de 15px */
    font-size: 16px;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* CORRECCIÓN PRINCIPAL: Reducir el padding vertical de las secciones */
.section {
    padding: 50px 0; /* Reducido de 80px */
    position: relative;
}

/* CORRECCIÓN: Reducir el margen inferior del encabezado de sección */
.section-header {
    text-align: center;
    margin-bottom: 30px; /* Reducido de 50px */
}

.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px; /* Reducido de 15px */
    font-weight: 300;
}

.sub{
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

.divider {
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto; /* Reducido de 20px */
}

/* Botones */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 0;
    font-weight: 400;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-light {
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 25px;
    font-size: 14px;
}

/* Header y navegación - MODIFICADO para estilo saucealto */
.top-bar {
    background-color: #fff; /* Cambiado a blanco como en saucealto */
    padding: 10px 0;
    color: var(--text-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--text-color);
}

.logo img {
    max-height: 60px;
}

.top-contact a {
    color: var(--text-color);
    margin-left: 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.top-contact a i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* .top-contact a:hover {
    color: var(--primary-color);
} */

.header-integrated {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
}

/* Hacer el navbar completamente transparente */
.navbar {
    background-color: transparent !important;
    box-shadow: none !important;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Estilo de los links */
.navbar-nav {
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.nav-link {
    color: white !important;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 15px !important;
    transition: all 0.3s ease;
    position: relative;
}


/* Logo */
.logo {
    padding: 10px 0;
}

.logo img {
    max-height: 80px;
    width: auto;
}

/* Carrusel debajo */
.hero-carousel {
    margin-top: 0;
    position: relative;
}

.hero-carousel .carousel-item {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(0, 77, 153, 0.9);
        padding: 15px;
        border-radius: 5px;
        margin-top: 10px;
    }
    
    .navbar-toggler {
        background-color: rgba(0, 77, 153, 0.5);
        border-color: white;
    }
}

.carousel-caption {
    background-color: transparent;
    padding: 30px;
    border-radius: 5px;
    max-width: 600px;
    margin: 0 auto;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
}

.carousel-caption h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

/* Cards */
/* CORRECCIÓN: Reducir los márgenes de las tarjetas */
.feature-card {
    margin-bottom: 20px; /* Reducido de 30px */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.feature-card .card-body {
    padding: 20px; /* Reducido de 25px */
}

.feature-card .card-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px; /* Reducido de 15px */
}

/* Sección con color de fondo */
.bg-primary-section {
    background-color: var(--primary-color);
    color: var(--light-text);
    position: relative;
}

.bg-primary-section .section-title,
.bg-primary-section .section-subtitle {
    color: var(--light-text);
}

.bg-primary-section .divider {
    background-color: var(--light-text);
}

/* Testimonials Carousel */
.testimonial-carousel .owl-item {
    padding: 15px; /* Reducido de 20px */
}

.testimonial {
    background-color: #fff;
    padding: 25px; /* Reducido de 30px */
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 15px; /* Reducido de 20px */
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

/* Eventos Carousel */
.event-carousel .owl-item {
    padding: 10px; /* Reducido de 15px */
}

.event-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.event-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.event-content {
    padding: 15px; /* Reducido de 20px */
}

.event-content h4 {
    font-size: 18px;
    margin-bottom: 8px; /* Reducido de 10px */
    color: var(--primary-color);
}

/* Sección de instalaciones */
/* CORRECCIÓN: Reducir los márgenes inferiores */
.facility-item {
    position: relative;
    margin-bottom: 20px; /* Reducido de 30px */
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.facility-item img {
    transition: var(--transition);
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.facility-item:hover img {
    transform: scale(1.1);
}

.facility-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px; /* Reducido de 20px */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--light-text);
    transform: translateY(55px);
    transition: var(--transition);
}

.facility-content h3 {
    margin: 0 0 25px; /* Reducido de 30px */
    font-size: 1.5rem;
}

.facility-content p {
    opacity: 0;
    transition: var(--transition);
    margin-bottom: 10px; /* Reducido de 15px */
}

.facility-item:hover .facility-content {
    transform: translateY(0);
}

.facility-item:hover .facility-content p {
    opacity: 1;
}

/* Sección de galería */
/* CORRECCIÓN: Reducir los márgenes */
.gallery-item {
    margin-bottom: 20px; /* Reducido de 30px */
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    transition: var(--transition);
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 77, 153, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--light-text);
    font-size: 2rem;
}

/* Call to action section */
/* CORRECCIÓN: Reducir el padding */
.cta-section {
    background: linear-gradient(rgba(0, 77, 153, 0.9), rgba(0, 77, 153, 0.9)), url('/api/placeholder/1200/400') center/cover no-repeat;
    padding: 70px 0; /* Reducido de 100px */
    color: var(--light-text);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px; /* Reducido de 30px */
}

/* Footer */
/* CORRECCIÓN: Reducir el padding superior */
footer {
    background-color: #003366;
    color: var(--light-text);
    padding: 50px 0 20px; /* Reducido de 70px */
}

.footer-widget h4 {
    font-size: 18px;
    margin-bottom: 20px; /* Reducido de 25px */
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 8px; /* Reducido de 10px */
}

.footer-widget ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-widget ul li a:hover {
    color: var(--light-text);
    padding-left: 10px;
}

.footer-widget .contact-info i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px; /* Reducido de 30px */
    margin-top: 40px; /* Reducido de 50px */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 14px;
}


/* Estilos elegantes para la sección de contacto */
#contacto {
    background-color: #f8f9fa;
    padding: 80px 0;
}

/* Tarjeta de información de contacto */
.contact-info-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
    padding: 30px;
    height: 100%;
    transition: all 0.4s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 51, 102, 0.15);
}

/* Elementos de información */
.info-item {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.info-icon {
    background-color: rgba(0, 102, 204, 0.1);
    color: #0066cc;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.info-content {
    flex-grow: 1;
}

.info-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #003366;
    font-weight: 600;
}

.info-content p {
    color: #555;
    margin-bottom: 0;
    font-size: 15px;
}

/* Contenedor del mapa de Google */
.google-map-wrapper {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.google-map-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 51, 102, 0.15);
}

.map-header {
    background-color: #003366;
    color: white;
    padding: 15px 20px;
    font-weight: 500;
}

.map-header h4 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.map-header i {
    margin-right: 10px;
    /* color: #ff9900; */
}

.google-map-container {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

.google-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.map-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
}

.location-info {
    color: #666;
    font-size: 14px;
}

/* Botón de cómo llegar */
.map-footer .btn-primary {
    background-color: #0066cc;
    border-color: #0066cc;
    font-weight: 500;
    transition: all 0.3s ease;
}

.map-footer .btn-primary:hover {
    background-color: #004d99;
    border-color: #004d99;
    transform: translateY(-2px);
}

/* Estilos responsive */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 15px !important;
    }
    
    .carousel-caption {
        max-width: 90%;
    }
    
    .carousel-caption h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    /* CORRECCIÓN: Reducir aún más el padding en pantallas medianas */
    .section {
        padding: 40px 0;
    }
}


@media (max-width: 767.98px) {
    .top-contact {
        text-align: center;
        margin-top: 10px;
    }
    
    .carousel-caption {
        text-align: center;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .feature-image {
        margin-bottom: 20px; /* Reducido de 30px */
    }
    
    /* CORRECCIÓN: Reducir aún más el padding en pantallas pequeñas */
    .section {
        padding: 30px 0; /* Reducido de 50px */
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .hero-carousel .carousel-item {
        height: 500px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Estilos actuales para la barra superior */
.top-bar {
    background-color: var(--primary-color);
    padding: 10px 0;
    color: var(--light-text);
}

/* Añadir estos estilos para centrar el logo en dispositivos móviles */
@media (max-width: 767.98px) {
    /* Centrar el contenedor del logo */
    .top-bar .col-lg-6.col-md-5 {
        text-align: center;
        margin-bottom: 10px;
    }
    
    /* Centrar la información de contacto */
    .top-contact {
        text-align: center;
        margin-top: 10px;
    }
    
    /* Ajustar espaciado para mejorar apariencia en móvil */
    .top-contact a {
        margin: 0 10px;
        display: inline-block;
    }
    
    /* Opcional: si quieres que los iconos de contacto se vean mejor en móvil */
    .top-contact a i {
        margin-right: 5px;
    }
}

/* Para pantallas aún más pequeñas, ajustar el tamaño y espaciado */
@media (max-width: 575.98px) {
    /* Reducir tamaño del logo si es necesario */
    .top-bar img {
        width: 60px;
        height: auto;
    }
    
    /* Apilar los enlaces de contacto para mejor visualización */
    .top-contact a {
        display: block;
        margin: 5px 0;
    }
}



@media (max-width: 991px) {
    .navbar-nav .nav-link {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav .nav-item:first-child .nav-link {
        border-left: none;
    }
    
    .top-contact {
        text-align: center;
        margin-top: 10px;
    }
    
    .top-contact a {
        margin: 0 10px;
    }
    
    .logo {
        text-align: center;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(0, 77, 153, 0.9);
        padding: 15px;
        border-radius: 5px;
        margin-top: 10px;
    }
    
    .navbar-toggler {
        background-color: rgba(0, 77, 153, 0.5);
        border-color: white;
    }
}