@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f0f4f8;
    color: #334155;
}

button {
    font-family: inherit;
}

/* Animaciones */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.animate-slide-in { animation: slideUp 0.35s ease-out; }
.animate-fade-in  { animation: fadeIn 0.3s ease-out; }

/* Tarjetas de funcionarios */
.funcionario-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid #e8edf3;
}
.funcionario-card:hover {
    box-shadow: 0 16px 40px rgba(99,130,200,0.20), 0 0 0 1px #e8edf3;
    transform: translateY(-6px);
    border-color: #c7d7fc;
}

/* Modales */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    justify-content: center;
    align-items: center;
    z-index: 50;
    backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }

.modal-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px;
    max-width: 500px;
    width: 92%;
    box-shadow: 0 24px 64px rgba(0,0,0,0.18);
    position: relative;
    animation: slideUp 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content--wide {
    max-width: 760px;
    width: 96%;
    padding: 40px;
    max-height: 94vh;
}

.modal-content--funcionario {
    max-width: 680px;
    width: 95%;
    padding: 44px;
    border: 1.5px solid #dbe7ff;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 30px 72px rgba(15, 23, 42, 0.24);
}

.funcionario-modal__hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding: 18px;
    border-radius: 18px;
    border: 1.5px solid #d8e5ff;
    background: linear-gradient(135deg, #f1f6ff 0%, #e7efff 100%);
    margin-bottom: 20px;
}

.funcionario-modal__avatar {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.funcionario-modal__hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.funcionario-modal__eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #2563eb;
}

.funcionario-modal__nombre {
    margin: 0 0 4px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.funcionario-modal__cargo {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #1d4ed8;
}

.funcionario-modal__estado .badge-atendiendo,
.funcionario-modal__estado .badge-disponible {
    font-size: 12px;
    padding: 8px 14px;
}

.funcionario-modal__info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.funcionario-modal__info-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    background: #ffffff;
}

.funcionario-modal__info-card--full {
    grid-column: 1 / -1;
}

.funcionario-modal__info-label {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.funcionario-modal__info-value {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.funcionario-modal__descripcion-wrap {
    border: 1.5px solid #cfe0fd;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef4ff 0%, #f6f9ff 100%);
    padding: 16px;
    margin-bottom: 20px;
}

.funcionario-modal__descripcion-wrap--inline {
    margin: 2px 0 10px;
    border: 0;
    background: transparent;
    padding: 0;
}

.funcionario-modal__descripcion--inline {
    margin: 2px 0 10px;
}

.funcionario-modal__descripcion {
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
}

.funcionario-modal__obs-label {
    margin-top: 0;
}

.funcionario-modal__obs-card {
    margin-top: -2px;
}

.funcionario-modal__obs-value {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    line-height: 1.5;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1.5px solid #cfe0fd;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fbff 0%, #f1f6ff 100%);
}

.funcionario-modal__btn {
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 26px;
}

.modal-content--mapa {
    max-width: 1080px;
    width: 98%;
    padding: 40px;
    max-height: 94vh;
    border: 1.5px solid #d5e4fb;
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    box-shadow: 0 30px 72px rgba(15, 23, 42, 0.24);
}

#funcionarioModal .btn-close,
#mapaModal .btn-close {
    width: 42px;
    height: 42px;
    font-size: 18px;
    background: #e8efff;
    color: #3b5bdb;
}

#funcionarioModal .btn-close:hover,
#mapaModal .btn-close:hover {
    background: #dbe7ff;
    color: #1e40af;
}

#funcionarioModal #modalNombre {
    font-size: 30px !important;
    letter-spacing: -0.02em;
}

#funcionarioModal #modalCargo {
    font-size: 18px !important;
}

#funcionarioModal #modalDescripcion {
    font-size: 15px !important;
    line-height: 1.75 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

#mapaModal #mapaTitle {
    font-size: 30px !important;
    letter-spacing: -0.02em;
    margin-bottom: 24px !important;
    color: #1d4ed8 !important;
}

#mapaModal .mapa-container {
    height: 520px;
    border-radius: 18px;
    border: 1.5px solid #cfe0fd;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6), 0 10px 24px rgba(59, 91, 219, 0.12);
}

#mapaModal #mapaInstrucciones {
    font-size: 15px !important;
    line-height: 1.7 !important;
}

/* Botones */
.btn-primary {
    background: #4f7ef8;
    color: white;
    font-weight: 600;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 15px;
    letter-spacing: 0.2px;
}
.btn-primary:hover {
    background: #3b6cf0;
    box-shadow: 0 4px 14px rgba(79,126,248,0.4);
}

.btn-primary--disabled,
.btn-primary--disabled:hover {
    background: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-secondary {
    background: #e8f5f0;
    color: #1d7a55;
    font-weight: 600;
    padding: 12px 20px;
    border: 1.5px solid #b2dece;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
}
.btn-secondary:hover {
    background: #d0eddf;
    box-shadow: 0 4px 10px rgba(29,122,85,0.15);
}

.btn-nav {
    background: #eef2ff;
    color: #4f7ef8;
    font-weight: 600;
    padding: 12px 22px;
    border: 1.5px solid #c7d7fc;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
}
.btn-nav:hover {
    background: #dde8ff;
    box-shadow: 0 4px 10px rgba(79,126,248,0.18);
}
.btn-nav:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 16px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-close:hover { background: #e2e8f0; color: #475569; }

/* Badge de estado */
.badge-atendiendo {
    display: inline-block;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #065f46;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1.5px solid #86efac;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
    letter-spacing: 0.05em;
}
.badge-disponible {
    display: inline-block;
    background: linear-gradient(135deg, #fef08a 0%, #fde68a 100%);
    color: #78350f;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1.5px solid #fcd34d;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.12);
    letter-spacing: 0.05em;
}

/* Mapa */
.mapa-container {
    background: linear-gradient(145deg, #f8faff 0%, #eef2f9 100%);
    border-radius: 14px;
    position: relative;
    height: 300px;
    border: 1.5px solid #dde5f5;
}
.mapa-zona {
    position: absolute;
    border: 1.5px dashed #b8cef8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-align: center;
    font-size: 12px;
    background: #e8f0fe;
    color: #3b5bdb;
}
.mapa-zona-actual {
    border: 2px solid #34d399;
    border-style: solid;
    background: #ecfdf5;
    color: #065f46;
    box-shadow: 0 4px 14px rgba(52,211,153,0.25);
}

/* Divisor sutil */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
    margin: 20px 0;
}

.centro-carousel {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 28px;
    border: 1.5px solid #dbe4f0;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    background: #0f172a;
}

.centro-carousel__viewport {
    position: relative;
    min-height: 490px;
}

.centro-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.centro-carousel__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.centro-carousel__image {
    width: 100%;
    height: 100%;
    min-height: 490px;
    object-fit: cover;
    display: block;
}

.centro-carousel__overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px 24px 22px;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.82) 15%, rgba(2, 6, 23, 0.28) 65%, rgba(2, 6, 23, 0));
    color: #ffffff;
}

.centro-carousel__eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #bfdbfe;
    margin-bottom: 6px;
}

.centro-carousel__title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.03em;
}

.centro-carousel__text {
    font-size: 14px;
    color: #e2e8f0;
    margin: 0;
}

.centro-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    z-index: 3;
}

.centro-carousel__nav:hover {
    background: rgba(15, 23, 42, 0.75);
    transform: translateY(-50%) scale(1.05);
}

.centro-carousel__nav--prev {
    left: 14px;
}

.centro-carousel__nav--next {
    right: 14px;
}

.centro-carousel__dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.centro-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.centro-carousel__dot.is-active {
    width: 24px;
    background: #ffffff;
}

.galeria-carousel-modal {
    position: relative;
    width: min(1100px, 94vw);
    height: min(86vh, 760px);
    border-radius: 22px;
    background: #020617;
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.galeria-carousel-modal__figure {
    width: 100%;
    height: 100%;
    margin: 0;
    position: relative;
}

.galeria-carousel-modal__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: radial-gradient(circle at 20% 20%, rgba(30, 64, 175, 0.28), rgba(2, 6, 23, 0.92));
}

.galeria-carousel-modal__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 24px 24px;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.9) 18%, rgba(2, 6, 23, 0.18) 70%, rgba(2, 6, 23, 0));
}

.galeria-carousel-modal__eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #93c5fd;
    margin: 0 0 8px;
}

.galeria-carousel-modal__title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.galeria-carousel-modal__text {
    font-size: 15px;
    color: #cbd5e1;
    margin: 0;
}

.galeria-carousel-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 6;
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
}

.galeria-carousel-modal__close:hover {
    background: rgba(30, 41, 59, 0.95);
    color: #ffffff;
}

.galeria-carousel-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.2s ease, background 0.2s ease;
}

.galeria-carousel-modal__nav:hover {
    transform: translateY(-50%) scale(1.06);
    background: rgba(30, 41, 59, 0.92);
}

.galeria-carousel-modal__nav--prev {
    left: 16px;
}

.galeria-carousel-modal__nav--next {
    right: 16px;
}

.galeria-carousel-modal__dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    gap: 8px;
}

.galeria-carousel-modal__dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.55);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.galeria-carousel-modal__dot.is-active {
    width: 24px;
    background: #ffffff;
}

.some-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.some-card {
    width: 100%;
    border: 1.5px solid #c7d7fc;
    border-radius: 22px;
    background: linear-gradient(140deg, #f8fbff 0%, #eef4ff 55%, #e0ecff 100%);
    padding: 22px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 10px 26px rgba(59, 108, 240, 0.12);
    position: relative;
    overflow: hidden;
}

.some-card::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 126, 248, 0.22) 0%, rgba(79, 126, 248, 0) 70%);
    top: -52px;
    right: -44px;
}

.some-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: #93c5fd;
    box-shadow: 0 16px 34px rgba(59, 108, 240, 0.2);
}

.some-card > * {
    position: relative;
    z-index: 1;
}

.some-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.some-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.some-card__meta {
    font-size: 12px;
    color: #1e40af;
    font-weight: 700;
}

.some-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: inset 0 0 0 1px rgba(59, 108, 240, 0.2);
}

.some-card__title {
    font-size: 24px;
    font-weight: 800;
    color: #1e3a8a;
    margin: 0 0 8px;
    letter-spacing: -0.03em;
}

.some-card__text {
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    min-height: 40px;
}

.some-card__footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(59, 108, 240, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.some-card__cta {
    font-size: 12px;
    font-weight: 800;
    color: #2563eb;
    margin: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.some-card__arrow {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-general-trigger {
    border: 1.5px solid #a7f3d0;
    background: linear-gradient(135deg, #ecfeff 0%, #f0fdfa 100%);
    color: #0f766e;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 10px 24px rgba(13, 148, 136, 0.14);
}

.info-general-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(13, 148, 136, 0.18);
    border-color: #5eead4;
}

.info-general-trigger__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #ccfbf1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-general {
    border: 1.5px solid #dbe4f0;
    border-radius: 28px;
    padding: 30px;
    background:
        radial-gradient(circle at 12% 16%, rgba(125, 211, 252, 0.2) 0%, rgba(125, 211, 252, 0) 36%),
        radial-gradient(circle at 90% 12%, rgba(110, 231, 183, 0.18) 0%, rgba(110, 231, 183, 0) 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.1);
}

.info-general__header {
    margin-bottom: 20px;
}

.info-general__highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.info-highlight {
    border: 1.5px solid #dbe4f0;
    border-radius: 16px;
    background: #ffffff;
    padding: 14px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
}

.info-highlight__icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-highlight__title {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}

.info-highlight__text {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.info-highlight--azul .info-highlight__icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.info-highlight--naranja .info-highlight__icon {
    background: #ffedd5;
    color: #c2410c;
}

.info-highlight--verde .info-highlight__icon {
    background: #dcfce7;
    color: #15803d;
}

.info-highlight--cian .info-highlight__icon {
    background: #cffafe;
    color: #0e7490;
}

.info-general__eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #2563eb;
    margin: 0 0 8px;
}

.info-general__title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
}

.info-general__subtitle {
    font-size: 15px;
    color: #475569;
    margin: 0;
}

.info-general__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.info-general-tab {
    border: 1.5px solid #dbe4f0;
    border-radius: 16px;
    background: #ffffff;
    color: #1e293b;
    padding: 14px;
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.info-general-tab__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-general-tab__icon--azul {
    background: #dbeafe;
    color: #1d4ed8;
}

.info-general-tab__icon--naranja {
    background: #ffedd5;
    color: #c2410c;
}

.info-general-tab__icon--verde {
    background: #dcfce7;
    color: #15803d;
}

.info-general-tab__icon--cian {
    background: #cffafe;
    color: #0e7490;
}

.info-general-tab__copy {
    display: grid;
    gap: 3px;
}

.info-general-tab__title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.info-general-tab__summary {
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
}

.info-general-tab__arrow {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-general-tab:hover {
    border-color: #bfdbfe;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 108, 240, 0.12);
}

.info-general-tab.is-active {
    border-color: #93c5fd;
    background: linear-gradient(135deg, #eef4ff 0%, #e0ecff 100%);
    box-shadow: 0 10px 22px rgba(59, 108, 240, 0.18);
}

.info-general-tab.is-active .info-general-tab__title {
    color: #1d4ed8;
}

.info-general-tab.is-active .info-general-tab__arrow {
    background: #dbeafe;
    color: #1d4ed8;
}

.info-general__content {
    border: 1.5px solid #dbe4f0;
    border-radius: 18px;
    background: #ffffff;
    padding: 20px;
}

.info-general-content__head {
    margin-bottom: 14px;
}

.info-general-content__title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.info-general-content__title-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-general-content__title-icon--azul {
    background: #dbeafe;
    color: #1d4ed8;
}

.info-general-content__title-icon--naranja {
    background: #ffedd5;
    color: #c2410c;
}

.info-general-content__title-icon--verde {
    background: #dcfce7;
    color: #15803d;
}

.info-general-content__title-icon--cian {
    background: #cffafe;
    color: #0e7490;
}

.info-general-content__title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}

.info-general-content__summary {
    margin: 0;
    font-size: 14px;
    color: #475569;
}

.info-general-content__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.info-general-chip {
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
}

.info-general-content__rows {
    display: grid;
    gap: 10px;
}

.info-general-row {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 13px 14px;
    background: #f8fafc;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-general-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.info-general-row__label {
    margin: 0 0 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #64748b;
}

.info-general-row__value {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.initial-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.sector-card--profesional {
    border-color: #c7d7fc;
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    box-shadow: 0 8px 28px rgba(59, 91, 219, 0.08);
}

.sector-card--profesional:hover {
    border-color: #93c5fd;
    box-shadow: 0 16px 34px rgba(59, 91, 219, 0.16);
}

.sector-card__icon--profesional {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
}

.sector-card__eyebrow--profesional {
    color: #1d4ed8;
}

.sector-card__cta--profesional {
    background: #2563eb;
}

.modal-content--busqueda-prof {
    display: flex;
    flex-direction: column;
    max-height: 94vh;
}

.prof-busqueda-panel {
    margin-bottom: 14px;
}

.prof-busqueda-panel__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin: 0 0 8px;
}

.prof-busqueda-display-wrapper {
    position: relative;
}

.prof-busqueda-display {
    min-height: 52px;
    padding: 14px 48px 14px 16px;
    border-radius: 14px;
    border: 1.5px solid #c7d7fc;
    background: #f8fbff;
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    word-break: break-word;
}

.prof-busqueda-display.is-empty {
    color: #94a3b8;
    font-weight: 500;
}

.prof-busqueda-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #e2e8f0;
    color: #475569;
    font-size: 16px;
    cursor: pointer;
}

.prof-busqueda-clear.is-hidden {
    display: none;
}

.teclado-profesional {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 16px;
}

.tecla-profesional {
    min-height: 44px;
    border: 1px solid #dbe8ff;
    border-radius: 10px;
    background: #ffffff;
    color: #1e40af;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.tecla-profesional:hover {
    background: #eff6ff;
    transform: translateY(-1px);
}

.tecla-profesional--wide {
    grid-column: span 5;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.tecla-profesional--danger {
    grid-column: span 5;
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
    font-size: 13px;
}

.prof-lista__heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin: 0 0 10px;
}

.prof-lista-resultados {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(36vh, 320px);
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 4px;
}

.prof-lista-item {
    width: 100%;
    text-align: left;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.prof-lista-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 20px rgba(59, 91, 219, 0.12);
    transform: translateY(-1px);
}

.prof-lista-item__nombre {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.prof-lista-item__cargo {
    font-size: 13px;
    font-weight: 600;
    color: #3b6cf0;
    margin: 0 0 8px;
}

.prof-lista-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.prof-lista-item__meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.prof-lista-vacio {
    text-align: center;
    padding: 20px 12px;
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.prof-resultado-card {
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    border: 2px solid #93c5fd;
    border-radius: 20px;
    padding: 24px 20px;
    text-align: left;
}

.prof-resultado-card__nombre {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
}

.prof-resultado-card__cargo {
    font-size: 15px;
    font-weight: 600;
    color: #2563eb;
    margin: 0 0 18px;
}

.prof-resultado-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.prof-resultado-item {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid #dbe8ff;
}

.prof-resultado-item--full {
    grid-column: 1 / -1;
}

.prof-resultado-item__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin: 0 0 6px;
}

.prof-resultado-item__value {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
}

.sector-card {
    width: 100%;
    border: 1.5px solid #b2dece;
    border-radius: 20px;
    background: linear-gradient(135deg, #f0fdf9 0%, #ecfeff 100%);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 8px 28px rgba(20, 184, 166, 0.08);
    text-align: left;
}

.sector-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(20, 184, 166, 0.16);
    border-color: #5eead4;
}

.sector-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sector-card__content {
    flex: 1;
}

.sector-card__eyebrow {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0f766e;
    margin-bottom: 8px;
}

.sector-card__title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.sector-card__text {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

.sector-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: #0f766e;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.rut-panel {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px solid #dbe4f0;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 28px;
}

.rut-panel__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 10px;
}

.rut-display {
    min-height: 72px;
    border-radius: 16px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #0f172a;
}

.rut-display-wrapper {
    position: relative;
}

.rut-clear-button {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rut-clear-button:hover {
    background: #cbd5e1;
    color: #0f172a;
}

.rut-clear-button.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.rut-display.is-empty {
    color: #94a3b8;
    font-weight: 600;
    font-size: 24px;
}

.rut-panel__hint {
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
}

.teclado-rut {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.tecla-rut {
    min-height: 72px;
    border: 1.5px solid #dbe4f0;
    border-radius: 18px;
    background: #ffffff;
    color: #0f172a;
    font-size: 26px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tecla-rut:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 10px 20px rgba(59, 108, 240, 0.12);
}

.tecla-rut--accent {
    background: #eef4ff;
    color: #3b6cf0;
}

.tecla-rut--danger {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    color: #be123c;
    border-color: #fecdd3;
    font-size: 18px;
}

.tecla-rut--danger:hover {
    border-color: #fda4af;
    box-shadow: 0 10px 20px rgba(190, 24, 93, 0.12);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 24px;
        width: calc(100% - 24px);
    }

    .modal-content--funcionario,
    .modal-content--mapa {
        padding: 28px;
    }

    .funcionario-modal__hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .funcionario-modal__avatar {
        margin: 0 auto;
    }

    .funcionario-modal__nombre {
        font-size: 25px;
    }

    .funcionario-modal__cargo {
        font-size: 16px;
    }

    .funcionario-modal__info-grid {
        grid-template-columns: 1fr;
    }

    #funcionarioModal #modalNombre {
        font-size: 25px !important;
    }

    #mapaModal #mapaTitle {
        font-size: 24px !important;
    }

    #mapaModal .mapa-container {
        height: 400px;
    }

    .some-grid {
        grid-template-columns: 1fr;
    }

    .info-general-trigger {
        width: 100%;
        justify-content: center;
        font-size: 16px;
    }

    .info-general {
        padding: 20px;
        border-radius: 18px;
    }

    .info-general__highlights {
        grid-template-columns: 1fr;
    }

    .info-general__title {
        font-size: 25px;
    }

    .info-general__tabs {
        grid-template-columns: 1fr;
    }

    .info-general-tab {
        grid-template-columns: auto 1fr;
    }

    .info-general-tab__arrow {
        display: none;
    }

    .info-general-content__title {
        font-size: 21px;
    }

    .centro-carousel {
        border-radius: 18px;
    }

    .centro-carousel__viewport,
    .centro-carousel__image {
        min-height: 380px;
    }

    .centro-carousel__overlay {
        padding: 20px 18px 18px;
    }

    .centro-carousel__title {
        font-size: 22px;
    }

    .centro-carousel__nav {
        width: 36px;
        height: 36px;
    }

    .galeria-carousel-modal {
        width: 96vw;
        height: 82vh;
        border-radius: 16px;
    }

    .galeria-carousel-modal__title {
        font-size: 24px;
    }

    .galeria-carousel-modal__text {
        font-size: 14px;
    }

    .galeria-carousel-modal__nav {
        width: 42px;
        height: 42px;
    }

    .some-card {
        padding: 20px;
    }

    .some-card__title {
        font-size: 22px;
    }

    .initial-actions {
        grid-template-columns: 1fr;
    }

    .sector-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .sector-card__cta {
        width: 100%;
    }

    .teclado-profesional {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .tecla-profesional--wide,
    .tecla-profesional--danger {
        grid-column: span 3;
    }

    .prof-resultado-grid {
        grid-template-columns: 1fr;
    }

    .rut-display {
        font-size: 26px;
        min-height: 64px;
    }
}

@media (max-width: 540px) {
    .tecla-rut {
        min-height: 64px;
        font-size: 22px;
    }

    .rut-clear-button {
        width: 36px;
        height: 36px;
        right: 10px;
    }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* Flechas flotantes de desplazamiento */
.flecha-flotante {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(79, 126, 248, 0.20);
    z-index: 30;
    pointer-events: none;
    cursor: pointer;
}

.flecha-arriba {
    animation: subeBaja 2s ease-in-out infinite;
}

.flecha-abajo {
    animation: bajeSube 2s ease-in-out infinite;
}

.flecha-lateral {
    top: 50%;
    left: auto;
    transform: translateY(-50%);
    pointer-events: auto;
}

.flecha-izquierda {
    left: 20px;
    animation: izquierdaDerecha 2s ease-in-out infinite;
}

.flecha-derecha {
    right: 20px;
    animation: derechaIzquierda 2s ease-in-out infinite;
}

@keyframes subeBaja {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateX(-50%) translateY(-12px);
        opacity: 1;
    }
}

@keyframes bajeSube {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 1;
    }
}

@keyframes izquierdaDerecha {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
        opacity: 0.65;
    }
    50% {
        transform: translateY(-50%) translateX(-10px);
        opacity: 1;
    }
}

@keyframes derechaIzquierda {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
        opacity: 0.65;
    }
    50% {
        transform: translateY(-50%) translateX(10px);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .flecha-izquierda {
        left: 10px;
    }

    .flecha-derecha {
        right: 10px;
    }
}
