/* NETV — sistema de diseño premium.
   Paleta de marca tomada del logo: marino, azul cian y verde lima.
   El CSS es central: todas las páginas usan estas clases. */

:root {
    --navy: #0B2742;
    --navy-700: #123251;
    --navy-900: #07203A;
    --azul: #0E6FCB;
    --azul-claro: #1E8FD5;
    --lima: #9DC11C;
    --lima-osc: #7C9A14;

    --fondo: #F4F6FA;
    --tarjeta: #ffffff;
    --borde: #E5E9F0;
    --texto: #16243F;
    --tenue: #5A6B82;

    --color-ok: #2C7A3F;
    --color-error: #C13030;

    --radio: 14px;
    --radio-sm: 10px;
    --sombra: 0 6px 24px rgba(11, 39, 66, 0.08);
    --sombra-fuerte: 0 14px 40px rgba(11, 39, 66, 0.14);
    --fuente: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--fuente);
    color: var(--texto);
    background: var(--fondo);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.contenedor { width: 100%; max-width: 100%; margin: 0 auto; padding: 0 32px; }
a { color: var(--azul); text-decoration: none; }
a:hover { color: var(--azul-claro); }

h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 4px; }
h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 14px; }
.subtitulo { color: var(--tenue); margin: 0 0 26px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; }
.logo__img { height: 40px; width: auto; display: block; }
.logo__img--pie { height: 38px; }

/* ---------- Cabecera (estilo red social, fondo marino) ---------- */
.cab {
    position: sticky; top: 0; z-index: 30;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 2px 10px rgba(7, 32, 58, 0.25);
}
.cab__in { display: flex; align-items: center; height: 58px; padding: 0 16px; gap: 14px; }

/* Izquierda: logo + búsqueda */
.cab__izq { display: flex; align-items: center; gap: 10px; flex: 1 1 0; min-width: 0; }
.cab__logo img { height: 42px; width: 42px; display: block; }
.busca {
    display: flex; align-items: center; gap: 9px;
    background: rgba(255, 255, 255, 0.09); border-radius: 999px;
    height: 40px; padding: 0 15px; flex: 0 1 260px; min-width: 0;
}
.busca:focus-within { background: rgba(255, 255, 255, 0.14); }
.busca__ic { width: 17px; height: 17px; color: #93A6BE; flex: 0 0 auto; }
.busca input { background: transparent; border: 0; outline: none; color: #fff; font: inherit; font-size: 0.92rem; width: 100%; min-width: 0; }
.busca input::placeholder { color: #93A6BE; }

/* Centro: los 4 pilares */
.cab__centro { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.pilar {
    display: flex; align-items: center; justify-content: center;
    width: 92px; height: 46px; border-radius: 10px; color: #AFC0D6;
    position: relative; transition: background 0.15s, color 0.15s;
}
.pilar:hover { background: rgba(255, 255, 255, 0.10); color: #fff; }
.pilar svg { width: 25px; height: 25px; }
.pilar--activo { color: var(--azul-claro); }
.pilar--activo::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--azul-claro); }

/* Derecha: menú, chat, notificaciones, perfil */
.cab__der { display: flex; align-items: center; gap: 9px; flex: 1 1 0; justify-content: flex-end; }
.iconbtn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.10); color: #E7EDF5; flex: 0 0 auto;
    transition: background 0.15s, color 0.15s;
}
.iconbtn:hover { background: rgba(255, 255, 255, 0.20); color: #fff; }
.iconbtn svg { width: 20px; height: 20px; }
.cab__perfil { display: block; flex: 0 0 auto; position: relative; }
.cab__avatar {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
    color: #fff; font-weight: 700; font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.20); background: #0f2c4a;
}
.cab__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cab__chevron {
    position: absolute; right: -2px; bottom: -2px;
    width: 16px; height: 16px; border-radius: 50%;
    background: #1b3050; border: 2px solid var(--navy);
    display: flex; align-items: center; justify-content: center; color: #E7EDF5;
}
.cab__chevron svg { width: 9px; height: 9px; }

/* Botón de perfil (avatar) como disparador del menú */
.cab__perfil-wrap { position: relative; flex: 0 0 auto; }
.cab__perfil { background: none; border: none; padding: 0; cursor: pointer; display: block; }

/* Menú desplegable del perfil (estilo red social, fondo marino) */
.cab-menu {
    position: absolute; top: calc(100% + 12px); right: 0; z-index: 200;
    width: 340px; max-width: calc(100vw - 24px);
    background: #15263c; border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px; padding: 10px; color: #E7EDF5;
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.cab-menu[hidden] { display: none; }
.cab-menu__head { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 12px; color: inherit; }
.cab-menu__head:hover { background: rgba(255,255,255,.06); color: #fff; }
.cab-menu__logo { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #0f2c4a; color: #fff; font-weight: 700; }
.cab-menu__logo img { width: 100%; height: 100%; object-fit: cover; }
.cab-menu__nombre { font-weight: 700; font-size: 1.02rem; line-height: 1.2; }
.cab-menu__sep { height: 1px; background: rgba(255,255,255,.08); margin: 8px 6px; }
.cab-menu__item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: inherit; font-weight: 600; font-size: .92rem; }
.cab-menu__item:hover { background: rgba(255,255,255,.06); color: #fff; }
.cab-menu__ic { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #cfe0f2; }
.cab-menu__ic svg { width: 18px; height: 18px; }
.cab-menu__txt { flex: 1; min-width: 0; }
.cab-menu__badge { font-size: .78rem; font-weight: 800; color: var(--lima); background: rgba(157,193,28,.14); border: 1px solid rgba(157,193,28,.25); padding: 2px 9px; border-radius: 999px; }

@media (max-width: 760px) {
    .cab-menu { position: fixed; top: 60px; right: 12px; left: 12px; width: auto; }
}

/* Notificaciones (campana) */
.cab__notif-wrap { position: relative; }
.iconbtn { position: relative; }
.iconbtn__badge {
    position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px;
    padding: 0 4px; border-radius: 999px; background: var(--lima); color: #0B2742;
    font-size: .62rem; font-weight: 800; line-height: 16px; text-align: center;
    border: 2px solid var(--navy);
}
.cab-notif {
    position: absolute; top: calc(100% + 12px); right: 0; z-index: 200;
    width: 380px; max-width: calc(100vw - 24px);
    background: #15263c; border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px; padding: 6px; color: #E7EDF5;
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.cab-notif[hidden] { display: none; }
.cab-notif__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px; }
.cab-notif__head h3 { margin: 0; font-size: 1.25rem; font-weight: 800; color: #fff; }
.cab-notif__leer-todo { border: none; background: rgba(255,255,255,.07); color: #9FB1C8; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; cursor: pointer; transition: background .15s, color .15s; }
.cab-notif__leer-todo:hover { background: rgba(30,143,213,.25); color: var(--azul-claro); }
.cab-notif__tabs { display: flex; gap: 8px; padding: 4px 10px 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.cab-notif__tab {
    border: none; cursor: pointer; font-family: inherit; font-weight: 700; font-size: .9rem;
    padding: 7px 16px; border-radius: 999px; background: transparent; color: #9FB1C8;
    display: inline-flex; align-items: center; gap: 6px;
}
.cab-notif__tab:hover { background: rgba(255,255,255,.06); color: #fff; }
.cab-notif__tab--on { background: rgba(30,143,213,.18); color: var(--azul-claro); }
.cab-notif__tabnum { background: var(--lima); color: #0B2742; font-size: .64rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.cab-notif__lista { max-height: 60vh; overflow-y: auto; padding: 6px; }
.cab-notif__item { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 12px; color: inherit; position: relative; }
.cab-notif__item:hover { background: rgba(255,255,255,.06); }
.cab-notif__item--noleida { background: rgba(30,143,213,.06); }
.cab-notif__av { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; overflow: hidden; background: #0f2c4a; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.cab-notif__av img { width: 100%; height: 100%; object-fit: cover; }
.cab-notif__cuerpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cab-notif__texto { font-size: .9rem; line-height: 1.35; color: #E7EDF5; }
.cab-notif__tiempo { font-size: .78rem; color: var(--azul-claro); font-weight: 600; }
.cab-notif__dot { width: 11px; height: 11px; flex: 0 0 11px; border-radius: 50%; background: var(--lima); align-self: center; box-shadow: 0 0 0 3px rgba(157,193,28,.18); }
.cab-notif__vacio { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 38px 24px; }
.cab-notif__vacio-ic { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; color: #6B7E96; }
.cab-notif__vacio-ic svg { width: 26px; height: 26px; }
.cab-notif__vacio p { margin: 4px 0 0; font-weight: 700; color: #E7EDF5; }
.cab-notif__vacio span { font-size: .82rem; color: #6B7E96; max-width: 260px; }

@media (max-width: 760px) {
    .cab-notif { position: fixed; top: 60px; right: 12px; left: 12px; width: auto; }
}

/* Chat (Messenger) */
/* Menú NETV (9 puntos) — panel ancho de dos columnas */
.cab__netv-wrap { position: relative; flex: 0 0 auto; }
.cab-netv {
    position: absolute; top: calc(100% + 12px); right: 0; z-index: 200;
    width: 620px; max-width: calc(100vw - 24px);
    background: #15263c; border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px; padding: 10px; color: #E7EDF5;
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.cab-netv[hidden] { display: none; }
.cab-netv__head { padding: 6px 10px 10px; }
.cab-netv__head h3 { margin: 0; font-size: 1.25rem; font-weight: 800; color: #fff; }
.cab-netv__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.cab-netv__col { display: flex; flex-direction: column; max-height: 70vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
.cab-netv__col--crear { border-left: 1px solid rgba(255,255,255,.07); padding-left: 8px; }
.cab-netv__sec { margin: 10px 10px 4px; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.cab-netv__sep { height: 1px; background: rgba(255,255,255,.07); margin: 8px 6px; }
.cab-netv__item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 10px; color: #d8e6f3;
    font-size: .88rem; font-weight: 600; transition: background .12s, color .12s;
}
.cab-netv__item:hover { background: rgba(255,255,255,.07); color: #fff; }
.cab-netv__ic {
    width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px;
    background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #9ec5e2;
}
.cab-netv__ic svg { width: 15px; height: 15px; }
.cab-netv__emoji { font-size: 1.15rem; width: 32px; text-align: center; flex: 0 0 32px; }
.cab-netv__ic--plus { background: rgba(14,111,203,.25); color: var(--azul-claro); }
.cab-netv__item--anadir {
    color: var(--lima); border: 1.5px dashed rgba(157,193,28,.4);
    border-radius: 10px; margin: 4px 0;
}
.cab-netv__item--anadir:hover { background: rgba(157,193,28,.08); color: var(--lima); border-color: var(--lima); }
.cab-netv__item--anadir .cab-netv__ic--plus { background: transparent; }
.cab-netv__ic--crear { background: rgba(14,111,203,.18); color: var(--azul-claro); }
.cab-netv__item--crear { font-weight: 500; color: #b8d0e8; }
.cab-netv__item--crear:hover { color: #fff; background: rgba(255,255,255,.07); }

@media (max-width: 760px) {
    .cab-netv { position: fixed; top: 60px; left: 8px; right: 8px; width: auto; }
    .cab-netv__cols { grid-template-columns: 1fr; }
    .cab-netv__col--crear { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,.07); }
}

.cab__chat-wrap { position: relative; }
.cab-chat {
    position: absolute; top: calc(100% + 12px); right: 0; z-index: 200;
    width: 380px; max-width: calc(100vw - 24px);
    background: #15263c; border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px; padding: 6px; color: #E7EDF5;
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.cab-chat[hidden] { display: none; }
.cab-chat__head { padding: 12px 12px 6px; }
.cab-chat__head h3 { margin: 0; font-size: 1.25rem; font-weight: 800; color: #fff; }
.cab-chat__buscar { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border-radius: 999px; padding: 8px 14px; margin: 6px 10px 10px; }
.cab-chat__buscar svg { width: 16px; height: 16px; color: #9FB1C8; flex: 0 0 16px; }
.cab-chat__buscar input { flex: 1; background: none; border: none; outline: none; color: #fff; font-family: inherit; font-size: .9rem; }
.cab-chat__buscar input::placeholder { color: #6B7E96; }
.cab-chat__tabs { display: flex; gap: 6px; padding: 0 10px 8px; overflow-x: auto; scrollbar-width: none; }
.cab-chat__tabs::-webkit-scrollbar { display: none; }
.cab-chat__tab {
    border: none; cursor: pointer; font-family: inherit; font-weight: 700; font-size: .82rem;
    padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.05); color: #9FB1C8; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px;
}
.cab-chat__tab:hover { background: rgba(255,255,255,.1); color: #fff; }
.cab-chat__tab--on { background: rgba(30,143,213,.18); color: var(--azul-claro); }
.cab-chat__tabnum { background: var(--lima); color: #0B2742; font-size: .62rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.cab-chat__lista { max-height: 56vh; overflow-y: auto; padding: 4px; }
.cab-chat__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: inherit; }
.cab-chat__item:hover { background: rgba(255,255,255,.06); }
.cab-chat__av { position: relative; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg,#123251,#0B2742); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.cab-chat__av img { width: 100%; height: 100%; object-fit: cover; }
.cab-chat__av--cap { color: var(--azul-claro); }
.cab-chat__av--cap svg { width: 22px; height: 22px; }
.cab-chat__av--on::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--lima); border: 2px solid #15263c; }
.cab-chat__cuerpo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cab-chat__nombre { font-size: .92rem; font-weight: 600; color: #E7EDF5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cab-chat__sub { font-size: .76rem; color: #6B7E96; }
.cab-chat__badge { background: var(--azul); color: #fff; font-size: .68rem; font-weight: 800; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 999px; padding: 0 5px; }
.cab-chat__vacio { text-align: center; color: #6B7E96; font-size: .85rem; padding: 28px 16px; }
.cab-chat__vertodo { display: block; text-align: center; padding: 12px; color: var(--azul-claro); font-weight: 700; font-size: .9rem; border-top: 1px solid rgba(255,255,255,.06); margin-top: 4px; }
.cab-chat__vertodo:hover { color: #fff; }

@media (max-width: 760px) {
    .cab-chat { position: fixed; top: 60px; right: 12px; left: 12px; width: auto; }
}

/* Contenido */
.contenido { padding: 38px 24px 60px; }

/* ---------- Botones ---------- */
.boton {
    display: inline-flex; align-items: center; gap: 7px;
    font: inherit; font-weight: 700; font-size: 0.92rem;
    padding: 11px 22px; border: 0; border-radius: var(--radio-sm);
    background: linear-gradient(135deg, #0E6FCB 0%, #1E8FD5 100%); color: #fff; cursor: pointer;
    box-shadow: 0 6px 18px rgba(14, 111, 203, 0.32);
    transition: transform 0.14s, box-shadow 0.18s, filter 0.14s;
}
.boton:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14, 111, 203, 0.45); color: #fff; filter: brightness(1.05); }
.boton:active { transform: translateY(0); }

/* Botón "Entrar" del menú: garantiza texto blanco sobre el azul */
.boton--entrar, .boton--entrar:hover, .boton--entrar:visited { color: #fff; }

/* Botón contorno (Salir) */
.boton--ghost { background: #fff; color: var(--navy); box-shadow: none; border: 1.5px solid var(--borde); }
.boton--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 6px 16px rgba(11, 39, 66, 0.18); filter: none; }

/* ---------- Tarjetas ---------- */
.tarjeta {
    background: var(--tarjeta);
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    padding: 24px 26px;
    margin-bottom: 18px;
}
.tarjeta--estrecha { max-width: 440px; }

/* Encabezado de sección con acción a la derecha */
.encabezado-seccion {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
}
.encabezado-seccion h1 { margin: 0; }

/* ---------- Diagnóstico (Fase 0) ---------- */
.estado {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; padding: 6px 14px; border-radius: 999px; font-size: 0.9rem;
}
.estado--ok { background: #E7F6EC; color: var(--color-ok); }
.estado--error { background: #FDEAEA; color: var(--color-error); }
.estado__punto { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.detalle {
    margin-top: 12px; font-family: ui-monospace, Menlo, monospace; font-size: 0.82rem;
    color: var(--tenue); background: var(--fondo); border: 1px solid var(--borde);
    border-radius: var(--radio-sm); padding: 10px 12px; overflow-x: auto;
    white-space: pre-wrap; word-break: break-word;
}
.tabla { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tabla th, .tabla td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--borde); }
.tabla th { color: var(--tenue); font-weight: 600; }

/* ---------- Formularios ---------- */
.formulario { display: flex; flex-direction: column; gap: 15px; }
.campo { display: flex; flex-direction: column; gap: 5px; }
.campo > span { font-size: 0.85rem; color: var(--tenue); font-weight: 600; }
.campo input, .campo textarea, .campo select {
    font: inherit; color: var(--texto);
    padding: 11px 13px; border: 1px solid var(--borde); border-radius: var(--radio-sm);
    background: #fff; width: 100%;
}
.campo input:focus, .campo textarea:focus, .campo select:focus {
    outline: none; border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(14, 111, 203, 0.14);
}
.campo textarea { resize: vertical; }
.campo--check { flex-direction: row; align-items: center; gap: 8px; }
.campo--check input { width: auto; }

/* ---------- Avisos ---------- */
.aviso { border-radius: var(--radio-sm); padding: 12px 15px; font-size: 0.92rem; margin-bottom: 16px; }
.aviso--ok { background: #E7F6EC; color: var(--color-ok); border: 1px solid #B7E4C4; }
.aviso--error { background: #FDEAEA; color: var(--color-error); border: 1px solid #F3C0C0; }

/* ---------- Filtros ---------- */
.filtros { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.filtros__buscar { flex: 1 1 240px; font: inherit; padding: 11px 14px; border: 1px solid var(--borde); border-radius: var(--radio-sm); }
.filtros__buscar:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(14, 111, 203, 0.14); }
.filtros__select { font: inherit; padding: 11px 14px; border: 1px solid var(--borde); border-radius: var(--radio-sm); background: #fff; }

/* ---------- Carruseles de inicio ---------- */
.carr-cab {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.carr-titulo {
    margin: 0; font-size: 1.25rem; font-weight: 900; letter-spacing: -0.02em;
    text-transform: uppercase; color: var(--navy);
}
.carr-controles { display: flex; gap: 8px; }
.carr-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: rgba(11,39,66,.08); color: var(--navy); cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.carr-btn:hover { background: var(--navy); color: #fff; }

/* Pista scroll horizontal sin scrollbar visible */
.carr-pista {
    display: flex; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; padding-bottom: 8px;
}
.carr-pista::-webkit-scrollbar { display: none; }
.carr-pista { scrollbar-width: none; }

/* Logos de empresas: cuadrado blanco redondeado */
.carr-logo {
    flex: none; scroll-snap-align: start;
    width: 130px; height: 130px; border-radius: 18px;
    background: #fff; box-shadow: 0 4px 16px rgba(11,39,66,.10);
    display: flex; align-items: center; justify-content: center;
    padding: 12px; transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
}
.carr-logo:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(11,39,66,.16); }
.carr-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Tarjeta de producto / servicio */
.carr-card {
    flex: none; scroll-snap-align: start;
    width: 240px; border-radius: 18px; overflow: hidden;
    display: flex; flex-direction: column;
    background: #0F172A; border: 1px solid rgba(255,255,255,.07);
    text-decoration: none; color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
}
.carr-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.25); }

.carr-card__img {
    position: relative; height: 140px; background: #fff;
    display: flex; align-items: center; justify-content: center; padding: 12px;
}
.carr-card__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.carr-card__emoji { font-size: 3rem; opacity: 0.18; }

.carr-card__badge {
    position: absolute; bottom: 8px; right: 8px;
    padding: 3px 8px; border-radius: 6px;
    font-size: 0.72rem; font-weight: 800; color: #fff;
}
.carr-card__badge--verde { background: #16a34a; }
.carr-card__badge--azul  { background: var(--azul); }

.carr-card__cuerpo {
    flex: 1; display: flex; flex-direction: column;
    padding: 14px; background: #0F172A;
}
.carr-card__emp {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 6px;
}
.carr-card__emp-logo {
    width: 14px; height: 14px; border-radius: 50%; object-fit: cover;
    background: #fff; border: 1px solid rgba(255,255,255,.2);
}
.carr-card__emp span { font-size: 0.72rem; color: rgba(255,255,255,.45); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carr-card__nombre { font-size: 0.88rem; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carr-card__desc { font-size: 0.75rem; color: rgba(255,255,255,.38); margin: 0 0 auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carr-card__ver { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); font-size: 0.72rem; font-weight: 700; color: #60a5fa; text-align: right; }
.carr-card__ver--azul { color: #93c5fd; }

/* ---------- Rejilla de empresas / productos ---------- */
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.empresa-card {
    display: flex; gap: 14px; padding: 22px;
    background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio);
    text-decoration: none; color: inherit;
    transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.empresa-card:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: #CFE0F3; }
.empresa-card--vert { flex-direction: column; }
.empresa-card--vert .avatar { width: 100% !important; height: 130px !important; border-radius: 10px !important; }
.empresa-card__cuerpo { min-width: 0; }
.empresa-card__nombre { font-weight: 700; font-size: 1.05rem; line-height: 1.25; color: var(--navy); }
.empresa-card__lugar { font-size: 0.83rem; color: var(--tenue); margin: 3px 0 8px; }
.empresa-card__desc { font-size: 0.88rem; color: var(--tenue); margin: 0 0 12px; }
.precio { font-weight: 700; color: var(--azul); margin: 2px 0 8px; }

/* ---------- Chips / pills ---------- */
.chip {
    display: inline-block; font-size: 0.74rem; font-weight: 600;
    color: #0C447C; background: #E6F1FB; border-radius: 999px; padding: 4px 11px;
}
.chip--enlace { text-decoration: none; }
.chip--enlace:hover { background: #D8E8F9; }
.chip--urgente { background: #FDEAEA; color: var(--color-error); }

/* ---------- Paginación ---------- */
.paginacion { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; font-size: 0.9rem; color: var(--tenue); }
.paginacion a { color: var(--azul); font-weight: 600; }

/* ---------- Ficha de empresa ---------- */
.ficha-banner { height: 190px; border-radius: var(--radio); background-size: cover; background-position: center; margin-bottom: 18px; }
.ficha-encabezado { display: flex; gap: 16px; align-items: center; margin-bottom: 4px; }
.ficha-encabezado h1 { margin: 0; }
.ficha-desc { margin: 14px 0 0; color: var(--texto); }
.datos { margin: 0; }
.datos__fila { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--borde); }
.datos__fila:last-child { border-bottom: 0; }
.datos dt { flex: 0 0 130px; color: var(--tenue); font-size: 0.88rem; }
.datos dd { margin: 0; }
.datos a { word-break: break-word; }
.redes { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Oportunidades ---------- */
.lista { display: flex; flex-direction: column; gap: 14px; }
.oportunidad {
    display: block; padding: 20px 22px;
    background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio);
    text-decoration: none; color: inherit; transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.oportunidad:hover { transform: translateY(-3px); box-shadow: var(--sombra); border-color: #CFE0F3; }
.oportunidad__cab { display: flex; align-items: center; gap: 10px; }
.oportunidad__titulo { font-weight: 700; font-size: 1.08rem; color: var(--navy); }
.oportunidad__meta { font-size: 0.82rem; color: var(--tenue); margin: 7px 0; }
.oportunidad__desc { font-size: 0.9rem; color: var(--texto); margin: 0 0 8px; }
.oportunidad__empresa { font-size: 0.82rem; color: var(--tenue); }

/* ---------- Hero con video ---------- */
.hero {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    margin-top: -38px;            /* cancela el padding superior de .contenido */
    margin-bottom: 50px;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Degradado de marca al 80% sobre el video */
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(120deg, #0B2742 0%, #0E6FCB 100%);
    opacity: 0.8;
}
.hero__contenido {
    position: relative; z-index: 2;
    width: 100%; max-width: 100%; margin: 0 auto;
    padding: 112px 40px 96px; color: #fff;
}
.hero__badge {
    display: inline-block; background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22); color: #fff;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
    padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
}
.hero__titulo {
    font-size: clamp(2.4rem, 6.5vw, 5rem); font-weight: 800; line-height: 0.95;
    letter-spacing: -0.02em; text-transform: uppercase; margin: 0 0 18px; color: #fff;
}
.hero__acento { color: var(--lima); font-style: italic; }
.hero__sub { font-size: 1.15rem; color: rgba(255, 255, 255, 0.82); max-width: 560px; margin: 0 0 30px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 34px; margin-bottom: 26px; }
.hero__stat { display: flex; flex-direction: column; }
.hero__num { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.hero__lbl { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--azul-claro); margin-top: 6px; line-height: 1.2; }
.hero__lbl--lima { color: var(--lima); }
.hero__paises { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.hero__pais { font-size: 0.78rem; color: rgba(255, 255, 255, 0.78); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; padding: 6px 11px; }
.hero__pais strong { color: #fff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.boton--blanco { background: #fff; color: var(--navy); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); }
.boton--blanco:hover { background: var(--lima); color: var(--navy); }
.boton--vidrio { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: none; }
.boton--vidrio:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

.bloque { margin-bottom: 46px; }

/* ---------- Perfil ---------- */
/* Banner a todo el ancho de la pantalla (rompe el contenedor), sin bordes. */
.perfil-banner {
    width: 100vw; margin-left: calc(50% - 50vw); margin-top: -38px;
    height: 300px; overflow: hidden; position: relative;
    background-size: cover; background-position: center;
}
.perfil-banner--grad { background: linear-gradient(135deg, #0f172a 0%, #1b3a6b 52%, #020617 100%); }
.perfil-editar { position: absolute; top: 18px; right: 32px; }

.perfil-cab { display: flex; align-items: flex-start; gap: 20px; margin-top: 14px; padding: 0 4px; position: relative; z-index: 2; }
.perfil-avatar { flex: 0 0 auto; margin-top: -82px; }
.perfil-avatar .avatar { border: 4px solid #fff !important; box-shadow: var(--sombra); border-radius: 22px !important; }
.perfil-cab__info { padding-top: 4px; min-width: 0; }
.perfil-cab__info h1 { margin: 0 0 6px; }
.perfil-cab__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--tenue); font-size: 0.92rem; }
.chip--rol { background: #eaf7e1; color: #4d6b16; }

.estrellas { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.estrella { color: #D7DEE8; font-size: 1.05rem; line-height: 1; }
.estrella--on { color: #F5B921; }
.estrellas__txt { color: var(--tenue); font-size: 0.82rem; margin-left: 6px; }

.perfil-grid { display: grid; grid-template-columns: 300px 1fr; gap: 22px; margin-top: 22px; align-items: start; }
.perfil-side { display: flex; flex-direction: column; gap: 18px; }
.perfil-side h3, .perfil-main h3 { font-size: 0.95rem; margin: 0 0 12px; color: var(--navy); }
.perfil-qr { text-align: center; }
.perfil-qr img { border-radius: 12px; border: 1px solid var(--borde); margin: 4px 0 8px; }
.perfil-qr .subtitulo { font-size: 0.8rem; margin: 0 0 12px; }

.perfil-main { min-width: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--borde); margin-bottom: 20px; }
.tab {
    font: inherit; font-weight: 600; font-size: 0.9rem; color: var(--tenue);
    background: none; border: 0; border-bottom: 2px solid transparent;
    padding: 11px 14px; cursor: pointer; margin-bottom: -1px; transition: color 0.15s, border-color 0.15s;
}
.tab:hover { color: var(--navy); }
.tab--activo { color: var(--azul); border-bottom-color: var(--azul); }
.tab__n { display: inline-block; font-size: 0.7rem; background: #eef2ff; color: var(--azul-claro); border-radius: 999px; padding: 1px 7px; margin-left: 3px; }
.tab-panel.oculto { display: none; }
.perfil-vacio { color: var(--tenue); text-align: center; padding: 34px 20px; }

.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.galeria img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; border: 1px solid var(--borde); }

@media (max-width: 860px) {
    .perfil-grid { grid-template-columns: 1fr; }
    .perfil-cab { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- Eventos ---------- */
.ev-herramientas { display: flex; gap: 10px; flex-wrap: wrap; }

/* Hero con video (400px) */
.ev-hero {
    width: 100vw; margin-left: calc(50% - 50vw); margin-top: -38px; margin-bottom: 28px;
    height: 400px; position: relative; overflow: hidden; display: flex; align-items: center;
    background: var(--navy);
}
.ev-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-hero__overlay {
    position: absolute; inset: 0; opacity: 0.85;
    background: linear-gradient(135deg, #0f172a 0%, #1b3a6b 55%, #020617 100%);
}
.ev-hero__contenido { position: relative; z-index: 2; width: 100%; max-width: 100%; padding: 0 40px; color: #fff; }
.ev-hero__titulo { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; color: #fff; margin: 14px 0 10px; }
.ev-hero__sub { font-size: 1.15rem; color: rgba(255, 255, 255, 0.82); max-width: 560px; margin: 0; }

/* Layout 25% / 75% */
.ev-layout { display: grid; grid-template-columns: 1fr 3fr; gap: 26px; align-items: start; }

/* Menú lateral de herramientas */
.ev-tools {
    position: sticky; top: 74px;
    background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio);
    box-shadow: var(--sombra); padding: 14px;
}
.ev-tools__titulo { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tenue); margin: 4px 8px 12px; }
.ev-tool {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 11px 12px; border-radius: 12px; color: var(--texto); text-decoration: none;
    transition: background 0.15s; margin-bottom: 2px;
}
.ev-tool__badge {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s;
}
.ev-tool__badge--azul { background: #e6f1fb; color: var(--azul); }
.ev-tool__badge--lima { background: #eef7df; color: var(--lima-osc); }
.ev-tool__ic { width: 20px; height: 20px; }
.ev-tool__txt { display: flex; flex-direction: column; min-width: 0; padding-top: 1px; }
.ev-tool__nombre { font-weight: 700; font-size: 0.92rem; color: var(--navy); line-height: 1.25; }
.ev-tool__desc { font-size: 0.78rem; color: var(--tenue); line-height: 1.35; margin-top: 2px; }
a.ev-tool:hover { background: #f3f7fd; }
a.ev-tool:hover .ev-tool__badge--azul { background: var(--azul); color: #fff; }
a.ev-tool:hover .ev-tool__badge--lima { background: var(--lima-osc); color: #fff; }
.ev-tool--off { cursor: default; }

/* Evento no clicable (sin sesión) */
.evento-card--off { cursor: default; }
.evento-card--off:hover { transform: none; border-color: var(--borde); }

@media (max-width: 860px) {
    .ev-layout { grid-template-columns: 1fr; }
    .ev-tools { position: static; }
    .ev-hero { height: 320px; }
}


.evento-card {
    display: flex; align-items: stretch; gap: 18px; padding: 16px 20px;
    background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio);
    box-shadow: var(--sombra); text-decoration: none; color: inherit;
    transition: transform 0.16s, border-color 0.16s;
}
.evento-card:hover { transform: translateY(-3px); border-color: #CFE0F3; }
.evento-fecha {
    flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1b3a6b); color: #fff; border-radius: 12px; padding: 8px 0;
}
.evento-fecha__dia { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.evento-fecha__mes { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; margin-top: 3px; color: var(--azul-claro); }
.evento-card__cuerpo { flex: 1; min-width: 0; }
.evento-card__nombre { font-weight: 700; font-size: 1.08rem; color: var(--navy); }
.evento-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 0.82rem; color: var(--tenue); margin: 6px 0; }
.evento-card__desc { font-size: 0.88rem; color: var(--tenue); margin: 0; }
.evento-card__precio { flex: 0 0 auto; align-self: center; font-weight: 800; color: var(--azul); }
.chip--modal { background: #eaf7e1; color: #4d6b16; }

/* Marketplace de eventos (vista por defecto de /eventos) — colores claros */
.ev-mk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ev-mk-head__titulo { font-size: 1.35rem; font-weight: 800; color: var(--navy); margin: 0; }
.ev-mk-head__sub { color: var(--tenue); margin: 4px 0 0; font-size: 0.92rem; }

.ev-mk-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.ev-mk-search { position: relative; flex: 1 1 260px; max-width: 420px; margin: 0; }
.ev-mk-search input { width: 100%; padding: 11px 14px 11px 40px; border: 1px solid var(--borde); border-radius: var(--radio-sm); background: var(--tarjeta); font: inherit; color: var(--texto); }
.ev-mk-search input:focus { outline: none; border-color: var(--azul-claro); box-shadow: 0 0 0 3px rgba(30, 143, 213, 0.14); }
.ev-mk-search__ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--tenue); width: 18px; height: 18px; }
.ev-mk-filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-mk-filtro { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--borde); background: var(--tarjeta); color: var(--tenue); font-size: 0.8rem; font-weight: 700; text-decoration: none; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.ev-mk-filtro:hover { border-color: #CFE0F3; color: var(--navy); }
.ev-mk-filtro--activo { background: #e6f1fb; border-color: var(--azul); color: var(--azul); }

.ev-mk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1200px) { .ev-mk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .ev-mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ev-mk-grid { grid-template-columns: 1fr; } }

.ev-mk-card { display: flex; flex-direction: column; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s; }
a.ev-mk-card:hover { transform: translateY(-4px); border-color: #CFE0F3; box-shadow: var(--sombra-fuerte); }
.ev-mk-card--off { cursor: default; }
.ev-mk-card__img { position: relative; height: 168px; background: linear-gradient(135deg, #0f172a, #1b3a6b); overflow: hidden; }
.ev-mk-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
a.ev-mk-card:hover .ev-mk-card__img img { transform: scale(1.06); }
.ev-mk-card__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.ev-mk-card__modal { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--azul); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.02em; box-shadow: 0 2px 8px rgba(7, 32, 58, 0.15); }
.ev-mk-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px; }
.ev-mk-card__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; min-height: 18px; }
.ev-mk-card__tag { font-size: 0.64rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--tenue); background: var(--fondo); border: 1px solid var(--borde); padding: 2px 7px; border-radius: 6px; }
.ev-mk-card__titulo { font-weight: 700; font-size: 1.02rem; color: var(--navy); line-height: 1.28; margin: 0 0 4px; transition: color 0.15s; }
a.ev-mk-card:hover .ev-mk-card__titulo { color: var(--azul); }
.ev-mk-card__meta { display: flex; flex-direction: column; gap: 5px; font-size: 0.8rem; color: var(--tenue); margin: 8px 0 14px; }
.ev-mk-card__meta span { display: inline-flex; align-items: center; gap: 7px; }
.ev-mk-card__pie { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--borde); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ev-mk-card__precio { font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.ev-mk-card__precio--gratis { color: var(--lima-osc); }
.ev-mk-card__btn { flex: 0 0 auto; padding: 8px 14px; border-radius: var(--radio-sm); background: var(--azul); color: #fff; font-size: 0.78rem; font-weight: 700; }
.ev-mk-card--off .ev-mk-card__btn { background: var(--tenue); }

/* Banner del detalle de evento (full-bleed, degradado Next.js) */
.evento-banner {
    width: 100vw; margin-left: calc(50% - 50vw); margin-top: 8px; margin-bottom: 24px;
    min-height: 230px; display: flex; align-items: flex-end;
    background: linear-gradient(135deg, #0f172a 0%, #1b3a6b 55%, #020617 100%);
}
.evento-banner__info { max-width: 1080px; width: 100%; margin: 0 auto; padding: 30px 32px; color: #fff; }
.evento-banner__chips { display: flex; gap: 8px; margin-bottom: 12px; }
.evento-banner__info h1 { color: #fff; margin: 0 0 8px; }
.evento-banner__fecha { color: rgba(255,255,255,0.82); margin: 0; font-weight: 600; }

/* Cronograma / programa */
.cronograma__dia { font-weight: 700; color: var(--navy); margin: 14px 0 8px; font-size: 0.9rem; }
.cronograma__dia:first-child { margin-top: 0; }
.cronograma__item { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--borde); }
.cronograma__item:last-child { border-bottom: 0; }
.cronograma__hora { flex: 0 0 56px; font-weight: 700; color: var(--azul); font-size: 0.9rem; }
.cronograma__act { color: var(--texto); font-size: 0.92rem; }
.cronograma__salon { color: var(--tenue); font-size: 0.82rem; }

/* ============ Detalle de evento (/eventos/{id}) — colores claros ============ */
.evd { display: block; }
.evd-eyebrow { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.18em; color: var(--tenue); margin: 0 0 14px; }
.evd-eyebrow--mini { letter-spacing: 0.12em; margin: 0 0 4px; font-size: 0.62rem; }
.evd-eyebrow--centro { text-align: center; color: var(--azul); }

/* Hero */
.evd-hero {
    position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-top: -38px; margin-bottom: 26px;
    min-height: 360px; display: flex; align-items: flex-end; overflow: hidden; background: linear-gradient(135deg, #0f172a, #1b3a6b);
}
.evd-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.evd-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,32,58,0.92) 0%, rgba(7,32,58,0.45) 55%, rgba(7,32,58,0.15) 100%); }
.evd-hero__cuerpo { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; padding: 30px 32px; color: #fff; }
.evd-hero__chips { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.evd-chip { padding: 5px 12px; border-radius: 999px; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.evd-chip--tipo { background: var(--azul); color: #fff; }
.evd-chip--modal { background: rgba(255,255,255,0.16); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.evd-hero__titulo { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; margin: 0 0 14px; line-height: 1.1; }
.evd-hero__meta { display: flex; flex-wrap: wrap; gap: 18px; color: rgba(255,255,255,0.9); font-weight: 600; font-size: 0.92rem; }
.evd-hero__precio { color: #cfe86b; font-weight: 800; }

/* Tabs */
.evd-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--borde); margin-bottom: 26px; overflow-x: auto; }
.evd-tab { flex: 0 0 auto; background: none; border: none; border-bottom: 2px solid transparent; padding: 14px 20px; font-family: inherit; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tenue); cursor: pointer; white-space: nowrap; transition: color 0.15s, border-color 0.15s; }
.evd-tab:hover { color: var(--navy); }
.evd-tab--activo { color: var(--azul); border-bottom-color: var(--azul); }

.evd-panel { display: none; }
.evd-panel--activo { display: block; animation: evd-fade 0.25s ease; }
@keyframes evd-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Layout 3 columnas (El Evento) */
.evd-grid3 { display: grid; grid-template-columns: 22% 48% 30%; gap: 22px; align-items: start; }
.evd-col1, .evd-col2, .evd-col3 { display: flex; flex-direction: column; gap: 20px; }
.evd-col3 > .evd-reg { position: sticky; top: 84px; }
@media (max-width: 980px) { .evd-grid3 { grid-template-columns: 1fr; } .evd-col3 > .evd-reg { position: static; } }

.evd-sec-titulo { display: flex; align-items: center; gap: 10px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 16px; }
.evd-sec-titulo span { width: 30px; height: 2px; border-radius: 2px; }
.evd-sec-titulo--azul { color: var(--azul); } .evd-sec-titulo--azul span { background: rgba(14,111,203,0.4); }
.evd-sec-titulo--lima { color: var(--lima-osc); } .evd-sec-titulo--lima span { background: rgba(124,154,20,0.4); }
.evd-desc { color: var(--texto); font-size: 1rem; line-height: 1.7; margin: 0; white-space: pre-wrap; }

/* Organizado por */
.evd-org__link { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.evd-org__logo { width: 76px; height: 76px; border-radius: 18px; background: #fff; border: 1px solid var(--borde); box-shadow: var(--sombra); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 1.8rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.evd-org__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.evd-org__nombre { font-weight: 800; color: var(--navy); text-align: center; font-size: 1.05rem; }
.evd-org__ver { font-size: 0.68rem; font-weight: 700; color: var(--azul); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.evd-org__contacto { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--borde); text-align: center; }
.evd-org__redes { display: flex; justify-content: center; gap: 10px; }
.evd-ico-btn { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--fondo); border: 1px solid var(--borde); text-decoration: none; font-size: 1.1rem; transition: background 0.15s; }
.evd-ico-btn:hover { background: #eef2f8; }
.evd-ico-btn--wa { background: #eafaf0; border-color: #c9ecd6; }
.evd-ico-btn--tel { background: #e9f2fc; border-color: #cfe0f3; }

/* QR de mi perfil */
.evd-qr { text-align: center; }
.evd-qr__box { display: inline-flex; padding: 12px; background: #fff; border-radius: 16px; border: 1px solid var(--borde); }
.evd-qr__box img, .evd-qr__box canvas { display: block; }
.evd-qr__pie { font-size: 0.72rem; color: var(--tenue); margin: 14px 0 0; }

/* Zona de peligro */
.evd-danger { text-align: center; background: #fdf2f2; border-color: #f4d4d4; }
.evd-danger__ic { width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 12px; background: #f9dede; color: var(--color-error); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.evd-danger h4 { color: var(--color-error); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 4px; }
.evd-danger p { font-size: 0.78rem; color: #b06a6a; margin: 0 0 14px; }

/* Registro oficial */
.evd-reg__precio { margin-bottom: 20px; }
.evd-reg__monto { font-size: 1.9rem; font-weight: 800; color: var(--navy); margin: 0 0 4px; }
.evd-reg__estado { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-ok); display: flex; align-items: center; gap: 8px; margin: 0; }
.evd-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.evd-reg__gana { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: #f2f8ff; border: 1px solid #d6e7f9; border-radius: 14px; margin-bottom: 16px; }
.evd-reg__pts { font-size: 1.3rem; font-weight: 800; color: var(--azul); margin: 0; }
.evd-reg__coin { font-size: 1.6rem; }
.evd-reg__saldo { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: var(--fondo); border: 1px solid var(--borde); border-radius: 10px; font-size: 0.8rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.evd-reg__datos { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.evd-reg__dato { padding: 12px 14px; background: var(--fondo); border: 1px solid var(--borde); border-radius: 14px; }
.evd-reg__dato p:last-child { margin: 0; font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.evd-reg__acciones { display: flex; flex-direction: column; gap: 12px; }
.evd-reg__pie { font-size: 0.7rem; color: var(--tenue); text-align: center; margin: 16px 0 0; text-transform: uppercase; letter-spacing: 0.06em; }
.evd-reg__pie span { color: var(--azul); font-weight: 700; }

/* Botones */
.evd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px 18px; border: none; border-radius: 14px; font-family: inherit; font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; text-decoration: none; transition: background 0.15s, opacity 0.15s; }
.evd-btn--primario { background: var(--azul); color: #fff; } .evd-btn--primario:hover { background: var(--azul-claro); }
.evd-btn--ok { background: #eaf7ef; color: var(--color-ok); border: 1px solid #cbe9d5; } .evd-btn--ok:hover { background: #dff2e7; }
.evd-btn--ok[disabled] { cursor: default; }
.evd-btn--video { background: var(--navy); color: #fff; } .evd-btn--video:hover { background: var(--navy-700); }
.evd-btn--danger { background: var(--color-error); color: #fff; } .evd-btn--danger:hover { background: #a52828; }
.evd-btn--sec { background: var(--fondo); color: var(--navy); border: 1px solid var(--borde); padding: 11px 14px; } .evd-btn--sec:hover { background: var(--azul); color: #fff; }
.evd-btn[disabled] { opacity: 0.7; }

/* PDF */
.evd-pdf { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; transition: border-color 0.15s; }
.evd-pdf:hover { border-color: #cfe0f3; }
.evd-pdf__ic { width: 46px; height: 46px; border-radius: 12px; background: #eaf2fc; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.evd-pdf__txt { font-weight: 700; color: var(--navy); margin: 0; }

/* Sede */
.evd-sede { display: flex; gap: 16px; align-items: flex-start; }
.evd-sede__ic { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 16px; background: #f2f8e8; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; }
.evd-sede__nombre { color: var(--navy); font-size: 1.25rem; font-weight: 800; margin: 0 0 6px; }
.evd-sede__dir { color: var(--tenue); margin: 0; line-height: 1.6; }

/* Programa (timeline) */
.evd-prog__lista { display: flex; flex-direction: column; }
.evd-prog__item { display: flex; gap: 18px; padding-bottom: 22px; }
.evd-prog__item:last-child { padding-bottom: 0; }
.evd-prog__hora { flex: 0 0 74px; align-self: flex-start; text-align: center; font-weight: 800; font-size: 0.82rem; color: var(--azul); background: #eaf2fc; border: 1px solid #d6e7f9; border-radius: 10px; padding: 6px 4px; }
.evd-prog__cuerpo h3 { color: var(--navy); font-size: 1.1rem; font-weight: 800; margin: 0 0 6px; }
.evd-prog__salon, .evd-prog__dur { color: var(--tenue); font-size: 0.8rem; margin: 2px 0; }

/* Listas de inscritos */
.evd-lista-sec { margin-bottom: 22px; }
.evd-lista-sec__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.evd-lista-sec__head h3 { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin: 0; }
.evd-badge-num { padding: 8px 14px; border-radius: 12px; background: #eaf7ef; border: 1px solid #cbe9d5; text-align: right; }
.evd-badge-num strong { display: block; color: var(--navy); font-size: 1.05rem; }
.evd-badge-num--lima { background: #f4f9e8; border-color: #e0edc4; }
.evd-empresas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.evd-empresa-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--fondo); border: 1px solid var(--borde); border-radius: 14px; text-decoration: none; transition: border-color 0.15s; }
.evd-empresa-card:hover { border-color: #cbe9d5; }
.evd-empresa-card__logo { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 11px; background: #fff; border: 1px solid var(--borde); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 1.2rem; }
.evd-empresa-card__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.evd-empresa-card__cuerpo { min-width: 0; }
.evd-empresa-card__nombre { display: block; font-weight: 700; color: var(--navy); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evd-empresa-card__rol { display: block; font-size: 0.7rem; font-weight: 700; color: var(--color-ok); text-transform: uppercase; letter-spacing: 0.04em; }
.evd-guests-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.evd-guest { padding: 14px; background: var(--fondo); border: 1px solid var(--borde); border-radius: 14px; }
.evd-guest__nombre { font-weight: 800; color: var(--navy); margin: 0 0 2px; font-size: 0.92rem; }
.evd-guest__emp { font-size: 0.75rem; color: var(--tenue); margin: 0 0 8px; }
.evd-guest__tag { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lima-osc); }

.evd-locked { text-align: center; padding: 40px 20px; border: 2px dashed var(--borde); border-radius: 18px; }
.evd-locked__ic { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; background: var(--fondo); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.evd-locked h4 { color: var(--navy); font-size: 1.15rem; margin: 0 0 8px; }
.evd-locked p { color: var(--tenue); max-width: 420px; margin: 0 auto 18px; font-size: 0.9rem; }
.evd-locked .evd-btn { width: auto; display: inline-flex; }

.evd-vacio { text-align: center; padding: 46px 20px; border: 2px dashed var(--borde); border-radius: 18px; color: var(--tenue); font-style: italic; }
.evd-vacio--chico { padding: 26px 20px; }

/* Participantes (señal en vivo) */
.evd-signal { text-align: center; }
.evd-signal__ic { font-size: 2.6rem; }
.evd-signal h3 { color: var(--navy); font-size: 1.3rem; margin: 10px 0 6px; }
.evd-signal p { color: var(--tenue); max-width: 520px; margin: 0 auto 14px; }
.evd-signal__dots { display: flex; justify-content: center; gap: 8px; }
.evd-signal__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--lima); animation: evd-bounce 0.9s infinite; }
.evd-signal__dots span:nth-child(2) { animation-delay: 0.1s; } .evd-signal__dots span:nth-child(3) { animation-delay: 0.2s; }
@keyframes evd-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.evd-asistentes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; margin-top: 22px; }
.evd-asistente { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 18px; box-shadow: var(--sombra); text-decoration: none; transition: transform 0.15s, border-color 0.15s; }
.evd-asistente:hover { transform: translateY(-3px); border-color: #cbe9d5; }
.evd-asistente__logo { width: 100%; aspect-ratio: 1; border-radius: 14px; background: #fff; border: 1px solid var(--borde); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.evd-asistente__logo img { max-width: 84%; max-height: 84%; object-fit: contain; }
.evd-asistente__nombre { font-size: 0.72rem; font-weight: 700; color: var(--navy); text-align: center; text-transform: uppercase; letter-spacing: 0.03em; }

/* Networking */
.evd-net { display: grid; grid-template-columns: 26% 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .evd-net { grid-template-columns: 1fr; } }
.evd-net__titulo { color: var(--navy); font-size: 1.2rem; font-weight: 800; margin: 0 0 16px; text-align: center; }
.evd-net__ayuda { font-size: 0.78rem; color: var(--tenue); text-align: center; margin: 14px 0 0; }
.evd-scanbox { aspect-ratio: 1; border-radius: 18px; overflow: hidden; border: 2px dashed #bfe0cd; background: #0f172a; display: flex; align-items: center; justify-content: center; position: relative; }
.evd-scanbox video { width: 100%; height: 100%; object-fit: cover; }
.evd-scanbox--off { border-color: var(--borde); background: var(--fondo); font-size: 2rem; }
.evd-scanbox__err { color: #fff; font-size: 0.8rem; text-align: center; padding: 20px; }
.evd-net__chead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.evd-net__chead h3 { color: var(--navy); font-size: 1.3rem; font-weight: 800; margin: 0; }
.evd-badge-pill { padding: 7px 14px; border-radius: 12px; background: #eaf7ef; border: 1px solid #cbe9d5; color: var(--color-ok); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.evd-conex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.evd-conex { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px; background: var(--fondo); border: 1px solid var(--borde); border-radius: 16px; cursor: pointer; transition: transform 0.15s, border-color 0.15s; }
.evd-conex:hover { transform: scale(1.03); border-color: #cbe9d5; }
.evd-conex__dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--azul); }
.evd-conex__logo { width: 56px; height: 56px; border-radius: 12px; background: #fff; border: 1px solid var(--borde); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 1.4rem; }
.evd-conex__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.evd-conex__nombre { font-size: 0.68rem; font-weight: 700; color: var(--navy); text-align: center; text-transform: uppercase; }

/* Conexiones (stats + leaderboard) */
.evd-conx2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .evd-conx2 { grid-template-columns: 1fr; } }
.evd-conx-total { text-align: center; background: linear-gradient(135deg, var(--azul), var(--navy)); border: none; color: #fff; }
.evd-conx-total__ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; }
.evd-conx-total h3 { color: rgba(255,255,255,0.9); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 10px; }
.evd-conx-total__num { font-size: 5rem; font-weight: 800; line-height: 1; color: #fff; }
.evd-conx-total__live { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 7px 14px; background: rgba(0,0,0,0.18); border-radius: 999px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.evd-lb__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.evd-lb__head h4 { color: var(--navy); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; margin: 0; }
.evd-lb__head span { font-size: 0.7rem; color: var(--tenue); font-style: italic; }
.evd-lb__lista { display: flex; flex-direction: column; gap: 12px; }
.evd-lb__item { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--fondo); border: 1px solid var(--borde); border-radius: 16px; }
.evd-lb__pos { position: absolute; top: 0; right: 0; padding: 4px 12px; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; border-bottom-left-radius: 10px; background: var(--tenue); color: #fff; }
.evd-lb__item--0 .evd-lb__pos { background: #e0a400; color: #3a2e00; }
.evd-lb__item--1 .evd-lb__pos { background: #b9c2cc; color: #2a3138; }
.evd-lb__item--2 .evd-lb__pos { background: #b56a2b; color: #fff; }
.evd-lb__logo { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 12px; background: #fff; border: 1px solid var(--borde); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 1.3rem; }
.evd-lb__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.evd-lb__cuerpo { flex: 1; min-width: 0; }
.evd-lb__nombre { display: block; font-weight: 800; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evd-lb__pts { font-size: 0.78rem; color: var(--tenue); } .evd-lb__pts strong { color: var(--azul); }
.evd-lb__medalla { font-size: 1.6rem; }

/* Matches IA */
.evd-matches__intro { text-align: center; max-width: 640px; margin: 0 auto 30px; }
.evd-matches__titulo { color: var(--navy); font-size: 2rem; font-weight: 800; margin: 8px 0 12px; }
.evd-matches__intro p { color: var(--tenue); margin: 0; }
.evd-matches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.evd-match { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 20px; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 22px; box-shadow: var(--sombra); }
.evd-match__ring { position: relative; width: 92px; height: 92px; margin-bottom: 18px; }
.evd-match__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.evd-match__ring-bg { fill: none; stroke: var(--borde); stroke-width: 8; }
.evd-match__ring-fg { fill: none; stroke: var(--azul); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.evd-match__pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.evd-match__logo { width: 64px; height: 64px; border-radius: 16px; background: #fff; border: 1px solid var(--borde); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 1.7rem; margin-bottom: 14px; }
.evd-match__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.evd-match__nombre { color: var(--navy); font-size: 1.05rem; font-weight: 800; margin: 0 0 8px; }
.evd-match__desc { font-size: 0.78rem; color: var(--tenue); margin: 0 0 14px; min-height: 34px; }
.evd-match__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 18px; }
.evd-match__tag { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--azul); background: #eaf2fc; border: 1px solid #d6e7f9; padding: 3px 8px; border-radius: 8px; }

/* Registro (check-in) */
.evd-checkin { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .evd-checkin { grid-template-columns: 1fr; } }
.evd-checkin__espera { text-align: center; padding: 40px 20px; border: 2px dashed var(--borde); border-radius: 22px; }
.evd-checkin__espera span { font-size: 2.6rem; }
.evd-checkin__espera h4 { color: var(--navy); margin: 12px 0 6px; }
.evd-checkin__espera p { color: var(--tenue); margin: 0; }
.evd-checkin__card { text-align: center; padding: 34px 24px; border-radius: 22px; border: 2px solid; }
.evd-checkin__card--ok { background: #eef9f2; border-color: #b6e6c6; }
.evd-checkin__card--no { background: #fdf1f1; border-color: #f2c9c9; }
.evd-checkin__estado { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff; }
.evd-checkin__card--ok .evd-checkin__estado { background: var(--color-ok); }
.evd-checkin__card--no .evd-checkin__estado { background: var(--color-error); }
.evd-checkin__logo { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 20px; background: #fff; border: 1px solid var(--borde); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 2rem; }
.evd-checkin__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.evd-checkin__card h4 { color: var(--navy); font-size: 1.4rem; margin: 0 0 4px; }
.evd-checkin__card p { color: var(--tenue); font-style: italic; margin: 0 0 16px; }
.evd-checkin__badge { display: inline-block; padding: 7px 18px; border-radius: 999px; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; }
.evd-checkin__badge--ok { background: var(--color-ok); } .evd-checkin__badge--no { background: var(--color-error); }

/* Modales */
.evd-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(7,32,58,0.55); backdrop-filter: blur(4px); }
.evd-modal[hidden] { display: none; }
.evd-modal__caja { position: relative; background: #fff; border-radius: 24px; box-shadow: var(--sombra-fuerte); width: 100%; max-width: 460px; padding: 34px; }
.evd-modal__x { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border: none; border-radius: 50%; background: var(--fondo); color: var(--tenue); cursor: pointer; font-weight: 700; }
.evd-welcome { text-align: center; }
.evd-welcome__ic { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 24px; background: linear-gradient(135deg, var(--azul), var(--navy)); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; }
.evd-welcome h3 { color: var(--navy); font-size: 1.7rem; margin: 6px 0 14px; }
.evd-welcome__txt { color: var(--tenue); font-style: italic; margin: 0 0 24px; }
.evd-nota__head { text-align: center; margin-bottom: 20px; }
.evd-nota__logo { width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 20px; background: #fff; border: 1px solid var(--borde); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 2.4rem; }
.evd-nota__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.evd-nota__head h3 { color: var(--navy); font-size: 1.4rem; margin: 0 0 8px; }
.evd-nota__tag { display: inline-block; padding: 5px 12px; border-radius: 8px; background: #eaf7ef; color: var(--color-ok); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.evd-nota textarea { width: 100%; height: 110px; margin: 8px 0 16px; padding: 12px 14px; border: 1px solid var(--borde); border-radius: 14px; font-family: inherit; font-size: 0.9rem; resize: vertical; color: var(--texto); }
.evd-nota textarea:focus { outline: none; border-color: var(--azul-claro); box-shadow: 0 0 0 3px rgba(30,143,213,0.14); }

/* ============ Calendario global (/eventos/calendario) — colores claros ============ */
.cal-subhead { display: flex; align-items: center; gap: 14px; margin: -8px 0 20px; flex-wrap: wrap; }
.cal-subhead__back { font-weight: 700; color: var(--navy); text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.04em; }
.cal-subhead__back:hover { color: var(--azul); }
.cal-subhead__sep { color: var(--borde); }
.cal-subhead__titulo { font-weight: 800; color: var(--navy); text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.12em; }
.cal-subhead__cta { margin-left: auto; }

.cal-page { position: relative; }
.cal-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.cal-nav { display: flex; align-items: center; gap: 14px; }
.cal-nav__btn { width: 46px; height: 46px; flex: 0 0 auto; border: 1px solid var(--borde); background: var(--tarjeta); border-radius: 14px; font-size: 1.2rem; color: var(--navy); cursor: pointer; box-shadow: var(--sombra); transition: background 0.15s, border-color 0.15s; }
.cal-nav__btn:hover { background: #f3f7fd; border-color: #cfe0f3; }
.cal-nav__titulo { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: -0.01em; text-align: center; min-width: 240px; margin: 0; }
.cal-nav__titulo span { color: var(--azul); }

.cal-filtros { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 16px; box-shadow: var(--sombra); }
.cal-filtro { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: none; background: none; border-radius: 11px; font-family: inherit; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tenue); cursor: pointer; transition: background 0.15s, color 0.15s; }
.cal-filtro:hover { background: var(--fondo); color: var(--navy); }
.cal-filtro--activo { background: var(--azul); color: #fff; box-shadow: 0 4px 14px rgba(14,111,203,0.25); }
.cal-filtro--activo:hover { background: var(--azul); color: #fff; }

.cal { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
.cal__semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--fondo); border-bottom: 1px solid var(--borde); }
.cal__semana span { padding: 12px 4px; text-align: center; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--tenue); }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__dia { min-width: 0; min-height: 150px; padding: 8px; border-right: 1px solid var(--borde); border-bottom: 1px solid var(--borde); display: flex; flex-direction: column; transition: background 0.15s; }
.cal__dia:nth-child(7n) { border-right: 0; }
.cal__dia:hover { background: #f8fafd; }
.cal__dia--fuera { background: #fbfcfe; }
.cal__dia--fuera .cal__num { color: #c4cdda; }
.cal__diahead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal__num { font-size: 0.82rem; font-weight: 800; color: var(--tenue); }
.cal__num--hoy { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; background: var(--azul); color: #fff; border-radius: 9px; box-shadow: 0 3px 10px rgba(14,111,203,0.3); }
.cal__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--azul); }
.cal__evts { display: flex; flex-direction: column; gap: 5px; overflow-y: auto; flex: 1; min-width: 0; }
.cal__evt { width: 100%; text-align: left; padding: 6px 8px; border: 1px solid var(--borde); background: var(--fondo); border-radius: 9px; font-family: inherit; font-size: 0.7rem; font-weight: 700; color: var(--navy); line-height: 1.25; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color 0.15s, background 0.15s; }
.cal__evt:hover { border-color: #cfe0f3; background: #fff; }
.cal__evt--dest { background: #eef7df; border-color: #d9ecb4; color: var(--lima-osc); }
.cal__evt--dest:hover { background: #e7f2d0; }

.cal-nota { margin: 18px 0 0; text-align: center; color: var(--tenue); font-size: 0.9rem; background: var(--tarjeta); border: 1px dashed var(--borde); border-radius: var(--radio); padding: 18px; }
.cal-nota[hidden] { display: none; }
.cal-nota strong { color: var(--azul); }

.cal-loading { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(244,246,250,0.55); backdrop-filter: blur(3px); }
.cal-loading[hidden] { display: none; }
.cal-loading span { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; color: var(--azul); }
.cal-loading__spinner { width: 52px; height: 52px; border: 4px solid rgba(14,111,203,0.2); border-top-color: var(--azul); border-radius: 50%; animation: cal-spin 0.8s linear infinite; }
@keyframes cal-spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
    .cal__dia { min-height: 96px; padding: 5px; }
    .cal__evt { font-size: 0.6rem; padding: 4px 6px; }
    .cal__semana span { font-size: 0.58rem; padding: 8px 2px; }
    .cal-nav__titulo { min-width: 0; }
}

/* Modal del calendario */
.cal-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cal-modal[hidden] { display: none; }
.cal-modal__bg { position: absolute; inset: 0; background: rgba(7,32,58,0.6); backdrop-filter: blur(6px); }
.cal-modal__caja { position: relative; z-index: 2; width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto; background: var(--tarjeta); border-radius: 24px; box-shadow: var(--sombra-fuerte); animation: evd-fade 0.25s ease; }
.cal-modal__x { position: absolute; top: 16px; right: 16px; z-index: 3; width: 42px; height: 42px; border: none; border-radius: 13px; background: rgba(255,255,255,0.85); color: var(--navy); font-weight: 700; cursor: pointer; backdrop-filter: blur(4px); }
.cal-modal__hero { position: relative; height: 220px; background: linear-gradient(135deg, #0f172a, #1b3a6b); overflow: hidden; }
.cal-modal__hero img { width: 100%; height: 100%; object-fit: cover; }
.cal-modal__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: rgba(255,255,255,0.7); }
.cal-modal__hero-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,32,58,0.92), rgba(7,32,58,0.25) 60%, transparent); }
.cal-modal__hero-cuerpo { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 28px; color: #fff; }
.cal-modal__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cal-modal__chip { padding: 4px 12px; border-radius: 999px; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.28); }
.cal-modal__chip--dest { background: var(--lima); color: #26340a; border-color: transparent; }
.cal-modal__chip--hib { background: var(--azul-claro); border-color: transparent; }
.cal-modal__hero-cuerpo h3 { color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 800; line-height: 1.05; margin: 0; }
.cal-modal__body { padding: 26px 28px 30px; }
.cal-modal__datos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 22px; }
.cal-modal__et { font-size: 0.64rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--tenue); margin: 0 0 6px; }
.cal-modal__val { font-size: 0.92rem; font-weight: 700; color: var(--navy); }
.cal-modal__org { display: inline-flex; align-items: center; gap: 8px; }
.cal-modal__orglogo { width: 30px; height: 30px; object-fit: contain; background: #fff; border: 1px solid var(--borde); border-radius: 8px; padding: 3px; }
.cal-modal__desc { font-size: 0.95rem; font-style: italic; color: var(--tenue); line-height: 1.65; margin: 0 0 24px; padding: 12px 0 12px 18px; border-left: 4px solid var(--azul); background: var(--fondo); border-radius: 0 12px 12px 0; }
.cal-modal__acciones { display: flex; gap: 12px; flex-wrap: wrap; }
.cal-modal__btn { flex: 1 1 auto; text-align: center; padding: 15px 18px; border-radius: 14px; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; transition: background 0.15s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.cal-modal__btn--pri { background: var(--azul); color: #fff; } .cal-modal__btn--pri:hover { background: var(--azul-claro); }
.cal-modal__btn--sec { background: var(--fondo); color: var(--navy); border: 1px solid var(--borde); } .cal-modal__btn--sec:hover { background: #eef2f8; }
.cal-modal__btn--org { background: #eaf6fb; color: var(--azul); border: 1px solid #cfe6f3; }
.cal-modal__btn--ok { background: #eaf7ef; color: var(--color-ok); border: 1px solid #cbe9d5; cursor: default; }
@media (max-width: 560px) { .cal-modal__datos { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Menú NETV (estilo red social) ---------- */
.menu-movil { max-width: 680px; margin: 0 auto; }
.menu-perfil {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border: 1px solid var(--borde); border-radius: 14px;
    padding: 14px 16px; box-shadow: var(--sombra); color: var(--texto);
}
.menu-perfil .avatar { border-radius: 50% !important; }
.menu-perfil__nombre { font-weight: 700; font-size: 1.1rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-chevron { width: 22px; height: 22px; color: var(--tenue); flex: 0 0 auto; }

.menu-titulo { font-size: 1.15rem; font-weight: 800; margin: 24px 0 12px; }
.menu-accesos { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.menu-acceso { flex: 0 0 auto; width: 86px; text-decoration: none; color: var(--texto); }
.menu-acceso__img { display: block; }
.menu-acceso__img .avatar { width: 86px !important; height: 86px !important; border-radius: 14px !important; }
.menu-acceso__txt { display: block; font-size: 0.78rem; font-weight: 600; margin-top: 6px; text-align: center; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.menu-cajas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.menu-caja {
    display: flex; flex-direction: column; min-height: 104px;
    background: #fff; border: 1px solid var(--borde); border-radius: 14px;
    padding: 16px; box-shadow: var(--sombra); color: var(--texto);
    text-decoration: none; transition: border-color 0.15s, transform 0.15s;
}
.menu-caja:hover { border-color: var(--azul); transform: translateY(-2px); }
.menu-caja__ic { width: 28px; height: 28px; }
.menu-caja__ic--azul { color: var(--azul); }
.menu-caja__ic--lima { color: var(--lima-osc); }
.menu-caja__txt { font-weight: 700; margin-top: auto; padding-top: 14px; }

/* ---------- Acceso / Login (pantalla dividida premium) ---------- */
/* Rompe el contenedor y cancela el padding de .contenido para ocupar
   toda la pantalla por debajo de la cabecera (58px sticky). */
.acceso {
    width: 100vw; margin-left: calc(50% - 50vw);
    margin-top: -38px; margin-bottom: -60px;
    min-height: calc(100vh - 58px);
    display: grid; grid-template-columns: 1.05fr 1fr;
}

/* --- Panel visual de marca --- */
.acceso__visual {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
    padding: 64px clamp(40px, 5vw, 84px);
    color: #fff;
}
.acceso__visual-grad {
    position: absolute; inset: 0;
    background: linear-gradient(150deg, #07203A 0%, #0B2742 38%, #0E6FCB 100%);
}
/* Halos de color de marca para dar profundidad */
.acceso__visual-deco {
    position: absolute; inset: 0; overflow: hidden;
}
.acceso__visual-deco::before,
.acceso__visual-deco::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(8px);
}
.acceso__visual-deco::before {
    width: 460px; height: 460px; top: -160px; right: -140px;
    background: radial-gradient(circle at center, rgba(30, 143, 213, 0.55), transparent 68%);
}
.acceso__visual-deco::after {
    width: 420px; height: 420px; bottom: -150px; left: -120px;
    background: radial-gradient(circle at center, rgba(157, 193, 28, 0.32), transparent 70%);
}
.acceso__visual-in { position: relative; z-index: 2; max-width: 520px; }
.acceso__logo img { height: 40px; width: auto; display: block; margin-bottom: 40px; }
.acceso__badge {
    display: inline-block; background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em;
    padding: 7px 15px; border-radius: 999px; margin-bottom: 24px;
}
.acceso__lema {
    font-size: clamp(2.2rem, 3.6vw, 3.4rem); font-weight: 800; line-height: 1.02;
    letter-spacing: -0.02em; margin: 0 0 18px; color: #fff;
}
.acceso__lema em { color: var(--lima); font-style: italic; }
.acceso__lema-sub {
    font-size: 1.08rem; color: rgba(255, 255, 255, 0.82);
    max-width: 440px; margin: 0 0 34px;
}
.acceso__features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.acceso__features li {
    display: flex; align-items: center; gap: 13px;
    font-size: 0.98rem; font-weight: 500; color: rgba(255, 255, 255, 0.92);
}
.acceso__features svg {
    flex: 0 0 auto; width: 17px; height: 17px; color: var(--navy);
    background: var(--lima); border-radius: 50%; padding: 5px;
    box-shadow: 0 4px 12px rgba(157, 193, 28, 0.4);
}
.acceso__visual-pie {
    position: relative; z-index: 2;
    font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); margin-top: 48px;
}

/* --- Panel del formulario --- */
.acceso__panel {
    display: flex; align-items: center; justify-content: center;
    padding: 64px clamp(28px, 4vw, 56px); background: var(--fondo);
}
.acceso__form-wrap {
    width: 100%; max-width: 400px;
    background: var(--tarjeta); border: 1px solid var(--borde);
    border-radius: 20px; box-shadow: var(--sombra-fuerte);
    padding: 40px 36px;
}
.acceso__form-wrap h1 { font-size: 1.85rem; }
.acceso__form-wrap .formulario { gap: 17px; margin-top: 4px; }
.acceso__form-wrap .campo input { padding: 13px 14px; border-radius: 12px; }
.boton--bloque { width: 100%; justify-content: center; padding: 14px 22px; font-size: 1rem; margin-top: 6px; }
.acceso__nota {
    text-align: center; font-size: 0.88rem; color: var(--tenue);
    margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--borde);
}
.acceso__nota a { font-weight: 700; }

/* En el login, el footer pega directo con la pantalla (sin su margen superior). */
.contenido:has(.acceso) + .pie { margin-top: 0; }

/* --- Variante registro (formulario largo) --- */
.acceso--registro .acceso__visual { justify-content: center; position: sticky; top: 58px; height: calc(100vh - 58px); }
.acceso__panel--scroll { align-items: flex-start; padding-top: 56px; padding-bottom: 56px; }
.acceso__form-wrap--ancho { max-width: 560px; }
.reg-clave {
    background: linear-gradient(135deg, rgba(14,111,203,0.06), rgba(157,193,28,0.06));
    border: 1px solid #CFE0F3; border-radius: 14px; padding: 16px 16px 18px; margin-bottom: 6px;
}
.reg-clave__lbl { color: var(--azul); font-weight: 700; }
.reg-clave .campo input { letter-spacing: 0.04em; }
.reg-clave__nota { font-size: 0.8rem; color: var(--tenue); margin: 8px 0 0; line-height: 1.4; }
.reg-seccion {
    font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--tenue); margin: 22px 0 2px; padding-top: 16px; border-top: 1px solid var(--borde);
}
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reg-ia {
    background: #F7F4FD; border: 1px solid #E6DEF7; border-radius: 14px;
    padding: 16px; margin-top: 4px; display: flex; flex-direction: column; gap: 13px;
}
.reg-ia__titulo {
    font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
    color: #6D45C9; margin: 0; display: flex; align-items: center; gap: 8px;
}
.reg-ia__titulo em { font-style: normal; font-weight: 600; color: var(--tenue); text-transform: none; letter-spacing: 0; }
.reg-ia__punto { width: 8px; height: 8px; border-radius: 50%; background: #8B5CF6; }
.reg-terminos { margin-top: 4px; font-size: 0.88rem; color: var(--tenue); line-height: 1.45; }
.reg-terminos input { margin-top: 3px; }
.g-recaptcha { margin-top: 4px; }

@media (max-width: 880px) {
    .acceso--registro .acceso__visual { position: static; height: auto; }
    .reg-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
    .acceso { grid-template-columns: 1fr; min-height: calc(100vh - 58px); }
    .acceso__visual { display: none; }
    .acceso__panel { padding: 44px 20px; }
    .acceso__form-wrap { max-width: 440px; }
}

/* ---------- Pie ---------- */
.pie { background: var(--navy-900); color: #9FB1C8; padding: 46px 0 30px; margin-top: 40px; }
.pie__top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 26px; margin-bottom: 20px; }
.pie__col h4 { color: #fff; font-size: 0.95rem; margin: 0 0 8px; }
.pie__col a { display: block; color: #9FB1C8; font-size: 0.9rem; margin: 7px 0; }
.pie__col a:hover { color: #fff; }
.pie__intro { max-width: 280px; font-size: 0.88rem; }
.pie__copy { font-size: 0.84rem; color: #6B7E96; }

/* ─── FEED ─────────────────────────────────────────────────────────────── */
.feed-layout {
    display: grid;
    grid-template-columns: 20% minmax(0, 1fr) 20%;
    gap: 20px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* Sidebar genérico */
.feed-sidebar {
    position: sticky;
    top: 72px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Tarjeta de usuario */
.feed-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: background .15s;
}
.feed-user-card:hover { background: rgba(255,255,255,.06); }
.feed-user-card__info { display: flex; flex-direction: column; min-width: 0; }
.feed-user-card__nombre { font-weight: 700; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-user-card__ver { font-size: .75rem; color: var(--azul-claro); }

.feed-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 8px 0; }

/* Nav de pilares */
.feed-nav { display: flex; flex-direction: column; gap: 2px; }
.feed-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: .88rem;
    transition: background .15s;
}
.feed-nav__item:hover { background: rgba(255,255,255,.07); }
.feed-nav__ic {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
}
.feed-nav__ic--azul { background: rgba(14,111,203,.20); color: var(--azul-claro); }
.feed-nav__ic--lima { background: rgba(124,154,20,.20); color: #9DC11C; }
.feed-nav__ic svg { width: 17px; height: 17px; }
.feed-nav__txt { white-space: nowrap; }

.feed-sidebar__titulo {
    font-size: .75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--tenue); padding: 4px 8px;
}

/* Accesos directos sidebar */
.feed-accesos { display: flex; flex-direction: column; gap: 2px; }
.feed-acceso {
    display: flex; align-items: center; gap: 9px;
    padding: 6px 8px; border-radius: 8px;
    color: inherit; text-decoration: none; font-size: .83rem; font-weight: 500;
    transition: background .15s;
}
.feed-acceso:hover { background: rgba(255,255,255,.06); }
.feed-acceso__txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-accesos__vacio { font-size: .8rem; color: var(--tenue); line-height: 1.45; margin: 2px 2px 0; }

/* Mensaje flash tras publicar */
.feed-flash { border-radius: 12px; padding: 11px 15px; font-size: .9rem; font-weight: 600; }
.feed-flash--ok  { background: rgba(44,122,63,.12); color: var(--color-ok); border: 1px solid rgba(44,122,63,.25); }
.feed-flash--err { background: rgba(193,48,48,.10); color: var(--color-error); border: 1px solid rgba(193,48,48,.25); }

/* Caja de publicación enriquecida */
.feed-composer {
    background: var(--tarjeta); border: 1px solid var(--borde);
    border-radius: 16px; padding: 14px 16px 12px; box-shadow: var(--sombra);
}
.feed-composer__top { display: flex; gap: 12px; align-items: flex-start; }
.feed-composer__editor {
    flex: 1; min-height: 46px; max-height: 320px; overflow-y: auto;
    background: var(--fondo); border: 1px solid var(--borde);
    border-radius: 14px; padding: 11px 15px;
    font-size: .95rem; line-height: 1.5; color: var(--texto);
    outline: none; transition: border-color .15s, box-shadow .15s;
}
.feed-composer__editor:focus { border-color: var(--azul-claro); box-shadow: 0 0 0 3px rgba(30,143,213,.12); }
.feed-composer__editor:empty::before { content: attr(data-placeholder); color: var(--tenue); pointer-events: none; }
.feed-composer__editor p { margin: 0 0 6px; }
.feed-composer__editor a { color: var(--azul); }

.feed-composer__preview { position: relative; margin: 12px 0 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--borde); }
.feed-composer__preview img { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.feed-composer__quitar {
    position: absolute; top: 8px; right: 8px; width: 30px; height: 30px;
    border: none; border-radius: 50%; background: rgba(7,32,58,.75); color: #fff;
    cursor: pointer; font-size: .85rem; line-height: 1;
}
.feed-composer__quitar:hover { background: rgba(7,32,58,.95); }

.feed-composer__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--borde); }
.feed-composer__tools { display: flex; align-items: center; gap: 4px; }
.feed-fmt {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 8px; border: none; cursor: pointer;
    background: transparent; color: var(--tenue); font-size: 1rem;
    transition: background .12s, color .12s;
}
.feed-fmt:hover { background: var(--fondo); color: var(--texto); }
.feed-fmt--foto { cursor: pointer; }
.feed-composer__enviar { padding: 9px 22px; }

/* Publicaciones del feed */
.feed-posts { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.feed-post {
    background: var(--tarjeta); border: 1px solid var(--borde);
    border-radius: 16px; padding: 16px 18px; box-shadow: var(--sombra);
    min-width: 0; overflow: hidden;
}
.feed-post__head { margin-bottom: 10px; }
.feed-post__autor { display: flex; align-items: center; gap: 11px; color: inherit; }
.feed-post__autor:hover .feed-post__nombre { color: var(--azul); }
.feed-post__nombre { display: block; font-weight: 700; font-size: .95rem; line-height: 1.2; }
.feed-post__meta { display: block; font-size: .78rem; color: var(--tenue); }
.feed-post__titulo { font-weight: 700; margin: 0 0 6px; }
.feed-post__texto { font-size: .95rem; line-height: 1.55; color: var(--texto); word-break: break-word; }
.feed-post__texto p { margin: 0 0 8px; }
.feed-post__texto a { color: var(--azul); }
.feed-post__texto ul, .feed-post__texto ol { margin: 4px 0 8px; padding-left: 22px; }
.feed-post__img { margin-top: 12px; border-radius: 12px; overflow: hidden; border: 1px solid var(--borde); }
.feed-post__img img { display: block; width: 100%; object-fit: cover; }

/* Reacciones y comentarios (feed claro) */
.feed-eng { border-top: 1px solid var(--borde); margin-top: 13px; padding-top: 11px; }
.feed-eng__stats { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--tenue); margin-bottom: 9px; }
.feed-eng__emos { font-size: .98rem; letter-spacing: -2px; }
.feed-eng__react { display: flex; gap: 6px; flex-wrap: wrap; }
.feed-react {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--borde); background: var(--fondo); border-radius: 999px;
    padding: 6px 13px; cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--tenue);
    transition: background .12s, color .12s, border-color .12s;
}
.feed-react:hover { background: #fff; color: var(--texto); border-color: var(--azul-claro); }
.feed-react--on { background: rgba(14,111,203,.1); border-color: var(--azul); color: var(--azul); }
.feed-react__emo { font-size: 1rem; }
.feed-react__n { font-weight: 800; }
.feed-cmts { display: flex; flex-direction: column; gap: 10px; margin-top: 13px; }
.feed-cmt { display: flex; gap: 9px; align-items: flex-start; }
.feed-cmt .avatar { border-radius: 50% !important; }
.feed-cmt__b { flex: 1; min-width: 0; background: var(--fondo); border-radius: 14px; padding: 8px 13px; }
.feed-cmt__name { font-weight: 700; font-size: .85rem; color: var(--texto); }
.feed-cmt__name:hover { color: var(--azul); }
.feed-cmt__t { font-size: .72rem; color: var(--tenue); margin-left: 6px; }
.feed-cmt__txt { margin: 2px 0 0; font-size: .9rem; line-height: 1.45; word-break: break-word; }
.feed-cmt-form { display: flex; gap: 9px; align-items: center; margin-top: 2px; }
.feed-cmt-form .avatar { border-radius: 50% !important; }
.feed-cmt-form input[type="text"] {
    flex: 1; min-width: 0; border: 1px solid var(--borde); background: var(--fondo);
    border-radius: 999px; padding: 9px 15px; font-family: inherit; font-size: .9rem; color: var(--texto); outline: none;
}
.feed-cmt-form input[type="text"]:focus { border-color: var(--azul-claro); box-shadow: 0 0 0 3px rgba(30,143,213,.1); }
.feed-cmt-form__btn { flex: 0 0 auto; width: 38px; height: 38px; border: none; border-radius: 50%; background: var(--azul); color: #fff; cursor: pointer; font-size: .9rem; }
.feed-cmt-form__btn:hover { background: var(--azul-claro); }

/* Columna central */
.feed-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow: hidden; }

/* Caja de publicación */
.feed-publicar {
    display: flex; align-items: center; gap: 10px;
    background: var(--card-bg, rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px; padding: 12px 14px;
}
.feed-publicar__input {
    flex: 1; background: rgba(255,255,255,.06); border: none;
    border-radius: 20px; padding: 10px 16px;
    color: var(--tenue); font-family: inherit; font-size: .9rem;
    text-align: left; cursor: default;
}

/* Estado vacío del feed */
.feed-vacio {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 48px 24px;
    background: var(--card-bg, rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px; text-align: center;
}
.feed-vacio__ic { width: 80px; height: 80px; opacity: .7; }
.feed-vacio__titulo { font-weight: 700; font-size: 1.05rem; margin: 0; }
.feed-vacio__sub { color: var(--tenue); font-size: .88rem; max-width: 340px; margin: 0; line-height: 1.5; }

/* Widgets del panel derecho */
.feed-widget {
    background: var(--card-bg, rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px; padding: 14px 14px 10px;
    display: flex; flex-direction: column; gap: 2px;
    margin-bottom: 12px;
}
.feed-widget__titulo {
    font-size: .78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: var(--tenue); margin: 0 0 8px;
}
.feed-widget__item {
    display: flex; flex-direction: column; gap: 2px;
    padding: 7px 6px; border-radius: 8px;
    color: inherit; text-decoration: none;
    transition: background .15s;
}
.feed-widget__item:hover { background: rgba(255,255,255,.06); }
.feed-widget__nombre { font-size: .85rem; font-weight: 600; line-height: 1.3; }
.feed-widget__meta { font-size: .75rem; color: var(--tenue); }
.feed-widget__ver-mas {
    font-size: .78rem; color: var(--azul-claro); font-weight: 600;
    padding: 6px 6px 0; text-decoration: none;
    display: block; margin-top: 4px;
}
.feed-widget__ver-mas:hover { text-decoration: underline; }

.feed-pie { font-size: .72rem; color: var(--tenue); padding: 0 4px; }

/* Feed icon en header */
.pilar--feed { border-right: 1px solid rgba(255,255,255,.12); margin-right: 4px; padding-right: 10px; }

@media (max-width: 1024px) {
    .feed-layout { grid-template-columns: 240px 1fr; }
    .feed-sidebar--right { display: none; }
}

@media (max-width: 760px) {
    h1 { font-size: 1.55rem; }
    /* Header móvil: logo + búsqueda (ícono) | menú, chat, notif, perfil.
       Los 4 pilares pasan al menú NETV (/menu). */
    .cab__in { gap: 8px; padding: 0 12px; }
    .cab__centro { display: none; }
    .cab__izq { flex: 1; }
    .busca { flex: 0 0 40px; width: 40px; padding: 0; justify-content: center; }
    .busca input { display: none; }
    .cab__der { gap: 7px; }
    .menu-cajas { gap: 10px; }
    .feed-layout { grid-template-columns: 1fr; padding: 12px; }
    .feed-sidebar--left { position: static; flex-direction: row; flex-wrap: wrap; }
    .feed-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
    .feed-nav__txt { display: none; }
}

/* ═══════════════ MI EMPRESA (editor, tema oscuro) ═══════════════ */
.empresa-editor {
    --emp-bg:       var(--fondo);
    --emp-card:     #fff;
    --emp-line:     var(--borde);
    --emp-line-soft:rgba(0,0,0,.05);
    --emp-acc:      var(--azul);
    --emp-acc-d:    #0C5EAA;
    --emp-txt:      var(--texto);
    --emp-mut:      var(--tenue);
    background: var(--emp-bg);
    color: var(--emp-txt);
    border-radius: 18px;
    padding: 28px;
    margin: 18px auto;
    max-width: 1180px;
    box-shadow: 0 4px 24px rgba(11,39,66,.07);
}
.empresa-editor * { box-sizing: border-box; }

.emp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.emp-head__titulo { font-size: 2rem; font-weight: 800; margin: 0; color: var(--navy); }
.emp-head__sub { color: var(--emp-mut); margin: 4px 0 0; font-size: .92rem; }
.emp-head__acciones { display: flex; gap: 10px; align-items: center; }

.emp-btn { display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; font-family: inherit; font-weight: 700; border-radius: 12px; padding: 11px 20px; font-size: .9rem; transition: transform .12s, background .15s; text-decoration: none; }
.emp-btn--accent { background: var(--lima); color: var(--navy-900); font-weight: 800; box-shadow: 0 6px 18px rgba(157,193,28,.3); }
.emp-btn--accent:hover { transform: scale(1.03); }
.emp-btn--ghost { background: #fff; color: var(--navy); border: 1px solid var(--borde); }
.emp-btn--ghost:hover { background: var(--fondo); }
.emp-btn--sm { padding: 9px 16px; font-size: .8rem; }

.emp-aviso { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: .9rem; font-weight: 600; }
.emp-aviso--ok { background: #e6f9ee; color: #1a6b3a; border: 1px solid #a8dfc0; }
.emp-aviso--error { background: #fde8e8; color: #8b1a1a; border: 1px solid #f5b8b8; }

/* Pestañas */
.emp-tabs { position: relative; display: flex; align-items: center; background: #fff; border: 1px solid var(--borde); border-radius: 16px; padding: 5px; margin-bottom: 16px; }
.emp-tabs__scroll { flex: 1; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 6px; scroll-behavior: smooth; }
.emp-tabs__scroll::-webkit-scrollbar { display: none; }
.emp-tab { white-space: nowrap; padding: 9px 16px; font-weight: 700; font-size: .82rem; background: none; border: none; border-radius: 10px; color: var(--tenue); cursor: pointer; font-family: inherit; transition: color .15s, background .15s; }
.emp-tab:hover { color: var(--navy); background: var(--fondo); }
.emp-tab--activo { color: var(--azul); background: #E6F1FB; }
.emp-tabs__arrow { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; border: 1px solid var(--borde); background: #fff; color: var(--navy); font-size: 1.1rem; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.emp-tabs__arrow:hover { background: var(--fondo); }

/* Toggle visibilidad */
.emp-visibilidad { width: 100%; border: 1px solid var(--borde); background: var(--fondo); color: var(--navy); border-radius: 14px; padding: 14px 18px; font-weight: 700; font-size: .92rem; cursor: pointer; margin-bottom: 20px; font-family: inherit; transition: all .15s; text-align:left; }
.emp-visibilidad .emp-visibilidad__txt-on { display: none; }
.emp-visibilidad .emp-visibilidad__txt-off { display: inline; }
.emp-visibilidad--on { background: var(--lima); color: var(--navy-900); border-color: var(--lima); }
.emp-visibilidad--on .emp-visibilidad__txt-on { display: inline; }
.emp-visibilidad--on .emp-visibilidad__txt-off { display: none; }

/* Tarjeta contenedora */
.emp-card { background: #fff; border: 1px solid var(--borde); border-radius: 18px; padding: 28px; }

/* Paneles */
.emp-panel { display: none; }
.emp-panel--activo { display: block; animation: empFade .25s ease; }
@keyframes empFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.emp-panel__head { margin-bottom: 18px; }
.emp-panel__head h3 { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin: 0; }
.emp-panel__head p { color: var(--tenue); font-size: .82rem; margin: 4px 0 0; }
.emp-panel__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }

/* Campos */
.emp-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.emp-field > label { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--tenue); }
.emp-field > label em { font-size: .62rem; text-transform: none; font-style: italic; color: #92400e; font-weight: 500; }
.emp-lbl-acc { color: var(--azul) !important; }
.empresa-editor input, .empresa-editor select, .empresa-editor textarea {
    width: 100%; background: #fff; border: 1px solid var(--borde); border-radius: 10px;
    padding: 11px 13px; color: var(--texto); font-family: inherit; font-size: .92rem; transition: border-color .15s;
}
.empresa-editor input:focus, .empresa-editor select:focus, .empresa-editor textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(14,111,203,.1); }
.empresa-editor select:disabled { opacity: .35; }
.emp-input--ro { background: var(--fondo) !important; color: var(--tenue) !important; font-family: monospace; cursor: not-allowed; }
.emp-hint { font-size: .72rem; color: var(--tenue); }
.emp-field--sep { padding-top: 18px; margin-top: 4px; border-top: 1px solid var(--borde); }

.emp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.emp-grid2__full { grid-column: 1 / -1; }
.emp-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }

/* General: logo + campos */
.emp-general { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.emp-logo { position: relative; width: 170px; height: 170px; flex: 0 0 170px; border-radius: 14px; background: var(--fondo); border: 2px dashed var(--borde); display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; transition: border-color .15s, background .15s; }
.emp-logo:hover { border-color: var(--azul); background: #E6F1FB; }
.emp-logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.emp-logo__ph { text-align: center; color: var(--tenue); font-size: 2rem; line-height: 1.5; }
.emp-logo__ph small { font-size: .68rem; }
.emp-logo__over { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(11,39,66,.55); color: #fff; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: 0; transition: opacity .15s; }
.emp-logo:hover .emp-logo__over { opacity: 1; }
.emp-drop--over { border-color: var(--azul) !important; background: #E6F1FB !important; }
.emp-drop--over .emp-logo__over, .emp-banner.emp-drop--over .emp-banner__ph { opacity: 1; }
.emp-general__campos { flex: 1; min-width: 260px; }

/* Switch */
.emp-switch-row { display: flex; align-items: center; gap: 16px; background: var(--fondo); border: 1px solid var(--borde); border-radius: 14px; padding: 16px; margin-top: 8px; }
.emp-switch-row h4 { margin: 0; font-size: .9rem; color: var(--navy); }
.emp-switch-row p { margin: 2px 0 0; font-size: .78rem; color: var(--tenue); }
.emp-switch { position: relative; display: inline-block; width: 50px; height: 26px; flex: 0 0 50px; }
.emp-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.emp-switch__track { position: absolute; inset: 0; background: var(--borde); border-radius: 999px; transition: background .15s; }
.emp-switch__track::before { content: ""; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.emp-switch input:checked + .emp-switch__track { background: var(--azul); }
.emp-switch input:checked + .emp-switch__track::before { transform: translateX(24px); }

/* Redes */
.emp-red { display: flex; align-items: center; gap: 14px; background: var(--fondo); border: 1px solid var(--borde); border-radius: 14px; padding: 12px 16px; }
.emp-red__ic { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 11px; background: #E6F1FB; color: var(--azul); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.emp-red .emp-field { margin: 0; }

/* Multimedia */
.emp-mm-sec { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--borde); }
.emp-mm-sec:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.emp-file { display: none; }
.emp-banner { display: block; width: 100%; aspect-ratio: 3 / 1; border-radius: 16px; background: var(--fondo); border: 2px dashed var(--borde); overflow: hidden; cursor: pointer; position: relative; }
.emp-banner img { width: 100%; height: 100%; object-fit: cover; }
.emp-banner__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--tenue); font-weight: 700; font-size: .9rem; text-align: center; }
.emp-banner__ph small { font-size: .7rem; color: var(--tenue); }
.emp-inline-form { display: flex; gap: 8px; align-items: center; margin: 0; }
.emp-video-add input { min-width: 240px; }
.emp-galeria { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.emp-galeria__item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--borde); }
.emp-galeria__item img { width: 100%; height: 100%; object-fit: cover; }
.emp-videos, .emp-brochures { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.emp-video-card, .emp-brochure-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--fondo); border: 1px solid var(--borde); border-radius: 12px; padding: 12px 14px; }
.emp-video-card__url { font-size: .8rem; color: var(--tenue); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emp-brochure-card a { color: var(--azul); font-weight: 600; font-size: .85rem; }
.emp-del { background: #ef4444; border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; color: #fff; font-size: .85rem; position: absolute; top: 8px; right: 8px; opacity: 0; transition: opacity .15s; }
.emp-galeria__item:hover .emp-del { opacity: 1; }
.emp-del--inline { position: static; opacity: 1; flex: 0 0 32px; }
.emp-del--corner { position: absolute; top: 12px; right: 12px; opacity: .6; }
.emp-del--corner:hover { opacity: 1; }

/* Subcards */
.emp-subcard { background: var(--fondo); border: 1px solid var(--borde); border-radius: 16px; padding: 22px; }
.emp-subcard h3 { margin: 0; font-size: 1.1rem; color: var(--navy); }
.emp-subcard__sub { color: var(--tenue); font-size: .8rem; margin: 4px 0 18px; }
.emp-actions-right { display: flex; justify-content: flex-end; margin-top: 8px; }

/* Sucursales */
.emp-suc-card { position: relative; background: var(--fondo); border: 1px solid var(--borde); border-radius: 16px; padding: 20px; }
.emp-suc-card h4 { margin: 0 28px 4px 0; color: var(--navy); text-transform: uppercase; font-size: .95rem; }
.emp-suc-card p { margin: 0 0 10px; color: var(--tenue); font-size: .85rem; }
.emp-suc-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.emp-chip { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: var(--fondo); border: 1px solid var(--borde); color: var(--tenue); padding: 4px 8px; border-radius: 6px; }
.emp-chip--acc { background: #E6F1FB; color: var(--azul); border-color: #c5daef; }

/* Cards productos/servicios */
.emp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.emp-item-card { position: relative; background: #fff; border: 1px solid var(--borde); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.emp-item-card__img { aspect-ratio: 1; background: var(--fondo); position: relative; }
.emp-item-card__img img { width: 100%; height: 100%; object-fit: cover; }
.emp-item-card__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; opacity: .3; }
.emp-item-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.emp-item-card__body h4 { margin: 0 0 4px; color: var(--navy); font-size: 1rem; text-transform: uppercase; }
.emp-item-card__body p { margin: 0 0 12px; color: var(--tenue); font-size: .76rem; flex: 1; }
.emp-item-card__precio { background: var(--fondo); border: 1px solid var(--borde); border-radius: 10px; padding: 10px 12px; }
.emp-item-card__precio span { color: var(--azul); font-weight: 800; }
.emp-item-card__acts { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.emp-mini { width: 36px; height: 36px; border-radius: 10px; border: none; cursor: pointer; background: rgba(11,39,66,.6); color: #fff; backdrop-filter: blur(6px); font-size: .9rem; }
.emp-mini:hover { background: var(--navy); }
.emp-mini--del { background: rgba(220,50,50,.85); }
.emp-mini--del:hover { background: #ef4444; }
.emp-item-card__acts form { margin: 0; }

/* Vacíos */
.emp-vacio { color: var(--tenue); font-size: .85rem; font-style: italic; text-align: center; padding: 28px; border: 1px dashed var(--borde); border-radius: 14px; }
.emp-vacio--full { grid-column: 1 / -1; }
.emp-vacio--big { font-size: 1rem; font-weight: 800; font-style: normal; text-transform: uppercase; letter-spacing: .05em; padding: 64px 28px; line-height: 2.4; }

/* Modal */
.emp-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.emp-modal[hidden] { display: none; }
.emp-modal__overlay { position: absolute; inset: 0; background: rgba(3,16,30,.7); backdrop-filter: blur(3px); }
.emp-modal__box { position: relative; z-index: 1; width: 100%; max-width: 480px; background: #0e2e4d; border: 1px solid var(--emp-line); border-radius: 18px; padding: 26px; max-height: 90vh; overflow-y: auto; color: var(--emp-txt); }
.emp-modal__box h3 { margin: 0 0 18px; color: #fff; }
.emp-modal__acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.emp-check { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--emp-mut); margin-bottom: 8px; }
.emp-check input { width: auto; }

@media (max-width: 860px) {
    .empresa-editor { padding: 16px; }
    .emp-card { padding: 18px; }
    .emp-grid2, .emp-grid3, .emp-cards, .emp-videos, .emp-brochures { grid-template-columns: 1fr; }
    .emp-galeria { grid-template-columns: repeat(2, 1fr); }
}

/* Mi Empresa — Alianzas (IA) + Categorías */
.emp-ia-banner { background: linear-gradient(90deg, rgba(14,111,203,.18), transparent); border: 1px solid rgba(14,111,203,.3); border-radius: 14px; padding: 18px 20px; margin-bottom: 22px; }
.emp-ia-banner h3 { margin: 0 0 6px; color: #fff; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.emp-ia-dot { color: var(--emp-acc); }
.emp-ia-banner p { margin: 0; color: var(--emp-mut); font-size: .85rem; }

.emp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.emp-tags .emp-inline-form { margin: 0; }
.emp-tag { border: 1px solid var(--borde); background: #fff; color: var(--tenue); border-radius: 999px; padding: 8px 14px; font-size: .78rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: all .15s; }
.emp-tag:hover { border-color: var(--azul); color: var(--azul); background: #E6F1FB; }
.emp-tag--on { background: var(--azul); border-color: var(--azul); color: #fff; box-shadow: 0 4px 12px rgba(14,111,203,.2); }
.emp-tag--quita { background: #EEF5D6; border-color: #c6df80; color: var(--lima-osc); }
.emp-tag--quita:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.emp-tag--add { border-style: dashed; color: var(--tenue); }

.emp-cats { display: grid; grid-template-columns: 1fr 2fr; gap: 26px; }
.emp-cats__col--wide { min-width: 0; }
.emp-cats__lista { display: flex; flex-direction: column; gap: 8px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.emp-cat-btn { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--borde); background: #fff; color: var(--tenue); font-size: .85rem; font-weight: 600; transition: all .15s; cursor: pointer; width: 100%; font-family: inherit; text-align: left; }
.emp-cat-btn:hover { border-color: var(--azul); color: var(--navy); background: #E6F1FB; }
.emp-cat-btn--sel { background: var(--azul); border-color: var(--azul); color: #fff; font-weight: 800; }
.emp-cat-btn--sel span { color: #fff; }
.emp-cats__chips-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.emp-cats__pool { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; min-height: 120px; padding: 20px; background: var(--fondo); border: 1px solid var(--borde); border-radius: 16px; }
.emp-cats__pool .emp-inline-form { margin: 0; }

@media (max-width: 860px) {
    .emp-cats { grid-template-columns: 1fr; }
}

/* ═══════════════ FICHA PÚBLICA (perfil corporativo, tema oscuro) ═══════════════ */
/* En la ficha, el lienzo de la página también es azul oscuro (evita franjas blancas). */
body:has(.fp) { background: #020617; }

.fp {
    --fp-bg: #020617;
    --fp-card: rgba(15,23,42,.55);
    --fp-line: #1e293b;
    --fp-txt: #e2e8f0;
    --fp-mut: #64748b;
    --fp-azul: #3b82f6;
    --fp-verde: #10b981;
    --fp-amber: #f59e0b;
    width: 100vw; margin-left: calc(50% - 50vw); margin-top: -38px; margin-bottom: -60px;
    background: var(--fp-bg); color: var(--fp-txt);
    font-family: var(--fuente); min-height: 80vh; padding-bottom: 60px;
    position: relative; overflow-x: clip;
}
.fp * { box-sizing: border-box; }
.fp a { color: inherit; text-decoration: none; }

/* Hero */
.fp-hero { position: relative; width: 100%; height: 300px; background: linear-gradient(135deg,#0f172a,rgba(30,58,138,.25),#020617); background-size: cover; background-position: center; }
.fp-hero__fade { position: absolute; inset-inline: 0; bottom: 0; height: 180px; background: linear-gradient(to top, var(--fp-bg), transparent); }

.fp-wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px; margin-top: -150px; position: relative; z-index: 2; }

.fp-top { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 40px; }
@media (max-width: 1000px) { .fp-top { flex-direction: column; } }

/* Card base */
.fp-card { background: var(--fp-card); backdrop-filter: blur(16px); border: 1px solid var(--fp-line); border-radius: 32px; padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.fp-h2 { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .2em; margin: 0 0 20px; display: flex; align-items: center; gap: 10px; }
.fp-h2 span { width: 32px; height: 1px; display: inline-block; }
.fp-h2--azul { color: var(--fp-azul); } .fp-h2--azul span { background: rgba(59,130,246,.4); }
.fp-h2--verde { color: var(--fp-verde); } .fp-h2--verde span { background: rgba(16,185,129,.4); }
.fp-h2--gris { color: #94a3b8; } .fp-h2--gris span { background: #334155; }
.fp-h2--amber { color: var(--fp-amber); } .fp-h2--amber span { background: rgba(245,158,11,.4); }
.fp-muted { color: var(--fp-mut); font-size: .85rem; font-style: italic; }

/* Sidebar */
.fp-side { width: 30%; max-width: 400px; min-width: 300px; flex-shrink: 0; background: rgba(15,23,42,.8); backdrop-filter: blur(24px); border: 1px solid var(--fp-line); border-radius: 36px; padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
@media (max-width: 1000px) { .fp-side { width: 100%; max-width: none; } }
.fp-logo { width: 128px; height: 128px; background: #fff; border-radius: 26px; padding: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; border: 4px solid #0f172a; box-shadow: 0 0 0 4px rgba(59,130,246,.2), 0 16px 40px rgba(0,0,0,.4); overflow: hidden; }
.fp-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fp-logo span { font-size: 3rem; font-weight: 900; color: #1e293b; }
.fp-side__nombre { font-size: 1.75rem; font-weight: 900; color: #fff; margin: 0 0 14px; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.1; }
.fp-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.fp-badge { padding: 5px 12px; font-size: .62rem; font-weight: 900; border-radius: 999px; text-transform: uppercase; letter-spacing: .12em; border: 1px solid; }
.fp-badge--azul { background: rgba(59,130,246,.1); color: #60a5fa; border-color: rgba(59,130,246,.2); }
.fp-badge--verde { background: rgba(16,185,129,.1); color: #34d399; border-color: rgba(16,185,129,.2); }
.fp-side__subs { display: flex; flex-wrap: wrap; gap: 5px; padding: 6px 0 20px; border-bottom: 1px solid rgba(30,41,59,.5); margin-bottom: 20px; }
.fp-subchip { padding: 3px 8px; background: #1e293b; color: #94a3b8; font-size: .58rem; font-weight: 800; border-radius: 6px; border: 1px solid #334155; text-transform: uppercase; letter-spacing: .06em; }
.fp-rating { padding: 16px; background: rgba(2,6,23,.4); border: 1px solid rgba(30,41,59,.5); border-radius: 18px; margin-bottom: 24px; }
.fp-stars { font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 4px; }
.fp-stars .on { color: #fbbf24; } .fp-stars .off { color: #475569; opacity: .4; }
.fp-stars--big { font-size: 1.9rem; }
.fp-rating p { margin: 0; font-size: .62rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: .12em; }
.fp-rating p span { color: #475569; margin: 0 4px; }
.fp-quick { display: flex; gap: 10px; margin-bottom: 24px; }
.fp-quick__btn { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; background: #1e293b; border: 1px solid #334155; transition: transform .15s; }
.fp-quick__btn:hover { transform: translateY(-2px); }
.fp-quick__btn--wa { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.2); }
.fp-quick__btn--tel { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.2); }
.fp-redes { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-red { width: 36px; height: 36px; border-radius: 10px; background: rgba(30,41,59,.5); border: 1px solid #1e293b; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; color: #94a3b8; transition: all .15s; }
.fp-red:hover { background: rgba(59,130,246,.2); color: #60a5fa; transform: translateY(-2px); }
.fp-qr { margin-top: 28px; padding-top: 28px; border-top: 1px solid #1e293b; display: flex; flex-direction: column; align-items: center; }
.fp-qr__label { font-size: .62rem; font-weight: 900; color: #64748b; text-transform: uppercase; letter-spacing: .2em; margin: 0 0 16px; }
.fp-qr__box { padding: 12px; background: #fff; border-radius: 18px; box-shadow: 0 0 0 4px rgba(59,130,246,.1); }
.fp-qr__box img { display: block; }
.fp-qr__hint { font-size: .58rem; color: #475569; font-weight: 700; margin: 16px 0 0; text-transform: uppercase; letter-spacing: .1em; text-align: center; line-height: 1.5; }

/* Main */
.fp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.fp-desc { color: #cbd5e1; font-size: .95rem; line-height: 1.7; }
.fp-geo { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
@media (max-width: 1000px) { .fp-geo { grid-template-columns: 1fr; } }
.fp-sede { display: flex; gap: 16px; padding: 24px; background: rgba(2,6,23,.5); border: 1px solid rgba(30,41,59,.5); border-radius: 24px; }
.fp-sede__pin { font-size: 1.8rem; }
.fp-sede__lugar { color: #fff; font-size: 1.25rem; font-weight: 900; margin: 0; letter-spacing: -.01em; }
.fp-sede__dir { color: #94a3b8; font-size: .85rem; margin: 4px 0 0; }
.fp-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 4px 12px; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.2); border-radius: 999px; font-size: .6rem; font-weight: 900; color: #34d399; text-transform: uppercase; letter-spacing: .12em; }
.fp-pill__dot { width: 6px; height: 6px; background: #10b981; border-radius: 50%; }
.fp-suc-list { display: flex; flex-direction: column; gap: 10px; max-height: 200px; overflow-y: auto; }
.fp-suc { padding: 14px; background: rgba(2,6,23,.5); border: 1px solid rgba(30,41,59,.5); border-radius: 16px; }
.fp-suc__nombre { color: #fff; font-size: .78rem; font-weight: 900; text-transform: uppercase; margin: 0; }
.fp-suc__det { color: #64748b; font-size: .68rem; margin: 4px 0 0; }
.fp-suc-empty, .fp-empty { text-align: center; color: #475569; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 40px 20px; line-height: 2; }
.fp-empty { font-size: 1rem; padding: 60px 20px; }
.fp-suc-total { font-size: .6rem; font-weight: 900; color: #475569; text-transform: uppercase; letter-spacing: .12em; margin: 16px 0 0; text-align: center; }
.fp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 8px; }
@media (max-width: 700px) { .fp-stats { grid-template-columns: repeat(2, 1fr); } }
.fp-stats div strong { display: block; font-size: 1.9rem; font-weight: 900; color: #fff; letter-spacing: -.03em; line-height: 1; }
.fp-stats div span { font-size: .6rem; color: #64748b; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.fp-clusters__label { font-size: .62rem; font-weight: 900; color: #64748b; text-transform: uppercase; letter-spacing: .12em; margin: 24px 0 12px; }
.fp-clusters { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-cluster { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: rgba(59,130,246,.05); border: 1px solid rgba(59,130,246,.2); color: #60a5fa; border-radius: 12px; font-size: .62rem; font-weight: 900; text-transform: uppercase; }

/* Tabs */
.fp-tabs-sec { margin-top: 16px; }
.fp-tabsbar { display: flex; gap: 8px; overflow-x: auto; background: rgba(15,23,42,.5); backdrop-filter: blur(8px); padding: 10px; border: 1px solid var(--fp-line); border-radius: 28px; margin-bottom: 28px; scrollbar-width: none; }
.fp-tabsbar::-webkit-scrollbar { display: none; }
.fp-tabbtn { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 18px; white-space: nowrap; border: none; cursor: pointer; background: rgba(30,41,59,.4); color: #94a3b8; font-family: inherit; font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; transition: all .15s; }
.fp-tabbtn:hover { background: #1e293b; color: #e2e8f0; }
.fp-tabbtn--on { background: var(--fp-azul); color: #fff; box-shadow: 0 8px 24px rgba(59,130,246,.3); }
.fp-tabbtn__ic { font-size: 1.1rem; }
.fp-tabbtn__count { padding: 2px 8px; border-radius: 999px; font-size: .62rem; background: rgba(255,255,255,.15); }
.fp-tabbtn:not(.fp-tabbtn--on) .fp-tabbtn__count { background: #334155; color: #94a3b8; }
.fp-tabpanel { display: none; }
.fp-tabpanel--on { display: block; animation: fpFade .3s ease; }
@keyframes fpFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Publicaciones (tema oscuro de la ficha) */
.fp-posts { display: flex; flex-direction: column; gap: 18px; }
.fp-post { background: var(--fp-card); border: 1px solid var(--fp-line); border-radius: 24px; padding: 22px 24px; }
.fp-post__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fp-post__logo { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; color: #0b2742; font-weight: 800; }
.fp-post__logo img { width: 100%; height: 100%; object-fit: cover; }
.fp-post__nombre { margin: 0; font-weight: 700; color: #e2e8f0; font-size: .98rem; }
.fp-post__meta { margin: 0; font-size: .78rem; color: #64748b; }
.fp-post__titulo { font-weight: 700; color: #f1f5f9; margin: 0 0 8px; }
.fp-post__texto { color: #cbd5e1; font-size: .96rem; line-height: 1.6; word-break: break-word; }
.fp-post__texto p { margin: 0 0 8px; }
.fp-post__texto a { color: var(--fp-azul); }
.fp-post__texto ul, .fp-post__texto ol { margin: 4px 0 8px; padding-left: 22px; }
.fp-post__img { margin-top: 14px; border-radius: 16px; overflow: hidden; border: 1px solid var(--fp-line); }
.fp-post__img img { display: block; width: 100%; object-fit: cover; }

/* Reacciones y comentarios (ficha oscura) */
.fp-eng { border-top: 1px solid var(--fp-line); margin-top: 16px; padding-top: 14px; }
.fp-eng__stats { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: #94a3b8; margin-bottom: 10px; }
.fp-eng__emos { font-size: .98rem; letter-spacing: -2px; }
.fp-eng__react { display: flex; gap: 8px; flex-wrap: wrap; }
.fp-react {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--fp-line); background: rgba(255,255,255,.03); border-radius: 999px;
    padding: 7px 14px; cursor: pointer; font-size: .82rem; font-weight: 600; color: #cbd5e1;
    transition: background .12s, color .12s, border-color .12s;
}
.fp-react:hover { background: rgba(255,255,255,.08); color: #fff; }
.fp-react--on { background: rgba(59,130,246,.18); border-color: var(--fp-azul); color: #93c5fd; }
.fp-react__emo { font-size: 1rem; }
.fp-react__n { font-weight: 800; }
.fp-cmts { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.fp-cmt { display: flex; gap: 10px; align-items: flex-start; }
.fp-cmt .avatar { border-radius: 50% !important; }
.fp-cmt__b { flex: 1; min-width: 0; background: rgba(255,255,255,.04); border: 1px solid var(--fp-line); border-radius: 14px; padding: 9px 13px; }
.fp-cmt__name { font-weight: 700; font-size: .85rem; color: #e2e8f0; }
.fp-cmt__name:hover { color: var(--fp-azul); }
.fp-cmt__t { font-size: .72rem; color: #64748b; margin-left: 6px; }
.fp-cmt__txt { margin: 3px 0 0; font-size: .9rem; color: #cbd5e1; line-height: 1.5; word-break: break-word; }
.fp-cmt-form { display: flex; gap: 10px; align-items: center; margin-top: 2px; }
.fp-cmt-form .avatar { border-radius: 50% !important; }
.fp-cmt-form input[type="text"] {
    flex: 1; min-width: 0; border: 1px solid var(--fp-line); background: rgba(255,255,255,.04);
    border-radius: 999px; padding: 10px 16px; font-family: inherit; font-size: .9rem; color: #e2e8f0; outline: none;
}
.fp-cmt-form input[type="text"]::placeholder { color: #64748b; }
.fp-cmt-form input[type="text"]:focus { border-color: var(--fp-azul); }
.fp-cmt-form__btn { flex: 0 0 auto; width: 40px; height: 40px; border: none; border-radius: 50%; background: var(--fp-azul); color: #fff; cursor: pointer; font-size: .9rem; }
.fp-cmt-form__btn:hover { filter: brightness(1.15); }

/* Contacto */
.fp-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 1000px) { .fp-contact-grid { grid-template-columns: 1fr; } }
.fp-contact-card { display: flex; gap: 28px; }
@media (max-width: 560px) { .fp-contact-card { flex-direction: column; align-items: center; text-align: center; } }
.fp-contact-logo { width: 150px; height: 150px; flex-shrink: 0; border-radius: 28px; background: #fff; padding: 14px; display: flex; align-items: center; justify-content: center; border: 4px solid #1e293b; overflow: hidden; }
.fp-contact-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fp-contact-logo--rep { background: #0f172a; }
.fp-contact-logo--rep img { width: 100%; height: 100%; object-fit: cover; }
.fp-contact-logo span { font-size: 3rem; font-weight: 900; color: #1e293b; }
.fp-contact-logo--rep span { color: #475569; }
.fp-contact-body { flex: 1; min-width: 0; }
.fp-eyebrow { font-size: .62rem; font-weight: 900; color: var(--fp-azul); text-transform: uppercase; letter-spacing: .3em; margin: 0 0 8px; }
.fp-eyebrow--azul { color: #60a5fa; letter-spacing: .12em; }
.fp-eyebrow--amber { color: var(--fp-amber); letter-spacing: .3em; }
.fp-contact-body h3 { font-size: 1.6rem; font-weight: 900; color: #fff; margin: 0 0 4px; text-transform: uppercase; letter-spacing: -.02em; }
.fp-contact-sub { color: #94a3b8; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 22px; }
.fp-vcard { display: flex; gap: 20px; align-items: center; padding: 20px; background: rgba(2,6,23,.5); border: 1px solid #1e293b; border-radius: 24px; }
@media (max-width: 560px) { .fp-vcard { flex-direction: column; } }
.fp-vcard__qr { padding: 10px; background: #fff; border-radius: 16px; flex-shrink: 0; }
.fp-vcard__qr img { display: block; }
.fp-vcard__txt { color: #cbd5e1; font-size: .75rem; line-height: 1.5; margin: 0 0 8px; opacity: .7; }
.fp-vcard__ok { display: flex; align-items: center; gap: 6px; font-size: .55rem; font-weight: 900; color: #34d399; text-transform: uppercase; letter-spacing: .12em; margin: 0; }
.fp-vcard__ok span { width: 7px; height: 7px; background: #34d399; border-radius: 50%; }
.fp-rep-data { display: flex; flex-direction: column; gap: 10px; }
.fp-rep-data p { margin: 0; color: #e2e8f0; font-size: .9rem; }
.fp-rep-data a { color: #60a5fa; }

/* Grids de contenido */
.fp-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.fp-doc { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 16px; background: var(--fp-card); border: 1px solid var(--fp-line); border-radius: 24px; transition: border-color .15s; }
.fp-doc:hover { border-color: rgba(59,130,246,.5); }
.fp-doc__ic { font-size: 2.4rem; }
.fp-doc__name { font-size: .72rem; color: #94a3b8; text-align: center; word-break: break-word; }
.fp-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.fp-video { aspect-ratio: 16/9; border-radius: 24px; overflow: hidden; border: 1px solid var(--fp-line); background: #000; }
.fp-video iframe { width: 100%; height: 100%; border: 0; }
.fp-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.fp-foto { aspect-ratio: 1; border-radius: 18px; overflow: hidden; border: 1px solid var(--fp-line); display: block; }
.fp-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.fp-foto:hover img { transform: scale(1.1); }
.fp-eventos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.fp-evento { display: flex; background: #0f172a; border: 1px solid var(--fp-line); border-radius: 28px; overflow: hidden; transition: border-color .15s; }
.fp-evento:hover { border-color: rgba(16,185,129,.5); }
.fp-evento__img { width: 110px; flex-shrink: 0; background: #020617; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.fp-evento__img img { width: 100%; height: 100%; object-fit: cover; }
.fp-evento__body { padding: 20px; }
.fp-evento__fecha { font-size: .6rem; color: #64748b; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.fp-evento__body h4 { color: #fff; font-size: 1.1rem; font-weight: 900; margin: 6px 0; text-transform: uppercase; letter-spacing: -.01em; }
.fp-evento__body p { color: #94a3b8; font-size: .78rem; margin: 0; }
.fp-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.fp-prod { background: var(--fp-card); border: 1px solid var(--fp-line); border-radius: 28px; padding: 16px; transition: border-color .15s; }
.fp-prod:hover { border-color: rgba(245,158,11,.5); }
.fp-prod__img { aspect-ratio: 1; background: #020617; border-radius: 18px; overflow: hidden; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; font-size: 2rem; border: 1px solid var(--fp-line); }
.fp-prod__img img { width: 100%; height: 100%; object-fit: cover; }
.fp-prod h4 { color: #fff; font-size: .9rem; font-weight: 900; margin: 0 0 4px; text-transform: uppercase; }
.fp-prod__tag { color: #64748b; font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 8px; }
.fp-prod__desc { color: #94a3b8; font-size: .72rem; margin: 0 0 8px; }
.fp-prod__precio { color: var(--fp-amber); font-weight: 900; margin: 0; }
.fp-recos { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.fp-recos__resumen { text-align: center; }
.fp-recos__avg { font-size: 3rem; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 8px; }
.fp-reco { display: flex; gap: 20px; }
.fp-reco__autor { width: 70px; height: 70px; flex-shrink: 0; border-radius: 18px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fp-reco__autor img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fp-reco__autor span { font-size: 1.3rem; font-weight: 900; color: #1e293b; }
.fp-reco__txt { color: #cbd5e1; font-size: .9rem; font-style: italic; margin: 8px 0; }
.fp-reco__nombre { color: #64748b; font-size: .72rem; font-weight: 800; text-transform: uppercase; margin: 0; }

/* ── Tarjetas de directorio (dir-card) — usadas en /directorio y /conexion ── */
.dir-badge        { display:inline-flex;align-items:center;gap:6px;font-size:.72rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--azul);background:#E6F1FB;border:1px solid #c5daef;padding:5px 13px;border-radius:999px;margin-bottom:14px; }
.dir-badge::before{ content:'';width:7px;height:7px;border-radius:50%;background:var(--azul);display:inline-block; }
/* Grid: sin padding propio — usa el del .contenido padre */
.dir-grid         { display:grid;grid-template-columns:repeat(5,1fr);gap:16px;align-items:start; }
@media(max-width:1100px){ .dir-grid{ grid-template-columns:repeat(4,1fr); } }
@media(max-width:860px) { .dir-grid{ grid-template-columns:repeat(3,1fr); } }
@media(max-width:600px) { .dir-grid{ grid-template-columns:repeat(2,1fr); } }
/* Tarjeta: altura fija para uniformidad visual */
.dir-card         { background:var(--tarjeta);border:1px solid var(--borde);border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:8px;height:320px;box-sizing:border-box;transition:transform .16s,box-shadow .16s,border-color .16s;text-decoration:none;color:inherit;overflow:hidden; }
.dir-card:hover   { transform:translateY(-4px);box-shadow:0 8px 28px rgba(11,39,66,.1);border-color:#c5daef; }
.dir-card__top    { display:flex;align-items:center;gap:10px;flex-shrink:0; }
/* Nombre: máx 2 líneas con ellipsis */
.dir-card__nom    { font-weight:700;font-size:.93rem;color:var(--navy);line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical; }
.dir-card__loc    { font-size:.76rem;color:var(--tenue);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.dir-card__cat    { flex-shrink:0;display:inline-block;font-size:.68rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:3px 10px;border-radius:999px;background:#EDF3FB;color:#0C447C;overflow:hidden;text-overflow:ellipsis;max-width:100%;white-space:nowrap; }
/* Descripción ocupa el espacio restante */
.dir-card__desc   { font-size:.81rem;color:var(--tenue);line-height:1.45;flex:1;min-height:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical; }
.dir-card__redes  { flex-shrink:0;display:flex;gap:5px;flex-wrap:nowrap;overflow:hidden; }
.dir-card__red    { width:20px;height:20px;border-radius:4px;overflow:hidden;opacity:.75;flex-shrink:0;transition:opacity .15s; }
.dir-card__red:hover{ opacity:1; }
.dir-card__red img{ width:100%;height:100%;object-fit:contain; }
.dir-card__btn    { flex-shrink:0;display:block;text-align:center;background:var(--fondo);border:1px solid var(--borde);border-radius:8px;padding:8px;font-size:.78rem;font-weight:700;color:var(--navy);transition:background .15s,border-color .15s; }
.dir-card:hover .dir-card__btn{ background:#E6F1FB;border-color:#c5daef;color:var(--azul); }
/* Paginación numerada */
.dir-pag          { display:flex;align-items:center;justify-content:center;gap:6px;margin:18px 0; }
.dir-pag a,.dir-pag span { min-width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:8px;font-size:.88rem;font-weight:600;border:1px solid var(--borde);color:var(--tenue);text-decoration:none;transition:all .15s; }
.dir-pag a:hover  { border-color:var(--azul);color:var(--azul); }
.dir-pag .activo  { background:var(--azul);border-color:var(--azul);color:#fff; }
.dir-pag .arr     { border:0;color:var(--tenue); }
.dir-pag .arr:hover{ color:var(--azul); }

/* ==========================================================================
   Panel de administración (/admin/*)
   ========================================================================== */

/* Navegación de secciones */
.admin-nav {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    background: var(--tarjeta); border: 1px solid var(--borde);
    border-radius: var(--radio); box-shadow: var(--sombra);
    padding: 8px; margin-bottom: 22px;
}
.admin-nav__item {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px; border-radius: var(--radio-sm);
    font-weight: 600; font-size: .92rem; color: var(--tenue);
    text-decoration: none; transition: all .15s;
}
.admin-nav__item svg { width: 18px; height: 18px; }
.admin-nav__item:hover { background: #EAF1FA; color: var(--azul); }
.admin-nav__item--activo { background: var(--navy); color: #fff; }
.admin-nav__item--activo:hover { background: var(--navy); color: #fff; }
.admin-nav__badge {
    margin-left: auto; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--lima-osc);
    background: #F0F6DE; padding: 5px 12px; border-radius: 999px;
}

/* Cabecera de sección */
.admin-cab { margin-bottom: 20px; }
.admin-cab h1 { margin: 0 0 4px; font-size: 1.7rem; }
.admin-cab--fila {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.admin-contadores { display: flex; gap: 12px; }
.admin-contador {
    background: var(--tarjeta); border: 1px solid var(--borde);
    border-radius: var(--radio-sm); box-shadow: var(--sombra);
    padding: 10px 20px; text-align: center; min-width: 92px;
}
.admin-contador__num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--texto); }
.admin-contador__etq { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.admin-contador__etq--ok { color: var(--color-ok); }
.admin-contador__etq--pend { color: #B77900; }

/* Tarjetas de estadística del panel */
.admin-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px;
}
.admin-stat {
    position: relative; overflow: hidden;
    background: var(--tarjeta); border: 1px solid var(--borde);
    border-radius: var(--radio); box-shadow: var(--sombra); padding: 20px 22px;
}
.admin-stat__barra { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.admin-stat__num { margin: 0; font-size: 2rem; font-weight: 800; line-height: 1; }
.admin-stat__etq { margin: 6px 0 2px; font-weight: 700; }
.admin-stat__sub { margin: 0; font-size: .82rem; color: var(--tenue); }

/* Accesos a módulos */
.admin-modulos {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px;
}
.admin-modulo {
    display: flex; flex-direction: column; gap: 6px;
    background: var(--tarjeta); border: 1px solid var(--borde);
    border-radius: var(--radio); box-shadow: var(--sombra);
    padding: 20px 22px; text-decoration: none; transition: all .15s;
}
.admin-modulo:hover { border-color: var(--azul); box-shadow: var(--sombra-fuerte); transform: translateY(-2px); }
.admin-modulo__nombre { font-weight: 800; font-size: 1.05rem; color: var(--texto); }
.admin-modulo__desc { font-size: .85rem; color: var(--tenue); flex: 1; }
.admin-modulo__ir { font-weight: 700; font-size: .85rem; color: var(--azul); }

/* Filtros */
.admin-filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-filtro {
    padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .85rem;
    text-decoration: none; color: var(--tenue);
    background: var(--tarjeta); border: 1px solid var(--borde); transition: all .15s;
}
.admin-filtro:hover { border-color: var(--azul); color: var(--azul); }
.admin-filtro--activo { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Mensaje flash */
.admin-flash {
    padding: 12px 18px; border-radius: var(--radio-sm); font-weight: 600;
    margin-bottom: 16px; border: 1px solid transparent;
}
.admin-flash--ok { background: #E7F6EC; color: var(--color-ok); border-color: #BFE6CC; }
.admin-flash--error { background: #FDEAEA; color: var(--color-error); border-color: #F3C7C7; }

/* Tabla */
.admin-tarjeta-tabla { padding: 0; overflow: hidden; }
.admin-tabla-wrap { overflow-x: auto; }
.admin-tabla { width: 100%; border-collapse: collapse; }
.admin-tabla th {
    text-align: left; font-size: .7rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--tenue);
    padding: 14px 16px; border-bottom: 1px solid var(--borde);
    background: #FAFBFD; white-space: nowrap;
}
.admin-tabla td { padding: 12px 16px; border-bottom: 1px solid var(--borde); vertical-align: middle; }
.admin-tabla tbody tr:last-child td { border-bottom: 0; }
.admin-tabla tbody tr:hover { background: #FAFBFD; }
.admin-th-der { text-align: right; }
.admin-td-tenue { color: var(--tenue); font-size: .85rem; white-space: nowrap; }

.admin-empresa { display: flex; align-items: center; gap: 10px; }
.admin-empresa__nom { display: block; font-weight: 700; font-size: .92rem; }
.admin-empresa__id { display: block; font-size: .72rem; color: var(--tenue); }
.admin-plan { font-weight: 700; font-size: .82rem; color: var(--azul); }
.admin-estado {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.admin-estado--ok { background: #E7F6EC; color: var(--color-ok); }
.admin-estado--pend { background: #FDF3E0; color: #B77900; }

/* Botones y acciones de fila */
.admin-acciones { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.admin-btn {
    display: inline-block; padding: 7px 14px; border-radius: 8px; border: 1px solid transparent;
    font-weight: 700; font-size: .78rem; cursor: pointer; transition: all .15s;
    font-family: var(--fuente); white-space: nowrap; list-style: none;
}
.admin-btn::-webkit-details-marker { display: none; }
.admin-btn--ok { background: #E7F6EC; color: var(--color-ok); border-color: #BFE6CC; }
.admin-btn--ok:hover { background: var(--color-ok); color: #fff; }
.admin-btn--peligro { background: #FDEAEA; color: var(--color-error); border-color: #F3C7C7; }
.admin-btn--peligro:hover { background: var(--color-error); color: #fff; }
.admin-btn--azul { background: #EAF1FA; color: var(--azul); border-color: #CFE1F5; }
.admin-btn--azul:hover { background: var(--azul); color: #fff; }
.admin-btn--gris { background: var(--fondo); color: var(--tenue); border-color: var(--borde); }
.admin-btn--gris:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Buscador */
.admin-busca {
    display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
    background: var(--tarjeta); border: 1px solid var(--borde);
    border-radius: var(--radio); box-shadow: var(--sombra); padding: 8px 14px;
}
.admin-busca svg { width: 20px; height: 20px; color: var(--tenue); flex: 0 0 auto; }
.admin-busca input { flex: 1; border: 0; outline: 0; font-size: .95rem; font-family: var(--fuente); background: transparent; color: var(--texto); }
.admin-busca .boton { flex: 0 0 auto; }

/* Formulario emergente (details) para reset y subcategorías */
.admin-reset { position: relative; display: inline-block; }
.admin-reset > summary { cursor: pointer; }
.admin-reset[open] > summary { background: var(--navy); color: #fff; border-color: var(--navy); }
.admin-reset__form {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
    display: flex; gap: 8px; align-items: center;
    background: var(--tarjeta); border: 1px solid var(--borde);
    border-radius: var(--radio-sm); box-shadow: var(--sombra-fuerte); padding: 12px;
}
.admin-reset__form--col { flex-direction: column; align-items: stretch; min-width: 240px; }
.admin-reset__form input[type="password"],
.admin-reset__form input[type="text"],
.admin-reset__form input[type="url"],
.admin-reset__form input[type="file"] {
    border: 1px solid var(--borde); border-radius: 8px; padding: 8px 10px;
    font-size: .88rem; font-family: var(--fuente); min-width: 180px; background: #fff; color: var(--texto);
}
.admin-reset__form input:focus { outline: 2px solid var(--azul-claro); outline-offset: 0; border-color: var(--azul); }

/* Crear categoría */
.admin-crear-cat { padding: 16px 18px; }
.admin-inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-inline-form input[type="text"] {
    flex: 1; min-width: 200px; border: 1px solid var(--borde); border-radius: var(--radio-sm);
    padding: 11px 14px; font-size: .95rem; font-family: var(--fuente); background: #fff; color: var(--texto);
}
.admin-inline-form input:focus { outline: 0; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(14,111,203,.15); }

/* Rejilla de categorías */
.admin-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.admin-cat {
    background: var(--tarjeta); border: 1px solid var(--borde);
    border-radius: var(--radio); box-shadow: var(--sombra); padding: 18px;
    display: flex; flex-direction: column; gap: 12px;
}
.admin-cat__cab { display: flex; align-items: center; gap: 12px; }
.admin-cat__img {
    width: 48px; height: 48px; border-radius: 12px; flex: 0 0 auto; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--fondo); color: var(--tenue);
}
.admin-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.admin-cat__img svg { width: 24px; height: 24px; }
.admin-cat__nom { display: block; font-weight: 800; font-size: 1rem; }
.admin-cat__meta { display: block; font-size: .78rem; color: var(--tenue); }
.admin-cat__subs { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-cat__vacio { margin: 0; font-size: .82rem; color: var(--tenue); font-style: italic; }
.admin-cat__acciones { display: flex; gap: 8px; margin-top: auto; }

@media (max-width: 900px) {
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .admin-modulos { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .admin-stats { grid-template-columns: 1fr; }
    .admin-reset__form { right: auto; left: 0; }
}

/* ---- Panel admin: rejilla de KPIs (estilo Next.js) ---- */
.admin-seccion-tit { margin: 26px 0 14px; font-size: 1.15rem; font-weight: 800; }
.admin-kpis {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-bottom: 8px;
}
.admin-kpi {
    position: relative; overflow: hidden; text-decoration: none;
    background: var(--tarjeta); border: 1px solid var(--borde);
    border-radius: var(--radio-sm); box-shadow: var(--sombra);
    padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 2px;
    transition: all .15s;
}
a.admin-kpi:hover { border-color: var(--azul); transform: translateY(-2px); box-shadow: var(--sombra-fuerte); }
.admin-kpi__barra { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.admin-kpi__num { font-size: 1.7rem; font-weight: 800; line-height: 1.05; color: var(--texto); }
.admin-kpi__etq { font-size: .7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--tenue); }

@media (max-width: 1100px) { .admin-kpis { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px)  { .admin-kpis { grid-template-columns: repeat(2, 1fr); } }

/* ---- Invitaciones VIP ---- */
.admin-inv-grid { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
.admin-inv-col { display: flex; flex-direction: column; gap: 16px; }
.admin-clave { padding: 18px; }
.admin-clave__lbl { margin: 0 0 8px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tenue); }
.admin-clave__box { display: flex; align-items: center; gap: 10px; }
.admin-clave__box code {
    flex: 1; font-family: ui-monospace, Menlo, monospace; font-size: 1.05rem; font-weight: 700;
    background: var(--fondo); border: 1px dashed var(--azul); color: var(--navy);
    border-radius: 8px; padding: 10px 14px; letter-spacing: .05em; word-break: break-all;
}
.admin-clave__nota { margin: 10px 0 0; font-size: .82rem; color: var(--tenue); }
.admin-clave__nota--warn { color: #B77900; }
.admin-clave__nota code { background: var(--fondo); border: 1px solid var(--borde); border-radius: 5px; padding: 1px 6px; font-size: .85em; }

.admin-form-tit { margin: 0 0 14px; font-size: 1.05rem; font-weight: 800; }
.admin-form-vert { display: flex; flex-direction: column; gap: 12px; }
.admin-campo { display: flex; flex-direction: column; gap: 5px; }
.admin-campo > span { font-size: .8rem; font-weight: 700; color: var(--texto); }
.admin-campo input, .admin-campo select {
    border: 1px solid var(--borde); border-radius: var(--radio-sm);
    padding: 10px 12px; font-size: .92rem; font-family: var(--fuente);
    background: #fff; color: var(--texto);
}
.admin-campo input:focus, .admin-campo select:focus {
    outline: 0; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(14,111,203,.15);
}
.admin-reset__hint { font-size: .78rem; color: var(--tenue); font-weight: 600; }

@media (max-width: 820px) { .admin-inv-grid { grid-template-columns: 1fr; } }
