/* ===================================================================
   Virtux Fourvenues — Estilos Palma Events
   Tipografía: Lexend (títulos 500, descripciones 400)
   Texto: #040405 · Botón: #f72e14 · Botón texto: #ffffff
   =================================================================== */

:root {
    --vfv-text: #040405;
    --vfv-text-soft: #4a4a4f;
    --vfv-bg: #ffffff;
    --vfv-bg-alt: #f7f7f8;
    --vfv-primary: #f72e14;
    --vfv-primary-hover: #d72510;
    --vfv-on-primary: #ffffff;
    --vfv-border: #e7e7e9;
    --vfv-radius: 14px;
    --vfv-radius-sm: 8px;
    --vfv-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    --vfv-shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.12);
    --vfv-font: 'Lexend', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.vfv-grid-section,
.vfv-calendar-section,
.vfv-single {
    font-family: var(--vfv-font);
    color: var(--vfv-text);
    font-weight: 400;
    line-height: 1.5;
    box-sizing: border-box;
}

.vfv-grid-section *,
.vfv-calendar-section *,
.vfv-single * {
    box-sizing: border-box;
}

/* ------- Section título ------- */
.vfv-section-title {
    font-family: var(--vfv-font);
    font-weight: 500;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--vfv-text);
    margin: 0 0 1.25rem;
    letter-spacing: -0.01em;
}

/* ------- Tabs filtros ------- */
.vfv-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
    padding: 6px;
    background: var(--vfv-bg-alt);
    border-radius: 999px;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.vfv-tabs::-webkit-scrollbar { display: none; }

.vfv-tab {
    font-family: var(--vfv-font);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--vfv-text);
    background: transparent;
    border: none;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.vfv-tab:hover {
    background: rgba(247, 46, 20, 0.08);
}
.vfv-tab.is-active {
    background: var(--vfv-primary);
    color: var(--vfv-on-primary);
}

/* ------- Grid ------- */
.vfv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.vfv-variant-proximos .vfv-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

/* ------- Card ------- */
.vfv-card {
    background: var(--vfv-bg);
    border-radius: var(--vfv-radius);
    overflow: hidden;
    box-shadow: var(--vfv-shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--vfv-border);
}
.vfv-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--vfv-shadow-hover);
}

.vfv-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vfv-card-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #111;
}
.vfv-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.vfv-card:hover .vfv-card-media img {
    transform: scale(1.05);
}

.vfv-card-media-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2e, #0a0a0c);
}

.vfv-card-date {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--vfv-bg);
    color: var(--vfv-text);
    padding: 6px 10px;
    border-radius: var(--vfv-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    min-width: 44px;
}
.vfv-card-date-day {
    font-weight: 500;
    font-size: 1.25rem;
}
.vfv-card-date-month {
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--vfv-primary);
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.vfv-card-sala {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--vfv-primary);
    color: var(--vfv-on-primary);
    font-weight: 500;
    font-size: 0.72rem;
    padding: 5px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.vfv-card-body {
    padding: 1rem 1rem 0.5rem;
    flex: 1;
}

.vfv-card-title {
    font-family: var(--vfv-font);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--vfv-text);
    margin: 0 0 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vfv-card-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.82rem;
    color: var(--vfv-text-soft);
    font-weight: 400;
}
.vfv-card-meta li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vfv-card-footer {
    padding: 0.5rem 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-top: 1px solid transparent;
}

.vfv-card-price {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--vfv-text);
}

/* ------- Botones ------- */
.vfv-btn {
    font-family: var(--vfv-font);
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--vfv-radius-sm);
    padding: 9px 18px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
    line-height: 1.2;
}
.vfv-btn-primary {
    background: var(--vfv-primary);
    color: var(--vfv-on-primary);
}
.vfv-btn-primary:hover {
    background: var(--vfv-primary-hover);
    transform: translateY(-1px);
}
.vfv-btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

/* ------- Vacío ------- */
.vfv-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--vfv-text-soft);
    font-weight: 400;
}
.vfv-empty p {
    margin: 0.25rem 0;
}
.vfv-empty-sub {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ------- Single event ------- */
.vfv-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px 4rem;
}

.vfv-breadcrumb {
    font-size: 0.85rem;
    color: var(--vfv-text-soft);
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.vfv-breadcrumb a {
    color: var(--vfv-text-soft);
    text-decoration: none;
}
.vfv-breadcrumb a:hover { color: var(--vfv-primary); }

/* ---- Layout principal del single ---- */
.vfv-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}
@media (max-width: 900px) {
    .vfv-single-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.vfv-single-cover-col {
    position: sticky;
    top: 90px;
    align-self: start;
}
@media (max-width: 900px) {
    .vfv-single-cover-col {
        position: static;
    }
}

.vfv-single-content-col {
    min-width: 0;
}

.vfv-single-cover {
    border-radius: var(--vfv-radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #111;
}
.vfv-single-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vfv-single-sala {
    display: inline-block;
    background: var(--vfv-primary);
    color: var(--vfv-on-primary);
    font-weight: 500;
    font-size: 0.78rem;
    padding: 6px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.vfv-single-title {
    font-family: var(--vfv-font);
    font-weight: 500;
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    color: var(--vfv-text);
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.vfv-single-date-summary {
    font-size: 1rem;
    color: var(--vfv-text-soft);
    margin: 0 0 1.5rem;
    font-weight: 400;
}
.vfv-single-schedule {
    color: var(--vfv-text);
    font-weight: 500;
}

.vfv-single-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.vfv-single-price {
    font-size: 1.1rem;
    color: var(--vfv-text);
}
.vfv-single-price strong {
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--vfv-primary);
}

.vfv-single-details {
    margin: 2.5rem 0 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--vfv-border);
}
.vfv-single-details h2,
.vfv-single-description h2,
.vfv-buy-section h2,
.vfv-related h2 {
    font-family: var(--vfv-font);
    font-weight: 500;
    font-size: 1.5rem;
    margin: 0 0 1.25rem;
    color: var(--vfv-text);
}
.vfv-single-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    font-size: 0.95rem;
    color: var(--vfv-text);
    font-weight: 400;
}
.vfv-single-meta li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--vfv-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.vfv-single-meta li:last-child {
    border-bottom: none;
}
.vfv-single-meta li strong {
    font-weight: 500;
    color: var(--vfv-text);
    min-width: 130px;
    display: inline-block;
}
.vfv-single-meta li a {
    color: var(--vfv-primary);
    text-decoration: none;
}
.vfv-single-meta li a:hover {
    text-decoration: underline;
}

.vfv-single-description {
    margin-bottom: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--vfv-border);
}

/* ---- Sección de compra integrada (iframe Fourvenues) ---- */
.vfv-buy-section {
    margin: 3rem 0 3rem;
    padding: 2.5rem 0 2rem;
    border-top: 2px solid var(--vfv-primary);
}
.vfv-buy-title {
    text-align: center;
}
.vfv-buy-sub {
    text-align: center;
    color: var(--vfv-text-soft);
    margin: 0 0 2rem;
    font-size: 0.95rem;
}
.vfv-buy-iframe-wrap {
    background: var(--vfv-bg-alt);
    border-radius: var(--vfv-radius);
    overflow: hidden;
    min-height: 600px;
    padding: 1rem;
}
.vfv-buy-iframe-wrap #fourvenues-iframe,
.vfv-buy-iframe-wrap iframe {
    width: 100%;
    min-height: 600px;
    border: 0;
    display: block;
}

/* ---- Scroll suave del botón "Comprar" hero al iframe ---- */
html {
    scroll-behavior: smooth;
}
.vfv-single-description-body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--vfv-text);
    font-weight: 400;
    white-space: pre-line;
}

.vfv-related {
    padding-top: 2rem;
    border-top: 1px solid var(--vfv-border);
}

/* ------- Calendario ------- */
.vfv-calendar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.vfv-calendar-day {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 640px) {
    .vfv-calendar-day {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}
.vfv-calendar-day-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: var(--vfv-bg-alt);
    border-radius: var(--vfv-radius);
    line-height: 1.1;
    position: sticky;
    top: 80px;
}
.vfv-calendar-dow {
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--vfv-text-soft);
    text-transform: uppercase;
}
.vfv-calendar-num {
    font-weight: 500;
    font-size: 2.5rem;
    color: var(--vfv-primary);
    margin: 4px 0;
}
.vfv-calendar-month {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--vfv-text);
    text-transform: capitalize;
}
.vfv-calendar-events {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

/* ------- Modal de compra (iframe Fourvenues) ------- */
.vfv-modal {
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 5, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.vfv-modal.is-open {
    display: flex;
}
.vfv-modal-content {
    background: #fff;
    border-radius: var(--vfv-radius);
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.vfv-modal-header {
    padding: 14px 56px 14px 18px;
    border-bottom: 1px solid var(--vfv-border);
    font-family: var(--vfv-font);
    font-weight: 500;
    color: var(--vfv-text);
    font-size: 1rem;
    flex-shrink: 0;
}
.vfv-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--vfv-bg-alt);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--vfv-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.vfv-modal-close:hover {
    background: var(--vfv-primary);
    color: #fff;
}
.vfv-modal-iframe-wrap {
    flex: 1;
    overflow: hidden;
}
.vfv-modal-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ------- Responsive ------- */
@media (max-width: 480px) {
    .vfv-grid {
        grid-template-columns: 1fr;
    }
    .vfv-card-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .vfv-btn {
        width: 100%;
    }
}
