/* ================================
   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;
    }
}

/* === BANNER DE INICIA TU PROYECTO === */
.banner-doctorado {
    width: 100%;
    /* ancho total de la pantalla */
    max-width: 1115px;
    /* límite de ancho (ajústalo) */
    margin: 20px auto;
    /* centrado con margen */
    border-radius: 12px;
    /* esquinas redondeadas */
    padding: 30px;
    background: #1D2D8C;
    color: #fff;
    display: flex;
    align-items: center;
    /* centra verticalmente */
    justify-content: center;
    /* centra horizontalmente */
    text-align: center;
    margin-top: 20px !important;
}

/* === CONTENIDO === */
.banner-contenido {
    max-width: 900px;
}

.banner-contenido h2 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
    color: white;
}

.banner-contenido p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* === BOTONES === */
.banner-botones {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    /* en móvil se acomodan */
    justify-content: center;
    margin-bottom: 20px
}

.btn-banner {
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bs-btn-active-color);
}

.btn-rojo {
    background: #fff;
    color: #1D2D8C;
    border: none;
}

.btn-rojo:hover {
    background: #f1f1f1;
}


@media (max-width: 768px) {
    .banner-doctorado {
        max-width: 500px;
        /* límite de ancho (ajústalo) */
        border-radius: 12px;
        /* esquinas redondeadas */
        background: #1D2D8C;
        /* degradado rojo */
        color: #fff;
        align-items: center;
    }

    .banner-contenido h2 {
        font-size: 19px !important;
        margin-bottom: 5px;
        font-weight: 700;
        color: white;
    }

    .banner-contenido {
        max-width: 300px;
    }
}

/* =======================================
   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: 10px;
    /* o el valor que prefieras */
}

/* === LISTADO DE VENTAJAS === */
.ventajas-servicio h3 {
    position: relative;
    padding-left: 30px;
    /* espacio para el check */
}

.ventajas-servicio h3::before {
    content: "✔";
    /* el check */
    color: #FFA500;
    /* naranja */
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.telefono-azul {
  color: #152173;
}

h3 {
    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);
}

@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: 20px !important;
    }

    .titulo-tercero {
        margin-top: 1.5rem !important;
    }

    .titulo {
        margin-top: -2px !important;
        padding-bottom: 10px;
        /* o el valor que prefieras */
    }

    .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;
    }

    h3 {
        color: #323232;
        letter-spacing: 0.5px;
        text-transform: none;
        margin: 0 0 0.5em;
        font-size: 16px;
        line-height: 1.3;
        font-weight: 600;
    }

    .ventajas-servicio .item {
        display: block;
        /* ahora se apilan */
    }

    .ventajas-servicio h3 {
        position: relative;
        padding-left: 30px;
        text-align: left;
        /* espacio para el check */
        margin: 0 0 0.0em;
        white-space: normal;
        /* permite saltos de línea */
    }

    .tituloh3 {
        display: inline-block;
        text-align: left;
    }

    a {
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        text-decoration: none;
        color: rgba(51, 79, 150, 1);
    }
}

.img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
}

/* TARJETAS */
.tarjetas-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 tarjetas por fila */
    gap: 20px;
    /* separación entre tarjetas */
    max-width: 1100px;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

/* Estilo de la tarjeta */
.tarjeta {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Franja azul en la parte superior */
.tarjeta .franja-azul {
    height: 6px;
    background: #FFA500;
    margin: -20px -20px 15px -20px;
    /* que ocupe el borde superior completo */
}

/* Hover con zoom */
.tarjeta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

/* Título */
.tarjeta h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

/* Texto */
.tarjeta p {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.numero-circulo {
    width: 40px;
    /* ancho */
    height: 40px;
    /* alto */
    background-color: #FFA500;
    /* azul */
    color: white;
    /* número blanco */
    border-radius: 50%;
    /* lo hace circular */
    display: flex;
    /* para centrar el número */
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin: 10px auto;
    /* centrado horizontal */
}

@media (max-width: 900px) {
    .tarjetas-container {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 15px !important;
        margin-bottom: -3px !important;
        /* 2 por fila en tablet */
    }
}

@media (max-width: 600px) {
    .tarjetas-container {
        grid-template-columns: 1fr;
        /* 1 por fila en móvil */
    }
}

/* PREGUNTAS FRECUENTES */
.faq-titulo {
    text-align: center;
    font-weight: 700;
    color: #1D2D8C;
    margin-bottom: 10px;
    margin-top: 30px;
    font-size: 32px;
}

.faq-separador {
    width: 80px;
    height: 3px;
    background-color: #1D2D8C;
    margin: 0 auto 20px auto;
    border: none;
}

.tamaño3 {
    margin-top: 10px !important;
    margin-bottom: -10px !important;
}

@media (max-width: 768px) {
    .faq-titulo {
        text-align: center;
        font-weight: 700;
        color: #1D2D8C;
        margin-bottom: 10px;
        margin-top: 30px;
        font-size: 19.2px;
    }

    .faq-separador {
        width: 80px;
        height: 3px;
        background-color: #1D2D8C;
        margin: 0 auto 20px auto;
        border: none;
    }

    .tamaño3 {
        margin-bottom: -25px !important;
    }
}

#back-to-top .btn.btn-primary:hover{
	background: #334F96;
}

#back-to-top .btn.btn-primary {
    border-radius: 100%;
    padding: 8px;
    font-size: 18px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    color: #fff;
    opacity: 0.5;
}