/* ================================
   Banner principal con texto encima
   ================================*/
.banner-area {
    position: relative;
    background-size: cover;
    height: 725px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.banner-area::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
}

/* 🎯 Imágenes específicas */
.banner-tesis {
    position: relative;
    background-size: cover;
    background-position: center 50%;
}

.banner-content {
    position: absolute;
    /* se posiciona respecto al banner */
    top: 55%;
    /* lo centra verticalmente */
    left: 200px;
    /* separación desde el borde izquierdo */
    transform: translateY(-50%);
    /* centra verticalmente */
    z-index: 2;
}

.titulo-normal {
    font-size: 70px;
    font-weight: bold;
    line-height: 1.4;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.65);
}

.br-mobile {
    display: inline;
}

.mobile-text {
    display: none;
}

.banner-img {
    width: 100%;
    height: 150%;
    object-fit: cover;
    object-position: center 0%;
}

/* 🔧 Adaptación del banner para móviles */
@media (max-width: 768px) {
    .banner-area {
        background-size: cover;
        justify-content: right;
        height: 342px;
        top: 35px;
        overflow: hidden;
    }

    .banner-area.banner-servicios {
        background-position: left 0%;
        /* o el % que necesites */
    }

    .titulo-normal {
        font-size: 28px;
        line-height: 1.3;
    }

    .banner-content {
        position: absolute;
        top: 50%;
        /* centro vertical */
        left: 50%;
        /* centro horizontal */
        transform: translate(-50%, -50%);
        width: 90%;
        /* margen lateral automático */
        text-align: center;
        /* centrado */
        padding: 0 10px;
        /* respiro lateral */
        z-index: 2;
    }

    .banner-img {
        width: 120%;
        height: auto;
    }

    .br-mobile {
        display: none;
    }

    .pc-text {
        display: none;
    }

    .mobile-text {
        display: block;
    }
}

/* ===========
   MIGA DE PAN
   =========== */
.breadcrumb-nav {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
}

.breadcrumb-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: flex-start;
    /* o 'center' si quieres centrar */
    margin-left: -20px;
}

.custom-breadcrumb {
    border-radius: 4px;
    padding: 0.5rem 1rem;
}

.breadcrumb-item a.breadcrumb-link {
    color: #3D3D3F;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a.breadcrumb-link:hover {
    color: #1D2D8C;
}

.breadcrumb-item.active {
    color: #1D2D8C !important;
    font-weight: 500;
    /* Opcional para que resalte un poco */
}

.breadcrumb-nav .breadcrumb {
    background: #ffffff;
}

/* =================
   MIGA DE PAN MOVIL
   ================= */
@media (max-width: 768px) {
    .breadcrumb-wrapper {
        margin-top: 30px;
        margin-bottom: 20px;
        margin-left: -6px;
    }

    .custom-breadcrumb {
        padding: 0.5rem;
        font-size: 14px;
        margin-bottom: -3px;
    }

    .breadcrumb-item a.breadcrumb-link,
    .breadcrumb-item.active {
        font-size: 14px;
    }
}

/* ============================================
   Áreas de Especialización en Asesoría de Tesis
   ============================================ */

/* Fuentes y espaciado general (antes en <section>) */
.area-tesis-section {
    font-family: 'Inter', sans-serif;
}

/* Título */
.titulo-areas {
    color: #1D2D8C;
    margin-bottom: 10px;
    font-size: 28px;

}

/* Párrafo descriptivo */
.descripcion-areas {
    color: #555;
}

/* Línea separadora */
.separador-areas {
    width: 80px;
    height: 3px;
    background-color: #1D2D8C;
    margin: 0 auto 10px auto;
    border: none;
}

.custom-accordion .accordion-item {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.custom-accordion .accordion-button {
    background-color: white;
    color: #1D2D8C;
    font-weight: 600;
    padding: 16px 20px;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.custom-accordion .accordion-button:hover {
    background-color: #f0f4ff;
    color: #1D2D8C;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background-color: #1D2D8C;
    color: white;
}

.custom-accordion .accordion-body {
    background-color: #ffffff;
    color: #333;
    padding: 15px 20px;
    line-height: 1.6;
}

/* Íconos dinámicos */
.icon-toggle {
    transition: opacity 0.3s ease;
}

.accordion-button .dash {
    display: none;
}

.accordion-button:not(.collapsed) .plus {
    display: none;
}

.accordion-button:not(.collapsed) .dash {
    display: inline-block;
}

.p-lista {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: rgba(51, 79, 150, 1);
    font-size: 14px;
    cursor: pointer;
    /* para que parezca clickeable */
    transition: color 0.3s ease;
    /* transición suave */
}

.p-lista:hover {
    color: #007bff;
    /* color al pasar el mouse */
}

.desglosable {
    font-size: 14px;
    margin-bottom: -10px;
}

@media (max-width: 768px) {
    .custom-accordion .accordion-button {
        padding: 14px 18px;
    }

    .custom-accordion .accordion-body {
        padding: 14px 18px;
    }

    .titulo-areas {
        color: #1D2D8C;
        margin-bottom: 10px;
        font-size: 19.2px;

    }

    .p-lista {
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        color: rgba(51, 79, 150, 1);
        font-size: 14px;
        text-align: left;
    }

    .lista {
        font-size: 15px;
        padding-left: 5px;
        list-style: none;
        margin-bottom: -25px !important;
    }
}

/* =======================================
   TITULOS QUE TIENEN H2 QUE SON 3 TITULOS 
   =======================================*/
.titulo-seccion {
    margin-bottom: 1rem !important;
    /* reduce espacio debajo del h2 */
}

.titulo-segundo {
    margin-top: 20px !important;
    /* o el valor que prefieras */
}

.titulo-tercero {
    margin-top: 28px !important;
    /* o el valor que prefieras */
}

.titulo {
    margin-top: -2px !important;
    padding-bottom: 20px;
    /* o el valor que prefieras */
}

/* TITULOS QUE TIENEN H2 QUE SON 3 TITULOS PARA MOVIL */
@media (max-width: 768px) {

    .titulo-seccion,
    .titulo-segundo,
    .titulo-tercero {
        line-height: 1.1 !important;
        font-size: 1.2rem !important;
        margin-bottom: 0.75rem !important;
        padding-left: 0;
        text-align: center !important;
    }

    .titulo-segundo {
        margin-top: -30px !important;
    }

    .titulo-tercero {
        margin-top: 1.5rem !important;
    }

    .titulo-principal {
        line-height: 1.1 !important;
        font-size: 1.2rem !important;
        margin-bottom: 0.75rem !important;
        margin-top: 10px;
        padding-left: 0;
        text-align: center !important;
    }

    .p-lista {
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        color: rgba(51, 79, 150, 1);
        font-size: 14px;
        text-align: left;
    }
}

/* =============================================================
   PARRAFO DE CIENTIFICA CONSULTORES DE TESIS, ENLACE PARA INCIO 
   =============================================================*/
.parrafo-intro a {
    color: #0066cc;
    font-weight: 500;
    text-decoration: none;
    /* 👈 Oculta el subrayado por defecto */
    position: relative;
    z-index: 10;
    pointer-events: auto;
    transition: all 0.2s ease-in-out;
    /* 👈 Para una animación suave */
}

.parrafo-intro a:hover {
    color: #004999;
    /* 👈 Un azul más oscuro al pasar el mouse */
    text-decoration: none !important;
    /* 👈 Esto quita el subrayado */
    cursor: pointer;
}

.parrafo-principal {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 600;
    color: #323232;
}

.heading {
    padding-bottom: 5px;
    margin-top: 10px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .parrafo-principal {
        line-height: 1.1 !important;
        font-size: 1.2rem !important;
        margin-bottom: 0.75rem !important;
        padding-left: 0;
        text-align: center !important;
    }

    .heading {
        padding-bottom: 40px;
        margin-top: 10px;
        transition: 0.3s;
    }
}

/* ===================
   TIPOS DE ASESORÍAS
   =================== */

/* Contenedor general: sube toda la sección en todas las vistas */
.tipos-asesorias {
    margin-top: 40px !important;
    padding-top: 0 !important;
}

/* Título */
.title.classic {
    color: #333;
    font-size: 28px !important;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    margin-left: -20px;
}

/* Contenedor de la tarjeta */
.container-asesoria {
    position: relative;
    overflow: hidden;
}

/* Imagen */
.section_asesoria_img {
    width: 100%;
    height: 310px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .tipos-asesorias {
        margin-top: 50px !important;
        margin-bottom: -70px;
    }
}

/* ========================
   IMÁGENES DE LAS TARJETAS 
   ========================*/
.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

@media (min-width: 1200px) {
    .card-img-top {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .card-img-top {
        height: 200px;
    }
}

/* --- TARJETA --- */
.servicio-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.servicio-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.seccion-servicios {
    margin-top: -0.25rem !important;
    /* reduce espacio encima de tarjetas */
}

/* ==================================
   OVERLAY PARA EL BOTON COTICE AHORA 
   ==================================*/
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

.servicio-card:hover .overlay {
    opacity: 1;
}

.btn-wsp-cotizar {
    background-color: white;
    color: #1D2D8C;
    /* Azul corporativo */
    font-weight: 600;
    border: 2px solid #1D2D8C;
    border-radius: 30px;
    padding: 0.5rem 1.4rem;
    font-size: 16px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.btn-wsp-cotizar:hover {
    background-color: #25D366;
    /* Verde WhatsApp */
    border-color: #25D366;
    color: white;
}

.btn-wsp-cotizar i {
    font-size: 18px;
}

/* --- DESCRIPCIÓN OCULTA: bloque separado --- */
.descripcion-oculta {
    height: 0;
    overflow: hidden;
    margin-top: 0;
    /* pegada cuando está oculta */
    transition: height 0.3s ease,
        margin-top 0.3s ease,
        padding 0.3s ease;
}

/* --- Al hover sobre la tarjeta: mostramos el hermano separado --- */
.servicio-card:hover+.descripcion-oculta {
    height: auto;
    margin-top: 0.5rem;
    /* separación clara del título */
    padding: 0.5rem 0;
    /* espacio vertical interno */
}

/* --- Estilos de la franja (dentro) --- */
.fondo-secundario {
    background-color: #273280;
    color: white;
    border-radius: 0 0 0.1rem 0.1rem;
    font-size: 17px;
}

h3 {
    font-family: 'Inter', sans-serif;
    color: #323232;
    letter-spacing: 0.5px;
    text-transform: none;
    margin: 0 0 0.5em;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
}

/* --- Móvil: la descripción siempre visible y separada --- */
@media (max-width: 768px) {
    .descripcion-oculta {
        height: auto !important;
        margin-top: 0.3rem !important;
        padding: 0.5rem 0 !important;
    }

    h3 {
        font-family: 'Inter', sans-serif;
        color: #323232;
        letter-spacing: 0.5px;
        text-transform: none;
        margin: 0 0 0.5em;
        font-size: 16px;
        line-height: 1.3;
        font-weight: 600;
    }

    a {
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        text-decoration: none;
        color: rgba(51, 79, 150, 1);
    }
}

.p-lista {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: rgba(51, 79, 150, 1);
    font-size: 14px;
    cursor: pointer;
    /* para que parezca clickeable */
    transition: color 0.3s ease;
    /* transición suave */
}

.p-lista:hover {
    color: #007bff;
    /* color al pasar el mouse */
}

.desglosable{
    font-size: 14px;
    margin-bottom: -10px;
}

a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-decoration: none;
    color: rgba(51, 79, 150, 1);
}

#back-to-top .btn.btn-primary:hover {
    background: #334F96;
}

#back-to-top .btn.btn-primary {
    border-radius: 100%;
    padding: 0px;
    font-size: 18px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    color: #fff;
    opacity: 0.5;
}

@media (min-width: 992px) {
    :root {
        --push-distance: 100px;
    }

    /* cámbialo aquí si quieres más/menos */

    section#service .row.mt-5>.card-container:nth-child(1):hover~.card-container:nth-child(4) {
        transform: translateY(var(--push-distance));
        transition: transform 0.35s ease;
        will-change: transform;
    }

    section#service .row.mt-5>.card-container:nth-child(3):hover~.card-container:nth-child(5) {
        transform: translateY(var(--push-distance));
        transition: transform 0.35s ease;
        will-change: transform;
    }

    section#service .row.mt-5>.card-container {
        transform: none;
    }
}