﻿/* ================================================================
   Directorio.css  —  CAP Regional Lima
   Paleta: azul marino #0D1B6E | dorado #C9A84C | blanco | gris claro
   ================================================================ */

/* ── FUENTE EN PRUEBA: Source Sans 3 (Google Fonts, gratuita) ─────
   Para volver a la fuente anterior: elimina esta línea @import y quita
   "'Source Sans 3', " del inicio del font-family de "body" más abajo. */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

:root {
    --azul: #000080;
    --azul-osc: #00005a;
    --dorado: #B59D48;
    --dorado-claro: #D4BC6A;
    --dorado-fondo: rgba(181, 157, 72, 0.10);
    --celeste: #386EB3;
    --celeste-claro: rgba(56, 110, 179, 0.10);
    --gris-claro: #F2F2F2;
    --gris-borde: #E0E0E0;
    --gris-texto: #555555;
    --negro: #1A1A1A;
    --verde-hab: #1A7A3C;
    --font-main: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --radio: 6px;
    --sombra: 0 2px 8px rgba(0, 0, 40, 0.08);
}

/* ── Reset básico ───────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
    background: #F0F2F5;
    color: #1a1a2e;
    min-height: 100vh;
}

/* Los campos de formulario no heredan la fuente del body por defecto en los navegadores. */
input, button, select, textarea {
    font-family: inherit;
}

/* ── NAVBAR ─────────────────────────────────────────────────────── */
.navbar {
    background: #0D1B6E;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 28px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    /*background: #C9A84C;
    color: #0D1B6E;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 6px 10px;
    border-radius: 4px;
    line-height: 1;*/
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
    .brand-logo img {
        height: 100%;
        width: auto;
        object-fit: contain;
        display: block;
    }

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.brand-region {
    color: #a0aac8;
    font-size: 11px;
}

.badge-mvp {
    background: transparent;
    border: 1.5px solid #C9A84C;
    color: #C9A84C;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
    background: #0D1B6E;
    color: #ffffff;
    text-align: center;
    padding: 48px 20px 52px;
    border-bottom: 4px solid #C9A84C;
}

.hero-title {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 14px;
    color: #b0b8d8;
    font-weight: 400;
}

/* ── CONTENIDO PRINCIPAL ─────────────────────────────────────────── */
.contenido {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
@media (min-width:576px) {
    .container {
        max-width: 540px;
    }
}

/* ── TARJETA SECCIÓN (buscador y directorio) ─────────────────────── */
.card-seccion {
    background: #ffffff;
    border-radius: 10px;
    padding: 28px 32px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.seccion-titulo {
    font-size: 16px;
    font-weight: 700;
    color: #0D1B6E;
    padding-bottom: 10px;
    border-left: 4px solid #C9A84C;
    padding-left: 12px;
    margin-bottom: 22px;
}

/* ── FILTRO ÁREA (pills) ─────────────────────────────────────────── */
.area-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.area-pill {
    background: #F2F2F2;
    color: #555555;
    border: 1px solid transparent;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

    .area-pill:hover {
        border-color: #0D1B6E;
        color: #0D1B6E;
    }

    .area-pill.activo {
        background: var(--celeste-claro);
        color: #0D1B6E;
        border-color: #386EB3;
    }
/* ── FIN: FILTRO ÁREA (pills) ────────────────────────────────────── */

/* ── FILTROS ─────────────────────────────────────────────────────── */
.filtros-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filtro-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #555;
}

.filtro-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #dde1ea;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
    appearance: auto;
}

    .filtro-input:focus {
        outline: none;
        border-color: #0D1B6E;
        box-shadow: 0 0 0 3px rgba(13,27,110,0.08);
    }

.filtros-acciones {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
}

.btn-buscar {
    background: #0D1B6E;
    color: #ffffff;
    border: none;
    padding: 9px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn-buscar:hover {
        background: #162590;
    }

.btn-limpiar {
    background: transparent;
    color: var(--gris-texto);
    border: 1px solid var(--gris-borde);
    padding: 10px 20px;
    border-radius: var(--radio);
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

    .btn-limpiar:hover {
        color: #0D1B6E;
        text-decoration: underline;
    }

/* ── MENSAJE ─────────────────────────────────────────────────────── */
.lbl-mensaje {
    display: block;
    background: #FFF3CD;
    border: 1px solid #ffe08a;
    color: #7a5a00;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ── GRID DE TARJETAS ────────────────────────────────────────────── */
.tarjetas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── TARJETA ARQUITECTO ──────────────────────────────────────────── */
.tarjeta {
    background: #ffffff;
    border: 1px solid #e5e9f2;
    border-radius: 10px;
    padding: 18px 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.2s, transform 0.2s;
}

    .tarjeta:hover {
        box-shadow: 0 6px 20px rgba(13,27,110,0.12);
        transform: translateY(-2px);
    }

/* Avatar + nombre */
.tarjeta-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.avatar {
    width: 48px;
    height: 48px;
    min-width: 46px;
    background: var(--azul);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    border: 2px solid var(--dorado);
}

.tarjeta-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tarjeta-nombre {
    font-size: 15px;
    font-weight: 700;
    color: #0D1B6E;
    line-height: 1.2;
}
.contenedor-especialidades {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}
.badge-especialidad {
    /*display: inline-block;*/
    display: block;
    width: fit-content;
    margin-bottom: 5px;
    background: #EAF0FF;
    color: #0D1B6E;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 18px;
    white-space: nowrap;
}

/* Estudio / independiente */
.tarjeta-estudio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.badge-mas {
    background: #F2F2F2 !important;
    color: #666 !important;
}

/* Distrito + estado */
.tarjeta-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-distrito {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 3px;
}

.icono-pin {
    font-size: 12px;
}

.badge-estado {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

    .badge-estado.habilitado {
        background: #E6F4EA;
        color: #1e7e34;
    }

    .badge-estado.no-habilitado {
        background: #FDE8E8;
        color: #a11e1e;
    }

/* Pie de tarjeta */
.tarjeta-pie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f0f2f8;
}

.cap-numero {
    font-size: 12px;
    /*color: #888;*/
    color: var(--gris-texto);
    font-family: 'Courier New', monospace;
    background: var(--gris-claro);
    padding: 2px 6px;
    border-radius: 3px;
}

.valoracion {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.estrella.llena {
    color: #C9A84C;
}

.estrella.media {
    color: #C9A84C;
    font-size: 11px;
}

.estrella.vacia {
    color: #ddd;
}

.valoracion strong {
    color: #1a1a2e;
    font-size: 13px;
    margin-left: 2px;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .filtros-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tarjetas-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .filtros-grid {
        grid-template-columns: 1fr;
    }

    .tarjetas-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 28px;
    }

    .card-seccion {
        padding: 20px 16px;
    }
}

/* ================================================================
   MODAL DE DETALLE
   ================================================================ */

/* Overlay oscuro */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 60, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

    .modal-overlay.activo {
        display: flex;
    }

/* Caja del modal */
.modal-box {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 620px;
    margin: 0 16px;
    padding: 0px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.18);
    animation: modalEntrada 0.2s ease;
    max-height: 100vh;
    overflow-y: hidden;
}

@keyframes modalEntrada {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Botón cerrar */
.modal-cerrar {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0,0,0,0.4);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 20;
    z-index: 10;
}

    .modal-cerrar:hover {
        background: rgba(0,0,0,0.6);
    }

/* Cabecera del modal */
/* Header con fondo navy */
.modal-header {
    /*display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #C9A84C;*/
    background: #0D1B6E;
    padding: 28px 28px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 3px solid #C9A84C;
}
.modal-avatar {
    /*width: 64px;
    height: 64px;
    min-width: 64px;
    background: #0D1B6E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;*/
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: rgba(255,255,255,0.15);
    border: 2px solid #C9A84C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.modal-header-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-nombre {
    /*font-size: 17px;
    font-weight: 700;
    color: #0D1B6E;
    line-height: 1.3;*/
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

/* Foto del arquitecto */
.modal-foto-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.modal-foto {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #C9A84C;
}

.modal-header .cap-numero {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Filas de datos */
.modal-body {
    /*display: flex;
    flex-direction: column;*/
    padding: 24px 28px 28px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 130px);
}

.modal-datos {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-fila {
    /*display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 14px;
    background: #f7f9ff;
    border-radius: 8px;*/
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 16px;
    background: #F7F9FF;
    border-radius: 10px;
    border: 1px solid #eef0f8;
}

.modal-icono {
    /*font-size: 18px;
    min-width: 24px;
    text-align: center;*/
    font-size: 20px;
    min-width: 26px;
    text-align: center;
    margin-top: 1px;
}

.modal-fila > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.modal-label {
    /*font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #888;*/
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #999;
}

.modal-valor {
    font-size: 14px;
    color: #1a1a2e;
    font-weight: 600;
}

.contenedor-especialidades {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

/* Loading spinner */
.modal-loading {
    /*display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    gap: 16px;
    color: #666;
    font-size: 14px;*/
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    gap: 16px;
    color: #666;
    font-size: 14px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e0e4f0;
    border-top-color: #0D1B6E;
    border-radius: 50%;
    animation: girar 0.7s linear infinite;
}

@keyframes girar {
    to {
        transform: rotate(360deg);
    }
}

/* Web y redes sociales (modal) */
.modal-portafolio:empty {
    display: none;
}

.modal-portafolio {
    display: flex;
    margin-top: 2px;
    margin-bottom: 8px;
}

.btn-portafolio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F7F9FF;
    border: 1px solid #DCE4FA;
    color: #0D1B6E;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 18px;
    text-decoration: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}

    .btn-portafolio i {
        color: #0D1B6E;
    }

    .btn-portafolio:hover {
        background: #EAF0FF;
        border-color: #0D1B6E;
    }

.modal-redes {
    display: flex;
    gap: 8px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.btn-red-social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #dde1ea;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 18px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

    .btn-red-social:hover {
        background: #EAF0FF;
        border-color: #0D1B6E;
        color: #0D1B6E;
    }

/* Botón Enviar mensaje (modal) */
.btn-enviar-mensaje {
    width: 100%;
    margin-top: 18px;
    background: #1A1A1A;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

    .btn-enviar-mensaje:hover {
        background: #333;
    }

/* Cursor pointer en tarjetas */
.tarjeta {
    cursor: pointer;
}

/* Para Registro o Inicio de sesión */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-registro {
    background: #d4af37;
    color: #0b1f7a !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

    .btn-registro:hover {
        background: #c19a28;
        text-decoration: none;
    }

.btn-login {
    border: 1px solid rgba(255,255,255,.5);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

    .btn-login:hover {
        background: rgba(255,255,255,.1);
        text-decoration: none;
    }

/* ── NAVBAR LINKS (Directorio / Convocatorias) ───────────────────── */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: rgba(255,255,255,0.80);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

    .nav-link:hover,
    .nav-link.activo {
        background: rgba(255,255,255,0.12);
        color: #ffffff;
        text-decoration: none;
    }
/* ── FIN: NAVBAR LINKS (Directorio / Convocatorias) ───────────────── */

/* ── CONVOCATORIAS LISTA ─────────────────────────────────────────── */
.convocatorias-lista {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.convoc-card {
    background: #F7F9FF;
    border: 1px solid #e5e9f2;
    border-radius: 12px;
    padding: 18px 22px;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

    .convoc-card:hover {
        box-shadow: 0 6px 20px rgba(13,27,110,0.10);
        transform: translateY(-1px);
    }

.convoc-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e9f2;
}

.convoc-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 8px;
    background: #EAF0FF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0D1B6E;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.convoc-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.convoc-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.convoc-empresa {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #0D1B6E;
}

.convoc-fecha {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.convoc-puesto {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.convoc-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .convoc-desc.expandido {
        display: block;
        overflow: visible;
        white-space: pre-line; /* solo aplica cuando está expandido */
    }

.convoc-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.badge-distrito {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #F2F2F2;
    color: #555;
    font-size: 11px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 18px;
    border: 1px solid #e0e0e0;
}

.btn-ver-mas {
    background: none;
    border: 1px solid #dde1ea;
    color: #555;
    font-size: 11px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 18px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

    .btn-ver-mas:hover {
        border-color: #0D1B6E;
        color: #0D1B6E;
    }

/* PRUEBITA ESTILOS*/
.empresa-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.empresa-nombre {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #0D1B6E;
}

.empresa-ruc {
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #0D1B6E;
}
/*FIN PRUEBITA*/
/* ── FIN: CONVOCATORIAS LISTA ────────────────────────────────────── */

/* ── PAGINACIÓN ──────────────────────────────────────────────────── */
.paginacion {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e9f2;
}

.btn-pag {
    background: #ffffff !important;
    color: #0D1B6E !important;
    border: 1px solid #dde1ea !important;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

    .btn-pag:hover {
        background: #EAF0FF !important;
        border-color: #0D1B6E !important;
    }

    .btn-pag:disabled {
        color: #aaa !important;
        border-color: #e5e9f2 !important;
        background: #f9f9f9 !important;
        cursor: default;
    }

.pag-info {
    font-size: 13px;
    color: #666;
    min-width: 80px;
    text-align: center;
}
/* ── FIN: PAGINACIÓN ─────────────────────────────────────────────── */

/* ── SELECTOR ESPECIALIDADES ─────────────────────────────────────── */
.esp-chips-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #dde1ea;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 10px;
    align-items: center;
}

.esp-placeholder {
    font-size: 13px;
    color: #aaa;
}

.esp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #EAF0FF;
    color: #0D1B6E;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
}

.esp-chip-x {
    background: none;
    border: none;
    color: #0D1B6E;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
}

.esp-grilla {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.esp-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid #dde1ea;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    font-size: 13px;
    color: #555;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}

    .esp-item:hover {
        border-color: #0D1B6E;
    }

    .esp-item.seleccionado {
        border-color: #0D1B6E;
        background: #EAF0FF;
        color: #0D1B6E;
    }

    .esp-item.deshabilitado {
        opacity: 0.4;
        cursor: default;
        pointer-events: none;
    }

.esp-check {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 4px;
    border: 1.5px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}

.esp-item.seleccionado .esp-check {
    background: #0D1B6E;
    border-color: #0D1B6E;
}

.esp-aviso {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.esp-aviso-formulario {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 2px;
    margin-bottom: 4px;
    padding: 14px 16px;
    background: #FFF8E6;
    border: 1px solid #F0DFA0;
    border-left: 4px solid #C9A84C;
    border-radius: 8px;
}

    .esp-aviso-formulario > .ti {
        flex-shrink: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #C9A84C;
        color: #fff;
        font-size: 16px;
    }

    .esp-aviso-formulario > div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .esp-aviso-formulario strong {
        font-size: 13.5px;
        color: #7a5c00;
    }

    .esp-aviso-formulario span {
        font-size: 13px;
        color: #6b5b1e;
        line-height: 1.45;
    }

    .esp-aviso-formulario a {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        margin-top: 4px;
        font-size: 13px;
        font-weight: 700;
        color: #0D1B6E;
        text-decoration: none;
    }

        .esp-aviso-formulario a:hover {
            text-decoration: underline;
        }
/* ── FIN: SELECTOR ESPECIALIDADES ───────────────────────────────────── */

/* ── ADJUNTAR DOCUMENTOS -─-─────────────────────────────────────────── */

.esp-documentos {
    margin-top: 25px;
}
.esp-documentos-titulo {
    font-weight: 600;
    color: #1f3c88;
    margin-bottom: 15px;
}
.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fafafa;
}
.doc-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.doc-input {
    width: 320px;
}
.esp-placeholder-doc {
    color: #888;
}
/* ── FIN: ADJUNTAR DOCUMENTOS ───────────────────────────────────────── */

/* ── CAMPOS SOLO LECTURA -─-─────────────────────────────────────────── */
.campo-solo-lectura {
    background-color: #f1f1f1;
    color: #495057;
    cursor: not-allowed;
    border: 1px solid #dee2e6;
    opacity: 0.85;
}

    .campo-solo-lectura:focus {
        box-shadow: none;
        outline: none;
    }
/* ── FIN: CAMPOS SOLO LECTURA ───────────────────────────────────────── */

/* ── CAMPOS PALABRA CLAVE -─-────────────────────────────────────────── */
.filtro-palabra-clave {
    margin-bottom: 20px;
}
.input-busqueda-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
    .input-busqueda-wrap .icono-buscar {
        position: absolute;
        left: 12px;
        font-size: 14px;
        color: #999;
        pointer-events: none;
    }
    .input-busqueda-wrap .filtro-input {
        padding-left: 36px;
    }
        .input-busqueda-wrap .filtro-input:focus + .icono-buscar,
        .input-busqueda-wrap:focus-within .icono-buscar {
            color: #0D1B6E;
        }
/* ── FIN: CAMPOS PALABRA CLAVE ────────────────────────────────────────- */
/* ── AGRUPACIÓN DE ESPECIALIDADES POR ÁREA ──────────────────────── */
.esp-area-bloque {
    margin-bottom: 18px;
}

.subseccion-titulo {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    color: #0D1B6E;
    padding-bottom: 6px;
    margin-bottom: 4px;
    border-bottom: 1px solid #eef0f8;
}

.esp-area-titulo {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #0D1B6E;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eef0f8;
}
/* ── FIN: AGRUPACIÓN DE ESPECIALIDADES POR ÁREA ─────────────────── */

/* ── DETALLE ESPECIALIDAD ──────────────────────── */
.esp-detalle-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 14px;
    background: #fafbfc;
}

.esp-detalle-titulo {
    font-weight: 600;
    font-size: 15px;
    color: #0D1B6E;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e8e8;
}

.esp-rol-formulario {
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px;
    padding: 8px 12px;
    background: #FDF6E3;
    border: 1px solid #E5D8A8;
    border-radius: 6px;
    font-size: 12.5px;
    color: #6b5b1e;
}

    .esp-rol-formulario a {
        color: #0D1B6E;
        font-weight: 600;
        text-decoration: none;
    }

        .esp-rol-formulario a:hover {
            text-decoration: underline;
        }
/* ── FIN: DETALLE ESPECIALIDAD ─────────────────── */

/* ── BARRA DE PROGRESO (Perfil) ──────────────────────────────────── */
.progreso-pasos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 4px;
}

.paso {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.45;
    cursor: pointer;
}

    .paso.activo {
        opacity: 1;
    }

.paso-numero {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background: #0D1B6E;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paso-texto {
    font-size: 13px;
    font-weight: 600;
    color: #0D1B6E;
    white-space: nowrap;
}

.paso-linea {
    width: 40px;
    height: 2px;
    background: #dde1ea;
}
/* ── FIN: BARRA DE PROGRESO ───────────────────────────────────────── */

/* ── DATOS DE LA EMPRESA ──────────────────────────────────────────── */
.empresa-opciones {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.empresa-opcion {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}
/* ── FIN: DATOS DE LA EMPRESA ─────────────────────────────────────── */

/* ── PRIVACIDAD DE CONTACTO (switches) ───────────────────────────── */
.privacidad-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #dde1ea;
    border-radius: 8px;
    padding: 14px 16px;
}

.privacidad-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #333;
}

.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
    flex-shrink: 0;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.switch-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 20px;
    transition: 0.2s;
    cursor: pointer;
}

    .switch-slider::before {
        content: "";
        position: absolute;
        width: 16px;
        height: 16px;
        left: 2px;
        top: 2px;
        background: #fff;
        border-radius: 50%;
        transition: 0.2s;
    }

.switch input:checked + .switch-slider {
    background: #0D1B6E;
}

    .switch input:checked + .switch-slider::before {
        transform: translateX(18px);
    }

.switch input:disabled + .switch-slider {
    cursor: not-allowed;
    opacity: 0.6;
}

.empresa-opcion input:disabled {
    cursor: not-allowed;
}

    .empresa-opcion:has(input:disabled) {
        opacity: 0.6;
    }

/* ── BUSCADOR DE EMPRESA (sugerencias) ───────────────────────────── */
.empresa-sugerencias {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #dde1ea;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    max-height: 220px;
    overflow-y: auto;
    z-index: 30;
}

.empresa-sugerencia-item {
    padding: 9px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-bottom: 1px solid #f0f2f8;
}

    .empresa-sugerencia-item:hover {
        background: #EAF0FF;
    }

    .empresa-sugerencia-item strong {
        font-size: 13px;
        color: #0D1B6E;
    }

    .empresa-sugerencia-item span {
        font-size: 11px;
        color: #888;
    }

.empresa-sugerencia-nueva {
    padding: 10px 14px;
    cursor: pointer;
    color: #0D1B6E;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .empresa-sugerencia-nueva:hover {
        background: #F7F9FF;
    }
/* ── FIN: BUSCADOR DE EMPRESA ─────────────────────────────────────── */

/* ── FORMULARIO "REGISTRAR NUEVA EMPRESA" (dentro del pop-up) ────── */
.swal-form-empresa {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.swal-form-campo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #555;
}

    .swal-form-campo .swal2-input {
        margin: 0;
        width: 100%;
        height: auto;
        padding: 9px 12px;
        font-size: 14px;
        text-transform: none;
        letter-spacing: normal;
        font-weight: 400;
        color: #333;
        box-sizing: border-box;
    }
/* ── FIN: FORMULARIO "REGISTRAR NUEVA EMPRESA" ────────────────────── */

/* ── CONTENIDO LEGAL EN POP-UPS (Términos y Declaración Jurada) ───── */
.swal-legal-doc {
    text-align: left;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 10px;
    font-size: 13px;
    line-height: 1.6;
    color: #444;
}

    .swal-legal-doc h4 {
        margin: 16px 0 6px;
        font-size: 13px;
        font-weight: 700;
        color: #0D1B6E;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

        .swal-legal-doc h4:first-child {
            margin-top: 0;
        }

    .swal-legal-doc p {
        margin: 0 0 10px;
    }

    .swal-legal-doc ul {
        margin: 0 0 10px;
        padding-left: 20px;
    }

    .swal-legal-doc li {
        margin-bottom: 4px;
    }

    .swal-legal-doc b {
        color: #222;
    }

.swal-legal-datos {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid #E3E6F0;
    font-size: 13px;
    color: #333;
}

    .swal-legal-datos .swal-legal-datos-fila {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 3px 0;
    }

    .swal-legal-datos .swal-legal-datos-fila span:first-child {
        font-weight: 700;
        color: #0D1B6E;
    }

.swal-legal-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    text-align: left;
}

    .swal-legal-check input {
        margin-top: 3px;
    }
/* ── FIN: CONTENIDO LEGAL EN POP-UPS ───────────────────────────────── */

.privacidad-aviso {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
/* ── FIN: PRIVACIDAD DE CONTACTO ─────────────────────────────────── */

