/* ========================================
   SINGLE EVENT - ESTILOS MODERNOS COMPLETOS
   Archivo: assets/css/single-event.css
   ======================================== */

:root {
    --event-primary: var(--event-primary-color, #667eea);
    --event-primary-dark: #5a67d8;
    --event-status: var(--event-status-color, #3b82f6);
    --event-gray-50: #f9fafb;
    --event-gray-100: #f3f4f6;
    --event-gray-200: #e5e7eb;
    --event-gray-700: #374151;
    --event-gray-900: #111827;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-soft: 0 20px 60px -15px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}

/* ========================================
   ESTILOS BASE MODERNOS
   ======================================== */
.twg-event-single {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ========================================
   HERO SECTION
   ======================================== */
.twg-hero {
    position: relative;
    min-height: 60vh;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
    background: linear-gradient(135deg, var(--event-primary) 0%, var(--event-primary-dark) 100%);
}

.twg-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    transition: transform 0.5s ease;
}

.twg-hero:hover .twg-hero-bg {
    transform: scale(1.05);
}

.twg-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.twg-hero-content {
    position: relative;
    z-index: 2;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    color: white;
}

.twg-event-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
    animation: slideUp 0.6s ease-out 0.2s both;
}

.twg-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--event-status);
    animation: pulse 2s infinite;
}

.twg-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem;
    animation: slideUp 0.6s ease-out 0.3s both;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.twg-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 1rem;
    animation: slideUp 0.6s ease-out 0.4s both;
}

.twg-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.twg-meta-icon {
    width: 24px;
    height: 24px;
    opacity: 0.9;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.twg-content-wrapper {
    max-width: 1200px;
    margin: -100px auto 0;
    padding: 0 2rem 4rem;
    position: relative;
    z-index: 3;
}

.twg-content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
}

/* ========================================
   GLASS CARDS
   ======================================== */
.twg-glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--glass-border);
    animation: fadeInUp 0.6s ease-out;
    margin-bottom: 2rem;
}

.twg-glass-card:nth-child(1) { animation-delay: 0.1s; }
.twg-glass-card:nth-child(2) { animation-delay: 0.2s; }
.twg-glass-card:nth-child(3) { animation-delay: 0.3s; }

.twg-glass-card h2 {
    margin: 0 0 1.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--event-gray-900);
}

.twg-event-content {
    line-height: 1.75;
    color: var(--event-gray-700);
}

.twg-event-content p {
    margin-bottom: 1rem;
}

.twg-event-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

/* ========================================
   TIMELINE
   ======================================== */
.twg-timeline {
    display: flex;
    gap: 1rem;
    padding: 2rem 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--event-primary) var(--event-gray-100);
}

.twg-timeline::-webkit-scrollbar {
    height: 8px;
}

.twg-timeline::-webkit-scrollbar-track {
    background: var(--event-gray-100);
    border-radius: 4px;
}

.twg-timeline::-webkit-scrollbar-thumb {
    background: var(--event-primary);
    border-radius: 4px;
}

.twg-timeline-item {
    min-width: 200px;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--event-primary) 0%, var(--event-primary-dark) 100%);
    border-radius: 16px;
    color: white;
    text-align: center;
    transition: transform 0.3s ease;
}

.twg-timeline-item:hover {
    transform: translateY(-5px);
}

.twg-timeline-end {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.twg-timeline-label {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.twg-timeline-date {
    font-size: 1.5rem;
    font-weight: 700;
}

.twg-timeline-time {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* ========================================
   COUNTDOWN
   ======================================== */
.twg-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.twg-countdown-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--event-primary) 0%, var(--event-primary-dark) 100%);
    border-radius: 16px;
    color: white;
    animation: countdownPulse 2s ease-in-out infinite;
}

.twg-countdown-item:nth-child(1) { animation-delay: 0s; }
.twg-countdown-item:nth-child(2) { animation-delay: 0.2s; }
.twg-countdown-item:nth-child(3) { animation-delay: 0.4s; }
.twg-countdown-item:nth-child(4) { animation-delay: 0.6s; }

.twg-countdown-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.twg-countdown-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   SIDEBAR
   ======================================== */
.twg-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.twg-info-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out;
}

.twg-info-card h3 {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--event-gray-900);
}

.twg-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--event-gray-100);
}

.twg-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.twg-info-icon {
    width: 24px;
    height: 24px;
    color: var(--event-primary);
    flex-shrink: 0;
}

.twg-info-content {
    flex: 1;
}

.twg-info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--event-gray-700);
    margin-bottom: 0.25rem;
    display: block;
}

.twg-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--event-gray-900);
}

.twg-info-value a {
    color: var(--event-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.twg-info-value a:hover {
    text-decoration: underline;
    color: var(--event-primary-dark);
}

/* ========================================
   ACTION BUTTONS
   ======================================== */
.twg-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    text-decoration: none;
}

.twg-btn-primary {
    background: linear-gradient(135deg, var(--event-primary) 0%, var(--event-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
/* Agregar después de la línea 382 en single-event.css */
.twg-share-btn svg {
    fill: currentColor;
    transition: fill 0.3s ease;
}

.twg-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.twg-btn-secondary {
    background: white;
    color: var(--event-primary);
    border: 2px solid var(--event-primary);
}

.twg-btn-secondary:hover {
    background: var(--event-primary);
    color: white;
}

/* ========================================
   MAP
   ======================================== */
.twg-map-container {
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 1rem;
}

.twg-map-address {
    color: var(--event-gray-700);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.twg-btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--event-primary);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.twg-btn-directions:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: var(--event-primary-dark);
}

/* ========================================
   SHARE BUTTONS
   ======================================== */
.twg-share {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.twg-share-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: white;
    border: 2px solid var(--event-gray-200);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--event-gray-700);
}

.twg-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.twg-share-btn.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.twg-share-btn.twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.twg-share-btn.whatsapp:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

.twg-share-btn.linkedin:hover {
    background: #0a66c2;
    color: white;
    border-color: #0a66c2;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes countdownPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 968px) {
    .twg-content-grid {
        grid-template-columns: 1fr;
    }
    
    .twg-sidebar {
        position: relative;
        top: 0;
    }
    
    .twg-hero-title {
        font-size: 2.5rem;
    }
    
    .twg-countdown {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .twg-glass-card {
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .twg-hero-title {
        font-size: 2rem;
    }
    
    .twg-hero-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .twg-countdown {
        grid-template-columns: 1fr;
    }
    
    .twg-glass-card {
        padding: 1.5rem;
    }
    
    .twg-content-wrapper {
        padding: 0 1rem 2rem;
    }
    
    .twg-timeline-item {
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .twg-hero-content {
        padding: 2rem 1rem;
    }
    
    .twg-hero-title {
        font-size: 1.75rem;
    }
    
    .twg-meta-icon {
        width: 20px;
        height: 20px;
    }
    
    .twg-countdown-number {
        font-size: 2rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .twg-hero-bg,
    .twg-hero-overlay,
    .twg-share,
    .twg-action-btn {
        display: none !important;
    }
    
    .twg-hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .twg-content-wrapper {
        margin-top: 0;
    }
    
    .twg-glass-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}
/* ========================================
   BOTONES DE COMPARTIR - REDES SOCIALES
   ======================================== */

.twg-share {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.twg-share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.twg-share-btn svg {
    width: 24px;
    height: 24px;
}

/* Facebook */
.twg-share-btn.facebook {
    background-color: #1877f2;
    color: white;
}

.twg-share-btn.facebook:hover {
    background-color: #145dbf;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

/* Twitter */
.twg-share-btn.twitter {
    background-color: #1da1f2;
    color: white;
}

.twg-share-btn.twitter:hover {
    background-color: #1a8cd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

/* WhatsApp */
.twg-share-btn.whatsapp {
    background-color: #25d366;
    color: white;
}

.twg-share-btn.whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* LinkedIn */
.twg-share-btn.linkedin {
    background-color: #0077b5;
    color: white;
}

.twg-share-btn.linkedin:hover {
    background-color: #006399;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
}

/* Estado activo (cuando se hace click) */
.twg-share-btn:active {
    transform: translateY(0);
}