/* ============================================================
   RESIDENCIAS MÉDICAS — Design System
   Aesthetic: HTML Skill Library (premium, fluid, animated)
   Version: 1.2.0
   Palette: RM navy/turquoise/coral
   ============================================================ */

/* ─── DESIGN TOKENS ────────────────────────────────────── */
:root {
    /* Core Palette */
    --rm-navy: #1a3a5c;
    --rm-navy-light: #2a4a6c;
    --rm-navy-dark: #0f1b2d;
    --rm-turquoise: #2ab7b7;
    --rm-turquoise-dark: #1a8f8f;
    --rm-turquoise-light: #3fd4d4;
    --rm-coral: #e86c4f;
    --rm-coral-dark: #c45a3f;
    --rm-coral-light: #f08060;

    /* Extended Grays */
    --rm-gray-50: #fafafa;
    --rm-gray-100: #f8f8f7;
    --rm-gray-200: #e8e6e3;
    --rm-gray-300: #d0cec8;
    --rm-gray-400: #a8a6a0;
    --rm-gray-500: #8a8880;
    --rm-gray-600: #6a6860;
    --rm-gray-700: #4a4840;
    --rm-gray-800: #2a2820;

    /* Semantic */
    --rm-bg: #ffffff;
    --rm-bg-alt: var(--rm-gray-50);
    --rm-text: var(--rm-gray-800);
    --rm-text-muted: var(--rm-gray-600);
    --rm-text-light: var(--rm-gray-400);
    --rm-border: var(--rm-gray-200);

    /* Fluid Typography */
    --rm-text-hero: clamp(1.75rem, 4vw, 3rem);
    --rm-text-h2: clamp(1.3rem, 3vw, 2rem);
    --rm-text-h3: clamp(1.05rem, 2vw, 1.35rem);
    --rm-text-body: clamp(0.875rem, 1.3vw, 1rem);
    --rm-text-small: clamp(0.75rem, 1vw, 0.875rem);
    --rm-text-xs: clamp(0.65rem, 0.9vw, 0.75rem);

    /* Layered Shadows */
    --rm-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --rm-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --rm-shadow-md: 0 4px 16px rgba(26, 58, 92, 0.08);
    --rm-shadow-lg: 0 8px 30px rgba(26, 58, 92, 0.1);
    --rm-shadow-xl: 0 16px 48px rgba(26, 58, 92, 0.12);
    --rm-shadow-glow-turquoise: 0 6px 24px rgba(42, 183, 183, 0.25);
    --rm-shadow-glow-coral: 0 6px 24px rgba(232, 108, 79, 0.3);

    /* Border Radius */
    --rm-radius-sm: var(--rm-global-radius-sm, 8px);
    --rm-radius: var(--rm-global-radius, 12px);
    --rm-radius-lg: var(--rm-global-radius-lg, 16px);
    --rm-radius-pill: 50px;

    /* Transitions */
    --rm-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --rm-duration-fast: 0.2s;
    --rm-duration: 0.3s;
    --rm-duration-slow: 0.4s;

    /* Z-index scale */
    --rm-z-badge: 10;
    --rm-z-header: 100;
    --rm-z-overlay: 500;
    --rm-z-modal: 1000;
}


/* ─── TYPOGRAPHY ───────────────────────────────────────── */
.rm-sc h1, .rm-sc h2, .rm-sc h3,
.rm-sc .rm-hero__title,
.rm-sc .rm-section-badge,
.rm-sc .rm-catmod__header-title {
    font-family: 'Montserrat', 'Inter', -apple-system, sans-serif;
}

.rm-sc {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--rm-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.rm-sc *, .rm-sc *::before, .rm-sc *::after {
    box-sizing: border-box;
}


/* ─── SECTION BADGE (pill header) ──────────────────────── */
.rm-sc .rm-section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--rm-turquoise), var(--rm-turquoise-dark));
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: var(--rm-radius-pill);
    margin-bottom: 12px;
}


/* ─── SECTION HEADER ───────────────────────────────────── */
.rm-sc .rm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--rm-gray-200);
    position: relative;
}

.rm-sc .rm-section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--rm-coral), var(--rm-turquoise));
    border-radius: 2px;
}

.rm-sc .rm-section-header__left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rm-sc .rm-section-header__bar {
    width: 4px;
    height: 24px;
    border-radius: 2px;
    background: linear-gradient(to bottom, var(--rm-coral), var(--rm-turquoise));
    flex-shrink: 0;
}

.rm-sc .rm-section-header__title {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: var(--rm-text-h3);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rm-navy);
}

.rm-sc .rm-section-header__link {
    font-size: var(--rm-text-small);
    font-weight: 600;
    text-decoration: none;
    color: var(--rm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color var(--rm-duration) var(--rm-ease);
}

.rm-sc .rm-section-header__link:hover {
    color: var(--rm-turquoise);
}


/* ─── SCROLL ANIMATION ─────────────────────────────────── */
.rm-sc .rm-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--rm-duration-slow) var(--rm-ease),
                transform var(--rm-duration-slow) var(--rm-ease);
}

.rm-sc .rm-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid children */
.rm-sc .rm-animate-stagger > .rm-animate:nth-child(1) { transition-delay: 0.05s; }
.rm-sc .rm-animate-stagger > .rm-animate:nth-child(2) { transition-delay: 0.1s; }
.rm-sc .rm-animate-stagger > .rm-animate:nth-child(3) { transition-delay: 0.15s; }
.rm-sc .rm-animate-stagger > .rm-animate:nth-child(4) { transition-delay: 0.2s; }
.rm-sc .rm-animate-stagger > .rm-animate:nth-child(5) { transition-delay: 0.25s; }
.rm-sc .rm-animate-stagger > .rm-animate:nth-child(6) { transition-delay: 0.3s; }
.rm-sc .rm-animate-stagger > .rm-animate:nth-child(7) { transition-delay: 0.35s; }
.rm-sc .rm-animate-stagger > .rm-animate:nth-child(8) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .rm-sc .rm-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ─── CATEGORY BADGE ───────────────────────────────────── */
.rm-sc .rm-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.5;
    width: max-content;
}

.rm-sc .rm-badge--pill {
    border-radius: var(--rm-radius-pill);
    padding: 4px 14px;
}

.rm-sc .rm-badge--subtle {
    background: rgba(42, 183, 183, 0.1);
    color: var(--rm-turquoise);
}


/* ─── HERO SECTION ─────────────────────────────────────── */
.rm-sc .rm-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-color: var(--rm-gray-50);
    border-radius: var(--rm-radius-lg);
    min-height: 300px;
    aspect-ratio: 16 / 9;
}

/* ── Hero Contain Mode: imagen completa, sin recortes ─── */
.rm-sc .rm-hero.rm-hero--contain {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--rm-gray-50);
}

.rm-sc .rm-hero.rm-hero--contain .rm-hero__overlay {
    background: linear-gradient(135deg,
        rgba(250, 250, 250, 0.92) 0%,
        rgba(250, 250, 250, 0.7) 40%,
        rgba(250, 250, 250, 0.3) 100%) !important;
}

.rm-sc .rm-hero.rm-hero--contain .rm-hero__overlay::before {
    display: none;
}

.rm-sc .rm-hero.rm-hero--contain .rm-hero__title,
.rm-sc .rm-hero.rm-hero--contain .rm-hero__title a,
.rm-sc .rm-hero.rm-hero--contain .rm-hero__excerpt,
.rm-sc .rm-hero.rm-hero--contain .rm-hero__meta {
    color: var(--rm-navy) !important;
}

.rm-sc .rm-hero.rm-hero--contain .rm-hero__badge {
    background: rgba(42, 183, 183, 0.12);
    color: var(--rm-turquoise-dark);
    border-color: rgba(42, 183, 183, 0.3);
}

.rm-sc .rm-hero.rm-hero--contain .rm-hero__cta {
    background: linear-gradient(135deg, var(--rm-navy), var(--rm-navy-light));
    box-shadow: var(--rm-shadow-md);
}

.rm-sc .rm-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(15, 27, 45, 0.88) 0%,
        rgba(26, 58, 92, 0.72) 50%,
        rgba(26, 48, 80, 0.55) 100%);
    pointer-events: none;
}

/* Atmospheric glow (HTML Skill pattern) */
.rm-sc .rm-hero__overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 30%, rgba(42, 183, 183, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 75% 70%, rgba(232, 108, 79, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.rm-sc .rm-hero__content {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 100%;
    max-width: 65%;
}

.rm-sc .rm-hero__badge {
    display: inline-block;
    background: rgba(42, 183, 183, 0.2);
    border: 1px solid rgba(42, 183, 183, 0.35);
    color: var(--rm-turquoise-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: var(--rm-radius-pill);
    margin-bottom: 16px;
    text-decoration: none;
}

.rm-sc .rm-hero__title {
    font-size: var(--rm-text-hero);
    font-weight: 900;
    color: white;
    line-height: 1.15;
    margin: 0 0 14px;
}

.rm-sc .rm-hero__title a {
    color: inherit;
    text-decoration: none;
}

.rm-sc .rm-hero__excerpt {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--rm-text-body);
    line-height: 1.7;
    margin: 0 0 24px;
    max-width: 520px;
}

.rm-sc .rm-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--rm-coral), var(--rm-coral-dark));
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--rm-radius-pill);
    text-decoration: none;
    transition: all var(--rm-duration) var(--rm-ease);
    box-shadow: var(--rm-shadow-glow-coral);
    letter-spacing: 0.3px;
}

.rm-sc .rm-hero__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(232, 108, 79, 0.4);
}

.rm-sc .rm-hero__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--rm-text-xs);
    font-weight: 600;
    margin-top: 16px;
}


/* ─── GRID CARDS ───────────────────────────────────────── */
.rm-sc .rm-grid {
    display: grid;
    gap: 28px;
    margin-top: 24px;
}

.rm-sc .rm-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.rm-sc .rm-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.rm-sc .rm-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

.rm-sc .rm-grid-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    transition: transform var(--rm-duration) var(--rm-ease);
}

.rm-sc .rm-grid-card__image {
    position: relative;
    overflow: hidden;
    border-radius: var(--rm-radius);
    box-shadow: var(--rm-shadow-sm);
    margin-bottom: 14px;
}

.rm-sc .rm-grid-card__image img {
    width: 100%;
    height: 100%;
    transition: transform var(--rm-duration-slow) var(--rm-ease);
}

.rm-sc .rm-grid-card:hover .rm-grid-card__image img {
    transform: scale(1.06);
}

.rm-sc .rm-grid-card__image .rm-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: var(--rm-z-badge);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.rm-sc .rm-grid-card__image-link {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.rm-sc .rm-grid-card__image-link img {
    width: 100%;
    height: 100%;
}

.rm-sc .rm-grid-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--rm-text-xs);
    font-weight: 700;
    color: var(--rm-text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rm-sc .rm-grid-card__title {
    font-size: var(--rm-text-h3);
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 8px;
}

.rm-sc .rm-grid-card__title a {
    color: var(--rm-navy);
    text-decoration: none;
    transition: color var(--rm-duration-fast) var(--rm-ease);
}

.rm-sc .rm-grid-card__title a:hover {
    color: var(--rm-turquoise);
}

.rm-sc .rm-grid-card__excerpt {
    font-size: var(--rm-text-small);
    color: var(--rm-text-muted);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ─── FEED CARDS (horizontal list) ─────────────────────── */
.rm-sc .rm-feed {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rm-sc .rm-feed-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rm-gray-200);
    transition: transform var(--rm-duration-fast) var(--rm-ease);
}

.rm-sc .rm-feed-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rm-sc .rm-feed-card__thumb {
    overflow: hidden;
    border-radius: var(--rm-radius);
    width: 260px;
    flex-shrink: 0;
    box-shadow: var(--rm-shadow-sm);
}

.rm-sc .rm-feed-card__thumb a {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.rm-sc .rm-feed-card__thumb img {
    width: 100%;
    height: 100%;
    transition: transform var(--rm-duration-slow) var(--rm-ease);
}

.rm-sc .rm-feed-card:hover .rm-feed-card__thumb img {
    transform: scale(1.06);
}

.rm-sc .rm-feed-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rm-sc .rm-feed-card__title {
    font-size: var(--rm-text-h3);
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rm-sc .rm-feed-card__title a {
    color: var(--rm-navy);
    text-decoration: none;
    transition: color var(--rm-duration-fast) var(--rm-ease);
}

.rm-sc .rm-feed-card__title a:hover {
    color: var(--rm-turquoise);
}

.rm-sc .rm-feed-card__excerpt {
    font-size: var(--rm-text-small);
    color: var(--rm-text-muted);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rm-sc .rm-feed-card__meta {
    display: flex;
    gap: 6px;
    font-size: var(--rm-text-xs);
    color: var(--rm-text-light);
    font-weight: 600;
}

.rm-sc .rm-feed-card__link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: var(--rm-text-small);
    text-decoration: none;
    color: var(--rm-turquoise);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity var(--rm-duration-fast) var(--rm-ease);
    margin-top: auto;
}

.rm-sc .rm-feed-card__link:hover {
    opacity: 0.7;
}


/* ─── CATMOD (Category Module) ─────────────────────────── */
.rm-sc .rm-catmod {
    margin-bottom: 32px;
}

.rm-sc .rm-catmod__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-radius: var(--rm-radius-lg);
    margin-bottom: 24px;
    gap: 16px;
    color: white;
}

.rm-sc .rm-catmod__header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.rm-sc .rm-catmod__header-icon {
    flex-shrink: 0;
    font-size: 1.4rem;
    opacity: 0.9;
}

.rm-sc .rm-catmod__header-title {
    margin: 0;
    font-size: var(--rm-text-h3);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.rm-sc .rm-catmod__header-subtitle {
    margin: 3px 0 0;
    font-size: var(--rm-text-xs);
    opacity: 0.85;
    font-weight: 400;
}

.rm-sc .rm-catmod__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: var(--rm-radius-pill);
    background: rgba(255, 255, 255, 0.95);
    color: var(--rm-navy);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all var(--rm-duration-fast) var(--rm-ease);
    white-space: nowrap;
}

.rm-sc .rm-catmod__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.rm-sc .rm-catmod__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.rm-sc .rm-catmod__card {
    display: flex;
    background: var(--rm-global-card-bg, white);
    color: var(--rm-global-card-text, inherit);
    border-radius: var(--rm-radius);
    overflow: hidden;
    border: 1.5px solid var(--rm-gray-200);
    box-shadow: var(--rm-global-card-shadow, none);
    transition: all var(--rm-duration) var(--rm-ease);
    align-items: stretch;
}

.rm-sc .rm-catmod__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rm-shadow-lg);
    border-color: var(--rm-turquoise);
}

.rm-sc .rm-catmod__card-thumb {
    width: 120px;
    flex-shrink: 0;
    overflow: hidden;
}

.rm-sc .rm-catmod__card-thumb img {
    width: 100%;
    height: 100%;
    transition: transform var(--rm-duration-slow) var(--rm-ease);
}

.rm-sc .rm-catmod__card:hover .rm-catmod__card-thumb img {
    transform: scale(1.06);
}

.rm-sc .rm-catmod__card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.rm-sc .rm-catmod__card-title {
    margin: 0;
    font-size: var(--rm-text-body);
    font-weight: 800;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rm-sc .rm-catmod__card-title a {
    color: var(--rm-navy);
    text-decoration: none;
    transition: color var(--rm-duration-fast) var(--rm-ease);
}

.rm-sc .rm-catmod__card-title a:hover {
    color: var(--rm-turquoise);
}

.rm-sc .rm-catmod__card-excerpt {
    font-size: var(--rm-text-xs);
    color: var(--rm-text-muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rm-sc .rm-catmod__card-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: var(--rm-text-xs);
    text-decoration: none;
    color: var(--rm-coral);
    letter-spacing: 0.02em;
    transition: opacity var(--rm-duration-fast) var(--rm-ease);
    margin-top: auto;
}

.rm-sc .rm-catmod__card-link:hover {
    opacity: 0.7;
}


/* ─── POPULAR POSTS (sidebar) ──────────────────────────── */
.rm-sc .rm-popular {
    padding: 24px;
    background: var(--rm-global-card-bg, white);
    color: var(--rm-global-card-text, inherit);
    border-radius: var(--rm-radius-lg);
    border: 1.5px solid var(--rm-gray-200);
    box-shadow: var(--rm-global-card-shadow, none);
}

.rm-sc .rm-popular__title {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--rm-text-small);
    font-weight: 900;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rm-navy);
}

.rm-sc .rm-popular__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rm-sc .rm-popular__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: transform var(--rm-duration-fast) var(--rm-ease);
}

.rm-sc .rm-popular__item:hover {
    transform: translateX(4px);
}

.rm-sc .rm-popular__number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 900;
    border-radius: 8px;
    background: var(--rm-gray-100);
    color: var(--rm-navy);
}

.rm-sc .rm-popular__item:first-child .rm-popular__number {
    background: linear-gradient(135deg, var(--rm-coral), var(--rm-coral-dark));
    color: white;
}

.rm-sc .rm-popular__thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--rm-radius-sm);
    overflow: hidden;
}

.rm-sc .rm-popular__thumb img {
    width: 100%;
    height: 100%;
    transition: transform var(--rm-duration) var(--rm-ease);
}

.rm-sc .rm-popular__item:hover .rm-popular__thumb img {
    transform: scale(1.08);
}

.rm-sc .rm-popular__content {
    flex: 1;
    min-width: 0;
}

.rm-sc .rm-popular__item-title {
    font-size: var(--rm-text-small);
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.rm-sc .rm-popular__item-title a {
    color: var(--rm-navy);
    text-decoration: none;
    transition: color var(--rm-duration-fast) var(--rm-ease);
}

.rm-sc .rm-popular__item-title a:hover {
    color: var(--rm-turquoise);
}

.rm-sc .rm-popular__item-meta {
    font-size: var(--rm-text-xs);
    color: var(--rm-text-light);
    margin-top: 4px;
    font-weight: 500;
}


/* ─── SHORTS CAROUSEL ──────────────────────────────────── */
.rm-sc .rm-shorts {
    position: relative;
    padding: 0 44px;
}

.rm-sc .rm-shorts .swiper-slide {
    height: auto;
}

.rm-sc .rm-short-card {
    display: block;
    text-decoration: none;
    border-radius: var(--rm-radius);
    overflow: hidden;
    border: 1.5px solid var(--rm-gray-200);
    transition: all var(--rm-duration) var(--rm-ease);
}

.rm-sc .rm-short-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rm-shadow-lg);
    border-color: var(--rm-turquoise);
}

.rm-sc .rm-short-card__thumb {
    position: relative;
    padding-bottom: 177.78%; /* 9:16 */
    background-size: cover;
    background-position: center;
    background-color: var(--rm-gray-100);
}

.rm-sc .rm-short-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rm-navy);
    transition: all var(--rm-duration) var(--rm-ease);
    box-shadow: var(--rm-shadow-md);
}

.rm-sc .rm-short-card:hover .rm-short-card__play {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: var(--rm-shadow-lg);
}

.rm-sc .rm-short-card__title {
    display: block;
    padding: 12px 14px;
    font-size: var(--rm-text-small);
    font-weight: 600;
    color: var(--rm-navy);
    background: white;
    line-height: 1.4;
}

.rm-sc .rm-shorts .swiper-button-prev,
.rm-sc .rm-shorts .swiper-button-next {
    color: var(--rm-navy);
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    border: 1.5px solid var(--rm-gray-200);
    box-shadow: var(--rm-shadow-sm);
    transition: all var(--rm-duration-fast) var(--rm-ease);
}

.rm-sc .rm-shorts .swiper-button-prev:hover,
.rm-sc .rm-shorts .swiper-button-next:hover {
    border-color: var(--rm-turquoise);
    box-shadow: var(--rm-shadow-md);
}

.rm-sc .rm-shorts .swiper-button-prev::after,
.rm-sc .rm-shorts .swiper-button-next::after {
    font-size: 13px;
    font-weight: bold;
}

.rm-sc .rm-shorts .swiper-button-prev { left: 0; }
.rm-sc .rm-shorts .swiper-button-next { right: 0; }


/* ─── HOMEPAGE LAYOUT ──────────────────────────────────── */
.rm-sc .rm-home-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 0;
    align-items: start;
}
.rm-sc .rm-home-layout.rm-home-layout--no-sidebar {
    grid-template-columns: 1fr !important;
}

.rm-sc .rm-home-main {
    min-width: 0;
}

.rm-sc .rm-home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 80px;
    padding-top: 12px;
}

.rm-sc .rm-section {
    margin-bottom: var(--rm-global-section-gap, 40px);
}

.rm-sc .rm-section--full {
    grid-column: 1 / -1;
}


/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .rm-sc .rm-home-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rm-sc .rm-hero__content {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .rm-sc .rm-hero {
        min-height: 340px;
        align-items: stretch;
    }

    .rm-sc .rm-hero__overlay {
        background: linear-gradient(to top,
            rgba(15, 27, 45, 0.95) 0%,
            rgba(26, 58, 92, 0.8) 40%,
            rgba(26, 58, 92, 0.4) 100%) !important;
    }

    .rm-sc .rm-hero__content {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 20px;
        max-width: 100%;
    }

    .rm-sc .rm-hero__cta {
        min-height: 44px;
        padding: 12px 24px;
    }

    .rm-sc .rm-grid--cols-2,
    .rm-sc .rm-grid--cols-3,
    .rm-sc .rm-grid--cols-4 {
        grid-template-columns: 1fr;
    }

    .rm-sc .rm-feed-card {
        flex-direction: column;
        gap: 12px;
    }

    .rm-sc .rm-feed-card__thumb {
        width: 100%;
    }

    .rm-sc .rm-catmod__grid {
        grid-template-columns: 1fr;
    }

    .rm-sc .rm-catmod__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .rm-sc .rm-catmod__cta {
        align-self: flex-end;
    }

    .rm-sc .rm-shorts {
        padding: 0;
    }

    .rm-sc .rm-shorts .swiper-button-prev,
    .rm-sc .rm-shorts .swiper-button-next {
        display: none;
    }
}

@media (max-width: 480px) {
    .rm-sc .rm-hero__badge {
        font-size: 10px;
        padding: 4px 12px;
    }

    .rm-sc .rm-grid-card__title {
        font-size: var(--rm-text-body);
    }

    .rm-sc .rm-catmod__card {
        flex-direction: column;
    }

    .rm-sc .rm-catmod__card-thumb {
        width: 100%;
        height: 160px;
    }
}


/* ─── NO POSTS FALLBACK ────────────────────────────────── */
.rm-sc .rm-no-posts {
    padding: 40px;
    text-align: center;
    background: var(--rm-gray-50);
    border-radius: var(--rm-radius);
    color: var(--rm-text-muted);
    font-size: var(--rm-text-body);
    border: 1.5px dashed var(--rm-gray-300);
}


/* ─── SECTION OVERLAY (Fase 3a) ────────────────────────── */
.rm-section--has-overlay {
    position: relative;
}
.rm-section--has-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--rm-overlay, rgba(0,0,0,0.4));
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
}
.rm-section--has-overlay > * {
    position: relative;
    z-index: 1;
}


/* ─── FOOTER ──────────────────────────────────────────── */
.rm-sc .rm-footer {
    position: relative;
    background: var(--footer-bg, #0f1b2d);
    color: var(--footer-text, #cbd5e1);
    padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2rem);
    overflow: hidden;
    font-size: var(--rm-text-body);
    line-height: 1.7;
    /* Full-width breakout — rompe el contenedor padre */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}

.rm-sc .rm-footer__glow {
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(42, 183, 183, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.rm-sc .rm-footer__grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
    max-width: 1200px;
    margin: 0 auto;
}

.rm-sc .rm-footer__grid--1 { grid-template-columns: 1fr; }
.rm-sc .rm-footer__grid--2 { grid-template-columns: 1fr 1fr; }
.rm-sc .rm-footer__grid--3 { grid-template-columns: 1.2fr 1fr 1fr; }
.rm-sc .rm-footer__grid--4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }

@media (max-width: 768px) {
    .rm-sc .rm-footer__grid--2,
    .rm-sc .rm-footer__grid--3,
    .rm-sc .rm-footer__grid--4 {
        grid-template-columns: 1fr;
    }
}

.rm-sc .rm-footer__col {
    min-width: 0;
}

.rm-sc .rm-footer__logo {
    max-height: 60px;
    width: auto;
    margin-bottom: 1.25rem;
    opacity: 0.95;
    transition: opacity var(--rm-duration) var(--rm-ease);
}

.rm-sc .rm-footer__logo:hover {
    opacity: 1;
}

.rm-sc .rm-footer__heading {
    font-family: inherit;
    font-size: var(--rm-text-small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
    margin: 0 0 1rem 0;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--footer-accent, var(--rm-turquoise));
    display: inline-block;
}

.rm-sc .rm-footer__content {
    font-size: var(--rm-text-small);
    line-height: 1.8;
    color: var(--footer-text, #cbd5e1);
}

.rm-sc .rm-footer__content p {
    margin: 0 0 0.5rem;
}

.rm-sc .rm-footer__content a {
    color: var(--footer-text, #cbd5e1);
    text-decoration: none;
    transition: color var(--rm-duration-fast) var(--rm-ease),
                padding-left var(--rm-duration-fast) var(--rm-ease);
    display: inline-block;
}

.rm-sc .rm-footer__content a:hover {
    color: var(--footer-accent, var(--rm-turquoise));
    padding-left: 4px;
}

.rm-sc .rm-footer__content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rm-sc .rm-footer__content ul li {
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rm-sc .rm-footer__content ul li:last-child {
    border-bottom: none;
}

/* Social icons */
.rm-sc .rm-footer__social {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    padding-top: 1rem;
}

.rm-sc .rm-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--footer-text, #cbd5e1);
    transition: all var(--rm-duration) var(--rm-ease);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rm-sc .rm-footer__social-link:hover {
    background: var(--footer-accent, var(--rm-turquoise));
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 183, 183, 0.3);
    border-color: transparent;
}

.rm-sc .rm-footer__social-link svg {
    width: 18px;
    height: 18px;
}

/* Bottom bar */
.rm-sc .rm-footer__bottom {
    position: relative;
    z-index: 1;
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.rm-sc .rm-footer__divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(42, 183, 183, 0.3) 20%,
        rgba(42, 183, 183, 0.5) 50%,
        rgba(42, 183, 183, 0.3) 80%,
        transparent 100%
    );
    margin-bottom: 1.25rem;
}

.rm-sc .rm-footer__copyright {
    text-align: center;
    font-size: var(--rm-text-xs);
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
    letter-spacing: 0.02em;
}

/* --- Social Sorter (Admin Builder) --- */
.rm-social-sorter__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rm-social-sorter__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: grab;
    user-select: none;
    transition: all 0.15s ease;
    font-size: 13px;
}
.rm-social-sorter__item:hover {
    background: #eef4ff;
    border-color: #93c5fd;
}
.rm-social-sorter__item:active { cursor: grabbing; }
.rm-social-sorter__item--dragging {
    opacity: 0.4;
    background: #dbeafe;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}
.rm-social-sorter__grip {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1;
}
.rm-social-sorter__label {
    font-weight: 500;
    color: #334155;
}

/* --- Core: Center .rm-sc wrapper --- */
.rm-sc {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 20px;
}

/* --- A2: SIDEBAR GRID LAYOUT (portable) ---------------- */
.rm-content-layout {
    display: grid;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 40px;
    align-items: start;
}

.rm-content-main {
    min-width: 0;
    font-size: var(--rm-text-body, 1rem);
    line-height: 1.8;
    color: var(--rm-text, #2a2820);
}

.rm-content-sidebar {
    position: sticky;
    top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 0;
}

.rm-content-sidebar .rm-section {
    background: #fff;
    border-radius: var(--rm-radius-lg, 16px);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
}

@media (max-width: 920px) {
    .rm-content-layout {
        grid-template-columns: 1fr !important;
        gap: 32px;
        padding: 16px;
    }
    .rm-content-sidebar {
        position: static;
    }
}

@media (max-width: 544px) {
    .rm-content-layout {
        padding: 12px;
        gap: 24px;
    }
    .rm-content-sidebar .rm-section {
        padding: 16px;
    }
}


/* ============================================================
   BLOG LAYOUT (rm-blog)
   ============================================================ */
.rm-blog-container {
    width: 100%;
}

.rm-blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.rm-blog-header__title {
    font-size: var(--rm-text-h2);
    color: var(--rm-navy);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: 1px;
}

.rm-blog-header__subtitle {
    color: var(--rm-text-muted);
    font-size: var(--rm-text-body);
    max-width: 600px;
    margin: 0 auto 16px;
}

.rm-blog-header__stats {
    font-size: var(--rm-text-small);
    color: var(--rm-text-light);
}

.rm-blog-grid {
    display: grid;
    gap: 30px;
}

.rm-blog-grid.rm-blog--cols-2 { grid-template-columns: repeat(2, 1fr); }
.rm-blog-grid.rm-blog--cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
    .rm-blog-grid.rm-blog--cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .rm-blog-grid.rm-blog--cols-2,
    .rm-blog-grid.rm-blog--cols-3 { grid-template-columns: 1fr; }
}

.rm-blog-card {
    background: #fff;
    border-radius: var(--rm-radius-lg);
    box-shadow: var(--rm-shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--rm-duration-fast) var(--rm-ease), box-shadow var(--rm-duration-fast) var(--rm-ease);
    border: 1px solid var(--rm-gray-200);
}

.rm-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rm-shadow-lg);
}

.rm-blog-card__header {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--rm-gray-100);
}

.rm-blog-card__header a {
    display: block;
    width: 100%;
    height: 100%;
}

.rm-blog-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    background-color: #fff !important;
    padding: 5px !important;
    object-position: center;
    transition: transform 0.5s var(--rm-ease);
}

.rm-blog-card:hover .rm-blog-card__image {
    transform: scale(1.05);
}

.rm-blog-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--rm-navy);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--rm-radius-pill);
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.rm-blog-card__content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rm-blog-card__title {
    margin: 0 0 12px;
    font-size: var(--rm-text-h3);
    line-height: 1.3;
    font-weight: 800;
}

.rm-blog-card__title a {
    color: var(--rm-navy);
    text-decoration: none;
    transition: color var(--rm-duration-fast);
}

.rm-blog-card__title a:hover {
    color: var(--rm-turquoise);
}

.rm-blog-card__excerpt {
    color: var(--rm-text-muted);
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

.rm-blog-card__footer {
    padding: 16px 24px;
    border-top: 1px solid var(--rm-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--rm-gray-50);
}

.rm-blog-card__date {
    font-size: var(--rm-text-xs);
    color: var(--rm-text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.rm-blog-card__more {
    font-size: var(--rm-text-xs);
    font-weight: 700;
    color: var(--rm-coral);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color var(--rm-duration-fast);
}

.rm-blog-card__more:hover {
    color: var(--rm-coral-dark);
}


/* ============================================================
   PRICING TABLES (rm-pricing) — Sidebar Bar Design
   ============================================================ */
.rm-pricing-section {
    --pr-dark: #1a3a5c;
    --pr-gray-100: #f8f8f7;
    --pr-gray-200: #e8e6e3;
    --pr-gray-600: #6a6860;
    --pr-radius: var(--rm-global-radius, 16px);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 16px;
}

/* Header */
.rm-pricing-header {
    text-align: center;
    margin-bottom: 36px;
}

.rm-pricing-header__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 900;
    color: var(--pr-dark);
    margin: 0;
    letter-spacing: -0.5px;
}

/* Toggle / Tabs */
.rm-pricing-toggle-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.rm-pricing-toggle-wrapper {
    display: inline-flex;
    background: var(--pr-gray-100);
    border: 1.5px solid var(--pr-gray-200);
    border-radius: 50px;
    padding: 4px;
    gap: 4px;
}

.rm-pricing-toggle-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--pr-gray-600);
}

.rm-pricing-toggle-btn.active {
    background: var(--pr-dark);
    color: white;
    box-shadow: 0 4px 12px rgba(26,58,92,0.25);
}

.rm-pricing-toggle-btn:hover:not(.active) {
    color: var(--pr-dark);
    background: var(--pr-gray-200);
}

/* Grid */
.rm-pricing-grid {
    display: grid;
    gap: 28px;
    align-items: stretch;
}

.rm-pricing-grid.rm-pricing--cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 900px !important; margin: 0 auto !important; }
.rm-pricing-grid.rm-pricing--cols-3 { grid-template-columns: repeat(3, 1fr); }
.rm-pricing-grid.rm-pricing--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .rm-pricing-grid.rm-pricing--cols-3,
    .rm-pricing-grid.rm-pricing--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .rm-pricing-grid.rm-pricing--cols-2,
    .rm-pricing-grid.rm-pricing--cols-3,
    .rm-pricing-grid.rm-pricing--cols-4 { grid-template-columns: 1fr; }
}

/* Card base */
.rm-pricing-card {
    background: var(--rm-global-card-bg, #fff);
    color: var(--rm-global-card-text, inherit);
    border-radius: var(--pr-radius);
    box-shadow: var(--rm-global-card-shadow, 0 2px 16px rgba(0,0,0,0.07));
    overflow: hidden;
    display: flex;
    flex-direction: row;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(25px);
}

.rm-pricing-card.rm-visible {
    opacity: 1;
    transform: translateY(0);
}

.rm-pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.rm-pricing-card.rm-visible:hover {
    transform: translateY(-5px);
}

/* ── Sidebar Bar (colored left stripe) ── */
.rm-pricing-card__bar {
    width: 48px;
    min-width: 48px;
    background: var(--card-color, #2ab7b7);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: var(--pr-radius) 0 0 var(--pr-radius);
    flex-shrink: 0;
}

.rm-pricing-card__bar span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Card without bar — stack vertically */
.rm-pricing-card:not(.rm-pricing-card--with-bar) {
    flex-direction: column;
}

/* ── Card Body ── */
.rm-pricing-card__body {
    flex: 1;
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
}

.rm-pricing-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 800;
    color: var(--pr-dark);
    text-transform: uppercase;
    margin: 0 0 20px;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

/* Price */
.rm-pricing-card__price-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 6px;
}

.rm-pricing-card__currency {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--pr-dark);
    margin-top: 10px;
    margin-right: 2px;
}

.rm-pricing-card__price {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(48px, 8vw, 64px);
    font-weight: 900;
    line-height: 1;
    color: var(--pr-dark);
    letter-spacing: -2px;
}

.rm-pricing-card__disclaimer {
    color: var(--pr-gray-600);
    font-size: 13px;
    margin-bottom: 20px;
}

/* Description */
.rm-pricing-card__desc {
    color: var(--pr-dark);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* Features list */
.rm-pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    flex: 1;
}

.rm-pricing-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--pr-gray-600);
    line-height: 1.5;
    border-bottom: 1px solid var(--pr-gray-100);
}

.rm-pricing-card__features li:last-child {
    border-bottom: none;
}

.rm-pricing-card__check {
    color: var(--card-color, #2ab7b7);
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1.3;
}

/* CTA Button */
.rm-pricing-card__footer {
    margin-top: auto;
    text-align: center;
}

.rm-pricing-card__btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: var(--card-color, #2ab7b7);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.rm-pricing-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
    color: #fff !important;
    text-decoration: none;
}

/* ── Responsive card tweaks ── */
@media (max-width: 600px) {
    .rm-pricing-card__body {
        padding: 28px 20px 24px;
    }
    .rm-pricing-card__bar {
        width: 36px;
        min-width: 36px;
    }
    .rm-pricing-card__bar span {
        font-size: 10px;
        letter-spacing: 2px;
    }
}

/* ── CLASSIC PRICING STYLE (rm-pricing-classic) ── */
.rm-pricing-section--classic {
    font-family: 'Inter', sans-serif;
}

.rm-pricing-section--classic .rm-pricing-grid {
    align-items: stretch;
}

/* Card base */
.rm-pricing-card--classic {
    background: var(--rm-global-card-bg, #fff);
    color: var(--rm-global-card-text, inherit);
    border-radius: var(--rm-global-radius, 16px);
    padding: 36px 28px 32px;
    text-align: center;
    border: 2px solid #eef1f5;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--rm-global-card-shadow, 0 4px 20px rgba(10,42,60,0.04));
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, opacity 0.5s ease;
}

.rm-pricing-card--classic .rm-pricing-card__body {
    padding: 0 !important;
}

.rm-pricing-card--classic.rm-visible {
    opacity: 1;
    transform: translateY(0);
}

.rm-pricing-card--classic:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 50px rgba(10,42,60,0.1);
    border-color: var(--card-color, #e87830);
}

/* Featured highlight */
.rm-pricing-card--classic.rm-pricing-card--featured {
    border-color: var(--card-color, #e87830);
    box-shadow: 0 8px 32px rgba(232,120,48,0.12);
}

.rm-pricing-card--classic.rm-pricing-card--featured:hover {
    box-shadow: 0 20px 50px rgba(232,120,48,0.2);
}

/* Ribbon badge on featured card */
.rm-pricing-card--classic.rm-pricing-card--featured::before {
    content: attr(data-ribbon);
    position: absolute;
    top: 16px;
    right: -32px;
    background: linear-gradient(135deg, var(--card-color, #e87830), color-mix(in srgb, var(--card-color, #e87830) 80%, #000));
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 6px 42px;
    transform: rotate(45deg);
    z-index: 2;
}

/* Icon / Emoji upper centered */
.rm-pricing-card__icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--card-color, #e87830) 12%, #fff), color-mix(in srgb, var(--card-color, #e87830) 6%, #fff));
    flex-shrink: 0;
}

.rm-pricing-card__icon-emoji {
    line-height: 1;
    display: inline-block;
}

/* Categories & Text labels */
.rm-pricing-card__category {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--card-color, #e87830);
    margin-bottom: 6px;
    line-height: 1.2;
}

.rm-pricing-card--classic .rm-pricing-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0a2a3c;
    margin-bottom: 4px;
    text-transform: none;
    letter-spacing: normal;
}

.rm-pricing-card__days {
    font-size: 0.82rem;
    color: #8a9baa;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.4;
}

/* Prices inside classic */
.rm-pricing-card--classic .rm-pricing-card__price-row {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.rm-pricing-card--classic .rm-pricing-card__currency {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a2a3c;
    vertical-align: top;
    position: relative;
    top: 6px;
    margin-right: 2px;
}

.rm-pricing-card--classic .rm-pricing-card__price {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: #0a2a3c;
    line-height: 1;
    letter-spacing: -1px;
}

.rm-pricing-card__period {
    display: block;
    font-size: 0.78rem;
    color: #8a9baa;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Features inside classic */
.rm-pricing-card--classic .rm-pricing-card__features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
    flex: 1;
    padding: 0;
}

.rm-pricing-card--classic .rm-pricing-card__features li {
    padding: 8px 0;
    font-size: 0.88rem;
    color: #4a5b6a;
    border-bottom: 1px solid #f5f6f8;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.rm-pricing-card--classic .rm-pricing-card__features li:last-child {
    border-bottom: none;
}

.rm-pricing-card--classic .rm-pricing-card__check {
    color: #27ae60;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1.2;
}

/* Button & CTAs */
.rm-pricing-card--classic .rm-pricing-card__btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border-radius: 8px;
    border: 2px solid var(--card-color, #e87830);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--card-color, #e87830) !important;
    box-shadow: none;
}

.rm-pricing-card--classic .rm-pricing-card__btn:hover {
    background: linear-gradient(135deg, var(--card-color, #e87830), color-mix(in srgb, var(--card-color, #e87830) 80%, #000));
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(232,120,48,0.25);
    transform: translateY(-2px);
    border-color: transparent;
}

/* Featured card CTA button */
.rm-pricing-card--classic.rm-pricing-card--featured .rm-pricing-card__btn {
    background: linear-gradient(135deg, var(--card-color, #e87830), color-mix(in srgb, var(--card-color, #e87830) 80%, #000));
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(232,120,48,0.2);
    border-color: transparent;
}

.rm-pricing-card--classic.rm-pricing-card--featured .rm-pricing-card__btn:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--card-color, #e87830) 80%, #fff), var(--card-color, #e87830));
    box-shadow: 0 8px 28px rgba(232,120,48,0.35);
}

/* Active tab button for classic styles */
.rm-pricing-section--classic .rm-pricing-toggle-btn.active {
    background: linear-gradient(135deg, var(--card-color, #e87830), color-mix(in srgb, var(--card-color, #e87830) 80%, #000));
    color: #fff;
    box-shadow: 0 4px 16px rgba(232,120,48,0.25);
}

.rm-pricing-section--classic .rm-pricing-toggle-btn:hover:not(.active) {
    color: var(--card-color, #e87830);
    background: var(--pr-gray-200);
}

/* Responsive tweaks for classic */
@media (max-width: 900px) {
    .rm-pricing-section--classic .rm-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ── Image Fit Utilities (v1.3.0) ────────────────────── */
.rm-img-contain img {
    object-fit: contain !important;
    background: var(--rm-gray-50, #fafafa);
}

.rm-img-cover img {
    object-fit: cover !important;
    background: transparent;
}

/* ─── SMART IMAGE: Blurred Background Fill (v1.5.0) ──── */
/* Muestra la imagen completa (sin corte) con fondo blur  */
/* de la misma imagen rellenando los huecos. Estilo       */
/* YouTube/Spotify. Requiere --rm-blur-bg inline.         */
.rm-img-smart {
    position: relative;
    overflow: hidden;
    background: var(--rm-gray-100, #f0f0f0);
}

.rm-img-smart::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--rm-blur-bg, transparent) center / cover no-repeat;
    filter: blur(20px) saturate(1.3);
    z-index: 0;
    opacity: 0.55;
    transition: opacity var(--rm-duration, 0.3s) ease;
}

.rm-img-smart img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Hover: blur más visible */
*:hover > .rm-img-smart::before,
.rm-img-smart:hover::before {
    opacity: 0.7;
}

/* ─── BACKDROP & IMAGE UTILITIES (v1.4.0) ────────────── */
.rm-backdrop--blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(26, 58, 92, 0.4);
}

.rm-backdrop--contain {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Aspect Ratio Utilities */
.rm-aspect-16-10 { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; height: auto; }
.rm-aspect-3-2   { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; height: auto; }
.rm-aspect-4-3   { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.rm-aspect-square { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; height: auto; }

@supports not (aspect-ratio: 16 / 10) {
    .rm-aspect-16-10 { padding-top: 62.5%; position: relative; }
    .rm-aspect-16-10 > * { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
}

/* ─── COUNTDOWN TIMER (v2.0.0) ───────────────────────── */
.rm-sc .rm-countdown {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--rm-navy);
    border-radius: var(--rm-radius-lg);
}

.rm-sc .rm-countdown--hero {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.rm-sc .rm-countdown__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.rm-sc .rm-countdown__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(42, 183, 183, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(232, 108, 79, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}

.rm-sc .rm-countdown__content {
    position: relative;
    z-index: 3;
    padding: 48px 24px;
    max-width: 800px;
    width: 100%;
}

.rm-sc .rm-countdown__title {
    font-family: var(--rm-font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.rm-sc .rm-countdown__subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    margin: 0 0 32px;
    font-weight: 400;
}

.rm-sc .rm-countdown__timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.rm-sc .rm-countdown__unit {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--rm-global-radius, 16px);
    padding: 20px 16px;
    min-width: 90px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.rm-sc .rm-countdown__unit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.rm-sc .rm-countdown__number {
    display: block;
    font-family: var(--rm-font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--rm-cd-accent, var(--rm-turquoise));
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.rm-sc .rm-countdown__label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 6px;
    font-weight: 600;
}

.rm-sc .rm-countdown__separator {
    font-size: 2.4rem;
    font-weight: 800;
    color: rgba(255,255,255,0.25);
    line-height: 1;
    padding-bottom: 20px;
}

.rm-sc .rm-countdown__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 32px;
    background: var(--rm-cd-accent, var(--rm-turquoise));
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 99px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(42, 183, 183, 0.3);
}

.rm-sc .rm-countdown__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(42, 183, 183, 0.4);
    color: #fff;
}

.rm-sc .rm-countdown__expired-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    padding: 16px 32px;
    background: rgba(42, 183, 183, 0.15);
    border: 1px solid rgba(42, 183, 183, 0.3);
    border-radius: 12px;
    display: inline-block;
}

@keyframes rm-cd-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.rm-sc .rm-countdown__number.rm-cd-flip {
    animation: rm-cd-pulse 0.35s ease-in-out;
}

.rm-sc .rm-countdown--cards { background: transparent; border-radius: 0; }
.rm-sc .rm-countdown--cards .rm-countdown__content { padding: 24px 0; max-width: 100%; }
.rm-sc .rm-countdown--cards .rm-countdown__title { color: var(--rm-navy); font-size: 1.6rem; text-shadow: none; }
.rm-sc .rm-countdown--cards .rm-countdown__subtitle { color: var(--rm-gray-500); }
.rm-sc .rm-countdown--cards .rm-countdown__unit { background: var(--rm-global-card-bg, #fff); color: var(--rm-global-card-text, inherit); border: 1px solid var(--rm-gray-200); border-radius: var(--rm-global-radius, 12px); box-shadow: var(--rm-global-card-shadow, var(--rm-shadow-sm)); }
.rm-sc .rm-countdown--cards .rm-countdown__label { color: var(--rm-gray-500); }
.rm-sc .rm-countdown--cards .rm-countdown__separator { color: var(--rm-gray-300); }

.rm-sc .rm-countdown--minimal { background: transparent; border-radius: 0; }
.rm-sc .rm-countdown--minimal .rm-countdown__content { padding: 16px 0; }
.rm-sc .rm-countdown--minimal .rm-countdown__unit { background: transparent; border: none; backdrop-filter: none; padding: 8px; min-width: 60px; }
.rm-sc .rm-countdown--minimal .rm-countdown__number { color: var(--rm-navy); font-size: 2.2rem; }
.rm-sc .rm-countdown--minimal .rm-countdown__title { color: var(--rm-navy); font-size: 1.2rem; text-shadow: none; }
.rm-sc .rm-countdown--minimal .rm-countdown__label { color: var(--rm-gray-400); }
.rm-sc .rm-countdown--minimal .rm-countdown__separator { color: var(--rm-gray-300); font-size: 1.6rem; }

@media (max-width: 640px) {
    .rm-sc .rm-countdown--hero { min-height: 320px; }
    .rm-sc .rm-countdown__title { font-size: 1.6rem; }
    .rm-sc .rm-countdown__timer { gap: 6px; }
    .rm-sc .rm-countdown__unit { min-width: 65px; padding: 14px 10px; border-radius: 12px; }
    .rm-sc .rm-countdown__number { font-size: 2rem; }
    .rm-sc .rm-countdown__separator { font-size: 1.6rem; }
}

/* ═══════════════════════════════════════════════════════════
   SOCIAL SHARE — rm_social_share
   @since 2.0.1
   ═══════════════════════════════════════════════════════════ */

.rm-social-share {
    --rm-ss-accent: #2ab7b7;
    font-family: var(--rm-font, 'Inter', system-ui, sans-serif);
}

.rm-social-share__title {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 10px;
}

.rm-social-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.rm-social-share__btn {
    --btn-color: var(--rm-ss-btn-color, var(--rm-ss-accent));
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--btn-color) 10%, transparent);
    color: var(--btn-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid color-mix(in srgb, var(--btn-color) 20%, transparent);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    line-height: 1;
    white-space: nowrap;
    font-family: inherit;
}

.rm-social-share__btn:hover,
.rm-social-share__btn:focus-visible {
    background: var(--btn-color);
    color: #fff;
    border-color: var(--btn-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--btn-color) 35%, transparent);
    text-decoration: none;
}

.rm-social-share__btn:active {
    transform: translateY(0);
}

.rm-social-share__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.rm-social-share__icon svg {
    width: 100%;
    height: 100%;
}

.rm-social-share__label {
    font-size: inherit;
}

.rm-social-share__btn--copy.is-copied {
    background: #10b981 !important;
    color: #fff !important;
    border-color: #10b981 !important;
}

.rm-social-share--sm .rm-social-share__btn {
    padding: 5px 10px;
    font-size: 0.75rem;
    border-radius: 6px;
    gap: 4px;
}
.rm-social-share--sm .rm-social-share__icon { width: 14px; height: 14px; }

.rm-social-share--lg .rm-social-share__btn {
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 10px;
    gap: 8px;
}
.rm-social-share--lg .rm-social-share__icon { width: 22px; height: 22px; }

.rm-social-share--bar {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.rm-social-share--bar .rm-social-share__title { margin-bottom: 0; flex-shrink: 0; }
.rm-social-share--bar .rm-social-share__buttons { flex-wrap: nowrap; gap: 6px; }
.rm-social-share--bar .rm-social-share__label { display: none; }

.rm-social-share--bar .rm-social-share__btn {
    padding: 8px;
    border-radius: 50%;
    aspect-ratio: 1;
    width: 38px;
    height: 38px;
    justify-content: center;
}

.rm-social-share--floating {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-radius: 0 12px 12px 0;
    box-shadow: 2px 4px 20px rgba(0,0,0,0.12);
    padding: 6px;
    border: 1px solid #e2e8f0;
    border-left: none;
}

.rm-social-share--floating .rm-social-share__title { display: none; }
.rm-social-share--floating .rm-social-share__buttons { flex-direction: column; gap: 4px; }
.rm-social-share--floating .rm-social-share__label { display: none; }

.rm-social-share--floating .rm-social-share__btn {
    padding: 9px;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    justify-content: center;
    border: none;
    background: transparent;
}

.rm-social-share--floating .rm-social-share__btn:hover {
    background: var(--rm-ss-btn-color);
    color: #fff;
    border-radius: 8px;
    transform: scale(1.12);
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

@media (max-width: 600px) {
    .rm-social-share--inline .rm-social-share__label { display: none; }
    .rm-social-share--inline .rm-social-share__btn {
        padding: 8px;
        border-radius: 50%;
        width: 38px;
        height: 38px;
        justify-content: center;
    }
    .rm-social-share--floating {
        position: fixed;
        left: 0; right: 0; bottom: 0; top: auto;
        transform: none;
        flex-direction: row;
        border-radius: 12px 12px 0 0;
        border: 1px solid #e2e8f0;
        border-bottom: none;
        justify-content: center;
        padding: 8px 12px;
    }
    .rm-social-share--floating .rm-social-share__buttons {
        flex-direction: row;
        gap: 6px;
    }
}

/* ─── CLASES DE VISIBILIDAD RESPONSIVA (FASE 4) ─────────────────── */
@media (min-width: 1025px) {
    .rm-hide-on-desktop {
        display: none !important;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .rm-hide-on-tablet {
        display: none !important;
    }
}
@media (max-width: 767px) {
    .rm-hide-on-mobile {
        display: none !important;
    }
}
