/* ========================================================
   eventos.css — Módulo de eventos somosflys.com
   Paleta: --primary #6a017f | --secondary #f19908
   ======================================================== */

/* ── Hero Banner ── */
.eventos-hero {
    background: linear-gradient(135deg, #2a0b36 0%, #6a017f 60%, #8e24aa 100%);
    color: #fff;
    padding: 64px 0 52px;
    position: relative;
    overflow: hidden;
}
.eventos-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.eventos-hero .container {
    position: relative;
    z-index: 1;
}
.eventos-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 14px;
}
.eventos-hero h1 .accent {
    color: #f19908;
}
.eventos-hero p {
    font-size: 17px;
    opacity: .82;
    max-width: 540px;
    line-height: 1.6;
}
.hero-badges {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    backdrop-filter: blur(4px);
}

/* ── Filtros / Tabs ── */
.eventos-filters {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
    position: sticky;
    top: 70px;
    z-index: 90;
}
.filters-inner {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 4px;
}
.filters-inner::-webkit-scrollbar { display: none; }
.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    border: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s;
    text-decoration: none;
}
.filter-btn:hover { color: #6a017f; }
.filter-btn.active {
    color: #6a017f;
    border-bottom-color: #6a017f;
    font-weight: 700;
}
.filter-btn .count {
    background: #ede9fe;
    color: #6a017f;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
}
.filter-btn.active .count {
    background: #6a017f;
    color: #fff;
}

/* ── Grid de Eventos ── */
.eventos-section {
    padding: 40px 0 60px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6a017f;
    display: inline-block;
}
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.eventos-grid.featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

/* ── Event Card ── */
.event-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
    transition: transform .22s ease, box-shadow .22s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(106,1,127,.13);
}
.event-card-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #ede9fe;
}
.event-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.event-card:hover .event-card-img img {
    transform: scale(1.05);
}
.event-card-img .img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,5,30,.55) 0%, transparent 50%);
}

/* Fecha flotante sobre imagen */
.event-date-chip {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    text-align: center;
    min-width: 52px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    line-height: 1;
}
.event-date-chip .chip-day {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #6a017f;
    display: block;
}
.event-date-chip .chip-month {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: .5px;
}

/* Badge tipo */
.event-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.badge-presencial { background: #dcfce7; color: #166534; }
.badge-virtual    { background: #dbeafe; color: #1e40af; }
.badge-hibrido    { background: #fef3c7; color: #92400e; }

/* Badge colaboración */
.colab-ribbon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #f19908;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Card body */
.event-card-body {
    padding: 16px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.event-category-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #6a017f;
}
.event-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.event-card-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 4px;
}
.event-meta-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: #64748b;
}
.event-meta-row i { color: #6a017f; font-size: 13px; width: 14px; flex-shrink: 0; }
.event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px 14px;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}
.event-price {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #6a017f;
}
.event-price.free { color: #16a34a; }
.event-price small {
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
}
.btn-ticket {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f19908;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .15s;
    white-space: nowrap;
}
.btn-ticket:hover {
    background: #d98507;
    transform: scale(1.03);
    color: #fff;
}
.btn-ticket.outline {
    background: transparent;
    color: #f19908;
    border: 2px solid #f19908;
}
.btn-ticket.outline:hover {
    background: #f19908;
    color: #fff;
}
.btn-ticket.free-btn {
    background: #16a34a;
}
.btn-ticket.free-btn:hover { background: #15803d; }

/* ── Empty state ── */
.eventos-empty {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}
.eventos-empty i {
    font-size: 56px;
    color: #e2e8f0;
    margin-bottom: 16px;
    display: block;
}
.eventos-empty h3 { font-family: 'Outfit', sans-serif; color: #64748b; margin-bottom: 8px; }

/* ── Detalle de evento ── */
.evento-detalle-hero {
    position: relative;
    height: clamp(280px, 45vw, 480px);
    overflow: hidden;
    background: #1e0b2e;
}
.evento-detalle-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .7;
}
.evento-detalle-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,5,30,.9) 0%, rgba(20,5,30,.3) 60%, transparent 100%);
}
.evento-detalle-hero .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
}
.evento-detalle-hero .hero-content .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.75);
    font-size: 13px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: color .2s;
}
.evento-detalle-hero .hero-content .back-link:hover { color: #fff; }
.evento-detalle-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(22px, 4vw, 40px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    max-width: 800px;
}

/* Layout de detalle */
.evento-detalle-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    padding: 40px 0 60px;
    align-items: start;
}
.evento-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 28px 0 12px;
}
.evento-content h2:first-child { margin-top: 0; }
.evento-content p, .evento-content li {
    font-size: 15px;
    color: #475569;
    line-height: 1.75;
}
.evento-content ul {
    list-style: disc;
    padding-left: 20px;
    margin: 10px 0;
}
.evento-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin: 20px 0 8px;
}

/* Sidebar de detalle */
.evento-sidebar {
    position: sticky;
    top: 90px;
}
.evento-info-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
}
.evento-info-card .card-header {
    background: linear-gradient(135deg, #2a0b36, #6a017f);
    color: #fff;
    padding: 18px 20px;
}
.evento-info-card .card-header .price-big {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
}
.evento-info-card .card-header .price-big.free { color: #86efac; }
.evento-info-card .card-header small {
    font-size: 12px;
    opacity: .75;
}
.evento-info-card .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #475569;
}
.info-row .info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ede9fe;
    color: #6a017f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}
.info-row .info-text strong {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.3;
}
.info-row .info-text span {
    font-size: 13px;
    color: #64748b;
}
.btn-comprar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f19908;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .15s;
    width: 100%;
    margin-top: 4px;
}
.btn-comprar:hover {
    background: #d98507;
    transform: translateY(-1px);
    color: #fff;
}
.btn-comprar.free-btn {
    background: #16a34a;
}
.btn-comprar.free-btn:hover { background: #15803d; }
.btn-transferencia {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #6a017f;
    border: 2px solid #6a017f;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 20px;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
    width: 100%;
    margin-top: 4px;
}
.btn-transferencia:hover {
    background: #6a017f;
    color: #fff;
}
.pago-note {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 6px;
}
.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.event-tag {
    background: #f1f5f9;
    color: #64748b;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
}
.organizer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ede9fe;
    color: #6a017f;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
}
.colab-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff3cd;
    color: #92400e;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
}
.separator {
    border: none;
    border-top: 1px solid #f1f5f9;
    margin: 4px 0;
}

/* ── Admin panel ── */
.admin-eventos-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}
.admin-eventos-wrap h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.admin-table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}
.admin-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.admin-table tr:hover td { background: #fafafa; }
.status-dot {
    width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.status-dot.on { background: #22c55e; }
.status-dot.off { background: #e2e8f0; }
.btn-edit {
    font-size: 12px; padding: 5px 12px; border-radius: 6px; border: 1px solid #e2e8f0;
    background: #fff; color: #475569; cursor: pointer; text-decoration: none;
}
.btn-edit:hover { background: #f1f5f9; }
.admin-form {
    background: #fff; border-radius: 16px; border: 1px solid #e2e8f0;
    padding: 28px; max-width: 800px; margin: 0 auto;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: #475569; margin-bottom: 6px;
}
.form-control {
    width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0;
    border-radius: 8px; font-size: 14px; font-family: 'Inter', sans-serif;
    transition: border-color .2s, box-shadow .2s; background: #fff;
    color: #1e293b;
}
.form-control:focus {
    outline: none; border-color: #6a017f;
    box-shadow: 0 0 0 3px rgba(106,1,127,.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-save {
    background: #6a017f; color: #fff; border: none; padding: 12px 28px;
    border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer;
    font-family: 'Outfit', sans-serif; transition: background .2s;
}
.btn-save:hover { background: #560169; }
.btn-danger {
    background: #fef2f2; color: #dc2626; border: 1px solid #fecaca;
    padding: 12px 20px; border-radius: 10px; font-size: 14px;
    font-weight: 600; cursor: pointer; transition: all .2s;
}
.btn-danger:hover { background: #dc2626; color: #fff; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .evento-detalle-layout { grid-template-columns: 1fr; }
    .evento-sidebar { position: static; }
}
@media (max-width: 640px) {
    .eventos-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .eventos-hero { padding: 40px 0 32px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}
