html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, #e6f0ff, #ffffff 70%); 
    min-height: 100vh; /* asegura que cubra toda la pantalla */
}


main {
    flex: 1;
}

.btn-primario-caltos {
    background-color: #000080;
    color: #ffffff;
    border: none;
}

.btn-primario-caltos:hover {
    background-color: #000080; /* el botón no cambia */
    color: #cccccc; /* texto gris al pasar el mouse */
}

.btn-secundario-caltos {
    background-color: #0066FF;
    color: #ffffff;
    border: none;
}

.btn-secundario-caltos:hover {
    background-color: #0055CC; /* azul más oscuro al pasar el mouse */
}

/* ==== NAV SAN CARLOS ==== */
.navbar {
    background: linear-gradient(90deg, #ffffff 0%, #f8fbff 100%);
}

.navbar-nav .nav-link {
    color: #2b4a7d !important;
    margin: 0 15px;
    position: relative; /* necesario para subrayado animado */
    transition: color 0.3s ease;
}

/* Hover dorado con subrayado animado */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -4px;
    background-color: #d4af37; /* dorado */
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #d4af37 !important;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Ajuste para que el subrayado quede centrado en mobile */
@media (max-width: 991px) {
    .navbar a img {
        max-height: 45px;
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.navbar-brand img,
.navbar a img {
    max-height: 55px;
}

/* ==== SLOGAN SAN CARLOS ==== */
.slogan-sc {
    background-color: #f0e6d2; /* mostaza suave */
    color: #2b4a7d; /* azul corporativo */
    padding: 15px 20px;
    border-left: 5px solid #d4af37; /* dorado destacado */
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}
.slogan-sc i {
    color: #d4af37; /* icono dorado */
    font-size: 1.8rem;
}

/* ==== NAV SAN CARLOS ==== */
.navbar {
    background: linear-gradient(90deg, #ffffff 0%, #f8fbff 100%);
}

.navbar-nav .nav-link {
    color: #2b4a7d !important;
    margin: 0 15px;
    position: relative; /* necesario para subrayado animado */
    transition: color 0.3s ease;
}

/* Hover dorado con subrayado animado */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -4px;
    background-color: #d4af37; /* dorado */
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #d4af37 !important;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Ajuste para que el subrayado quede centrado en mobile */
@media (max-width: 991px) {
    .navbar a img {
        max-height: 45px;
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.navbar-brand img,
.navbar a img {
    max-height: 55px;
}

/* ==== SLOGAN SAN CARLOS ==== */
.slogan-sc {
    background-color: #f0e6d2; /* mostaza suave */
    color: #2b4a7d; /* azul corporativo */
    padding: 15px 20px;
    border-left: 5px solid #d4af37; /* dorado destacado */
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* para que el texto no se salga en pantallas pequeñas */
}

.slogan-sc i {
    color: #d4af37; /* icono dorado */
    font-size: 1.8rem;
    margin-right: 10px;
}

/* Ajuste responsive */
@media (max-width: 767px) {
    .slogan-sc {
        font-size: 1.2rem;
        padding: 10px 15px;
        justify-content: center; /* centra el contenido en móviles */
        text-align: center;
    }

    .slogan-sc i {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
}

/* ==== MAIN SAN CARLOS ==== */
main.container {
    max-width: 960px; /* igual que la tabla original de 940px */
}

/* Tarjetas de contenido */
.card {
    border-radius: 0.5rem;
}

.card-header {
    font-size: 1.2rem;
}

/* Lista de puntos */
.card-body ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Imagen derecha */
.col-md-4 img {
    max-width: 100%;
    height: auto;
}

/* Tabla de especificaciones */
.table {
    font-size: 0.95rem;
}

.table th,
.table td {
    vertical-align: middle;
    text-align: center;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.3s;
}

/* Alternar color de filas */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

.separador-azul {
    height: 2px;
    background-color: #0d6efd;
}

/* Ajuste responsive para main */
@media (max-width: 767px) {
    .card-body ul li {
        font-size: 0.95rem;
    }

    .card-header {
        font-size: 1rem;
    }
}

/* ==== FOOTER SAN CARLOS ==== */
.footer-sc {
    background-color: #f8f9fa; /* fondo suave */
    color: #2b4a7d; /* azul corporativo */
    border-top: 2px solid #d4af37; /* línea dorada arriba */
    font-size: 0.95rem;
}

.footer-sc p {
    margin-bottom: 0.25rem;
}

.footer-link {
    color: #2b4a7d;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -2px;
    background-color: #d4af37; /* dorado */
    transition: width 0.3s;
}

.footer-link:hover {
    color: #d4af37;
}

.footer-link:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 767px) {
    .footer-sc {
        text-align: center;
    }
    .footer-links {
        margin-top: 10px;
    }
}

.footer-contact i {
    color: #d4af37; /* dorado */
    font-size: 1.5rem;
}

/* ==== GALERIA SAN CARLOS ==== */
.galeria-item {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.galeria-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    transition: transform 0.3s;
}

/* Hover dorado con zoom */
.galeria-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Icono de zoom */
.galeria-item a {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #d4af37;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.galeria-item:hover a {
    opacity: 1;
}

/* Separador azul */
.separador-azul {
    height: 2px;
    background-color: #0d6efd;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Ajuste responsive para la galería */
@media (max-width: 991px) {
    .galeria-item {
        width: 48%;
    }
}

@media (max-width: 575px) {
    .galeria-item {
        width: 100%;
    }
}

.foto-curva {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.foto-curva:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    z-index: 2;
}

/* Borde dorado para Lightbox */
.lb-image {
    border: 5px solid #d4af37; /* dorado */
    border-radius: 0.5rem;      /* esquinas suavizadas */
}

/* Opcional: sombra suave alrededor */
.lb-outerContainer {
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}
