/* ============================================
   EVENT DETAIL PAGE - COMPACT SYMMETRICAL (V6)
   ============================================ */

body {
    background-color: #f7faff;
    /* Subtle Agentes blue tint */
    color: var(--gray-800);
}

/* Constrained Main Container */
.compact-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Minimal Header Spacer */
.event-detail-hero {
    padding: 120px 0 var(--space-2xl);
    text-align: center;
}

.event-detail-title {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    /* Refined size */
    font-weight: 900;
    line-height: 1.1;
    color: var(--fire-red);
    /* Brand Red */
    margin: 0 auto;
}

/* Main Content Area */
.event-detail-content {
    padding: var(--space-md) 0 100px;
}

/* Top Symmetrical Grid - Scaled Down */
.top-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

/* Common Card Style - More Compact */
.detail-card {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 25px rgba(0, 86, 210, 0.04);
    border: 1px solid rgba(0, 86, 210, 0.06);
    display: flex;
    flex-direction: column;
}

/* Speaker Section */
.speaker-item {
    align-items: center;
    text-align: center;
}

.speaker-item h3 {
    color: var(--fire-red);
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: 0.12em;
}

.speaker-avatar {
    width: 100px;
    /* Scaled down */
    height: 100px;
    border-radius: 50%;
    padding: 3px;
    background: var(--gradient-fire);
    margin-bottom: var(--space-sm);
}

.speaker-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.speaker-name {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--black);
    margin-bottom: var(--space-xs);
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0077b5;
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
}

/* Metadata Item - More Compact */
.metadata-item h3 {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--black);
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

.metadata-item h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--agentes-blue);
}

.meta-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: auto 0;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    color: var(--gray-700);
}

.meta-row svg {
    color: var(--agentes-blue);
    width: 18px;
    height: 18px;
}

.meta-row strong {
    color: var(--black);
    font-weight: 800;
}

/* Description Block - Full Width Below */
.description-block {
    background: white;
    padding: var(--space-2xl);
    /* Reduced padding */
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 86, 210, 0.06);
    box-shadow: 0 8px 25px rgba(0, 86, 210, 0.04);
    position: relative;
    margin-bottom: var(--space-xl);
}

.description-block::before {
    content: '';
    position: absolute;
    top: var(--space-2xl);
    left: 0;
    width: 5px;
    height: 40px;
    background: var(--fire-red);
    border-radius: 0 4px 4px 0;
}

.description-block h2 {
    color: var(--fire-red);
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: var(--space-lg);
    padding-left: var(--space-sm);
}

.description-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--gray-700);
}

/* Bottom Registration Area */
.registration-footer {
    padding: var(--space-xl) 0 80px;
    /* Balanced bottom gap */
    margin-top: var(--space-xl);
    text-align: center;
}

.btn-cta-red {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.8rem;
    background: var(--fire-red);
    color: white;
    border-radius: var(--radius-pill);
    font-size: 1.15rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(178, 40, 24, 0.2);
    transition: all 0.3s ease;
    animation: buttonPulse 3s infinite;
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(178, 40, 24, 0.5);
        transform: scale(1);
    }

    20% {
        box-shadow: 0 0 0 15px rgba(178, 40, 24, 0);
        transform: scale(1.03);
    }

    40% {
        box-shadow: 0 0 0 0 rgba(178, 40, 24, 0);
        transform: scale(1);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(178, 40, 24, 0);
        transform: scale(1);
    }
}

.btn-cta-red:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(178, 40, 24, 0.3);
    background: var(--black);
    animation: none;
    /* Stop pulsing on hover */
}

/* Photo Gallery Section */
.gallery-section {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(0, 86, 210, 0.06);
}

.gallery-section h2 {
    color: var(--fire-red);
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gallery-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.gallery-photo {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--gray-100);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 86, 210, 0.15);
}

.gallery-photo:hover img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .top-layout-grid {
        grid-template-columns: 1fr;
    }

    .event-detail-title {
        font-size: 1.75rem;
    }

    .description-block {
        padding: var(--space-xl);
    }

    .gallery-grid-modern {
        grid-template-columns: 1fr;
    }
}