/* Reset y fuente base */
body {
    font-family: 'Gotham Bold', sans-serif;
    margin: 0;
    padding: 0;
    background: #ffffff;
}


/* Títulos principales */
h1, h2 {
    font-family: "Special Gothic Expanded One", sans-serif;
    font-weight: 900;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* Hero section: solo estos títulos deben ir en blanco */
.hero-1 h1,
.hero-1 p {
    color: #ffffff;
}

/* Títulos de secciones como GALERÍA, NOTICIAS, etc. */
.centrar-noticias h2,
.contenedor > h2 {
    color: #041291; /* azul oscuro */
}

h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #ffc107;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Hero section */
.hero-1 {
    margin: 2rem auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background-color: #002868;
    gap: 2rem;
}

.hero-content {
    flex: 1 1 45%;
    color: #ffffff;
}

.hero-1 h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-1 p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1 1 45%;
    max-width: 600px;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
}

/* Botones */
.button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
}

.button.primary {
    background-color: #007bff;
    color: #fff;
}

.button.primary:hover {
    background-color: #0056b3;
}

.button.outline {
    background-color: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.button.outline:hover {
    background-color: #e9ecef;
}

/* Galería / Carrusel */
.contenedor {
    max-width: 100%;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-left: 6px solid #002868;
    border-right: 6px solid #dc3545;
}

.carousel-inner {
    border-radius: 12px;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.carousel-item.active img {
    transform: scale(1.01);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
    transition: background-color 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: #ffc107;
}

/* Cards Historia */
.Origin-Historia {
    width: 95%;
    margin: 0 auto;
}

.contenedor-gird {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: auto;
}

/* Tarjetas igualadas */
.card-historia {
    display: flex;
    flex-direction: row;
    background-color: #000;
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    width: 100%;
    height: 270px;
    /* Eliminado max-width para permitir el ajuste */
}

.card-historia:hover {
    transform: translateY(-5px);
}

.card-historia-img {
    flex: 1 1 250px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 100%;
}

.card-historia-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-historia-body {
    flex: 2 1 350px;
    background-color: #002868;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 992px) {
    .contenedor-gird {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .card-historia {
        flex-direction: column;
        height: auto;
    }

    .card-historia-img {
        height: 200px;
    }

    .card-historia-body {
        height: auto;
    }
}

@media (max-width: 768px) {
    .hero-1 {
        flex-direction: column;
        padding: 2rem 1rem;
    }

    .hero-1 h1 {
        font-size: 2rem;
    }

    .carousel-item img {
        height: 50vh;
    }

    .contenedor-gird {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .card-historia-img {
        height: 180px;
    }

    .card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .carousel-item img {
        height: 40vh;
    }

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

    h2 {
        font-size: 1.6rem;
    }
}

/* Llamado a la acción final */
.llamada-a-la-accion-final {
    background-color: #002868; /* Azul oscuro institucional */
    color: #ffffff;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;


    border-radius: 0.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.llamada-a-la-accion-final h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #ffffff;
    text-transform: uppercase;
}

.llamada-a-la-accion-final p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.botones-finales {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.botones-finales .button {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.botones-finales .primary {
    background-color: #ffc107;
    color: #000;
    border: none;
}

.botones-finales .primary:hover {
    background-color: #e0a800;
    color: #fff;
}

.botones-finales .outline {
    background-color: transparent;
    color: #ffc107;
    border: 2px solid #ffc107;
}

.botones-finales .outline:hover {
    background-color: #ffc107;
    color: #000;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
    .llamada-a-la-accion-final h2 {
        font-size: 1.6rem;
    }

    .llamada-a-la-accion-final p {
        font-size: 1rem;
    }

    .botones-finales {
        flex-direction: column;
        align-items: center;
    }

    .botones-finales .button {
        width: 100%;
        max-width: 300px;
    }
}


/* Footer */
footer .container-fluid {
    padding: 2rem 1rem;
}
