/* ===============================
   Poppins Font Family
================================= */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

/* ===============================
   Century Gothic (local files)
================================= */
@font-face {
    font-family: "Century Gothic Local";
    src: url("../fonts/GOTHIC.TTF") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Century Gothic Local";
    src: url("../fonts/GOTHICB.TTF") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    box-sizing: border-box;
}

.topbar {
    min-height: 50px;
    background: linear-gradient(to right, #8c60bb 0%, #5b2395 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding-bottom: 30px !important;
    position: relative;
}

.topbar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 200px;
}

.span-custom {
    font-weight: 500;
    font-size: 1.1rem;
}

.topbar-content-bg {
    width: 100%;
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 150px;
    padding: 17px 0;
}

.navbar-institucional {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0f0f0;
    padding: 15px 30px;
}

.navbar-institucional .nav-link {
    margin: 0 40px;
}

.navbar-institucional .nav-izq img {
    height: 65px;
    width: auto;
    object-fit: contain;
}

.nav-izq {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-izq span,
.nav-izq span b {
    font-size: 3rem;
    font-family: "Century Gothic Local", "Poppins", Arial, sans-serif !important;
    font-weight: 400;
}

.meridiem {
    height: 75px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    list-style: none;
    gap: clamp(1rem, 2vw, 2.5rem);
    margin: 0;
    padding: 0;
}

.estudio {
    display: block;
}

.estudio-wrap {
    position: relative;
    width: min(1100px, 92%);
    margin: 0 auto;
}

.btn-volver-fixed {
    position: absolute;
    left: 50px;
    top: 430px;
    z-index: 9999;
}

.contenido-estudio {
    width: 100%;
}

.info-soportes {
    margin: 0 auto;
    text-align: center;
    padding-bottom: 80px;
}

.imagen-fondo-estudio {
    position: relative;
    width: 100%;
    height: 25vh;
    overflow: hidden;
    z-index: 1;
}

.imagen-fondo-estudio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.texto-encima-estudio {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.texto-encima-estudio {
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 0 20px;
}

.texto-encima-estudio p {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.4;
}

.logo-izquierda-botbar {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    transform: translateX(-90%);
    margin-bottom: 150px;
    z-index: 10;
}

.logo-izquierda-botbar img {
    width: 85px;
    height: 85px;
    object-fit: contain;
}

.logo-izq-instituto,
.logo-derecha-human,
.logo-izquierda-proc,
.logo-izquierda-botbar {
    max-width: 100vw !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
}

.botbar-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    padding: 21px 0;
    position: relative;
}

.botbar-content strong {
    font-size: 2rem;
    font-weight: 600;
}

.botbar-content span {
    font-size: 2rem;
    font-weight: 600;
    color: #efeff0;
}

.botbar-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 300px;
}

.botbar-grid p {
    font-size: 1.1rem !important;
}

.botbar-col {
    position: relative;
    display: grid;
    grid-template-columns: 110px 1fr;
    column-gap: 18px;
    row-gap: 12px;
    align-items: baseline;
}

.botbar-col::before {
    content: "";
    position: absolute;
    left: calc(110px + 9px);
    top: -8px;
    bottom: -8px;
    width: 1px;
    background: rgba(255, 255, 255, .45);
}

.botbar-col .item {
    display: contents;
}

.botbar-col .label {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.85;
    justify-self: end;
    text-align: right;
    padding-right: 6px;
}

.botbar-col .value {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.titulo-botbar {
    font-family: "Century Gothic Local", "Poppins", Arial, sans-serif !important;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hide-desktop {
    display: none !important;
}

.reservar-turno {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 250px;
    height: auto;
    background-color: #f0f0f0;
    border-radius: 20px;
    z-index: 9;
    margin-right: 15px;
    padding: 15px;
}

.reservar-turno p {
    text-align: center;
    margin: 0 0 10px 0;
    padding: 0 10px;
}

.btn-servicio {
    cursor: pointer;
    display: inline-block;
    background-color: #e9f3ff;
    color: #023187;
    border-radius: 20px;
    padding: 6px 38px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    white-space: nowrap;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}

.btn-servicio:hover {
    background-color: #023187;
    color: #fff;
}

.azul-subtitulo {
    color: #2a4370;
}

.btn-volver {
    background-color: transparent;
    border: none;
    color: #1d3f89;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease-in-out;
}

.btn-volver:hover {
    color: black;
}

.lista-azul {
    color: #2a4370;
}

.estudios-flex {
    display: flex;
    justify-content: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    margin-top: 50px;
}

.estudios-col {
    flex: 1;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.estudio-bloque h5 {
    color: #2a4370;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.lista-azul li {
    font-size: 0.88rem;
    line-height: 1.25;
    margin-bottom: 4px;
    white-space: nowrap;
}

.estudio-bloque small {
    font-size: 0.75rem;
}

.aclaracion {
    font-weight: 400;
    font-size: 0.85rem;
}

.indicaciones-box {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.indicaciones-tabs {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.tab-btn {
    border: 1px solid #e6e6e6;
    background: #fff;
    color: #1e3f6f;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    transition: .15s ease;
    font-size: 0.95rem;
}

.tab-btn.active {
    background: #1e3f6f;
    color: #fff;
    border-color: #1e3f6f;
}

.indicaciones-content {
    padding-top: 6px;
}

.tab-content {
    display: none;
    margin: 0;
    line-height: 1.45;
}

.tab-content.active {
    display: block;
}

.botbar {
    background-image: url("../medici/Barra Final.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-top: 15px solid #d9d9d9;
    border-bottom: 15px solid #d9d9d9;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 21px 0 !important;
    gap: 200px;
}

.botbar-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    padding: 21px 0;
    position: relative;
}

.botbar-horario {
    position: absolute;
    top: 18px;
    right: 28px;
    text-align: center;
    color: #fff;
    line-height: 2rem;
    font-weight: 400;
    opacity: .95;
}

.botbar-horario span {
    display: block;
    font-size: 1.2rem !important;
}

.botbar-content p {
    font-size: 1.15rem !important;
}

@media (max-width: 992px) {

    .hide-mobile {
        display: none !important;
    }

    .hide-desktop {
        display: block !important;
    }

    .topbar-content {
        min-height: 90px !important;
        justify-content: space-between !important;
        gap: 0;
        background-color: #f0f0f0 !important;
    }

    .nav-mob {
        display: flex !important;
        align-items: center !important;
    }

    .nav-mob span,
    .nav-mob span b {
        font-size: 1.8rem;
        font-family: "Century Gothic Local", "Poppins", Arial, sans-serif !important;
        font-weight: 600;
    }

    .nav-mob img {
        margin-left: 20px !important;
        margin-right: 30px !important;
    }

    .topbar strong {
        font-size: 0.9rem;
        text-align: center;
        font-size: 20px !important;
    }

    .navbar-institucional {
        display: none;
    }

    .logo-topbar {
        width: 20%;
        height: auto;
        object-fit: contain;
        padding-left: 10px;
    }

    .btn-back i {
        font-size: 2rem;
        color: inherit;
    }

    .menu-toggle {
        background: none;
        border: none;
        cursor: pointer;
        color: #1f2e48;
        font-size: 1.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .menu-mobile {
        position: fixed;
        right: 0;
        top: 0;
        width: 50%;
        background-color: #ffffff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        padding: 20px 0;
        z-index: 999;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .close-menu {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: start;
        margin-bottom: 10px;
        padding-left: 15px;
        padding-right: -10px;
    }

    .close-menu button {
        background: none;
        border: none;
        color: #1f2e48;
        font-size: 1.8rem;
        cursor: pointer;
        transition: color 0.3s;
    }

    .close-menu button:hover {
        color: #117a8b;
    }

    .menu-mobile.activo {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }

    .nav-links-mobile {
        list-style: none;
        padding: 0 15px 0 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 15px;
    }

    .nav-links-mobile li a {
        text-decoration: none;
        color: #1f2e48;
        font-size: 1.1rem;
        font-weight: 500;
        transition: color 0.3s;
    }

    .nav-links-mobile li a:hover {
        color: #117a8b;
    }

    .imagen-fondo-estudio {
        height: 20vh;
    }

    .estudio {
        flex-direction: column;
        gap: 5px;
    }

    .contenido-estudio {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .reservar-turno {
        width: 100%;
        height: auto;
        border-radius: 0 !important;
        margin-bottom: 50px;
    }

    .botbar-content {
        color: #d9d9d9 !important;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 10px;
        background: linear-gradient(to right, #8c60bb 0%, #5b2395 100%);
        text-align: center;
        margin-top: 0 !important;
    }

    .botbar {
        background-image: url("../medici/Barra Final.png");
        border-top: none !important;
        border-bottom: none !important;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 21px 0 !important;
        gap: 10px;
        text-align: center;
    }

    .mobile-br::after {
        content: "\A" !important;
        white-space: pre !important;
    }

    .botbar-horario {
        position: static !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        order: 3 !important;
        width: 100% !important;
        margin-top: 14px !important;
        text-align: center !important;
        line-height: normal !important;
        white-space: nowrap !important;
    }

    .titulo-botbar {
        order: 1 !important;
    }

    .botbar-grid {
        order: 2 !important;
    }

    .botbar-horario span {
        display: inline !important;
        font-size: 1rem !important;
    }

    .botbar-horario span+span::before {
        content: " " !important;
    }

    /* ✅ igualar el contenedor superior del footer */
    #contacto .topbar {
        background: none !important;
        width: 100% !important;
        min-height: 100px !important;
        background-color: #fbfbff !important;
        border: none !important;
        padding-bottom: 10px !important;
        margin-bottom: 0 !important;
    }

    /* ✅ igualar el “bloque violeta” */
    #contacto .botbar-content {
        color: #d9d9d9 !important;
        background: linear-gradient(to right, #8c60bb 0%, #5b2395 100%) !important;
        text-align: center !important;
        margin-top: 0 !important;
    }

    /* ✅ tamaño del título */
    #contacto .botbar-content span {
        font-size: 1.8rem !important;
        font-weight: 600 !important;
    }

    /* ✅ grilla en columna */
    #contacto .botbar-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        align-items: stretch !important;
        width: 100% !important;
        padding: 0 12px !important;
    }

    /* ✅ horario abajo, en una sola línea */
    #contacto .botbar-horario {
        position: static !important;
        order: 3 !important;
        width: 100% !important;
        margin-top: 14px !important;
        line-height: normal !important;
        white-space: nowrap !important;
        text-align: center !important;
    }

    #contacto .botbar-horario span {
        display: inline !important;
        font-size: 1rem !important;
    }

    #contacto .botbar-horario span+span::before {
        content: " " !important;
    }

    /* ✅ barra final de abajo (copyright) */
    #contacto .botbar {
        border-top: none !important;
        border-bottom: none !important;
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }

    #contacto .botbar,
    #contacto .botbar span {
        color: #fff !important;
    }

    /* ==========================
     FOOTER CONTACTO - MOBILE
     achicar TODAS las leyendas
  =========================== */

  /* título "Medici" */
  #contacto .titulo-botbar{
    font-size: 1.35rem !important;
    margin-bottom: 12px !important;
  }

  /* labels/values dentro de la grilla */
  #contacto .botbar-grid p{
    font-size: .90rem !important;
    line-height: 1.25 !important;
  }

  /* afinamos un toque: label más chico, value apenas más fuerte */
  #contacto .botbar-col .label{
    font-size: .78rem !important;
    opacity: .85 !important;
  }

  #contacto .botbar-col .value{
    font-size: .85rem !important;
    font-weight: 600 !important;
    text-align: start !important;
  }

  /* horario */
  #contacto .botbar-horario span{
    font-size: .85rem !important;
  }

  /* barra final (copyright) */
  #contacto .botbar span{
    font-size: .85rem !important;
    line-height: 1.25 !important;
  }
  

}