/* ================================
   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-left: 0;
        margin-top: 30px;
        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;
    }
}

/* =======================================
   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 */
}

h3 {
    font-family: 'Arial', 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;
}

.tituloh3 {
    padding-left: 5px;
    margin: 0 0 0.2em;
}

.tituloh2 {
    font-family: 'Arial', sans-serif;
    color: #323232;
    letter-spacing: 0.5px;
    text-transform: none;
    margin: 0 0 0.5em;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    display: inline-block;
    padding-left: 5px;
    margin: 0 0 0.2em;
}

.ventajas-servicio .item {
    display: flex;
    align-items: baseline;
    /* alinea los textos en la misma línea */
    margin-bottom: 10px;
}

.ventajas-servicio h3 {
    position: relative;
    padding-left: 30px;
    /* espacio para el check */
    margin-right: 6px;
    /* espacio entre h3 y p */
    white-space: nowrap;
    /* evita que el título se corte en varias líneas */

}

.ventajas-servicio h3::before {
    content: "✔";
    /* el check */
    color: #FFA500;
    /* naranja */
    font-weight: bold;
    position: absolute;
    left: 5px;
    top: 0;
}

.telefono-azul {
    color: #152173;
}

/* 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: 20px !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;
    }

    .h3 {
        font-family: 'Arial', 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;
    }

    .ventajas-servicio .item {
        display: block;
        /* ahora se apilan */
    }

    .ventajas-servicio h3 {
        position: relative;
        padding-left: 40px;
        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;
        padding-left: 5px;
    }
}

/* =============================================================
   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;
    }
}

.banner-doctorado {
    width: 100%;
    /* ancho total de la pantalla */
    max-width: 1075px;
    /* límite de ancho (ajústalo) */
    margin: 10px auto;
    /* centrado con margen */
    border-radius: 12px;
    /* esquinas redondeadas */
    padding: 30px;
    background: #FFA500;
    color: #fff;
    display: flex;
    align-items: center;
    /* centra verticalmente */
    justify-content: center;
    /* centra horizontalmente */
    text-align: center;
    margin-bottom: 30px;
}

/* === 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: 10px
}

.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 {
        width: 100%;
        /* ancho total de la pantalla */
        max-width: 480px;
        /* límite de ancho (ajústalo) */
        margin: 40px auto;
        /* centrado con margen */
        border-radius: 12px;
        /* esquinas redondeadas */
        color: #fff;
        align-items: center;
        margin-top: -30px !important;
        margin-bottom: 30px;
    }

    .banner-contenido h2 {
        font-size: 19px !important;
        margin-bottom: 5px;
        font-weight: 700;
        color: white;
    }

    .banner-contenido {
        max-width: 300px;
    }

    .btn-blanco {
        background: transparent;
        border: 2px solid #fff;
        color: #fff;
        margin-bottom: 20px;
    }

    #service .row {
        margin-top: -80px;
        margin-bottom: -20px;
    }
}

/* Contenedor de todas las tarjetas */
.tarjetas-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 3 tarjetas por fila */
    gap: 20px;
    /* separación entre tarjetas */
    max-width: 1100px;
    padding-top: 5px !important;
    padding-bottom: 20px !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 */
}

/* Responsive */
@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 */
    }
}

.contenedor-h3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* dos columnas iguales */
    gap: 20px;
    /* espacio entre columnas */
    margin-top: 20px;
    margin-bottom: 20px
}

.columna h3 {
    margin-bottom: 10px;
}

.columna p {
    text-align: justify;
    /* opcional, para que quede ordenado */
}

@media (max-width: 768px) {
    .contenedor-h3 {
        grid-template-columns: 1fr;
        /* en celulares será 1 columna */
        position: relative;
        padding-left: 40px;
        text-align: left;
        margin: 0 0 0.0em;
    }

    .segundo {
        margin-top: -40px;
    }

    a {
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        text-decoration: none;
        color: rgba(51, 79, 150, 1);
    }
}

a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-decoration: none;
    color: rgba(51, 79, 150, 1);
}

/* Imagen */
.section_asesoria_img {
    width: 100%;
    height: 310px;
    object-fit: center;
    display: block;

}

/* FLECHA */
#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;
}

.img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
}

/* WHATSSAP DINAMICO */
/* Botón volver arriba */
.back-to-top {
  position: fixed;
  bottom: 160px;
  right: 20px;
  z-index: 1000;
}

/* Botón WhatsApp flotante */
.back-to-top-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 28px;
  z-index: 1500;
}

.whatsapp-floating {
  width: 60px;
  height: 60px;
  cursor: pointer;
}

/* Botón extra */
.extra-btn {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 1500;
}

.whatsapp-btn {
  background-color: rgb(0, 173, 0);
  color: white;
  border: none;
  padding: 12px 18px;
  font-size: 15px;
  border-radius: 10px; /* menos redondeado */
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: rgb(3, 110, 3); /* verde más oscuro al pasar el mouse */
}

.whatsapp-icon {
  width: 22px;
  height: 22px;
}

/* 📱 Responsividad */
@media (max-width: 768px) {
  .whatsapp-floating {
    width: 55px;
    height: 55px;
  }

  .whatsapp-btn {
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .back-to-top {
    bottom: 120px;
    right: 15px;
  }

  .back-to-top-whatsapp {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-floating {
    width: 50px;
    height: 50px;
  }

  /* ✅ Botón extra centrado y ancho fijo */
  .extra-btn {
    bottom: 95px; /* punto medio */
    left: 50%;    /* centrado horizontal */
    transform: translateX(-50%); /* corrección: -50% para centrar */
    width: 85%;   /* ocupa casi todo el ancho, no se corta en 3 líneas */
    max-width: 500px; /* límite máximo para que no sea gigante */
  }

  .whatsapp-btn {
    font-size: 14px;
    padding: 12px 14px;
    border-radius: 8px; /* bordes menos redondos */
    line-height: 1.4;
    white-space: normal; /* permite 2 líneas máximo */
    text-align: center;  /* centra texto dentro del botón */
    width: 100%;         /* que ocupe todo el ancho del contenedor */
  }
}