.subheader {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: top 0.3s;
    top: -100px;
    position: fixed;
    width: 100%;
    z-index: 10;
}

.subheader.visible {
    top: 0;
}

.subheader .nav-link {
    color: #000;
    font-weight: bold;
}

.subheader .nav-link:hover {
    color: #042D62;
}

.navbar-nav {
    flex: 1;
    justify-content: center;
}

.hero {
    padding-inline: 30px;
}

.hero .presentation-text {
    margin-block: 30px;
    margin-left: 50px;
}

.hero h1 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero .presentation-txt-p1 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero .btn-primary {
    background-color: #042D62;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    padding: 10px 130px;
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

.hero .btn-primary:hover {
    transform: scale(1.02);
}

.hero .btn-primary:active {
    background-color: #003853;
}

.hero img {
    max-width: 70%;
    height: 70%;
    border-radius: 8px;
}

.hero .hero-services {
    margin-top: 6px;
    font-size: 16px;
    font-weight: bold;
}

.hero .presentation {
    padding-inline: 20px;
}

.hero .top-btn-txt {
    font-size: 1.05rem;
    font-weight: 500;
}

.h3-hero {
    font-size: 1.25rem;
    font-weight: normal;
}

.about-me {
    padding-inline: 30px;
    padding-top: 30px;
}

.about-me .presentation-text {
    margin-block: 50px;
}

.about-me .presentation-txt-p1 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.about-me .btn-primary {
    background-color: #042D62;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    padding: 10px 130px;
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

.about-me .btn-primary:hover {
    transform: scale(1.02);
}

.about-me .btn-primary:active {
    background-color: #003853;
}

.about-me img {
    max-width: 70%;
    height: 70%;
    border-radius: 8px;
}

.about-me .hero-services {
    margin-top: 6px;
    font-size: 16px;
    font-weight: bold;
}

.about-me .presentation {
    padding-inline: 20px;
}

.services {
    background-color: #f7f7f7;
}

.services .description-text {
    font-size: 19px;
}

.services .container {
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 20px;
}

.minimal-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
    display: flex;
    flex-direction: row;
    height: 200px;
}

.minimal-card img {
    width: 30%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}

.minimal-card .card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.minimal-card .card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.minimal-card .card-text {
    margin-bottom: 0;
    flex-grow: 1;
}

.minimal-card:hover {
    background-color: #042D62;
    transform: scale(1.02);
    color: #fff;
}

.minimal-card:active {
    background-color: #003853;
    color: #fff;
}

.text-decoration-none {
    text-decoration: none;
}

.services a {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width:768px) {
    .minimal-card {
        flex-direction: column;
        height: auto;
    }

    .minimal-card img {
        width: 100%;
        height: 150px;
        border-radius: 10px 10px 0 0;
    }
}

.carousel-container {
    max-width: 1000px;
    margin-top: 0px;
    margin: 0 auto;
    margin-bottom: 50px;
}

.carousel-inner img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.author-writer {
    background-color: #f7f7f7;
    margin-top: 30px;
}

.author-container {
    padding: 0px 100px;
}

.btn-author {
    background-color: #042D62;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    padding: 7px 0;
    transition: transform 0.2s ease, background-color 0.2s ease;
    font-size: 1rem;
}

.btn-autor:hover {
    transform: scale(1.02);
    background-color: #042D62;
}

.btn-autor:active {
    background-color: #003853 !important;
}

/* Estilos para la sección de alianzas */
.alianzas {
    padding: 2rem 0;
    margin-top: 30px;
}

.alianzas h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.alianzas {
    text-align: center;
    padding: 2rem 1rem;
}

.alianzas h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.alianzas__logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.alianzas__logos img {
    max-height: 100px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.alianzas__logos img:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1);
}

.alianzas__logos img:active {
    transform: scale(0.95) rotate(0deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    filter: brightness(0.9);
}

@media (max-width: 768px) {
    .alianzas h2 {
        font-size: 1.75rem;
    }

    .alianzas__logos {
        gap: 1.5rem;
    }

    .alianzas__logos img {
        max-height: 80px;
    }
}

@media (max-width: 480px) {
    .alianzas h2 {
        font-size: 1.5rem;
    }

    .alianzas__logos {
        gap: 1rem;
    }

    .alianzas__logos img {
        max-height: 60px;
    }
}



/* Estilos generales de la sección de libros */
.books {
    margin-top: 30px;
    padding: 60px 15px;
    background-color: #f7f7f7;
}

.books .book-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.books h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.books .presentation-txt-p1 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    min-height: 100px;
    /* Ayuda a alinear verticalmente si los textos varían */
}

.books .btn-primary {
    background-color: #042D62;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    padding: 12px 40px;
    /* Padding más responsivo */
    transition: transform 0.2s ease, background-color 0.2s ease;
    width: 100%;
    max-width: 320px;
    /* Ancho máximo para el botón */
}

.books .btn-primary:hover {
    transform: scale(1.03);
    background-color: #003853;
}

.books .btn-primary:active {
    background-color: #002b40;
}

.books img {
    max-width: 100%;
    padding: 10px;
    height: auto;
    border-radius: 8px;
}

@media (min-width: 992px) {
    .carousel-control-prev {
        left: -80px;
    }

    .carousel-control-next {
        right: -80px;
    }
}


.carousel-control-prev-icon,
.carousel-control-next-icon {

    background-image: none;
    width: 2rem;
    height: 2rem;
    background-color: #042D62;
    background-size: 100% 100%;
    border-radius: 50%;
    padding: 1.5rem;
}

/* Icono de la flecha PREV */
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

/* Icono de la flecha NEXT */
.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.schedule {
    background-color: #222222;
    color: white;
    text-align: center;
}

.schedule h2 {
    font-size: 47px;
}

.schedule p {
    font-size: 19px;
}

.schedule .btn-primary {
    background-color: #042D62;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    padding: 10px 110px;
    margin-top: 20px;
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}

.schedule .btn-primary:hover {
    transform: scale(1.02);
}

.schedule .btn-primary:active {
    background-color: #003853;
}

.job-board {
    background-color: #042D62;
    color: white;
    text-align: center;
    padding: 60px 20px;
    /* Espaciado general */
}

.job-board-container {
    max-width: 700px;
    /* Define el ancho del cuadro */
    background-color: rgba(255, 255, 255, 0.1);
    /* Fondo semitransparente */
    padding: 40px;
    border-radius: 15px;
    /* Bordes redondeados */
    margin: auto;
    /* Centrar horizontalmente */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    /* Sombra sutil */
}

.job-board h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.job-board p {
    font-size: 18px;
    margin-bottom: 10px;
}

.job-board .btn-primary {
    background-color: #042D62;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    padding: 10px 50px;
    transition: transform 0.2s ease;
}

.job-board .btn-primary:hover {
    transform: scale(1.05);
}

.job-board .btn-primary:active {
    background-color: #003853;
}



.contenedor-imagen {
    /* Opcional: Centra el contenedor si la imagen no ocupa todo el ancho */
    margin: 0 auto;
    /* Opcional: Define un ancho máximo para que el contenedor no se extienda indefinidamente en pantallas muy grandes */
    max-width: 1200px;
}

.imagen-experto {
    /* 1. La clave de la responsividad:
       Asegura que la imagen nunca exceda el ancho de su contenedor. */
    max-width: 100%;

    /* 2. Asegura que la imagen mantenga su proporción original
       cuando su ancho se reduce. */
    height: auto;

    /* 3. Muestra la imagen como un elemento de bloque para evitar espacios inferiores
       si estuviera dentro de un elemento en línea como texto. */
    display: block;
}

/* El código original */
.seccion-imagen {
    background-color: #0f5471;
    padding: 20px 0;
    text-align: center;
}

.contenedor-imagen {
    width: 80%;
    max-width: 1600px;
    /* Aumentamos el ancho máximo del contenedor */
    margin: 0 auto;
}

.imagen-experto {
    width: 1300px;
    /* Aumentamos el ancho de la imagen */
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    /* Redondea las esquinas */
}


@media (max-width: 768px) {
    .imagen-experto {
        width: 95%;
        /* La imagen ocupa más ancho en pantallas pequeñas */
    }
}

@media (max-width: 480px) {
    .contenedor-imagen {
        width: 100%;
        /* El contenedor ocupa todo el ancho en pantallas muy pequeñas */
    }
}



@media (max-width:767.98px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
        text-align: center;
    }

    .hero h1 {
        text-align: center;
    }

    .hero .hero-services {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .hero img {
        max-width: 90%;
    }

    .about-me img {
        max-width: 90%;
    }

    .hero .btn-primary {
        padding: 13px 70px;
    }

    .hero .presentation-text {
        margin-block: 10px;
        margin-left: 0px;
    }

    .about-me .btn-primary {
        padding: 13px 70px;
        font-size: 1rem;
    }

    .author-container {
        padding: 0px 25px;
    }
}

@media (min-width:768px) {
    .mobile-only {
        display: none;
    }

    .hero .btn-primary {
        padding: 11px 120px;
        font-size: 1rem;
    }
}

@media (max-width:768px) {
    .hero .presentation {
        padding-inline: 0px;

        .hero img {
            max-width: 90%;
        }
    }

    .schedule .btn-primary {
        background-color: #042D62;
        font-size: 1.1rem;
        font-weight: 500;
        border: none;
        border-radius: 10px;
        padding: 18px 70px;
        margin-top: 20px;
        margin-bottom: 20px;
        transition: transform 0.2s ease;
    }

    .books .container {
        padding-top: 10px;
        padding-bottom: 30px;
    }

    .books .presentation {
        padding-inline: 20px;
        margin-bottom: 5px;
    }
}

@media (max-width:1005px) {
    .hero img {
        max-width: 90%;
    }

    .about-me img {
        max-width: 90%;
    }

    .about-me .btn-primary {
        padding: 13px 70px;
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

@media (max-width:990px) {
    .hero .presentation {
        padding-inline: 0px;
        margin-bottom: 5px;
    }
}

@media (max-width:990px) {
    .about-me .presentation {
        padding-inline: 20px;
        margin-bottom: 5px;
    }
}

@media (max-width:990px) {
    .carousel-inner img {
        height: 350px;
    }
}

@media (max-width:767px) {
    .carousel-inner img {
        height: 320px;
    }

    .hero .presentation-txt-p1 {
        font-size: 1.05rem;
        margin-bottom: 20px;
        text-align: center;
    }
}

@media (max-width:575px) {
    .carousel-inner img {
        height: 290px;
    }
}




/* eBook Signup Section */
.ebook-signup {
    background-color: #1a237e;
    /* Deep Blue */
    padding: 40px 0;
    color: white;
}

.ebook-signup-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.ebook-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.ebook-text p {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 0.9;
}

.ebook-form {
    flex-grow: 1;
    max-width: 500px;
}

.ebook-form form {
    background: transparent;
}

.ebook-form input {
    border-radius: 4px;
    border: none;
    padding: 10px 15px;
    height: 45px;
}

.ebook-form .btn-primary {
    background-color: #2962ff;
    /* Brighter blue for button */
    border: none;
    border-radius: 4px;
    padding: 10px 30px;
    height: 45px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.ebook-form .btn-primary:hover {
    background-color: #0039cb;
}

@media (max-width: 768px) {
    .ebook-signup-content {
        flex-direction: column;
        text-align: center;
    }

    .ebook-form {
        width: 100%;
    }

    .ebook-form form {
        flex-direction: column;
        gap: 10px;
    }

    .ebook-form .form-group {
        width: 100%;
        margin-right: 0 !important;
    }

    .ebook-form .btn-primary {
        width: 100%;
    }
}


.ebook-disclaimer {
    font-size: 0.75rem;
    opacity: 0.8;
    line-height: 1.4;
    margin-top: 10px;
    color: #e0e0e0;
}

/* HR Alliance Section */
.hr-alliance-section {
    background-color: #f8f9fa;
    /* Light grey to separate from white/blue */
    padding: 60px 0;
}

.hr-alliance-logo {
    max-width: 250px;
    height: auto;
    transition: transform 0.3s ease;
}

.hr-alliance-logo:hover {
    transform: scale(1.05);
}

.hr-alliance-text {
    font-size: 1.25rem;
    color: #333;
    line-height: 1.6;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hr-alliance-section .btn-primary {
    background-color: #042D62;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    padding: 10px 40px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hr-alliance-section .btn-primary:hover {
    transform: scale(1.05);
    background-color: #003853;
}