﻿body {
    font-family: 'Noto Sans', sans-serif;
}

.agenda-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.tabs-wrapper {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 600px;
    margin: 0 auto 30px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab-button {
    flex: 1;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    color: #606060;
    font-family: 'Noto Sans', sans-serif;
    text-decoration: none;
    display: inline-block;
}

    .tab-button.active {
        background: #4a7d75;
        color: white;
    }

    .tab-button:hover:not(.active) {
        background: #f5f5f5;
        text-decoration: none;
    }

.search-container {
    max-width: 800px;
    margin: 0 auto 40px;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 20px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    font-family: 'Noto Sans', sans-serif;
    background: white url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.35-4.35"></path></svg>') no-repeat 15px center;
}

    .search-input::placeholder {
        color: #999;
    }

.search-button {
    padding: 12px 35px;
    background: #0d4d4d;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Noto Sans', sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .search-button:hover {
        background: #0a3838;
    }

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

    .tab-content.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    max-width: 100%;
}

    .event-card:hover {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

.event-date {
    background: #4a7d75;
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    text-align: center;
}

    .event-date.concluded {
        background-color: #4a7d75;
    }

    .event-date .day {
        text-align: center;
        white-space: nowrap;
        font-size: clamp(24px, 3.2vw, 34px);
        line-height: 1.15;
        letter-spacing: 0.5px;
        font-weight: 800;
    }

    .event-date .month {
        font-size: 28px;
        font-weight: 600;
        margin-top: 5px;
    }

    .event-date .time {
        font-size: 18px;
        margin-top: 10px;
        font-weight: 500;
    }

.event-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 15px;
}

.event-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #e8f4f2;
    color: #4a7d75;
}

    .badge.hibrido {
        background: #e6f0ff;
        color: #1e5bbf;
    }

    .badge.presencial::before {
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        content: '\f0c0';
        margin-right: 4px;
        color: #4a7d75;
    }

    .badge.hibrido::before {
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        content: '\f1eb';
        margin-right: 4px;
    }

.event-footer.location::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f3c5';
    color: #4a7d75;
    margin-right: 8px;
}

.inscribirse-btn {
    padding: 10px 25px;
    background: #0d4d4d;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Noto Sans', sans-serif;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

    .inscribirse-btn:hover {
        background: #0a3838;
        transform: translateY(-1px);
        color: white;
        text-decoration: none;
    }

.event-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
}

.event-description {
    font-size: 15px;
    color: #606060;
    line-height: 1.6;
    margin-bottom: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.event-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 15px;
    gap: 8px;
    color: #606060;
    font-size: 14px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-top: 15px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: thin;
    scroll-snap-type: x mandatory;
}

    .carousel-track::-webkit-scrollbar {
        height: 8px;
    }

    .carousel-track::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .carousel-track::-webkit-scrollbar-thumb {
        background: #4a7d75;
        border-radius: 10px;
    }

.carousel-slide {
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

    .carousel-slide img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        display: block;
    }

.video-link {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #606060;
}

    .video-link a {
        color: #4a7d75;
        font-weight: 600;
        text-decoration: none;
    }

        .video-link a:hover {
            color: #0a3838;
            text-decoration: underline;
        }

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

    .carousel-button:hover {
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .carousel-button::before {
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
    }

    .carousel-button.prev {
        left: 5px;
    }

        .carousel-button.prev::before {
            content: '\f053';
        }

    .carousel-button.next {
        right: 5px;
    }

        .carousel-button.next::before {
            content: '\f054';
        }

.no-events-message {
    text-align: center;
    color: #606060;
    padding: 60px 20px;
    font-size: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.event-date-with-bg {
    position: relative;
    overflow: hidden;
}

.event-date-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.0);
    z-index: 1;
}

.event-date-content {
    position: relative;
    z-index: 2;
}

.event-date-with-bg .day,
.event-date-with-bg .month,
.event-date-with-bg .time {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px;
}

.pagination {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    list-style: none;
}

.page-item {
    list-style: none;
}

.page-link {
    border: none;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
    color: #4a7d75;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    text-decoration: none;
}

    .page-link:hover {
        background: #e8f4f2;
        color: #0d4d4d;
    }

.page-item.active .page-link {
    background: #4a7d75;
    color: white;
    box-shadow: 0 4px 10px rgba(74, 125, 117, 0.4);
}

.page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }

    .event-card {
        flex-direction: row; /* Mantener fecha a la izquierda */
    }

    .event-date {
        min-width: 120px;
        padding: 15px 10px;
    }

        .event-date .day {
            font-size: 28px;
        }

        .event-date .month {
            font-size: 16px;
        }

        .event-date .time {
            font-size: 14px;
        }

    .event-content {
        padding: 20px;
    }

    .search-container {
        flex-direction: row; /* Mantener botón al lado */
        gap: 8px;
    }

    .search-button {
        padding: 12px 20px; /* Botón más pequeño */
        font-size: 13px;
    }

    .tabs-wrapper {
        max-width: 100%;
    }

    .tab-button {
        font-size: 14px;
        padding: 12px 20px;
    }

    .event-header {
        flex-direction: column;
        gap: 10px;
    }
}

/* Solo en móviles muy pequeños cambiar a columna */
@media (max-width: 480px) {
    .event-card {
        flex-direction: column;
    }

    .event-date {
        min-width: auto;
        padding: 20px;
    }

        .event-date .day {
            font-size: 36px;
        }

        .event-date .month {
            font-size: 22px;
        }
}
