/*<!-- ======================================== -->
<!-- ARCHIVO: assets/css/templates.css -->
<!-- CSS adicional para los templates -->
<!-- ======================================== -->*/

/* ========================================
   SINGLE EVENT TEMPLATE
   ======================================== */

.twingital-event-single-wrapper {
    background: #f9fafb;
}

/* Breadcrumbs */
.event-breadcrumbs {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.event-breadcrumbs nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.event-breadcrumbs a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s;
}

.event-breadcrumbs a:hover {
    color: #3b82f6;
}

.event-breadcrumbs .separator {
    color: #d1d5db;
}

.event-breadcrumbs .current {
    color: #1f2937;
    font-weight: 500;
}

/* Hero Section */
.event-hero {
    padding: 60px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.event-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.event-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.event-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.event-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.event-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 30px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.event-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.meta-item .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.event-hero-cta {
    margin-top: 40px;
}

.btn-register {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: #fff;
    color: var(--event-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.registration-deadline {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.9;
}

.event-hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    z-index: 1;
    opacity: 0.2;
}

.event-hero-image img {
    width: 100%;
    border-radius: 12px;
}

/* Content Wrapper */
.event-content-wrapper {
    padding: 60px 0;
}

.event-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

/* Main Content */
.event-main-column {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.event-section {
    padding: 40px;
    border-bottom: 1px solid #e5e7eb;
}

.event-section:last-child {
    border-bottom: none;
}

.event-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 25px 0;
    color: #1f2937;
}

.event-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #374151;
}

.event-content {
    line-height: 1.8;
    color: #4b5563;
}

/* Taxonomy */
.taxonomy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.taxonomy-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #f3f4f6;
    color: #4b5563;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.taxonomy-tag:hover {
    background: var(--event-color);
    color: #fff;
}

.taxonomy-tag.tag {
    background: #dbeafe;
    color: #1e40af;
}

/* Map Section */
.event-map {
    width: 100%;
    height: 400px;
    background: #f3f4f6;
    border-radius: 8px;
    margin-bottom: 20px;
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-directions:hover {
    background: #2563eb;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    border-color: var(--event-color);
    color: var(--event-color);
}

.share-facebook:hover { border-color: #1877f2; color: #1877f2; }
.share-twitter:hover { border-color: #1da1f2; color: #1da1f2; }
.share-linkedin:hover { border-color: #0a66c2; color: #0a66c2; }
.share-whatsapp:hover { border-color: #25d366; color: #25d366; }

/* Sidebar */
.event-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--event-color);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 15px;
}

.info-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-content strong {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 5px;
}

.info-content span {
    color: #6b7280;
}

.info-content small {
    display: block;
    font-size: 13px;
    color: #9ca3af;
    margin-top: 3px;
}

.btn-register-sidebar {
    display: block;
    text-align: center;
    padding: 16px;
    background: var(--event-color);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 25px;
    transition: all 0.3s ease;
}

.btn-register-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Organizer */
.organizer-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #1f2937;
}

.organizer-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    font-size: 14px;
}

.organizer-contact a {
    color: #3b82f6;
    text-decoration: none;
}

.organizer-contact a:hover {
    text-decoration: underline;
}

/* Calendar Buttons */
.calendar-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calendar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.calendar-btn:hover {
    border-color: var(--event-color);
    background: var(--event-color);
    color: #fff;
}

/* Related Events */
.event-related-section {
    padding: 60px 0;
    background: #fff;
}

.event-related-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 40px 0;
    text-align: center;
}

.related-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.related-event-image {
    display: block;
    overflow: hidden;
}

.related-event-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-event-card:hover .related-event-image img {
    transform: scale(1.1);
}

.related-event-content {
    padding: 25px;
}

.related-event-content h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
}

.related-event-content h3 a {
    color: #1f2937;
    text-decoration: none;
}

.related-event-content h3 a:hover {
    color: #3b82f6;
}

.related-event-date {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 15px 0;
}

.btn-view-event {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-view-event:hover {
    background: #2563eb;
}

/* Responsive */
@media (max-width: 1024px) {
    .event-layout {
        grid-template-columns: 1fr;
    }
    
    .event-sidebar {
        order: -1;
    }
    
    .related-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .event-title {
        font-size: 32px;
    }
    
    .event-hero {
        padding: 40px 0;
    }
    
    .event-hero-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .related-events-grid {
        grid-template-columns: 1fr;
    }
}