/**
 * Magic Place - Eventos Especiales CSS
 * Estilos para la pagina publica de eventos
 */

/* ===== HERO EVENTOS ===== */
.hero-eventos {
    position: relative;
    padding: 120px 0 80px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-eventos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-eventos-content {
    color: white;
}

.event-type-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-eventos-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
    text-shadow:
        2px 2px 3px rgba(255, 255, 255, 0.8),
        -2px -2px 3px rgba(255, 255, 255, 0.8),
        0 0 8px rgba(255, 255, 255, 0.6),
        0 0 16px rgba(255, 255, 255, 0.4);
}

.hero-eventos-title span {
    color: #1a1a2e;
}

.hero-eventos-title .gradient-text-light {
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-eventos-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Countdown */
.countdown-container {
    margin-bottom: 2rem;
}

.countdown-container.hidden {
    display: none;
}

.countdown-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.countdown-timer {
    display: flex;
    gap: 1rem;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-align: center;
    min-width: 70px;
}

.countdown-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.countdown-unit {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-eventos-cta {
    display: flex;
    gap: 1rem;
}

/* Flyer Section */
.hero-eventos-flyer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-eventos-flyer img {
    max-width: 100%;
    max-height: 450px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.hero-eventos-flyer img:hover {
    transform: rotate(0deg) scale(1.02);
}

.flyer-placeholder {
    width: 320px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.flyer-icon {
    font-size: 5rem;
}

.flyer-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    opacity: 0.8;
}

/* Button White */
.btn-white {
    background: white;
    color: #5170FF;
    border: none;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* ===== EVENTOS SECTION ===== */


.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 133, 208, 0.1) 0%, rgba(81, 112, 255, 0.1) 100%);
    color: #5170FF;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    /* Degradado azul-verde igual que "Por qué elegirnos" */
    background: linear-gradient(135deg, #5170FF 0%, #98E179 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Sin efecto de gotas - solo degradado */
    text-shadow: none !important;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Filters */
.eventos-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid #E5E7EB;
    border-radius: 50px;
    background: white;
    color: #6B7280;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #5170FF;
    color: #5170FF;
}

.filter-btn.active {
    background: linear-gradient(135deg, #FF85D0 0%, #5170FF 100%);
    border-color: transparent;
    color: white;
}

/* Loading State */
.eventos-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem 0;
    color: #6B7280;
}

.eventos-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E5E7EB;
    border-top-color: #5170FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Events Grid */
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.eventos-grid.hidden {
    display: none;
}

/* Event Card */
.evento-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.evento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.evento-card-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #FF85D0 0%, #5170FF 100%);
    overflow: hidden;
}

.evento-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.evento-card:hover .evento-card-image img {
    transform: scale(1.05);
}

.evento-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.evento-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.evento-type-special_day { background: #ffe5f5; color: #d63384; }
.evento-type-conference { background: #e3edff; color: #5170ff; }
.evento-type-promotion { background: #d4edda; color: #28a745; }
.evento-type-seasonal { background: #fff3cd; color: #856404; }

.evento-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #1a1a1a;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.evento-audience-badge {
    position: absolute;
    top: 48px;
    left: 12px;
    background: linear-gradient(135deg, #a8e6cf, #56ab2f);
    color: #1a1a1a;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.evento-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.evento-card-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #5170FF;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.evento-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.evento-card-desc {
    color: #6B7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.evento-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
}

.evento-card-capacity {
    font-size: 0.85rem;
    color: #6B7280;
}

.evento-card-capacity strong {
    color: #1a1a1a;
}

.evento-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #5170FF;
}

.evento-card-price.free {
    color: #28a745;
}

.evento-card-cta {
    margin-top: 1rem;
}

.evento-card-cta .btn {
    width: 100%;
    justify-content: center;
}

/* Empty State */
.eventos-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.eventos-empty.hidden {
    display: none;
}

.eventos-empty .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.eventos-empty h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.eventos-empty p {
    color: #6B7280;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== CTA SECTION ===== */
.eventos-cta-section {
    padding: 60px 0 calc(10rem - var(--footer-wave-height));
    background: #F9FAFB;
}

.eventos-cta-box {
    background: linear-gradient(135deg, #FF85D0 0%, #5170FF 100%);
    border-radius: 24px;
    padding: 3rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.eventos-cta-content h2 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.eventos-cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-eventos-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-eventos-title {
        font-size: 2.75rem;
    }

    .hero-eventos-desc {
        max-width: 100%;
        margin: 0 auto 2rem;
    }

    .hero-eventos-cta {
        justify-content: center;
    }

    .countdown-timer {
        justify-content: center;
    }

    .hero-eventos-flyer {
        order: -1;
    }

    .flyer-placeholder {
        width: 280px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-eventos {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-eventos-title {
        font-size: 2.25rem;
    }

    .countdown-timer {
        gap: 0.5rem;
    }

    .countdown-item {
        padding: 0.75rem;
        min-width: 60px;
    }

    .countdown-value {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .eventos-grid {
        grid-template-columns: 1fr;
    }

    .eventos-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .eventos-cta-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-eventos-title {
        font-size: 1.85rem;
    }

    .eventos-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .flyer-placeholder {
        width: 240px;
        height: 300px;
    }

    .flyer-icon {
        font-size: 3rem;
    }
}

/* ===== EVENT MODAL ===== */
.event-modal {
    border: none;
    border-radius: 0;
    padding: 0;
    max-width: 1400px;
    width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    margin: auto;
}

.event-modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.event-modal-container {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* Close Button */
.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close-btn:hover {
    background: white;
    transform: rotate(90deg);
}

.modal-close-btn svg {
    stroke: #1a1a1a;
}

/* Modal Content */
.event-modal-content {
    overflow-y: auto;
    max-height: 90vh;
}

/* Modal Hero */
.modal-hero {
    position: relative;
    padding: 4rem 2rem 3rem;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, #FF85D0 0%, #5170FF 100%);
    background-size: cover;
    background-position: center;
}

.modal-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.modal-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.modal-event-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.modal-event-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.modal-event-date,
.modal-event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Modal Details Grid */
.modal-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.modal-main-content {
    flex: 1;
}

.modal-sidebar {
    display: flex;
    flex-direction: column;
}

/* Modal Blocks */
.modal-block {
    margin-bottom: 2.5rem;
}

.modal-block.hidden {
    display: none;
}

.modal-block-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.modal-event-description {
    color: #4B5563;
    line-height: 1.7;
    font-size: 1rem;
}

.modal-event-description p {
    margin-bottom: 1rem;
}

/* Features List */
.modal-event-features {
    list-style: none;
    padding: 0;
}

.modal-event-features li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    color: #4B5563;
}

.modal-event-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #98E179;
    font-weight: 700;
}

/* Schedule */
.modal-event-schedule {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 1.5rem;
}

.schedule-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    font-weight: 700;
    color: #5170FF;
    min-width: 80px;
}

.schedule-activity {
    color: #4B5563;
}

/* Time Slots */
.modal-time-slots {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.time-slot-badge {
    background: #F3F4F6;
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Registration Card */
.modal-registration-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    height: fit-content;
}

.modal-registration-header {
    margin-bottom: 2rem;
}

.modal-registration-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-registration-price .price-label {
    display: block;
    font-size: 0.85rem;
    color: #6B7280;
    margin-bottom: 0.25rem;
}

.modal-registration-price .price-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #5170FF;
}

.modal-registration-capacity {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 1rem;
}

.modal-registration-capacity .capacity-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.modal-registration-capacity .capacity-available {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.modal-registration-capacity .capacity-label {
    font-size: 0.85rem;
    color: #6B7280;
}

.capacity-bar {
    width: 100%;
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
}

.capacity-fill {
    height: 100%;
    background: linear-gradient(135deg, #5170FF 0%, #98E179 100%);
    transition: width 0.3s ease;
}

/* Registration Form */
.modal-registration-form {
    margin-top: 1.5rem;
}

.modal-registration-form .form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.modal-registration-form .form-subtitle {
    color: #6B7280;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.modal-registration-form .form-group {
    margin-bottom: 1.25rem;
}

.modal-registration-form .form-group.hidden {
    display: none;
}

.modal-registration-form label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.modal-registration-form input,
.modal-registration-form select,
.modal-registration-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.modal-registration-form input:focus,
.modal-registration-form select:focus,
.modal-registration-form textarea:focus {
    outline: none;
    border-color: #5170FF;
    box-shadow: 0 0 0 3px rgba(81, 112, 255, 0.1);
}

.modal-registration-form .form-disclaimer {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-top: 1rem;
    text-align: center;
}

.modal-registration-form .form-disclaimer a {
    color: #5170FF;
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Registration Closed/Full */
.modal-registration-closed,
.modal-registration-full {
    text-align: center;
    padding: 2rem 1rem;
}

.modal-registration-closed.hidden,
.modal-registration-full.hidden {
    display: none;
}

.closed-icon,
.full-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.modal-registration-closed h4,
.modal-registration-full h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.modal-registration-closed p,
.modal-registration-full p {
    color: #6B7280;
    margin-bottom: 1.5rem;
}

/* Share Card */
.modal-share-card {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 1.5rem;
}

.modal-share-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.facebook {
    background: #1877F2;
    color: white;
}

.share-btn.copy {
    background: #6B7280;
    color: white;
}

/* Success Modal */
.success-modal {
    border: none;
    border-radius: 20px;
    padding: 3rem;
    max-width: 400px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    margin: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.success-modal::backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.success-content {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.success-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.success-content p {
    color: #6B7280;
    margin-bottom: 0.75rem;
}

.success-note {
    font-size: 0.9rem;
    color: #9CA3AF;
    margin-bottom: 1.5rem !important;
}

/* ===== MODAL RESPONSIVE ===== */
@media (max-width: 1024px) {
    .event-modal {
        width: 95vw;
        max-height: 95vh;
    }

    .modal-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .modal-event-title {
        font-size: 2rem;
    }

    .modal-hero {
        padding: 3rem 1.5rem 2rem;
    }
}

@media (max-width: 992px) {
    .modal-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .event-modal {
        width: 100vw;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .event-modal-container {
        border-radius: 0;
    }

    .modal-hero {
        min-height: 250px;
        padding: 2.5rem 1.25rem 2rem;
    }

    .modal-event-title {
        font-size: 1.75rem;
    }

    .modal-event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-details-grid {
        padding: 1.5rem 1rem;
    }

    .modal-block-title {
        font-size: 1.25rem;
    }

    .modal-registration-card {
        padding: 1.5rem;
    }

    .modal-close-btn {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }

    .success-modal {
        padding: 2rem;
        max-width: 90vw;
    }
}

@media (max-width: 480px) {
    .modal-hero {
        min-height: 200px;
        padding: 2rem 1rem 1.5rem;
    }

    .modal-event-title {
        font-size: 1.5rem;
    }

    .modal-event-date,
    .modal-event-location {
        font-size: 0.85rem;
    }

    .modal-details-grid {
        padding: 1rem;
    }

    .modal-registration-price .price-value {
        font-size: 1.75rem;
    }
}
