/* Profesores */

.perfil-card{
background:white;
border-radius:25px;
overflow:hidden;
box-shadow:0 15px 30px rgba(0,0,0,0.15);
transition:.3s;
}

.perfil-img{
width:100%;
height:250px;
object-fit:cover;
}

.perfil-body{
padding:20px;
}

.verificado{
color:#28a745;
font-size:14px;
}

.perfil-footer{
display:flex;
justify-content:space-between;
align-items:center;
margin-top:15px;
}

.btn-follow{
border:none;
background:#eee;
padding:8px 15px;
border-radius:20px;
cursor:pointer;
}

.btn-follow:hover{
background:#000;
color:white;
}


/* MINI BIO */

.mini-bio{
margin-top:15px;
font-size:14px;
color:#666;

max-height:0;
overflow:hidden;
transition:.4s;
}

.mini-bio.activa{
max-height:200px;
}




/*Icono whatsapp menú*/
.nav-item .fa-whatsapp {
    font-size: 40px;
    color: #E71D73;
    transition: 0.3s;
}

.nav-item .fa-whatsapp:hover {
    transform: scale(1.2);
    color: #B5095C;
}

/* POP UP CEI DATOS CURIOSOS */

.cei-datoscuriosos-popup .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

.cei-datoscuriosos-content {
    position: relative;
    text-align: center;
}

.cei-datoscuriosos-img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
}

.cei-datoscuriosos-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ffffff;
    border-radius: 50%;
    opacity: 1;
    z-index: 10;
}

/*SALUD UBAM*/
.info-links i {
    color: #009FE3;
    transition: transform 0.2s ease, color 0.2s ease;
}

.info-links a:hover i {
    color: #132C45; /* WhatsApp verde */
    transform: scale(1.2);
}


/*Cards clases PRESENCIAL ONLINE*/
.card-ubam{
    border-radius:20px;
    overflow:hidden;
    border:2px solid #009FE3;
    background:#ffffff;
}

.img-wrapper{
    position:relative;
}

.img-wrapper img{
    width:100%;
    height:250px;
    object-fit:cover;
    transition:0.4s;
}

.overlay-title{
    position:absolute;
    bottom:20px;
    left:20px;
    color:white;
}

.overlay-title h2{
    font-weight:bold;
    font-size:38px;
    margin:0;
}

.badge-online{
    background:#ff2e7e;
    padding:5px 15px;
    border-radius:20px;
}

.badge-presencial{
    background:#ff2e7e;
    padding:5px 15px;
    border-radius:20px;
}

.custom-tabs .nav-link{
    background:#009FE3;
    color:white;
    margin:0 3px;
    border-radius:10px 10px 0 0;
}

.custom-tabs .nav-link.active{
    background:#004a70;
}

.tab-content{
    text-align:center;
    font-size:14px;
}

/* ===== BOTONES ONLINE ===== */
.btn-online-primary {
    background-color: #06a7e2;
    color: #fff;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 500;
}

.btn-online-primary:hover {
    background-color: #048dc0;
    color: #fff;
}

.btn-online-secondary {
    background-color: transparent;
    color: #06a7e2;
    border: 2px solid #06a7e2;
    border-radius: 30px;
    padding: 8px 20px;
}

.btn-online-secondary:hover {
    background-color: #06a7e2;
    color: #fff;
}

/* ===== BOTONES PRESENCIAL ===== */
.btn-presencial-primary {
    background-color: #132C45;
    color: #fff;
    border-radius: 30px;
    padding: 8px 20px;
}

.btn-presencial-secondary {
    background-color: transparent;
    color: #132C45;
    border: 2px solid #132C45;
    border-radius: 30px;
    padding: 8px 20px;
}

/*Listas alineadas*/
li {
    text-align: left;
}

/*offcanvas*/
.offcanvas-ancho {
    width: 60% !important; 
    max-width: 900px;
}


@media (max-width: 768px) {
    .offcanvas-ancho {
        width: 100% !important;
    }
}

/* Hacer que el dropdown se active con hover */
        
    @media (min-width: 992px) {
        .navbar .dropdown:hover .dropdown-menu {
            display: block;
            margin-top: 0;
        }
    }

    .menu-anclado {
        background-color: #EDEDED !important;
        position: sticky;
        top: 0;
        z-index: 999;
        width: 100%;
        
    }
    .navbar .nav-link {
        color: #009FE3!important;
    }
    .navbar .nav-link:hover {
        color: #E71D73 !important;
    }
    .dropdown-menu {
        background-color: rgba(250, 250, 250, 0.926);
    }
    
/*Circulos IDIOMAS*/
  .section-circles {
   font-family: 'Segoe UI', sans-serif;
    }
    .section-circles .circle-wrapper {
      width: 150px;
      height: 150px;
      margin: 0 auto 15px;
      border-radius: 50%;
      overflow: hidden;
      transition: transform 0.3s ease;
    }
    .section-circles .circle-wrapper:hover {
      transform: scale(1.05);
      cursor: pointer;
    }
    .section-circles .circle-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .section-circles h3 {
      font-weight: 600;
      color: #555;
    }
    .section-circles p {
      font-size: 0.95rem;
      color: #666;
    }
    .section-circles .btn {
      border-radius: 6px;
      font-size: 0.9rem;
    }



    /* Cards Oferta educativa */
    .card-ofeac {
    transform: scale(0.9); 
    margin: auto;
    }
    .card-ofeac .card-img-top {
    height: 280px;
    object-fit: contain;
    padding: 10px;
    }

    .card-ofeac .card-body {
    padding: 0.75rem;
    }
    .card-ofeac .card-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    }
    .card-ofeac.card-text {
    font-size: 0.8rem;
    line-height: 1.2;
    }
    .card-ofeac:hover {
    transform: scale(0.95);
    }


/* Galería con noticias */
    .eventos-grande {
      position: relative;
      overflow: hidden;
      height: 400px;
      cursor: pointer;
    }
    .eventos-grande img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .eventos-texto {
      position: absolute;
      bottom: 0;
      left: 0;
      padding: 20px;
      color: white;
      background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
      width: 100%;
    }
    .eventos-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #f8f8f864; 
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.5rem;
      font-weight: bold;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

  .eventos-grande:hover .eventos-overlay {
      opacity: 1;
    }
    .eventos-mini {
      max-height: 400px;
      overflow-y: auto;
    }
    .eventos-mini img {
      width: 100%;
      height: 80px;
      object-fit: cover;
      cursor: pointer;
      border-radius: 5px;
    }
    .eventos-mini .card {
      margin-bottom: 10px;
      border: none;
    }
    /* Modal al 90% de pantalla */
    #eventosModalDialog {
      max-width: 90vw;      
      height: 90vh;          
      margin: auto;
    }

    #eventosModal .modal-content {
      background: #EDEDED; 
      border: none;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    #eventosModal .modal-body {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100%;
    }

 
    #eventosModal img {
      width: 90%;
      height: auto;
      object-fit: contain;
      transition: transform 0.3s ease;
      position: absolute;
      top: 20px;   
      left: 50%;
      transform: translateX(-50%);

    }

/* Iconos flotantes de redes sociales */
    .social-icons {
        position: fixed;
        bottom: 20px;
        right: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        z-index: 9999;
    }
    .social-icons a {
        display: block;
        background: #ba27719d;
        color: white;
        padding: 10px;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 24px;
        text-align: center;
        transition: background-color 0.3s ease;
    }
    .social-icons a:hover {
        background: #E2207A;
    }


/*Estilo colores del footer*/
    .custom-footer {
    background-color:#009FE3; 
    color: white; 
    }

/* POP UP UBAM SALUD */

.ubam-salud-popup .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

.ubam-salud-content {
    position: relative;
    text-align: center;
}

.ubam-salud-img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
}

.ubam-salud-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ffffff;
    border-radius: 50%;
    opacity: 1;
    z-index: 10;
}


    /* Overlay traslúcido */
    .br-overlay {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 12px 14px;
    border-radius: 12px;
    max-width: 80%;
    }

    .br-overlay h5 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
    }

    .br-overlay p {
    font-size: .8rem;
    margin: 0;
    opacity: .85;
    }
    /*TEXTO CONOCENOS*/
    .hero-section {
      background: linear-gradient(135deg, #f8f9fa, #e9ecef);
      padding: 50px 20px;
      border-radius: 20px;
      margin-top: 20px;
    }
    .hero-img {
      max-width: 100%;
      border-radius: 20px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }
    .hero-text h1 {
      font-size: 2.5rem;
      font-weight: bold;
      color: #212529;
    }
    .hero-text p {
      font-size: 1.1rem;
      color: #555;
    }
    .accesos-section {
      margin-top: 40px;
    }
    .acceso-card {
      text-align: center;
      padding: 25px;
      border-radius: 18px;
      background: #ffffff;
      box-shadow: 0 6px 15px rgba(0,0,0,0.1);
      transition: transform 0.3s, box-shadow 0.3s;
      cursor: pointer;
    }
    .acceso-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }
    .acceso-card i {
      font-size: 2.2rem;
      color: #009FE3;
      margin-bottom: 12px;
    }
    .acceso-card h5 {
      font-weight: 600;
      margin-bottom: 8px;
    }
    .seccion-idiomas{
    background:#ffffff00;
    padding:80px 0;
    position:relative;
}

    /* NIVELES */

    .niveles-idioma{
        margin-top:60px;
        display:flex;
        justify-content:center;
        gap:60px;
        flex-wrap:wrap;
    }

    .nivel-card{
        position:relative;
        width:250px;
    }

    .nivel-card img{
        width:100%;
        border:4px solid #f5dada;
    }


    /* RESPONSIVE */
    @media(max-width:768px){
        .niveles-idioma{
            gap:30px;
        }
    }
