/* ===========================
   REVISTA V2 — JAMP + Medicina & Cia
   =========================== */
.rv-page { font-family: 'Montserrat', sans-serif; color: #1A1A1A; background: #F7F8FA; -webkit-font-smoothing: antialiased; }
.rv-page *, .rv-page *::before, .rv-page *::after { box-sizing: border-box; }
.rv-page a { text-decoration: none; }
.rv-page img { max-width: 100%; display: block; }

/* Hero */
.rv-hero { position: relative; height: 300px; overflow: hidden; background: #00402B; }
.rv-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,64,43,0.96) 0%, rgba(0,87,61,0.87) 50%, rgba(45,122,79,0.73) 100%); z-index: 1; }
.rv-hero__content { position: relative; z-index: 2; padding: 0 80px; }
.rv-hero__breadcrumb { display: flex; align-items: center; gap: 6px; padding-top: 90px; font-size: 12px; font-weight: 500; }
.rv-hero__breadcrumb a { color: rgba(255,255,255,0.67); transition: color 0.15s; }
.rv-hero__breadcrumb a:hover { color: #fff; }
.rv-hero__breadcrumb .rv-sep { color: rgba(255,255,255,0.4); font-size: 10px; }
.rv-hero__breadcrumb .rv-current { color: rgba(255,255,255,0.8); }
.rv-hero__title-row { display: flex; align-items: flex-start; gap: 16px; margin-top: 36px; }
.rv-hero__accent { width: 4px; height: 48px; background: #91C14D; border-radius: 2px; flex-shrink: 0; margin-top: 4px; }
.rv-hero__title { font-size: 36px; font-weight: 800; color: #fff; margin: 0; line-height: 1.15; }
.rv-hero__subtitle { font-size: 14px; color: rgba(255,255,255,0.7); margin: 12px 0 0 20px; line-height: 1.5; max-width: 600px; }
.rv-hero__icon { position: absolute; z-index: 2; color: #fff; pointer-events: none; }
.rv-hero__icon--main { right: 60px; top: -10px; font-size: 260px; opacity: 0.08; }

/* Body */
.rv-body { display: flex; gap: 40px; padding: 48px 80px 64px; align-items: flex-start; }
.rv-main { flex: 1; min-width: 0; }
.rv-sidebar { width: 300px; flex-shrink: 0; position: sticky; top: 140px; }

/* Grid */
.rv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

/* Card */
.rv-card { display: flex; flex-direction: column; perspective: 800px; }
.rv-card__cover { position: relative; border-radius: 8px; overflow: hidden; background: #f0f0f0; aspect-ratio: 3/4; box-shadow: 0 4px 16px rgba(0,0,0,0.1), 0 12px 40px rgba(0,0,0,0.08); transition: transform 0.5s cubic-bezier(0.23,1,0.32,1), box-shadow 0.5s cubic-bezier(0.23,1,0.32,1); }
.rv-card:hover .rv-card__cover { transform: translateY(-8px) scale(1.02); box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 24px 60px rgba(0,0,0,0.12); }
.rv-card__cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.05) 100%); border-radius: 8px; pointer-events: none; }
.rv-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.23,1,0.32,1); }
.rv-card:hover .rv-card__cover img { transform: scale(1.03); }
.rv-card__badge { position: absolute; top: 12px; right: 12px; background: rgba(0,87,61,0.9); color: #fff; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 4px; z-index: 2; backdrop-filter: blur(4px); letter-spacing: 0.5px; }
.rv-card__info { padding: 16px 4px 0; }
.rv-card__title { font-size: 13px; font-weight: 600; color: #1A1A1A; margin: 0 0 10px; line-height: 1.4; transition: color 0.2s; }
.rv-card:hover .rv-card__title { color: #00573D; }
.rv-card__btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #00573D; transition: gap 0.2s; }
.rv-card__btn:hover { gap: 10px; color: #004430; }
.rv-card__btn i { font-size: 11px; }

/* Sidebar */
.rv-sidebar-card { background: #fff; border-radius: 12px; border: 1px solid #EBEBEB; overflow: hidden; margin-bottom: 20px; }
.rv-sidebar-card__header { padding: 20px 24px; border-bottom: 1px solid #F0F0F0; display: flex; align-items: center; gap: 8px; }
.rv-sidebar-card__dot { width: 4px; height: 18px; background: #00573D; border-radius: 2px; }
.rv-sidebar-card__title { font-size: 13px; font-weight: 700; color: #1A1A1A; margin: 0; }
.rv-sidebar-card__body { padding: 20px 24px; }

/* Search */
.rv-search { display: flex; border: 1px solid #E0E0E0; border-radius: 10px; overflow: hidden; background: #F7F8FA; }
.rv-search input { flex: 1; border: none; background: transparent; padding: 10px 14px; font-size: 12px; font-family: 'Montserrat', sans-serif; outline: none; color: #333; }
.rv-search input::placeholder { color: #aaa; }
.rv-search button { border: none; background: #00573D; color: #fff; padding: 10px 16px; cursor: pointer; font-size: 14px; transition: background 0.2s; }
.rv-search button:hover { background: #004430; }

/* Edition filter */
.rv-editions { display: flex; flex-wrap: wrap; gap: 6px; max-height: 300px; overflow-y: auto; padding-right: 4px; }
.rv-editions::-webkit-scrollbar { width: 4px; }
.rv-editions::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
.rv-edition { display: flex; align-items: center; justify-content: center; width: 48px; height: 36px; border: 1px solid #E0E0E0; border-radius: 6px; font-size: 12px; font-weight: 600; color: #555; background: #fff; transition: all 0.15s; }
.rv-edition:hover { border-color: #00573D; color: #00573D; background: #f0fdf4; }

/* Empty */
.rv-empty { grid-column: 1 / -1; text-align: center; padding: 80px 20px; color: #888; }
.rv-empty i { color: #ddd; margin-bottom: 16px; display: block; }
.rv-empty h3 { font-size: 20px; color: #333; margin: 0 0 8px; }

/* Responsive */
@media (max-width: 1200px) {
    .rv-hero__content { padding: 0 30px; }
    .rv-body { padding: 30px; gap: 30px; }
    .rv-sidebar { width: 260px; }
}
@media (max-width: 991px) {
    .rv-hero { height: auto; min-height: 240px; }
    .rv-hero__breadcrumb { padding-top: 60px; }
    .rv-hero__title { font-size: 28px; }
    .rv-hero__icon--main { display: none; }
    .rv-body { flex-direction: column; }
    .rv-sidebar { width: 100%; position: static; }
    .rv-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .rv-hero__content { padding: 0 20px; }
    .rv-hero__title { font-size: 24px; }
    .rv-hero__subtitle { margin-left: 0; font-size: 13px; }
    .rv-body { padding: 20px 16px; }
    .rv-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 480px) {
    .rv-grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
}
