html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    margin: 0;
    padding: 0;
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =========================
   HEADER / LOGO
========================= */

.tb-top {
    background: #fff;
    padding-top: 0;
    padding-bottom: 0;
}

.tb-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

.tb-topRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.tb-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
    margin-left: -24px; /* pega el logo al borde izquierdo del container */
}

.tb-logoLink {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    padding: 0;
}

.logo-enhancing {
    display: block;
    height: 72px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    margin: 0;
}

.tb-brandText {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    margin-left: 8px; /* separa texto del logo */
    padding-top: 0;
}

.tb-brandName {
    font-size: 2.2rem;
    line-height: 1;
    letter-spacing: 10px;
    color: #d62828;
    font-weight: 500;
    margin: 0;
}

.tb-brandSub {
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 3px;
    color: #2f4f7f;
    margin: 0;
}

/* =========================
   INFO DERECHA
========================= */

.tb-topInfo {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.tb-infoItem {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tb-ico {
    font-size: 1.4rem;
    line-height: 1;
}

.tb-infoTitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: #d62828;
    line-height: 1.1;
}

.tb-infoText {
    font-size: 0.95rem;
    color: #455a7a;
    line-height: 1.2;
}

/* =========================
   NAV
========================= */

.tb-nav {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.tb-navRow {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 68px;
    flex-wrap: wrap;
}

.tb-navLink {
    text-decoration: none;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.5px;
}

.tb-navRight {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .tb-miniBtn,
    .tb-navRight .btn {
        padding: 8px 16px;
        border-radius: 6px;
        text-decoration: none;
        border: 1px solid #ccc;
        background: #fff;
        color: #111;
        cursor: pointer;
    }

/* =========================
   RESPONSIVE
========================= */

.tb-burger {
    display: none;
}

@media (max-width: 1100px) {
    .tb-topRow {
        flex-wrap: wrap;
    }

    .tb-topInfo {
        width: 100%;
        justify-content: flex-start;
        padding-top: 10px;
    }
}

@media (max-width: 768px) {
    .tb-brand {
        gap: 12px;
        margin-left: 0;
    }

   /* .logo-enhancing {
        height: 95px;
    }*/

    .tb-brandText {
        padding-top: 0;
        margin-left: 0;
    }

    .tb-brandName {
        font-size: 1.5rem;
        letter-spacing: 5px;
    }

    .tb-brandSub {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .tb-topInfo {
        gap: 16px;
    }

    .tb-navRow {
        gap: 16px;
    }
}


/* =========================
   SOCIAL ICONS - HEADER
========================= */
.tb-socialHeader {
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 1px solid #e5e7eb;
    padding-left: 18px;
    margin-left: 6px;
}

.tb-socialLink {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f3f6;
    color: #1a2a5e;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: background .15s, color .15s, transform .15s;
    flex-shrink: 0;
}

.tb-socialLink:hover {
    background: #e63b3b;
    color: #fff;
    border-color: #e63b3b;
    transform: translateY(-2px);
}

.tb-socialLink svg {
    width: 16px;
    height: 16px;
    display: block;
}

@media (max-width: 980px) {
    .tb-socialHeader { display: none; }
}


/* =========================
   EMBED MODE (iframe)
========================= */
.embed-main {
    padding: 0;
    margin: 0;
}

body:has(.embed-main) {
    background: #f1f3f6;
    margin-bottom: 0;
}
