@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --surface-bg: #F2EEE3;
    --surface-card: #FFFFFF;
    --text-primary: #121414;
    --accent-brand: #CBB89D;
    --border-muted: #D1CDC0;
}

* {
    box-sizing: border-box;
}

@keyframes fadeUpSoft {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* placeholder Satoshi */
    background: var(--surface-bg);
    color: var(--text-primary);
    line-height: 1.65;
}

main.container > .card,
main.container > section,
main.container > form,
main.container table,
main.container .kpi-card,
main.container .talento-tile,
main.container .album-card,
main.container .notif-item {
    animation: fadeUpSoft .45s ease both;
}

main.container > .card:nth-child(2),
main.container > section:nth-child(2) {
    animation-delay: .04s;
}

main.container > .card:nth-child(3),
main.container > section:nth-child(3) {
    animation-delay: .08s;
}

h1, h2, h3 {
    font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
    font-optical-sizing: auto;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h4, h5, h6,
label,
nav,
button,
.btn,
.topnav .menu-title,
th {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

p, input, select, textarea, td, .muted, .chip, .badge {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* futuro: Satoshi */
}

.subtitle,
.overline {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 56px auto;
    padding: 0 24px;
}

.card {
    background: transparent;
    border: 1px solid var(--border-muted);
    border-radius: 4px;
    padding: 28px;
}

.auth-wrapper {
    max-width: 460px;
}

h1 {
    margin-top: 0;
}

label {
    display: block;
    margin: 14px 0 8px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #3d3f3f;
}

input {
    width: 100%;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--border-muted);
    border-radius: 0;
    background: transparent !important;
    color: var(--text-primary);
}

select,
textarea {
    width: 100%;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--border-muted);
    border-radius: 0;
    background: transparent !important;
    color: var(--text-primary);
    font-family: inherit;
}

option {
    background: var(--surface-bg);
    color: var(--text-primary);
}


button,
.btn {
    margin-top: 14px;
    padding: 10px 14px;
    border: 1px solid var(--text-primary);
    border-radius: 4px;
    cursor: pointer;
    background: var(--text-primary);
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    transition: all .2s ease;
    transform: translateY(0);
}

button:hover,
.btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Boton de icono puro (sin fondo), para acciones en listados */
.btn.icon-btn,
button.icon-btn {
    margin-top: 0;
    padding: 0;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.btn.icon-btn:hover,
button.icon-btn:hover {
    opacity: 1;
    color: #000000;
    background: transparent !important;
}

.line-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-primary {
    background: var(--accent-brand);
    color: #111;
    border-color: var(--accent-brand);
}

.error {
    background: #ffe7e7;
    border: 1px solid #ffb5b5;
    padding: 10px;
    border-radius: 6px;
    color: #8a1d1d;
    margin-bottom: 12px;
}

.success {
    background: #f3ece3;
    border: 1px solid #d8c8b4;
    padding: 10px;
    border-radius: 6px;
    color: #5f4a34;
    margin-bottom: 12px;
}

.muted {
    color: #6b6760;
}

.row {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
}

.row > div {
    flex: 1 1 220px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    background: var(--surface-card);
}

th,
td {
    border: 1px solid var(--border-muted);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f8f5ec;
}

.thumb {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-muted);
    display: block;
    margin-bottom: 6px;
}

.avatar {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-muted);
}
.avatar-full {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    display: block;
}

.avatar-xs {
    width: 44px;
    height: 44px;
}

.avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    background: transparent;
    color: var(--text-primary);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.kpi-card {
    background: var(--surface-card);
    border: 1px solid var(--border-muted);
    border-radius: 4px;
    padding: 18px;
}

.kpi-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.quick-card {
    border: 1px solid var(--border-muted);
    border-radius: 4px;
    padding: 12px;
    text-decoration: none;
    color: var(--text-primary);
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 0;
    aspect-ratio: 1 / 1;
    text-align: center;
    transition: border-color .2s ease, transform .2s ease;
}

.quick-card:hover {
    border-color: var(--text-primary);
    transform: translateY(-1px);
}

.quick-card .line-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
}

@media (max-width: 1100px) {
    .quick-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }

    .quick-card {
        aspect-ratio: auto;
        min-height: 88px;
    }
}

.kpi-value {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

/* Perfil talento: vista resumida */
.perfil-hero-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.perfil-hero-photo {
    flex: 0 0 auto;
}

.perfil-hero-photo .avatar-full,
.perfil-hero-photo .avatar-placeholder {
    width: 140px;
    max-width: 100%;
    min-height: 160px;
    border-radius: 4px;
}

.perfil-hero-photo .avatar-placeholder {
    border: 1px dashed var(--border-muted);
    background: rgba(0, 0, 0, 0.03);
}

.perfil-hero-text {
    flex: 1 1 220px;
    min-width: 0;
}

.perfil-hero-text h1 {
    margin-top: 0;
    margin-bottom: 8px;
}

.perfil-hero-meta {
    margin: 0 0 14px;
    line-height: 1.5;
}

.perfil-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0;
}

.perfil-enlace-sutil {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.perfil-enlace-sutil:hover {
    opacity: 0.85;
}

.perfil-editar-volver {
    margin-top: 20px;
}

/* Gestionar portafolio: panel de alta (sin caja con fondo propio; hereda la .card) */
.portafolio-alta-details {
    margin: 20px 0 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.portafolio-alta-summary {
    list-style: none;
    display: block;
    padding: 14px 18px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

.portafolio-alta-summary::-webkit-details-marker {
    display: none;
}

.portafolio-alta-summary::after {
    content: " \25BC";
    font-size: 0.65em;
    opacity: 0.55;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.portafolio-alta-details[open] .portafolio-alta-summary::after {
    transform: rotate(-180deg);
}

.portafolio-alta-panel {
    padding: 0 0 4px;
    border-top: 0;
}

.portafolio-alta-lead {
    margin: 14px 0 18px;
    line-height: 1.55;
    font-size: 14px;
}

.portafolio-alta-form .portafolio-alta-fieldset {
    border: 0;
    margin: 0 0 20px;
    padding: 0;
    min-width: 0;
}

.portafolio-alta-legend {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b6760;
}

.portafolio-alta-hint {
    margin: -4px 0 14px;
    font-size: 12px;
    line-height: 1.45;
    color: #6b6760;
}

.portafolio-alta-hint--bloque {
    margin: 8px 0 14px;
    line-height: 1.55;
    max-width: 42em;
}

.portafolio-alta-form label {
    margin-top: 4px;
}

.portafolio-alta-actions {
    margin-top: 8px;
    padding-top: 4px;
}

.portafolio-lista-titulo {
    margin-top: 28px;
    margin-bottom: 6px;
}

.portafolio-lista-sub {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.5;
}

/* Ver portafolio (talento): galeria por album */
.portafolio-ver-album h2 {
    margin-top: 0;
}

.portafolio-ver-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.portafolio-ver-item {
    margin: 0;
    border: 1px solid var(--border-muted);
    border-radius: 4px;
    padding: 8px;
    background: var(--surface-card);
}

.portafolio-ver-item img,
.portafolio-ver-item video {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.portafolio-ver-item figcaption {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.portafolio-ver-item .chip {
    align-self: flex-start;
    margin-top: 2px;
}

.portafolio-ver-desc {
    display: block;
    font-size: 12px;
}

.portafolio-ver-grid.entregables-portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.entregable-proyecto-card .entregable-sin-archivo {
    padding: 12px;
    border: 1px dashed var(--border-muted);
    border-radius: 4px;
    margin: 0 0 8px;
    text-align: center;
}

.entregable-enlace-extra {
    margin-top: 8px;
    font-size: 13px;
}

.entregable-enlace-wrap {
    margin: 0 0 8px;
}

.entregable-url-corta {
    word-break: break-all;
    font-size: 12px;
    margin: 0;
}

.entregable-proyecto-bloque {
    margin-top: 16px;
}

.entregable-proyecto-bloque:first-of-type {
    margin-top: 8px;
}

.entregable-item-mini {
    min-height: 120px;
}

.entregable-enlace-fig.entregable-item-mini {
    min-height: 0;
}

.entregable-embed-responsive {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: min(360px, 56vw);
    border-radius: 4px;
    overflow: hidden;
    background: #111;
    margin-bottom: 12px;
}

.entregable-embed-responsive iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.entregable-embed-responsive--tabla {
    max-width: min(100%, 360px);
    max-height: 200px;
    margin-bottom: 8px;
}

/* Google Drive: no recortar controles del reproductor; altura minima real */
.entregable-embed-responsive.entregable-embed--drive {
    overflow: visible;
    min-height: 220px;
    max-height: min(85vh, 720px);
}

.entregable-embed-responsive--tabla.entregable-embed--drive {
    max-height: min(280px, 55vh);
    min-height: 160px;
}

.entregable-embed--drive iframe {
    min-height: 200px;
}

.entregable-enlace-enlinea {
    margin: 0;
    font-size: 14px;
}

a.entregable-enlace-con-carpeta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}

a.entregable-enlace-con-carpeta:hover .entregable-enlace-texto {
    text-decoration: underline;
}

a.entregable-enlace-con-carpeta .entregable-carpeta-svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

img.entregable-thumb-tabla {
    max-height: 56px;
    max-width: 100px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    vertical-align: middle;
}

.entregable-tipo-field {
    margin-bottom: 16px;
    max-width: 420px;
}

.entregable-tipo-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.entregable-tipo-select {
    width: 100%;
    max-width: 420px;
}

.entregable-upload-panel {
    margin-top: 8px;
    padding-top: 4px;
    border-top: 1px solid var(--border-muted);
}

.entregable-upload-panel[hidden] {
    display: none !important;
}

.entregable-enlace-texto {
    min-width: 0;
    word-break: break-word;
}

.solicitudes-acciones-iconos {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.solicitudes-acciones-iconos form {
    display: inline-flex;
    margin: 0;
    padding: 0;
    align-items: center;
}

.solicitudes-acciones-iconos--debajo-notas {
    margin-top: 6px;
}

.tarifas-tabla-acciones {
    margin-top: 8px;
}

.tarifas-form-eliminar {
    display: inline-flex;
    margin: 0;
}

/* Tablas apiladas en movil: clase .table-stack la asigna assets/js/table-stack.js */
@media (max-width: 992px) {
    .table-stack {
        display: block;
        width: 100%;
        overflow-x: visible;
        white-space: normal;
        background: transparent;
    }

    .table-stack thead {
        display: none;
    }

    .table-stack tbody {
        display: block;
    }

    .table-stack tr {
        display: block;
        width: 100%;
        border: 1px solid var(--border-muted);
        border-radius: 6px;
        margin-bottom: 16px;
        padding: 14px 14px 12px;
        background: var(--surface-card);
        box-sizing: border-box;
    }

    .table-stack td {
        display: block;
        width: 100%;
        border: 0;
        padding: 10px 0;
        text-align: left;
        white-space: normal;
    }

    .table-stack td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #6b6760;
        margin-bottom: 6px;
    }

    .table-stack td:not([data-label])::before,
    .table-stack td[data-label=""]::before {
        content: none;
        display: none;
        margin-bottom: 0;
    }

    .table-stack td + td {
        border-top: 1px solid var(--border-muted);
        margin-top: 4px;
        padding-top: 14px;
    }

    .table-stack td.table-stack-empty,
    .table-stack td.table-tarifas-empty {
        text-align: center;
        padding: 20px 12px;
    }

    .table-stack td.table-stack-empty::before,
    .table-stack td.table-tarifas-empty::before {
        display: none;
        content: none;
    }

    .table-tarifas-listado .check-inline-row {
        margin-top: 8px;
        flex-direction: column;
        align-items: flex-start;
        align-content: flex-start;
        gap: 12px;
    }

    .table-tarifas-listado .tarifas-tabla-acciones {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        margin-top: 14px;
    }

    .table-tarifas-listado .tarifas-form-eliminar {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 600px) {
    .table-stack .btn.icon-btn,
    .table-stack button.icon-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        max-width: 44px;
        flex: 0 0 44px;
        padding: 0;
        margin-top: 0;
        box-sizing: border-box;
    }
}

/* Checkboxes: casilla antes del texto (no usar en .catalog-categoria-btn / filtros pastilla) */
.check-inline-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 24px;
    margin: 12px 0 4px;
}

.check-inline-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 16px;
}

label.check-inline {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 10px 0 0;
    font-weight: 600;
    font-size: 13px;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-primary);
    cursor: pointer;
    max-width: 100%;
}

.check-inline-row > label.check-inline,
.check-inline-list > label.check-inline {
    margin: 0;
}

label.check-inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    border: 1px solid var(--border-muted);
    border-radius: 3px;
    accent-color: var(--text-primary);
    cursor: pointer;
    vertical-align: middle;
}

label.check-inline > span {
    line-height: 1.35;
}

/* Crear contrato: estado de solicitud no permite aun (admin solicitudes) */
.btn.btn-contrato-estado-bloqueado {
    opacity: 1;
    cursor: not-allowed;
    pointer-events: auto;
    /* Fondo y borde al 50%; texto a opacidad plena */
    background: rgba(18, 20, 20, 0.5);
    background: color-mix(in srgb, var(--text-primary) 50%, transparent);
    border-color: rgba(18, 20, 20, 0.5);
    border-color: color-mix(in srgb, var(--text-primary) 50%, transparent);
    color: #ffffff;
}

.btn.btn-contrato-estado-bloqueado:hover,
.btn.btn-contrato-estado-bloqueado:focus-visible {
    opacity: 1;
    transform: none;
    background: rgba(18, 20, 20, 0.5);
    background: color-mix(in srgb, var(--text-primary) 50%, transparent);
    border-color: rgba(18, 20, 20, 0.5);
    border-color: color-mix(in srgb, var(--text-primary) 50%, transparent);
    color: #ffffff;
}


.perfil-dl {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 4px 20px;
    margin: 0;
}

.perfil-dl > div {
    margin-bottom: 10px;
}

.perfil-dl dt {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b6760;
}

.perfil-dl dd {
    margin: 4px 0 0;
    font-weight: 600;
    color: var(--text-primary);
}

.perfil-tarifa-desc {
    display: block;
    margin-top: 6px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.perfil-subh {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: 17px;
    margin: 20px 0 10px;
    color: var(--text-primary);
}

.perfil-lista-redes,
.perfil-lista-categorias,
.perfil-alerta-lista {
    margin: 0;
    padding-left: 1.25em;
    line-height: 1.75;
}

.perfil-card-acciones {
    margin-top: 14px;
}

.badge {
    display: inline-block;
    min-width: 20px;
    padding: 2px 7px;
    margin-left: 8px;
    border-radius: 999px;
    background: var(--accent-brand);
    color: #111;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.topnav {
    background: var(--surface-bg);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-muted);
}
.topnav-inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    position: relative;
}
.topnav a {
    color: var(--text-primary);
    text-decoration: none;
    margin-right: 10px;
}

/* Botones del nav: estilos dedicados para evitar conflictos de color */
.topnav a.btn,
.topnav button.btn {
    margin-top: 0;
    padding: 8px 14px;
    border-radius: 4px;
    font-weight: 600;
    position: relative;
}

.topnav a.btn.btn-nav-secondary,
.topnav button.btn.btn-nav-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-muted);
}

.topnav a.btn.btn-nav-primary,
.topnav button.btn.btn-nav-primary {
    background: var(--text-primary);
    color: #ffffff;
    border: 1px solid var(--text-primary);
}

.topnav a.btn.btn-nav-primary:hover,
.topnav button.btn.btn-nav-primary:hover {
    background: #000000;
}

.topnav a.btn.btn-nav-secondary:hover,
.topnav button.btn.btn-nav-secondary:hover {
    background: #f8f5ec;
}

.topnav a.btn.btn-icon,
.topnav button.btn.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.topnav .nav-icon {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topnav .nav-profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    border: 0;
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.drawer-open {
    overflow: hidden;
}

.notif-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 75;
}

.notif-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 94vw);
    height: 100vh;
    background: var(--surface-bg);
    border-left: 1px solid var(--border-muted);
    z-index: 80;
    transform: translateX(100%);
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
}

.notif-drawer.is-open {
    transform: translateX(0);
}

.notif-drawer-head,
.notif-drawer-foot {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-muted);
}

.notif-drawer-foot {
    border-bottom: 0;
    border-top: 1px solid var(--border-muted);
}

.notif-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notif-drawer-head h3 {
    margin: 0;
    font-size: 18px;
}

.notif-drawer-body {
    padding: 8px 10px 14px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.notif-item {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-muted);
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

.notif-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.notif-item.is-unread {
    border-left: 2px solid var(--accent-brand);
    padding-left: 6px;
}

.notif-title {
    margin: 0 0 4px;
    font-weight: 700;
}

.notif-msg {
    margin: 0 0 6px;
    color: #3d3f3f;
}

.notif-meta {
    margin: 0;
    font-size: 12px;
    color: #6b6760;
}

.notif-link-wrap {
    margin: 6px 0 0;
}

.notif-link {
    color: var(--text-primary);
    text-decoration: underline;
}

.swal2-popup.ugc-swal-popup {
    border: 1px solid var(--border-muted);
    border-radius: 4px;
}

.swal2-title.ugc-swal-title {
    font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
    color: var(--text-primary);
}

.swal2-confirm.ugc-swal-confirm {
    color: #121414 !important;
    border: 1px solid #CBB89D !important;
}

.swal2-cancel.ugc-swal-cancel {
    color: #ffffff !important;
    border: 1px solid #121414 !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
.topnav .brand {
    font-weight: 800;
}
.topnav .navlinks a {
    color: #4b4d4d;
}
.topnav .navlinks a:hover {
    color: var(--text-primary);
}
.topnav .spacer {
    flex: 1 1 auto;
}
.topnav .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    flex: 0 0 auto;
}

@media (min-width: 993px) {
    .topnav .navlinks {
        position: relative;
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        width: auto;
        min-width: 0;
    }

    .topnav .nav-actions {
        margin-left: 0;
    }
}
.topnav .nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    margin-left: auto;
    position: relative;
    z-index: 60;
}

/* Forzar oculto en desktop aunque tenga clases .btn/.btn-icon */
.topnav .nav-toggle.btn.btn-icon {
    display: none;
}
.nav-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--text-primary);
    transition: transform .2s ease, opacity .2s ease;
}

/* Menú con submenú */
.topnav .navlinks {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
}
.topnav .menu {
    position: relative;
}
.topnav .menu .menu-title {
    color: #3d3f3f;
    cursor: default;
    font-weight: 600;
    padding: 6px 4px;
    display: inline-block;
}
.topnav button.menu-title {
    font: inherit;
    margin: 0;
    border: 0;
    background: none;
    text-align: left;
    cursor: inherit;
}
.topnav .submenu a {
    display: block;
    color: #3d3f3f;
    padding: 6px 8px;
    border-radius: 4px;
    white-space: nowrap;
}
.topnav .submenu a:hover {
    color: var(--text-primary);
    background: #f8f5ec;
}

@media (min-width: 993px) {
    .topnav .menu .submenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        background: var(--surface-card);
        border: 1px solid var(--border-muted);
        border-radius: 4px;
        padding: 8px;
        z-index: 50;
    }
    .topnav .menu:hover .submenu,
    .topnav .menu:focus-within .submenu {
        display: block;
    }
}

.filters-bar {
    margin: 10px 0 16px 0;
}
.chip {
    display: inline-block;
    background: #f8f5ec;
    color: #3d3f3f;
    border: 1px solid var(--border-muted);
    border-radius: 999px;
    padding: 4px 10px;
    margin: 0 6px 6px 0;
    font-size: 12px;
}

/* Catalogo galeria full width sin separaciones entre recuadros */
.catalogo-full {
    max-width: 100%;
    padding: 0;
    margin: 0;
}
.catalogo-full .card {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}
.talentos-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 16px;
}
.talento-tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 0;
}
.talento-tile img,
.talento-noimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.talento-tile img {
    transition: transform .45s ease, filter .45s ease;
    transform-origin: center center;
    filter: grayscale(100%);
}
.talento-tile:hover img {
    transform: scale(1.08) rotate(1.2deg);
    filter: grayscale(0%);
}
.talento-noimg {
    background: #e7e1d2;
    color: #5f5b53;
    display: flex;
    align-items: center;
    justify-content: center;
}
.talento-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 100%);
    color: #ffffff;
}
.talento-name {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.talento-meta {
    font-size: 12px;
    opacity: .92;
}
.talento-price {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
}

.catalog-filters {
    border: 1px solid var(--border-muted);
    border-radius: 4px;
    padding: 10px 12px;
    background: transparent;
}
.catalog-filters > summary {
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 12px;
    list-style: none;
}
.catalog-filters > summary::-webkit-details-marker {
    display: none;
}
.catalog-filters > form {
    margin-top: 10px;
}
.catalog-filters-body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .32s ease, opacity .22s ease;
}
.catalog-filters[open] .catalog-filters-body {
    max-height: 1200px;
    opacity: 1;
}

.catalog-filtros-categorias-wrap {
    flex: 1 1 100%;
    min-width: 100%;
}

.catalog-categorias-field {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.catalog-categorias-field legend {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 8px;
    padding: 0;
    color: var(--text-primary);
}

.catalog-categorias-hint {
    font-weight: 400;
    font-size: 12px;
    color: #6b6760;
}

.catalog-categoria-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-categoria-btn {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.catalog-categoria-btn input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.catalog-categoria-btn span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--border-muted);
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.2;
    background: var(--surface-bg);
    color: var(--text-primary);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.catalog-categoria-btn input:checked + span {
    background: var(--accent-brand);
    border-color: var(--accent-brand);
    color: #111;
    font-weight: 600;
}

.catalog-categoria-btn:hover span {
    border-color: var(--text-primary);
}

.catalog-categoria-btn input:focus-visible + span {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

.catalog-layout {
    display: block;
}

.catalog-sidebar {
    margin-bottom: 14px;
}

.catalog-sidebar-head {
    display: none;
}

.catalog-sidebar-toggle {
    margin-top: 0;
    margin-bottom: 10px;
}

.chart-card {
    background: transparent;
    border: 1px solid var(--border-muted);
    border-radius: 4px;
    padding: 14px;
    margin: 14px 0 18px;
}
.chart-row {
    display: grid;
    grid-template-columns: 160px 1fr 40px;
    gap: 10px;
    align-items: center;
    margin: 8px 0;
}
.chart-label {
    font-size: 13px;
    color: #3d3f3f;
}
.chart-track {
    background: #ece7d9;
    border-radius: 3px;
    height: 12px;
    overflow: hidden;
}
.chart-bar {
    background: var(--accent-brand);
    height: 100%;
}
.chart-value {
    font-weight: 700;
    text-align: right;
}

.album-suggest-box {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.album-suggest-item {
    margin-top: 0;
    padding: 6px 10px;
    border: 1px solid var(--border-muted);
    background: #fff;
    color: #333;
    border-radius: 999px;
    font-size: 12px;
}

.talento-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 16px;
}
.talento-layout .card {
    background: transparent;
}
.talento-full {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}
.talento-info-col {
    position: sticky;
    top: 72px;
    align-self: start;
}
.talento-gallery-col h2 {
    margin-top: 0;
}
.album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.album-card {
    display: block;
    text-decoration: none;
    color: #ffffff;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    position: relative;
}
.album-cover,
.album-cover-video {
    width: 100%;
    aspect-ratio: 4 / 5;
    display: block;
}
.album-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform .45s ease, filter .45s ease;
    filter: grayscale(100%);
}
.album-cover-video {
    background: #ddd6c8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #575148;
}
.album-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 100%);
    color: #ffffff;
}
.album-card.active {
    outline: none;
}
.album-card:hover .album-cover {
    transform: scale(1.08) rotate(1.2deg);
    filter: grayscale(0%);
}
.album-slider {
    margin-top: 12px;
    position: relative;
    border: 0;
    background: #111;
}
.album-slide {
    display: none;
    width: 100%;
}
.album-slide.is-active {
    display: block;
}
.album-slide img,
.album-slide video {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    background: #0b0b0b;
}
.album-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.5);
    background: rgba(0,0,0,.35);
    color: #fff;
    margin-top: 0;
    padding: 0;
    z-index: 2;
}
.album-prev { left: 10px; }
.album-next { right: 10px; }
.album-counter {
    position: absolute;
    right: 10px;
    top: 10px;
    color: #fff;
    font-size: 12px;
    background: rgba(0,0,0,.45);
    padding: 4px 8px;
    border-radius: 999px;
}
.album-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: #151515;
}
.album-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    margin-top: 0;
    padding: 0;
    background: #8f8f8f;
}
.album-dot.is-active {
    background: #ffffff;
}

.album-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.album-modal-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #111;
    color: #fff;
    padding: 16px;
    transform: translateX(100%);
    transition: transform .26s ease;
    overflow-y: auto;
}
.album-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}
.album-modal.is-open .album-modal-panel {
    transform: translateX(0);
}
.album-close {
    width: 36px;
    height: 36px;
    margin-top: 0;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.5);
    background: rgba(255,255,255,.08);
    color: #fff;
    padding: 0;
    font-size: 22px;
    line-height: 1;
}
.album-modal-title {
    margin: 10px 0 8px;
    color: #fff;
}
.album-content-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.album-item {
    border: 1px solid var(--border-muted);
    border-radius: 4px;
    overflow: hidden;
    background: transparent;
}
.album-item img,
.album-item video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.album-item-meta {
    padding: 8px;
    font-size: 12px;
    color: #4b4d4d;
}

.site-footer {
    margin-top: 36px;
    border-top: 1px solid var(--border-muted);
    background: #efe9dc;
}
.site-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 24px 18px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 20px;
}
.site-footer h4,
.site-footer h5 {
    margin: 0 0 8px;
}
.site-footer p {
    margin: 0;
    color: #5c5a55;
}
.footer-sitemap ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-sitemap li {
    margin: 6px 0;
}
.footer-sitemap a {
    color: #2e3131;
    text-decoration: none;
}
.footer-sitemap a:hover {
    text-decoration: underline;
}
.social-links {
    display: flex;
    gap: 10px;
}
.social-links a {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-muted);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2f3131;
    text-decoration: none;
}
.social-links svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.footer-legal {
    border-top: 1px solid var(--border-muted);
    text-align: center;
    padding: 12px;
    font-size: 12px;
    color: #5c5a55;
}

/* Responsive base */
@media (max-width: 992px) {
    .talentos-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .talento-tile img {
        filter: none !important;
        transform: none !important;
    }

    .catalog-filters {
        margin-bottom: 12px;
    }

    .catalog-filters > form {
        margin-top: 0;
    }
    .container {
        max-width: 100%;
        margin: 32px auto;
        padding: 0 16px;
    }

    .topnav {
        position: relative;
        z-index: 50;
    }

    .topnav-inner {
        max-width: 100%;
        padding: 10px 12px;
        gap: 8px;
        justify-content: space-between;
    }

    .topnav .brand {
        flex: 0 0 auto;
        order: 0;
    }

    /* Evita que el CTA "Ingresar" (btn oscuro) quede a la izquierda de la marca */
    .topnav-inner > a.btn {
        order: 1;
    }

    .topnav .nav-actions {
        order: 1;
        margin-left: auto;
        margin-top: 0;
        width: auto;
        padding-top: 0;
        border-top: none;
        justify-content: flex-end;
        z-index: 65;
    }

    .topnav .nav-toggle,
    .topnav .nav-toggle.btn.btn-icon {
        display: inline-flex;
        order: 2;
        margin-left: 8px;
        position: relative;
        top: auto;
        right: auto;
        z-index: 65;
    }

    .topnav .navlinks {
        position: fixed;
        inset: 0;
        z-index: 60;
        background: rgba(18, 20, 20, 0.94);
        color: #f9f5ea;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        padding: 72px 24px 24px 24px;
        transform: translateX(100%);
        transition: transform .25s ease-out;
        overflow-y: auto;
        width: 100%;
        max-width: none;
        flex: 0 0 auto;
        order: 3;
    }
    .topnav .navlinks.is-open {
        transform: translateX(0);
    }

    .topnav .menu {
        flex: 0 0 auto;
        min-width: 0;
        margin-bottom: 12px;
        width: 100%;
    }

    .topnav .menu .menu-title {
        width: 100%;
        display: block;
        box-sizing: border-box;
        padding: 10px 28px 10px 0;
        border-bottom: 1px solid rgba(241, 237, 225, 0.25);
        color: #f9f5ea;
        cursor: pointer;
        position: relative;
    }

    .topnav .menu.has-sub .menu-title::after {
        content: "";
        position: absolute;
        right: 4px;
        top: 50%;
        width: 8px;
        height: 8px;
        margin-top: -6px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform .2s ease;
        opacity: 0.85;
    }
    .topnav .menu.has-sub.is-open .menu-title::after {
        transform: rotate(-135deg);
        margin-top: -2px;
    }

    .topnav .menu:hover .submenu,
    .topnav .menu:focus-within .submenu {
        display: none;
    }
    .topnav .menu.has-sub .submenu {
        position: static;
        display: none;
        min-width: 0;
        margin: 0;
        padding: 4px 0 0 12px;
        border: 0;
        background: transparent;
    }
    .topnav .menu.has-sub.is-open .submenu {
        display: block;
    }

    .topnav .submenu a {
        padding: 8px 0;
        border-radius: 0;
        border-bottom: 1px solid rgba(241, 237, 225, 0.12);
        color: #e9e3d3;
        text-align: left;
        white-space: normal;
    }

    .topnav .submenu a:hover {
        background: transparent;
        color: #ffffff;
    }

    .topnav .spacer {
        display: none;
    }

    .row > div {
        flex: 1 1 100%;
    }

    .card {
        padding: 20px;
    }

    .talento-layout {
        grid-template-columns: 1fr;
    }
    .talento-full {
        padding-left: 12px;
        padding-right: 12px;
    }
    .talento-info-col {
        position: static;
    }
    .album-grid,
    .album-content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        padding: 22px 16px 14px;
    }
}

@media (max-width: 600px) {
    .talentos-gallery {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    .container {
        margin: 20px auto;
        padding: 0 12px;
    }

    .card {
        padding: 16px;
    }

    /* Botones de ancho completo salvo iconos (listados, tarifas, solicitudes…) */
    button:not(.topnav button):not(.icon-btn),
    .btn:not(.topnav .btn):not(.icon-btn) {
        width: 100%;
        text-align: center;
    }

    .topnav a.btn.btn-icon,
    .topnav button.btn.btn-icon {
        width: 36px;
        height: 36px;
        max-width: none;
        padding: 0;
    }

    .album-grid,
    .album-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 993px) {
    .catalog-sidebar-toggle {
        position: fixed;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 91;
        margin: 0;
        padding: 12px 6px;
        min-height: 160px;
        width: 38px;
        border: 1px solid #121414;
        border-left: 0;
        border-radius: 0 4px 4px 0;
        background: transparent !important;
        color: var(--text-primary);
        writing-mode: vertical-rl;
        text-orientation: mixed;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-size: 11px;
        font-weight: 600;
    }

    /* Mantener translateY(-50%) del centrado vertical; .btn:hover pone translateY(-1px) y desplaza el botón */
    .catalog-sidebar-toggle:hover,
    .catalog-sidebar-toggle:focus-visible {
        background: transparent !important;
        color: #000000;
        border-color: #b9b2a5;
        transform: translateY(-50%);
        opacity: 1;
    }

    body.catalog-sidebar-open .catalog-sidebar-toggle {
        left: 320px;
    }

    .catalog-layout {
        display: block;
        padding-left: 48px;
    }

    .catalog-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        height: 100vh;
        margin-bottom: 0;
        padding: 84px 14px 14px;
        background: var(--surface-bg);
        border-right: 1px solid var(--border-muted);
        transform: translateX(-105%);
        transition: transform .28s ease;
        z-index: 90;
        overflow-y: auto;
    }

    .catalog-sidebar-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    body.catalog-sidebar-open .catalog-sidebar {
        transform: translateX(0);
    }

    /* PC: sin caja ni acordeón interno; el encabezado del sidebar ya dice «Filtros» */
    .catalog-filters {
        border: 0;
        padding: 0;
        background: transparent;
    }

    .catalog-filters > summary {
        display: none;
    }

    .catalog-filters-body {
        max-height: none;
        opacity: 1;
        overflow: visible;
        transition: none;
    }

    .catalog-filters[open] .catalog-filters-body {
        max-height: none;
        opacity: 1;
    }

    .catalog-filters .row {
        display: block;
    }

    .catalog-filters .row > div {
        flex: 1 1 auto;
    }

    .catalog-results {
        min-width: 0;
        transition: margin-left .28s ease;
    }

    body.catalog-sidebar-open .catalog-results {
        margin-left: 320px;
    }
}

@media (max-width: 992px) {
    .catalog-sidebar-toggle {
        display: none;
    }
}

