/*
|--------------------------------------------------------------------------
| CDSP EVENTOS - ESTILOS PRINCIPALES
|--------------------------------------------------------------------------
| Archivo: eventos.css
| Ruta: /public_html/cdsp-eventos/assets/css/eventos.css
| Funcion: Diseno visual principal del modulo CDSP Eventos.
| Fecha de actualizacion: 2026-05-22 01:55 AM
|
| Directrices:
| - Pantalla ancha.
| - Sin sidebar.
| - Estilo diferente a otros modulos.
| - Paleta CDSP con naranja del escudo.
| - Compatible con editores antiguos.
| - Usa imagen real de CDSP en el hero con URL absoluta.
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f8f5ef;
    color: #07142f;
}

a {
    color: inherit;
    text-decoration: none;
}

.eventos-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255, 106, 0, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(11, 52, 109, 0.12), transparent 32%),
        #f8f5ef;
}

/* Topbar */

.eventos-topbar {
    width: 100%;
    min-height: 92px;
    padding: 14px 42px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(7, 20, 47, 0.10);
    box-shadow: 0 14px 35px rgba(7, 20, 47, 0.06);
    display: grid;
    grid-template-columns: 280px 1fr auto;
    align-items: center;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand-zone {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-symbol {
    width: 58px;
    height: 58px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ff6a00, #ff9d3d);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 12px 30px rgba(255, 106, 0, 0.28);
}

.brand-zone strong {
    display: block;
    font-size: 25px;
    line-height: 1;
    letter-spacing: -0.05em;
    color: #07142f;
}

.brand-zone span {
    display: block;
    margin-top: 4px;
    color: #ff6a00;
    font-size: 14px;
    font-weight: 800;
}

.eventos-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.eventos-nav a {
    padding: 14px 17px;
    border-radius: 18px;
    color: #101d3d;
    font-size: 15px;
    font-weight: 800;
    position: relative;
}

.eventos-nav a.active {
    color: #ff6a00;
    background: rgba(255, 106, 0, 0.08);
}

.eventos-nav a.active:after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -14px;
    height: 4px;
    border-radius: 999px;
    background: #ff6a00;
}

.user-zone {
    display: flex;
    align-items: center;
    gap: 12px;
}

.round-btn {
    border: 0;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #f0f2f7;
    color: #07142f;
    font-weight: 900;
    cursor: pointer;
}

.admin-pill {
    min-width: 190px;
    padding: 9px 13px;
    border-radius: 22px;
    background: #f5f6fa;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #07142f;
}

.avatar-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #07142f;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.admin-pill small {
    display: block;
    color: #65718a;
    font-size: 12px;
    margin-top: 2px;
}

.is-disabled {
    opacity: 0.78;
    cursor: not-allowed;
}

/* Main */

.eventos-main {
    width: calc(100% - 84px);
    max-width: 1780px;
    margin: 0 auto;
    padding: 34px 0 60px 0;
}

/* Hero */

.hero-eventos {
    min-height: 470px;
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 28px;
    align-items: stretch;
    border-radius: 34px;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(255,255,255,0.98) 0%, rgba(255,248,238,0.96) 48%, rgba(255,106,0,0.08) 100%);
    border: 1px solid rgba(7, 20, 47, 0.10);
    box-shadow: 0 26px 70px rgba(7, 20, 47, 0.10);
}

.hero-copy {
    padding: 58px 58px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome {
    margin: 0 0 12px 0;
    color: #ff6a00;
    font-weight: 900;
    font-size: 17px;
}

.hero-copy h1 {
    margin: 0;
    max-width: 780px;
    font-size: 60px;
    line-height: 0.98;
    letter-spacing: -0.07em;
    color: #07142f;
}

.hero-text {
    max-width: 680px;
    margin: 24px 0 0 0;
    color: #465575;
    font-size: 18px;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn-orange,
.btn-white {
    min-height: 54px;
    padding: 17px 26px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-orange {
    background: linear-gradient(135deg, #ff6a00, #ff8c1a);
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(255, 106, 0, 0.28);
}

.btn-white {
    background: #ffffff;
    color: #07142f;
    border: 1px solid rgba(7, 20, 47, 0.10);
}

/* Imagen grande del dashboard */

.hero-visual {
    position: relative;
    min-height: 470px;
    padding: 30px 36px 30px 0;
    display: flex;
    align-items: center;
}

.hero-photo {
    width: 100%;
    height: 410px;
    border-radius: 44px 0 0 44px;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(135deg, rgba(255, 106, 0, 0.30), rgba(7, 20, 47, 0.38)),
        url("https://casadesupresencia.org/cdsp-eventos/assets/img/sistema/cdsp-eventos-hero.webp");
    background-size: cover;
    background-position: center center;
    box-shadow: 0 26px 60px rgba(7, 20, 47, 0.20);
}

.photo-overlay {
    position: absolute;
    left: 34px;
    bottom: 34px;
    right: 34px;
    max-width: 520px;
    padding: 23px 26px;
    border-radius: 26px;
    background: rgba(7, 20, 47, 0.58);
    color: #ffffff;
}

.photo-overlay strong {
    display: block;
    font-size: 30px;
    margin-bottom: 6px;
}

.photo-overlay span {
    color: rgba(255,255,255,0.86);
    font-size: 15px;
}

.status-floating {
    position: absolute;
    right: 46px;
    top: 48px;
    width: 320px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 55px rgba(7, 20, 47, 0.18);
    border: 1px solid rgba(7, 20, 47, 0.08);
}

.status-floating h3 {
    margin: 0 0 14px 0;
    font-size: 21px;
}

.status-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-top: 1px solid rgba(7, 20, 47, 0.08);
}

.status-line span {
    color: #33415f;
    font-size: 14px;
    font-weight: 700;
}

.status-line strong {
    min-width: 45px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ff6a00;
    color: #ffffff;
    text-align: center;
}

/* Instalacion */

.install-note {
    margin-top: 20px;
    padding: 17px 22px;
    border-radius: 24px;
    background: rgba(255, 106, 0, 0.10);
    border: 1px solid rgba(255, 106, 0, 0.18);
    color: #7f3900;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Metricas */

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.metric-card {
    min-height: 118px;
    padding: 22px 24px;
    border-radius: 28px;
    border: 1px solid rgba(7, 20, 47, 0.08);
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(7, 20, 47, 0.08);
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
}

.metric-card.orange {
    background: linear-gradient(135deg, #ffffff, #fff0e4);
}

.metric-card.blue {
    background: linear-gradient(135deg, #ffffff, #eaf3ff);
}

.metric-card.green {
    background: linear-gradient(135deg, #ffffff, #eafaf1);
}

.metric-card.purple {
    background: linear-gradient(135deg, #ffffff, #f2edff);
}

.metric-icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    flex: 0 0 auto;
}

.orange .metric-icon {
    background: linear-gradient(135deg, #ff6a00, #ff9d3d);
}

.blue .metric-icon {
    background: linear-gradient(135deg, #1a6fff, #59a7ff);
}

.green .metric-icon {
    background: linear-gradient(135deg, #0f9b58, #37d07f);
}

.purple .metric-icon {
    background: linear-gradient(135deg, #7d4dff, #a77cff);
}

.metric-card strong {
    display: block;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.06em;
    color: #07142f;
}

.metric-card span {
    display: block;
    margin-top: 5px;
    color: #17243f;
    font-weight: 800;
}

.metric-card small {
    display: block;
    margin-top: 10px;
    color: #ff6a00;
    font-weight: 900;
}

/* Grid dashboard */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.85fr 0.7fr;
    gap: 20px;
    margin-top: 20px;
}

.panel-card {
    background: #ffffff;
    border: 1px solid rgba(7, 20, 47, 0.08);
    border-radius: 30px;
    box-shadow: 0 22px 60px rgba(7, 20, 47, 0.08);
    padding: 26px;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-kicker {
    display: block;
    color: #ff6a00;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 4px;
}

.panel-header h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.panel-link {
    color: #ff6a00;
    font-weight: 900;
    font-size: 14px;
}

/* Eventos */

.events-table {
    display: grid;
    gap: 10px;
}

.event-item {
    display: grid;
    grid-template-columns: 88px 1fr 105px 100px;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: 22px;
    background: #fbfcff;
    border: 1px solid rgba(7, 20, 47, 0.07);
}

.event-image {
    width: 88px;
    height: 62px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff1e7;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ff6a00, #07142f);
    color: #ffffff;
    font-weight: 900;
}

.event-main strong {
    display: block;
    color: #07142f;
    font-size: 16px;
}

.event-main span,
.event-main small {
    display: block;
    margin-top: 4px;
    color: #53627e;
    font-size: 13px;
}

.event-count strong {
    display: block;
    color: #07142f;
    font-size: 15px;
}

.event-count span {
    color: #65718a;
    font-size: 12px;
}

.state-pill {
    display: inline-flex;
    justify-content: center;
    min-width: 82px;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    background: #eef2f7;
    color: #45536d;
}

.state-pill.abierto {
    background: #dff8ea;
    color: #0f7f48;
}

.state-pill.borrador {
    background: #fff0d5;
    color: #935700;
}

.state-pill.cerrado,
.state-pill.finalizado {
    background: #edf0f4;
    color: #65718a;
}

.state-pill.lleno {
    background: #ffe5e1;
    color: #a52317;
}

/* Empty */

.empty-box {
    min-height: 270px;
    padding: 34px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255,106,0,0.09), rgba(7,20,47,0.04));
    border: 1px dashed rgba(7, 20, 47, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.empty-badge {
    display: inline-flex;
    padding: 9px 14px;
    border-radius: 999px;
    background: #ff6a00;
    color: #ffffff;
    font-weight: 900;
    margin-bottom: 18px;
}

.empty-box h3 {
    margin: 0 0 8px 0;
    font-size: 26px;
}

.empty-box p {
    margin: 0;
    max-width: 620px;
    color: #53627e;
    line-height: 1.6;
}

/* Acciones */

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.action-tile {
    min-height: 118px;
    padding: 20px;
    border-radius: 26px;
    border: 1px solid rgba(7, 20, 47, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.action-tile strong {
    display: block;
    color: #07142f;
    font-size: 16px;
}

.action-tile span {
    display: block;
    margin-top: 5px;
    color: #65718a;
    font-size: 13px;
}

.orange-soft {
    background: #fff0e4;
}

.blue-soft {
    background: #eaf3ff;
}

.purple-soft {
    background: #f2edff;
}

.green-soft {
    background: #eafaf1;
}

.cream-soft {
    background: #fff8ea;
}

.red-soft {
    background: #fff0ee;
}

/* Actividad */

.activity-list {
    display: grid;
    gap: 16px;
}

.activity-item {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 12px;
    align-items: center;
}

.activity-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: block;
    background: #eef2f7;
}

.activity-dot.success {
    background: #dff8ea;
}

.activity-dot.blue {
    background: #eaf3ff;
}

.activity-dot.orange {
    background: #fff0e4;
}

.activity-dot.purple {
    background: #f2edff;
}

.activity-item strong {
    display: block;
    font-size: 14px;
    color: #07142f;
}

.activity-item small {
    display: block;
    margin-top: 3px;
    color: #65718a;
    font-size: 12px;
}

.activity-item time {
    color: #65718a;
    font-size: 12px;
}

/* Modo oscuro */

html[data-theme="dark"] body {
    background: #07142f;
    color: #edf4ff;
}

html[data-theme="dark"] .eventos-shell {
    background:
        radial-gradient(circle at top left, rgba(255,106,0,0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(78,155,255,0.12), transparent 32%),
        #07142f;
}

html[data-theme="dark"] .eventos-topbar,
html[data-theme="dark"] .panel-card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .status-floating {
    background: #0d1d3a;
    color: #edf4ff;
    border-color: rgba(255,255,255,0.10);
}

html[data-theme="dark"] .hero-eventos {
    background:
        linear-gradient(115deg, rgba(13,29,58,0.98) 0%, rgba(19,41,78,0.98) 48%, rgba(255,106,0,0.12) 100%);
    border-color: rgba(255,255,255,0.10);
}

html[data-theme="dark"] .brand-zone strong,
html[data-theme="dark"] .hero-copy h1,
html[data-theme="dark"] .panel-header h2,
html[data-theme="dark"] .metric-card strong,
html[data-theme="dark"] .metric-card span,
html[data-theme="dark"] .event-main strong,
html[data-theme="dark"] .event-count strong,
html[data-theme="dark"] .action-tile strong,
html[data-theme="dark"] .activity-item strong,
html[data-theme="dark"] .status-floating h3,
html[data-theme="dark"] .empty-box h3 {
    color: #edf4ff;
}

html[data-theme="dark"] .hero-text,
html[data-theme="dark"] .event-main span,
html[data-theme="dark"] .event-main small,
html[data-theme="dark"] .event-count span,
html[data-theme="dark"] .action-tile span,
html[data-theme="dark"] .activity-item small,
html[data-theme="dark"] .activity-item time,
html[data-theme="dark"] .status-line span,
html[data-theme="dark"] .empty-box p {
    color: #aebbd0;
}

html[data-theme="dark"] .admin-pill,
html[data-theme="dark"] .round-btn,
html[data-theme="dark"] .event-item,
html[data-theme="dark"] .empty-box {
    background: #11284a;
    color: #edf4ff;
    border-color: rgba(255,255,255,0.10);
}

html[data-theme="dark"] .eventos-nav a {
    color: #dce8ff;
}

html[data-theme="dark"] .eventos-nav a.active {
    background: rgba(255,106,0,0.16);
    color: #ff9d3d;
}

/* Responsivo */

@media (max-width: 1300px) {
    .eventos-topbar {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .eventos-nav {
        justify-content: flex-start;
    }

    .user-zone {
        justify-content: flex-start;
    }

    .hero-eventos {
        grid-template-columns: 1fr;
    }

    .hero-photo {
        border-radius: 30px;
        height: 420px;
    }

    .status-floating {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        margin-top: 18px;
    }

    .hero-visual {
        display: block;
        padding: 22px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-copy h1 {
        font-size: 46px;
    }

    .event-item {
        grid-template-columns: 80px 1fr;
    }

    .event-count,
    .event-status {
        grid-column: 2 / 3;
    }
}

@media (max-width: 680px) {
    .eventos-topbar {
        padding: 14px 16px;
    }

    .eventos-main {
        width: calc(100% - 24px);
    }

    .brand-zone strong {
        font-size: 21px;
    }

    .hero-copy {
        padding: 32px 24px;
    }

    .hero-copy h1 {
        font-size: 36px;
        line-height: 1.02;
    }

    .hero-visual {
        padding: 18px;
    }

    .hero-photo {
        height: 300px;
        border-radius: 28px;
    }

    .photo-overlay {
        left: 18px;
        right: 18px;
        bottom: 18px;
        padding: 18px;
    }

    .photo-overlay strong {
        font-size: 22px;
    }

    .metric-grid,
    .action-grid {
        grid-template-columns: 1fr;
    }

    .admin-pill {
        min-width: auto;
    }
}