/* ===== VARIABLES GLOBALES ===== */
:root {
    --zg-primary: #0b5fff;
    --zg-primary-dark: #0a4ad4;
    --zg-dark: #0b1220;
    --zg-dark-soft: #0a1a3a;
    --zg-text-muted: #6b7280;
    --zg-success: #16a34a;
    --zg-warning: #f59e0b;
    --zg-danger: #dc2626;
    --zg-radius: 14px;
}

/* ===== ESTILOS GLOBALES ===== */
html, body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f0f4ff;
    margin: 0;
    padding: 0;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f0f4ff;
}

/* =========================================================
   HEADER
   ========================================================= */
.app-header {
    background: #0b1220;
    border-bottom: 3px solid #0b5fff;
    padding: 0.8rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(11, 95, 255, 0.15);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================================
   LOGO
   ========================================================= */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    transition: opacity 0.2s;
}

    .logo:hover {
        opacity: 0.9;
        color: white;
    }

.logo-image {
    height: 42px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.08));
}

.logo > span {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.logo .highlight {
    background: linear-gradient(135deg, #0b5fff, #3b7dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================================
   HEADER ACTIONS
   ========================================================= */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-header {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

    .btn-header:hover {
        color: white;
        background: rgba(11, 95, 255, 0.15);
    }

    .btn-header.active {
        color: white;
        background: rgba(11, 95, 255, 0.2);
    }

.btn-login {
    background: linear-gradient(135deg, #0b5fff, #1a3a8a);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(11, 95, 255, 0.4);
        background: linear-gradient(135deg, #1a6aff, #2a4a9a);
    }

/* =========================================================
   MAIN
   ========================================================= */
.app-main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
.app-footer {
    background: #0b1220;
    color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(11, 95, 255, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

    .footer-links a {
        text-decoration: none;
        transition: color 0.2s;
    }

        .footer-links a:hover {
            color: #0b5fff !important;
        }

.text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* =========================================================
   BOTONES
   ========================================================= */
.zg-btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.zg-btn-primary {
    background: linear-gradient(135deg, #0b5fff, #1a3a8a);
    color: #fff;
    box-shadow: 0 4px 15px rgba(11, 95, 255, 0.3);
}

    .zg-btn-primary:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(11, 95, 255, 0.4);
    }

    .zg-btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

.zg-btn-block {
    width: 100%;
    text-align: center;
}

.zg-btn-outline-light {
    background: transparent;
    border: 1.5px solid rgba(11, 95, 255, 0.5);
    color: #fff;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

    .zg-btn-outline-light:hover {
        border-color: #0b5fff;
        background: rgba(11, 95, 255, 0.1);
    }

.zg-btn-link-danger {
    background: none;
    border: none;
    color: #7ba3ff;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

/* =========================================================
   LOADING
   ========================================================= */
.zg-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 0.75rem;
    text-align: center;
    color: #6b7280;
}

.zg-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #0b5fff;
    border-radius: 50%;
    animation: zg-spin 0.8s linear infinite;
}

@keyframes zg-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   HERO - PÁGINA PRINCIPAL
   ========================================================= */
.zg-page-hero {
    background: linear-gradient(135deg, #0b1220 0%, #0a1a3a 40%, #0b5fff 100%);
    color: #fff;
    padding: 4rem 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

    .zg-page-hero::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 60%;
        height: 200%;
        background: radial-gradient(circle, rgba(11, 95, 255, 0.1) 0%, transparent 70%);
        pointer-events: none;
    }

    .zg-page-hero .zg-hero-content {
        max-width: 900px;
        margin: 0 auto;
        text-align: center;
        position: relative;
        z-index: 1;
    }

    .zg-page-hero h1:focus-visible {
        outline: none;
    }

.zg-badge:focus-visible {
    outline: none;
}
.zg-hero h1:focus-visible {
    outline: none;
}

.zg-hero-badge {
    display: inline-block;
    background: rgba(11, 95, 255, 0.2);
    border: 1px solid rgba(11, 95, 255, 0.3);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: #7ba3ff;
}

.zg-page-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin: 0 0 1rem;
    line-height: 1.1;
}

.zg-page-hero .highlight {
    background: linear-gradient(135deg, #0b5fff, #7ba3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.zg-page-hero p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    opacity: 0.85;
    margin: 0 0 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.zg-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #0b5fff;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* =========================================================
   HOME - LISTA DE EVENTOS
   ========================================================= */
.zg-home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.zg-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .zg-section-header h2 {
        font-size: 2rem;
        font-weight: 800;
        color: #0b1220;
        margin: 0 0 0.3rem;
    }

    .zg-section-header p {
        color: #6b7280;
        margin: 0;
    }

.zg-empty {
    text-align: center;
    color: #6b7280;
    padding: 4rem 0;
}

.zg-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.zg-event-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5edff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    .zg-event-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 40px rgba(11, 95, 255, 0.15);
        border-color: #0b5fff;
        text-decoration: none;
        color: inherit;
    }

.zg-event-card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    background-color: #e5edff;
    position: relative;
}

.zg-event-card-body {
    padding: 1.2rem 1.2rem 1.4rem;
}

.zg-event-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0b5fff;
    background: #e8eeff;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.zg-event-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0b1220;
}

.zg-event-date,
.zg-event-location {
    margin: 0.2rem 0;
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

    .zg-event-date i,
    .zg-event-location i {
        font-size: 0.9rem;
        color: #0b5fff;
    }

.zg-pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.zg-pill-success {
    background: rgba(22, 163, 74, 0.15);
    color: #15803d;
    backdrop-filter: blur(4px);
}

.zg-pill-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #b45309;
    backdrop-filter: blur(4px);
}

.zg-pill-danger {
    background: rgba(220, 38, 38, 0.2);
    color: #b91c1c;
    backdrop-filter: blur(4px);
}

/* =========================================================
   EVENTOS PASADOS
   ========================================================= */
.zg-section-header-pasados {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(11, 95, 255, 0.15);
}

    .zg-section-header-pasados h2 {
        color: #6b7280;
    }

    .zg-section-header-pasados p {
        color: #9ca3af;
    }

.zg-event-card-pasado {
    opacity: 0.75;
    filter: grayscale(0.2);
    transition: all 0.3s ease;
}

    .zg-event-card-pasado:hover {
        opacity: 1;
        filter: grayscale(0);
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    }

.zg-card-badge-pasado {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.zg-pill-pasado {
    background: rgba(107, 114, 128, 0.85);
    color: #fff;
    backdrop-filter: blur(4px);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* =========================================================
   HERO - DETALLE DEL EVENTO
   ========================================================= */
.zg-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    padding: 3rem 1.5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.zg-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0b1220 0%, #0a1a3a 40%, #0b5fff 100%);
    z-index: 1;
}

.zg-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    color: #fff;
}

.zg-badge {
    display: inline-block;
    background: rgba(11, 95, 255, 0.3);
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
    border: 1px solid rgba(11, 95, 255, 0.3);
}

.zg-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    margin: 0 0 0.4rem;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.zg-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 1.5rem;
    max-width: 620px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

/* =========================================================
   FECHA Y UBICACIÓN - ALINEADOS (FECHA IZQUIERDA, UBICACIÓN DERECHA)
   ========================================================= */
.zg-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem 1.5rem;
    margin-bottom: 0.5rem;
}

.zg-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    flex: 0 1 auto;
    min-width: 180px;
}

    .zg-meta-item div {
        display: flex;
        flex-direction: column;
        line-height: 1.3;
    }

    .zg-meta-item strong {
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
        font-weight: 700;
        font-size: 0.95rem;
    }

    .zg-meta-item small {
        opacity: 0.8;
        font-size: 0.8rem;
        font-weight: 400;
    }

.zg-meta-icon {
    font-size: 1.4rem;
    line-height: 1.4;
    flex-shrink: 0;
}

/* =========================================================
   DIRECCIÓN - ENLACE A GOOGLE MAPS
   ========================================================= */
.zg-direccion {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 380px;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.85;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.2s ease;
}

    .zg-direccion:hover {
        opacity: 1;
        color: #7ba3ff;
        text-decoration: underline;
    }

    .zg-direccion i {
        transition: transform 0.2s ease;
    }

    .zg-direccion:hover i {
        transform: translate(2px, -2px);
    }

.zg-direccion-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    min-width: 0;
}

/* Tooltip */
.zg-direccion[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    background: #0b1220;
    color: #fff;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: normal;
    max-width: 380px;
    min-width: 180px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(11, 95, 255, 0.25);
    z-index: 100;
    line-height: 1.5;
    text-align: left;
    pointer-events: none;
    word-break: break-word;
}

.zg-direccion[title]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 6px);
    right: 20px;
    border: 6px solid transparent;
    border-top-color: #0b1220;
    z-index: 100;
}

/* =========================================================
   CONTENIDO DEL EVENTO
   ========================================================= */
.zg-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    color: #1f2430;
}

.zg-section {
    margin-top: 3rem;
}

    .zg-section h2 {
        font-size: 1.5rem;
        font-weight: 800;
        margin-bottom: 1rem;
        color: #0b1220;
    }

.zg-description {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    line-height: 1.8;
    font-size: 1rem;
    color: #374151;
}

/* =========================================================
   AFORO
   ========================================================= */
.zg-capacity-card {
    margin-top: -70px;
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: var(--zg-radius);
    box-shadow: 0 12px 30px rgba(11, 95, 255, 0.12);
    padding: 1.3rem 1.5rem;
}

.zg-capacity-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.9rem;
}

    .zg-capacity-info strong {
        font-size: 1.05rem;
    }

    .zg-capacity-info span {
        color: var(--zg-text-muted);
        font-size: 0.9rem;
    }

.zg-capacity-card.is-alert .zg-capacity-info strong {
    color: var(--zg-warning);
}

.zg-capacity-card.is-full .zg-capacity-info strong {
    color: var(--zg-danger);
}

.zg-progress-track {
    width: 100%;
    height: 10px;
    background: #eef0f4;
    border-radius: 999px;
    overflow: hidden;
}

.zg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0b5fff, #3b7dff);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.zg-capacity-card.is-alert .zg-progress-fill {
    background: linear-gradient(90deg, var(--zg-warning), #fca311);
}

.zg-capacity-card.is-full .zg-progress-fill {
    background: var(--zg-danger);
}

/* =========================================================
   GALERÍA
   ========================================================= */
.zg-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
}

.zg-gallery-item {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    background-color: #e5e7eb;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .zg-gallery-item:hover {
        transform: scale(1.03);
    }

/* =========================================================
   MODAL DE IMAGEN (LIGHTBOX / GALERÍA)
   ========================================================= */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background-color: rgba(5, 10, 20, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    user-select: none;
}

.image-modal-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
}

.image-modal-content {
    max-width: 85vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.zg-modal-fade {
    animation: modalImgFade 0.25s ease-out;
}

@keyframes modalImgFade {
    from {
        opacity: 0.3;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.image-modal-close:hover {
    background: rgba(239, 68, 68, 0.85);
    border-color: rgba(239, 68, 68, 1);
    color: #fff;
    transform: rotate(90deg) scale(1.05);
}

.image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.image-modal-nav:hover {
    background: var(--zg-primary, #0b5fff);
    border-color: #3b82f6;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(11, 95, 255, 0.6);
}

.image-modal-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.image-modal-prev {
    left: 25px;
}

.image-modal-next {
    right: 25px;
}

.image-modal-counter {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .image-modal-nav {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    .image-modal-prev {
        left: 10px;
    }
    .image-modal-next {
        right: 10px;
    }
    .image-modal-close {
        top: 15px;
        right: 15px;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .image-modal-content {
        max-width: 92vw;
        max-height: 75vh;
    }
    .image-modal-counter {
        bottom: -30px;
        font-size: 0.75rem;
    }
}

/* =========================================================
   FORMULARIO DE REGISTRO
   ========================================================= */
.zg-register-section {
    background: #0b1220;
    color: #fff;
    border-radius: var(--zg-radius);
    padding: 2.2rem;
    border: 1px solid rgba(11, 95, 255, 0.2);
}

    .zg-register-section h2 {
        color: #fff;
    }

.zg-register-hint {
    color: #b7bdcc;
    margin-bottom: 1.5rem;
}

.zg-form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.zg-form-hint {
    display: block;
    text-align: center;
    color: #ffb86b;
    font-size: 0.8rem;
}

/* =========================================================
   PERSONAS SELECTOR
   ========================================================= */
.zg-personas-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    background: rgba(11, 95, 255, 0.08);
    border: 1px solid rgba(11, 95, 255, 0.25);
    border-radius: 12px;
}

    .zg-personas-selector label {
        display: block;
        font-weight: 700;
        color: #fff;
        margin-bottom: 0.15rem;
    }

    .zg-personas-selector small {
        color: #9da7bc;
        font-size: 0.8rem;
    }

.zg-personas-select {
    min-width: 170px;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(11, 95, 255, 0.4);
    background: #0b1220;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
}

    .zg-personas-select:focus {
        outline: none;
        border-color: #0b5fff;
        box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.2);
    }

/* =========================================================
   INVITADOS
   ========================================================= */
.zg-invitado-card {
    background: #0a1a3a;
    border: 1px solid rgba(11, 95, 255, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.zg-invitado-principal {
    border-left: 4px solid #0b5fff;
    background: rgba(11, 95, 255, 0.05);
}

.zg-invitado-acompanante {
    border-left: 4px solid #3b7dff;
    background: rgba(59, 125, 255, 0.05);
}

.zg-invitado-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
    color: #7ba3ff;
}

    .zg-invitado-card-header i {
        margin-right: 0.5rem;
    }

.zg-invitado-badge {
    font-size: 0.7rem;
    background: rgba(11, 95, 255, 0.15);
    color: #7ba3ff;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-weight: 600;
}

.zg-invitado-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(11, 95, 255, 0.15);
    color: #7ba3ff;
    font-size: 0.75rem;
}

/* =========================================================
   CAMPOS DEL FORMULARIO
   ========================================================= */
.zg-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.zg-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.zg-field-full {
    grid-column: 1 / -1;
}

.zg-field label {
    font-weight: 600;
    font-size: 0.85rem;
}

.zg-field input {
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(11, 95, 255, 0.3);
    background: #0b1220;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
}

    .zg-field input:focus {
        outline: none;
        border-color: #0b5fff;
        box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.25);
    }

    .zg-field input::placeholder {
        color: #5a6280;
    }

.zg-field-error {
    color: #ff8a8a;
    font-size: 0.75rem;
}

/* =========================================================
   ALERTAS
   ========================================================= */
.zg-alert {
    padding: 1rem 1.2rem;
    border-radius: 10px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.zg-alert-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.zg-alert-success {
    background: rgba(22, 163, 74, 0.15);
    border: 1px solid #16a34a;
    color: #d1fae5;
}

.zg-alert-danger {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid #dc2626;
    color: #fecaca;
}

.zg-alert-info {
    background: rgba(11, 95, 255, 0.12);
    border: 1px solid rgba(11, 95, 255, 0.3);
    color: #b7d0ff;
}

.zg-alert p {
    margin: 0.25rem 0 0;
}

.zg-validation-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0.9rem 1.1rem;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid var(--zg-danger);
    border-radius: 10px;
    color: #ff8a8a;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* =========================================================
   ANIMACIÓN
   ========================================================= */
@keyframes zg-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
    .zg-hero {
        min-height: 280px;
        padding: 2rem 1rem;
    }

        .zg-hero h1 {
            font-size: 2rem;
        }

    .zg-container {
        padding: 1.5rem 1rem 3rem;
    }

    .zg-capacity-card {
        margin-top: -50px;
        padding: 1rem 1.2rem;
    }

    .zg-register-section {
        padding: 1.5rem;
    }

    .zg-direccion {
        max-width: 280px;
        font-size: 0.75rem;
    }

        .zg-direccion[title]:hover::after {
            max-width: 300px;
            min-width: 160px;
            font-size: 0.7rem;
            padding: 0.6rem 0.8rem;
        }
}

@media (max-width: 768px) {
    .app-header {
        padding: 0.6rem 1rem;
    }

    .logo-image {
        height: 34px;
        max-width: 155px;
    }

    .logo > span {
        font-size: 1.1rem;
    }

    .btn-header span {
        display: none;
    }

    .btn-header {
        padding: 0.4rem 0.7rem;
    }

    .btn-login {
        padding: 0.4rem 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .zg-page-hero {
        padding: 2.5rem 1rem;
    }

    .zg-hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .zg-home-container {
        padding: 0 1rem 2rem;
    }

    .zg-section-header h2 {
        font-size: 1.5rem;
    }

    .zg-event-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .zg-event-card-img {
        height: 250px;
    }

    .zg-hero {
        min-height: 240px;
        padding: 1.5rem 1rem;
    }

        .zg-hero h1 {
            font-size: 1.6rem;
        }

    .zg-subtitle {
        font-size: 0.95rem;
    }

    .zg-hero-meta {
        flex-direction: column;
        gap: 0.6rem;
        align-items: stretch;
    }

    .zg-meta-item {
        flex: 1;
        min-width: 0;
    }

        .zg-meta-item strong {
            font-size: 0.85rem;
        }

        .zg-meta-item small {
            font-size: 0.75rem;
        }

    .zg-meta-icon {
        font-size: 1.1rem;
    }

    .zg-direccion {
        max-width: 260px;
        font-size: 0.7rem;
    }

        .zg-direccion[title]:hover::after {
            max-width: 280px;
            min-width: 140px;
            font-size: 0.65rem;
            padding: 0.5rem 0.7rem;
            right: -10px;
        }

        .zg-direccion[title]:hover::before {
            right: 10px;
        }

    .zg-description {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .zg-container {
        padding: 1rem 0.8rem 2rem;
    }

    .zg-capacity-card {
        margin-top: -40px;
        padding: 0.8rem 1rem;
    }

    .zg-capacity-info strong {
        font-size: 0.95rem;
    }

    .zg-section {
        margin-top: 2rem;
    }

        .zg-section h2 {
            font-size: 1.2rem;
        }

    .zg-gallery {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.5rem;
    }

    .zg-register-section {
        padding: 1.2rem;
    }

    .zg-form-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .zg-field input {
        padding: 0.6rem 0.7rem;
        font-size: 0.9rem;
    }

    .zg-invitado-card {
        padding: 0.8rem;
    }

    .zg-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .zg-personas-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .zg-personas-select {
        width: 100%;
    }

    .zg-section-header-pasados {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 0.45rem 0.7rem;
    }

    .logo-image {
        height: 29px;
        max-width: 125px;
    }

    .logo > span {
        font-size: 0.95rem;
    }

    .header-actions {
        gap: 0.4rem;
    }

    .btn-header {
        padding: 0.3rem 0.6rem;
    }

    .btn-login {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }

    .zg-page-hero {
        padding: 2rem 0.8rem;
    }

    .zg-hero-stats {
        gap: 1rem;
        flex-direction: column;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .zg-home-container {
        padding: 0 0.8rem 1.5rem;
    }

    .zg-section-header h2 {
        font-size: 1.2rem;
    }

    .zg-event-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .zg-event-card-img {
        height: 290px;
    }

    .zg-event-card-body {
        padding: 0.8rem;
    }

    .zg-event-card h3 {
        font-size: 1rem;
    }

    .zg-hero {
        min-height: 200px;
        padding: 1.2rem 0.8rem;
    }

        .zg-hero h1 {
            font-size: 1.3rem;
        }

    .zg-subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }

    .zg-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.6rem;
        margin-bottom: 0.4rem;
    }

    .zg-meta-item {
        font-size: 0.8rem;
    }

    .zg-meta-icon {
        font-size: 0.95rem;
    }

    .zg-meta-item strong {
        font-size: 0.75rem;
    }

    .zg-meta-item small {
        font-size: 0.7rem;
    }

    .zg-direccion {
        max-width: 160px;
        font-size: 0.65rem;
    }

        .zg-direccion[title]:hover::after {
            max-width: 220px;
            min-width: 120px;
            font-size: 0.6rem;
            padding: 0.4rem 0.6rem;
            right: -20px;
        }

        .zg-direccion[title]:hover::before {
            right: 10px;
        }

    .zg-description {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .zg-capacity-card {
        margin-top: -30px;
        padding: 0.6rem 0.8rem;
        border-radius: 10px;
    }

    .zg-capacity-info strong {
        font-size: 0.85rem;
    }

    .zg-capacity-info span {
        font-size: 0.75rem;
    }

    .zg-section h2 {
        font-size: 1.1rem;
    }

    .zg-register-section {
        padding: 0.8rem;
        border-radius: 10px;
    }

    .zg-register-hint {
        font-size: 0.85rem;
    }

    .zg-invitado-card-header {
        font-size: 0.8rem;
    }

    .zg-field label {
        font-size: 0.75rem;
    }

    .zg-field input {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }

    .zg-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        border-radius: 20px;
    }

    .zg-alert {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }

    .zg-validation-list {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .zg-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }
}
