body, html {
    height: 100%;
    margin: 0;
    font-family: "Montserrat", sans-serif;
}

.hero {
    background: url("../img/bg-home-2zLQCMo.jpg") center center / cover no-repeat;
    height: 100%;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    height: 100%;
}

.login-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #b38c4d !important;
}

.login-card .form-control::placeholder {
    color: #FFF;
}

.login-card .form-control {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
}

.login-card .form-control:focus {
    box-shadow: none;
    border-color: #e1b14c;
}

.login-card label {
    color: #FFFFFF;
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.login-card a {
    color: #FFFFFF;
    font-family: "Montserrat", sans-serif;
    text-decoration: none;
    font-size: 0.9rem;
}

.login-card a:hover {
    text-decoration: underline;
}

.btn-gold {
    background-color: #e1b14c;
    border: none;
    color: #000;
}

h1.fw-normal {
    font-family: "Bodoni Moda", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 700 !important;
    font-size: 70px;
    line-height: 71px;
}

h5.card-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    color: #b38c4d !important;
}

p.lead {
    font-family: "Montserrat", sans-serif;
    font-weight: 100;
}


.search-header {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../img/bg-header-Mxi-OJv.jpg") center center / cover no-repeat;
    height: 100px;
    position: relative;
    display: flex;
    justify-content: center;
    color: #fff;
}

.search-header .logo {
    width: 50px;
    height: auto;
    margin-top: 20px;
    margin-left: 20px;
    margin-bottom: 40px !important;
}

.search-header h1 {
    font-family: "Bodoni Moda", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 500 !important;
    font-size: 40px;
    line-height: 51px;
}

.search-header .navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #ffffff;
    padding: 10px 15px;
}

.search-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 25px;
    height: 25px;
}

/* Botón dorado */
.btn-gold {
    background-color: #e1b14c;
    border: none;
    color: #000;
}

.btn-gold:hover {
    background-color: #e1b14c;
    color: #FFF;
}

/* Etiquetas pequeñas */
.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
}

.card-hover {
    transition: transform .3s, box-shadow .3s;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .2);
}

.card-footer .small-label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .8;
}

.card-footer .name {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    margin-top: .2rem;
}

.card a {
    text-decoration: none;
}


/* Detalle */
.navbar-custom {
    background-color: #0F0E1E;
    padding: 0.5rem 0;
}

.navbar-custom .navbar-brand img {
    height: 2.5rem;
}

/* Flecha “volver” */
.back-arrow {
    font-size: 1.5rem;
    color: var(--color-gold);
    text-decoration: none;
}

.back-arrow:hover {
    color: darken(var(--color-gold), 10%);
}

/* Título con tipografía serif */
.professional-name {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 1.1;
}

/* Biografía con comillas */
.biography-quote {
    position: relative;
    padding: 20px 30px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
    border-left: 3px solid #e1b14c;
    background-color: #f9f9f9;
}

.biography-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 60px;
    font-family: Georgia, serif;
    color: #e1b14c;
    line-height: 1;
}

.biography-quote::after {
    content: '"';
    position: absolute;
    bottom: -40px;
    right: 10px;
    font-size: 60px;
    font-family: Georgia, serif;
    color: #e1b14c;
    line-height: 1;
}

.biography-quote p {
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Línea dorada debajo del título */
.underline-gold {
    border: 0;
    height: 2px;
    background-color: var(--color-gold);
    width: 100%;
    max-width: 400px;
    margin: 1rem 0;
}

/* Label pequeña */
.label-pos {
    font-size: 12px;
    font-weight: 600;
}

/* Boton admin */
.btn-sm {
    background-color: #0F0E1E;
    border: 1px solid #e1b14c;
}


/*PÁGINA DETALLE*/
.clickable-label {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.clickable-label:hover {
    color: #0056b3;
}

#successMessage {
    display: none;
    margin-top: 10px;
    transition: opacity 0.5s ease;
}

.btn {
    font-family: "Montserrat", sans-serif !important;
    font-size: 14px;
}

p.text {
    color: #FFFFFF;
    font-size: 13px;
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
}

table a.btn,
table a i {
    font-size: 10px;
}


.card-hover {
    transition: transform .3s, box-shadow .3s;
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .2);
}

.card-hover .ratio {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.card-hover .ratio img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.card-hover:hover .ratio img {
    transform: scale(1.05);
}

/* Para las tarjetas sin imagen, mantener el espacio reservado */
.card-hover .ratio:empty,
.card-hover .ratio.bg-secondary {
    background-color: #6c757d;
}

.card a {
    text-decoration: none;
    display: block;
}

.card-footer .small-label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-footer .name {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    margin-top: .2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

section#filters h2,
section#profesionales h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: #000;
}


/* Foto de perfil circular */
.profile-picture-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    overflow: hidden;
}

.profile-picture-circle img,
.profile-picture-circle > div {
    width: 120px;
    height: 120px;
    object-fit: cover;
    object-position: center;
}

.profile-picture-circle .bg-secondary {
    background-color: #6c757d !important;
}


/* Mejorar integración con Bootstrap */
.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    min-height: 38px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e1b14c;
    border-color: #e1b14c;
    color: white;
    padding: 0 10px;
    margin-top: 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    margin-right: 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ffdddd;
}

.select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.form-control {
    font-size: 14px;
}

/* Estilos para la página de perfil */
:root {
    --profile-bg-left: #9fb4b7;
    --profile-bg-right: #c4d7da;
    --profile-bg-arc: #8ea5a8;
    --profile-text-main: #111827;
    --profile-text-muted: #6b7280;
    --profile-accent: #f59e0b;
    --profile-badge-bg: #f97316;
    --profile-badge-dot: #6366f1;
}

.page-container {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
}

.page-container .profile-wrapper {
    flex: 1 1 0;
    max-width: 780px;
    margin: 0;
}

.profile-wrapper {
    max-width: 960px;
    margin: 2rem auto;
    background-color: #ffffff;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.profile-cover {
    position: relative;
    height: 210px;
    background: linear-gradient(90deg, var(--profile-bg-left) 0 60%, var(--profile-bg-right) 100% 100%);
    overflow: hidden;
}

.btn-cover-improve {
    position: absolute;
    right: 1.75rem;
    top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .8rem;
    font-size: .8rem;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    background-color: var(--profile-accent);
    background-color: #e1b14c;
    color: #111827;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
}

.btn-cover-improve i {
    font-size: .9rem;
}

.btn-cover-improve:hover {
    filter: brightness(0.95);
}

/* Estilos optimizados para cards de resultados */
.card-hover .card-body {
    min-height: 70px;
    padding: 0.75rem;
}

.card-hover .card-title {
    font-size: 0.875rem;
    line-height: 1.2;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-hover .card-text {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-hover .card-text i {
    font-size: 0.7rem;
}

.card-hover .badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.card-hover .badge.bg-secondary {
    background-color: #b38c4d !important;
    color: white;
}

.card-hover .card-footer {
    min-height: 35px;
    padding: 0.5rem 0.75rem;
}

/* Mejora del contador de resultados */
#profesionales h5 {
    font-size: 1rem;
}

#profesionales h5 i {
    color: #b38c4d;
    font-size: 0.9rem;
}

/* Estado vacío de resultados */
#profesionales .bi-search {
    color: #dee2e6 !important;
}

.profile-content {
    padding: 0 2rem 1.75rem;
    position: relative;
}

.profile-photo {
    position: absolute;
    top: -70px;
    left: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    overflow: hidden;
    background-color: #e5e7eb;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-main {
    margin-left: 200px;
    margin-top: 1.5rem;
}

.profile-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--profile-text-main);
    display: flex;
    align-items: center;
    gap: .25rem;
}

.profile-name i {
    font-size: 1rem;
    color: #0ea5e9;
}

.profile-title {
    font-size: .95rem;
    color: var(--profile-text-muted);
    margin-top: .2rem;
}

.profile-meta {
    margin-top: .4rem;
    font-size: .85rem;
    color: var(--profile-text-muted);
}

.profile-meta a {
    font-weight: 500;
    color: #0b65c2;
    text-decoration: none;
    margin-left: .35rem;
}

.profile-meta a:hover {
    text-decoration: underline;
}

.profile-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.profile-company {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .8rem;
    font-size: .9rem;
}

.profile-company-name {
    font-weight: 500;
    color: var(--profile-text-main);
}

.profile-edit-icon {
    margin-top: .8rem;
    font-size: 1.1rem;
    color: var(--profile-text-muted);
    cursor: pointer;
}

.profile-edit-icon:hover {
    color: #111827;
}

.group-checkboxes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem 1rem;
    align-items: start;
    margin-top: .5rem;
}

.group-checkboxes label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    color: var(--profile-text-main);
    cursor: default;
}

.group-checkboxes input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

@media (max-width: 992px) {
    .page-container {
        flex-direction: column;
        padding: 1rem;
        width: 100%;
    }

    .page-container .profile-wrapper {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }

    .right-sidebar {
        margin-top: 1.5rem;
        max-width: 100%;
        width: 100%;
        flex: 0 0 auto;
    }

    .profile-main {
        margin-left: 170px;
        margin-right: 0;
    }

    .group-checkboxes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .profile-photo {
        position: relative;
        top: 0;
        left: 0;
        margin: -70px auto 1rem;
        width: 120px;
        height: 120px;
    }

    .profile-main {
        margin-left: 0;
        margin-top: 0;
    }

    .profile-content {
        padding: 0 1.5rem 1.5rem;
    }

    .profile-actions {
        flex-direction: column;
    }

    .group-checkboxes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: 0.5rem;
        width: 100%;
    }

    .page-container .profile-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .right-sidebar {
        width: 100%;
        max-width: 100%;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
        margin: -50px auto 1rem;
    }

    .profile-main {
        margin-left: 0;
    }

    .profile-content {
        padding: 0 1rem 1rem;
    }

    .group-checkboxes {
        grid-template-columns: 1fr;
    }

    .btn-cover-improve {
        right: 0.5rem;
        top: 0.5rem;
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .btn-cover-improve i {
        font-size: 0.8rem;
    }
}

.right-sidebar {
    max-width: 250px;
    border-radius: .75rem;
    background-color: #fff;
    flex: 0 0 330px;
}

.sidebar-user img {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.btn-cover-improve {
    position: absolute;
    right: 1.75rem;
    top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .8rem;
    font-size: .8rem;
    font-weight: 400;
    border-radius: 999px;
    border: none;
    background-color: #e1b14c;
    color: #111827;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
}

.btn-cover-improve i {
    font-size: .9rem;
}

.btn-cover-improve:hover {
    filter: brightness(0.95);
}