/* index.css - Portal Público Event4Enjoy */
:root {
    --primary-color: #ff512f;
    --primary-gradient: linear-gradient(135deg, #f09819, #ff512f);
    --secondary-gradient: linear-gradient(135deg, #ff512f, #dd2476);
    --bg-color: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    --card-bg: white;
    --success: #10b981;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Decorative Shapes (Same as homepage) */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 81, 47, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(240, 152, 25, 0.1) 0%, transparent 70%);
    bottom: -150px;
    left: -50px;
    animation-delay: -4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* --- Navigation --- */
.public-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:not(.btn-login)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-login):hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-login {
    background: var(--primary-gradient);
    color: white !important;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 81, 47, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 81, 47, 0.35);
}

/* --- Hero Section --- */
.hero-section {
    padding: 180px 24px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-content h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 48px;
    font-weight: 500;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-main);
    color: white;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* --- Events Section --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 24px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
}

.filter-controls {
    display: flex;
    gap: 12px;
}

.btn-filter {
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.btn-filter.active,
.btn-filter:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.public-events-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Event Card (List Layout) */
.public-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: row;
    /* Image on the left, info on the right */
    height: 280px;
}

.public-card:hover {
    transform: translateX(10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.public-card-img {
    width: 40%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.public-card-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    justify-content: center;
}

.public-card-date {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.public-card-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
    line-height: 1.2;
}

.public-card-location {
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.public-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 24px;
}

.public-card-price {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-main);
}

.btn-buy {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 81, 47, 0.2);
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 81, 47, 0.35);
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-card {
    background: white;
    width: 100%;
    max-width: 550px;
    border-radius: 32px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header-image {
    width: calc(100% + 80px);
    margin: -40px -40px 32px -40px;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 32px 32px 0 0;
}

.modal-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 81, 47, 0.1);
}

.modal-footer-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.btn-modal-secondary {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-danger {
    flex: 2;
    padding: 14px;
    border-radius: 14px;
    border: none;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

/* --- Nosotros Section --- */
.nosotros-section {
    padding: 100px 24px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.nosotros-content {
    max-width: 1200px;
    margin: 0 auto;
}

.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.nosotros-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-main);
}

.nosotros-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.team-card {
    background: white;
    padding: 32px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #f1f5f9;
}

.team-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.team-card p {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Contact Section --- */
.contact-section {
    padding: 100px 24px;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-header {
    text-align: center;
    margin-bottom: 48px;
}

.contact-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-form .form-group.full-width {
    grid-column: span 2;
}

.contact-form textarea {
    resize: none;
    height: 150px;
}

.btn-submit-contact {
    grid-column: span 2;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    box-shadow: 0 10px 25px rgba(255, 81, 47, 0.25);
}

.btn-submit-contact:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(255, 81, 47, 0.35);
}

/* --- Footer --- */
.public-footer {
    background: #0f172a;
    color: white;
    padding: 80px 0 40px;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.footer-col p {
    color: #94a3b8;
    max-width: 300px;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.footer-col a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    color: #64748b;
    font-size: 0.9rem;
}

/* Filter Chips */
.filter-chips {
    display: flex;
    flex-wrap: nowrap;
    /* No envolver */
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    overflow-x: auto;
    /* Permitir scroll horizontal */
    padding: 20px 10px;
    /* Aumentado a 20px para asegurar que el blur del glow no se corte */
    scrollbar-width: none;
    /* Ocultar scrollbar en Firefox */
    -webkit-overflow-scrolling: touch;
}

.filter-chips::-webkit-scrollbar {
    display: none;
    /* Ocultar scrollbar en Chrome/Safari */
}

.filter-chip {
    padding: 10px 24px;
    border-radius: 30px;
    background: white;
    border: 1px solid #e2e8f0;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.filter-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

.filter-chip.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(255, 81, 47, 0.2);
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }

    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Toasts */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast-notification {
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 320px;
    border-left: 5px solid var(--primary-color);
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.toast-success {
    border-left-color: var(--success);
}

.toast-notification.toast-error {
    border-left-color: var(--error);
}

.toast-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.toast-success .toast-icon {
    color: var(--success);
}

.toast-error .toast-icon {
    color: var(--error);
}

.toast-content h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.toast-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .public-card {
        flex-direction: column;
        height: auto;
    }

    .public-card-img {
        width: 100%;
        height: 200px;
    }
}

/* --- Catalog Layout (With Calendar) --- */
.catalog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
}

/* Calendar Styling */
.calendar-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 100px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-selectors {
    display: flex;
    gap: 8px;
    align-items: center;
}

.calendar-select {
    border: none;
    background: #f1f5f9;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.calendar-select:hover {
    background: #e2e8f0;
}

.calendar-header h3 {
    display: none;
    /* Ocultamos el h3 estático si usamos selects */
}

.calendar-nav-btn {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-nav-btn:hover {
    background: var(--primary-color);
    color: white;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 10px;
}

.weekday {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-main);
    position: relative;
}

.calendar-day:hover:not(.empty) {
    background: #f1f5f9;
}

.calendar-day.has-event {
    background: rgba(255, 81, 47, 0.1);
    color: var(--primary-color);
    font-weight: 800;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
}

.calendar-day.selected {
    background: var(--primary-gradient) !important;
    color: white !important;
}

.calendar-day.selected::after {
    background: white;
}

.calendar-day.is-past {
    color: #cbd5e1;
    /* Color más claro para días pasados */
    cursor: default;
}

.calendar-day.is-past.has-event {
    color: #fca5a5;
    /* Versión más clara del naranja para eventos pasados */
    background: rgba(255, 81, 47, 0.05);
}

.calendar-day.is-past.has-event::after {
    background: #fca5a5;
}

.calendar-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* --- Team Gallery Carousel --- */
.team-gallery-container {
    margin: 80px 0 40px;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.gallery-wrapper {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 0 40px;
}

.gallery-slide {
    flex: 0 0 320px;
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-slide:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.nav-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.nav-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gallery-slide {
        flex: 0 0 280px;
        height: 380px;
    }
    .gallery-wrapper {
        padding: 0 20px;
    }
}