/* ================================================
   TIENDA DE LA PIEL — REBRANDING 2025
   Todas las medidas en px (el tema base tiene
   html { font-size: 10px } que rompe los rem)
   ================================================ */

/* === VARIABLES DEL SISTEMA DE DISEÑO === */
:root {
    --rb-brand: #3dcece;
    --rb-brand-deep: #2aa0a0;
    --rb-brand-soft: #f0fcfc;
    --rb-ink: #1e293b;
    --rb-ink-soft: #64748b;
    --rb-bg: #ffffff;
    --rb-surface: #f7ffff;
    --rb-surface-2: #edfafa;
    --rb-border: #e2e8f0;
    --rb-promo: #e05c3a;

    /* Radios — demo usa 14px por defecto */
    --rb-radius: 14px;
    --rb-radius-lg: 20px;
    --rb-radius-xl: 24px;

    --rb-shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04),
        0 4px 16px rgba(15, 23, 42, 0.04);
    --rb-shadow-lift: 0 10px 30px -12px rgba(20, 80, 80, 0.18);
    --rb-shadow-card: 0 1px 0 rgba(15, 23, 42, 0.02),
        0 12px 24px -16px rgba(20, 80, 80, 0.12);
}

/* === FUENTES GLOBALES === */
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    color: var(--rb-ink);
    /* No tocamos font-size ni line-height global para no romper el resto */
}

h1,
h2,
h3,
h4 {
    letter-spacing: -0.02em;
}

.rb-font-script {
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
}

/* === ANIMACIONES === */
@keyframes rb-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

@keyframes rb-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* === CONTENEDOR (max-width 1280px, padding 20px/32px) === */
.rb-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 1024px) {
    .rb-container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* === TIPOGRAFÍAS AUXILIARES === */
/* text-[11px] tracking-[0.28em] uppercase — demo eyebrow */
.rb-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--rb-brand-deep);
    margin-bottom: 12px;
    display: block;
    font-family: "Inter", sans-serif;
}

/* text-3xl / text-4xl headings */
.rb-section-title {
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 300;
    color: var(--rb-ink);
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin: 0;
    font-family: "Inter", sans-serif;
}

/* === BOTONES (píxeles exactos del demo) === */
.rb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 9999px;
    padding: 12px 24px;
    /* py-3 px-6 del demo = 12px 24px */
    font-size: 12px;
    /* text-xs con tracking */
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    border: none;
    line-height: 1;
}

.rb-btn--dark {
    background: var(--rb-ink);
    color: #fff;
}

.rb-btn--dark:hover {
    background: #2d3d5a;
    color: #fff;
    text-decoration: none;
}

.rb-btn--ghost {
    background: rgba(255, 255, 255, 0.9);
    color: var(--rb-ink);
    border: 1px solid var(--rb-border);
    backdrop-filter: blur(4px);
}

.rb-btn--ghost:hover {
    border-color: var(--rb-brand);
    color: var(--rb-brand-deep);
    text-decoration: none;
}

.rb-btn--outline {
    background: transparent;
    border: 1px solid rgba(61, 206, 206, 0.4);
    color: var(--rb-brand-deep);
}

.rb-btn--outline:hover {
    background: var(--rb-brand);
    color: #fff;
    border-color: var(--rb-brand);
    text-decoration: none;
}

/* === LINK SUBRAYADO ANIMADO === */
.rb-link-anim {
    position: relative;
    text-decoration: none;
    color: var(--rb-ink);
    font-weight: 600;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    /* text-sm */
}

.rb-link-anim::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.rb-link-anim:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.rb-link-anim:hover {
    color: var(--rb-ink);
    text-decoration: none;
}

/* =====================================================
   HEADER
   ===================================================== */
.header.header-7 {
    position: sticky !important;
    top: 0 !important;
    z-index: 200 !important;
    background-color: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--rb-border) !important;
    box-shadow: none !important;
}

/* Ocultar barra superior */
.header.header-7 .header-top {
    display: none !important;
}

.header.header-7 .header-middle {
    background: transparent !important;
    border-bottom: none !important;
    padding: 0 !important;
    position: static !important;
    top: auto !important;
}

.header.header-7 .header-middle > .rb-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
}

/* header-left crece para empujar search+icons a la derecha */
.header.header-7 .header-left {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
}

/* Logo */
.header.header-7 .logo {
    flex-shrink: 0;
}

.header.header-7 .logo img {
    height: 36px !important;
    /* h-9 = 36px */
    width: auto !important;
}

/* Nav principal — text-sm = 14px */
.header.header-7 .main-nav > ul.menu {
    display: flex !important;
    align-items: center;
    gap: 32px;
    /* gap-8 = 32px */
    margin: 0;
    padding: 0;
}

.header.header-7 .main-nav > ul.menu > li > a {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--rb-ink) !important;
    padding: 0 !important;
    border: none !important;
    font-family: "Inter", sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    transition: color 0.2s !important;
}

.header.header-7 .main-nav > ul.menu > li > a:hover {
    color: var(--rb-brand-deep) !important;
}

/* ── Megamenu contenedor ── */
/* Sacamos el li del flujo relativo para que el panel se posicione
   respecto al header sticky y quede full-width sin gap */
.header.header-7 .megamenu-container {
    position: static !important;
}

/* SuperFish agrega la clase .sf-with-ul al enlace "Categorías" y con ella
   una flecha (::after, fuente molla) posicionada en right:0, que sin padding
   reservado se superpone sobre el texto. La ocultamos en el trigger. */
.header.header-7 .rb-mega-trigger > a::after,
.header.header-7 .megamenu-container > a.sf-with-ul::after {
    display: none !important;
    content: none !important;
}

.header.header-7 .megamenu {
    display: none;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    /* exactamente debajo del header, sin gap */
    width: 100% !important;
    background: #fff !important;
    border-top: 1px solid var(--rb-border) !important;
    border-bottom: 1px solid var(--rb-border) !important;
    border-radius: 0 !important;
    box-shadow: 0 16px 40px -12px rgba(20, 80, 80, 0.14) !important;
    z-index: 300 !important;
    padding: 40px 0 !important;
}

/* Clase que añade el JS bridge para abrir */
.header.header-7 .rb-megamenu--open,
.header.header-7 .megamenu-container:hover > .megamenu {
    display: block !important;
}

/* Pseudo-elemento bridge: extiende el área interactiva del panel
   24 px hacia arriba para cubrir el gap físico entre el nav y el panel */
.header.header-7 .rb-megamenu::before {
    content: "";
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    height: 24px;
    background: transparent;
    pointer-events: auto;
}

/* ── Grid 4 columnas ── */
.rb-megamenu__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (min-width: 1024px) {
    .rb-megamenu__inner {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
    }
}

/* ── Card de categoría ── */
.rb-megamenu__card {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

.rb-megamenu__card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: var(--rb-surface-2);
    margin-bottom: 10px;
}

.rb-megamenu__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.rb-megamenu__card:hover .rb-megamenu__card-img img {
    transform: scale(1.05);
}

.rb-megamenu__card-name {
    font-size: 14px;
    font-weight: 500;
    font-family: "Inter", sans-serif;
    color: var(--rb-ink);
    margin: 0;
    transition: color 0.2s;
    line-height: 1.3;
}

.rb-megamenu__card:hover .rb-megamenu__card-name {
    color: var(--rb-brand-deep);
}

.menu-cat-img {
    display: none !important;
}

/* Buscador pill — py-2 px-4 del demo = 8px 16px */
.header.header-7 .header-search-wrapper {
    background-color: var(--rb-surface-2) !important;
    border-radius: 9999px !important;
    border: 1px solid var(--rb-border) !important;
    box-shadow: none !important;
    padding: 7px 16px !important;
    transition: border-color 0.2s !important;
}

.header.header-7 .header-search-wrapper:focus-within {
    border-color: rgba(61, 206, 206, 0.4) !important;
}

.header.header-7 .header-search-wrapper input {
    background: transparent !important;
    font-family: "Inter", sans-serif !important;
    font-size: 14px !important;
    color: var(--rb-ink) !important;
}

.header.header-7 .header-search-wrapper input::placeholder {
    color: var(--rb-ink-soft) !important;
    opacity: 0.7 !important;
}

.header.header-7 .btn-search {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.header.header-7 .icon-lupa {
    opacity: 0.6;
}

/* Iconos acción — size-10 = 40px */
.header.header-7 .header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header.header-7 .header-right .wishlist-link,
.header.header-7 .header-right .dropdown.cart-dropdown > button,
.header.header-7 .header-right .account > a > .icon,
.header.header-7 .header-right .dropdown.compare-dropdown > button {
    width: 40px !important;
    height: 40px !important;
    border-radius: 9999px !important;
    border: 1px solid var(--rb-border) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    color: var(--rb-ink) !important;
    transition: border-color 0.2s, color 0.2s !important;
}

.header.header-7 .header-right .wishlist-link:hover,
.header.header-7 .header-right .dropdown.cart-dropdown > button:hover {
    border-color: var(--rb-brand) !important;
    color: var(--rb-brand-deep) !important;
}

.header.header-7 .cart-count,
.header.header-7 .wishlist-count {
    top: -6px !important;
    right: -6px !important;
    background: var(--rb-brand-deep) !important;
    font-family: "Inter", sans-serif !important;
    font-size: 9px !important;
    min-width: 18px !important;
    height: 18px !important;
    line-height: 18px !important;
    border-radius: 9999px !important;
}

.header.header-7 .header-right .login-txt {
    display: none !important;
}

/* Botón pill ¿Dónde comprar? — text-xs tracking wide */
.rb-header-donde {
    display: none;
    align-items: center;
    gap: 6px;
    border-radius: 9999px;
    border: 1px solid rgba(61, 206, 206, 0.4);
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--rb-brand-deep);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: "Inter", sans-serif;
}

.rb-header-donde:hover {
    background: var(--rb-brand);
    color: #fff;
    border-color: var(--rb-brand);
    text-decoration: none;
}

@media (min-width: 992px) {
    .rb-header-donde {
        display: inline-flex;
    }
}

/* =====================================================
   SEARCH PILL — igual al demo:
   hidden md:flex, gap-2, rounded-full, bg-surface-2,
   px-4 py-2, ring-1 ring-border/60, focus-within ring-brand/40
   icon: size-4 (16px) text-ink-soft  |  input: text-sm w-56 (224px)
   ===================================================== */
.rb-search-pill {
    align-items: center;
    /* d-md-flex ya pone display:flex */
    gap: 8px;
    /* gap-2 = 8px */
    border-radius: 9999px;
    background-color: var(--rb-surface-2);
    /* #edfafa */
    padding: 8px 16px;
    /* py-2 px-4 = 8px 16px */
    border: 1px solid rgba(226, 232, 240, 0.6);
    /* ring-1 ring-border/60 */
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.rb-search-pill:focus-within {
    border-color: rgba(61, 206, 206, 0.4);
    /* focus-within:ring-brand/40 */
}

.rb-search-pill__form {
    display: flex;
    align-items: center;
    gap: 8px;
    /* gap-2 = 8px */
    margin: 0;
}

/* size-4 = 16px, text-ink-soft */
.rb-search-pill__icon {
    font-size: 16px;
    color: var(--rb-ink-soft);
    flex-shrink: 0;
    line-height: 1;
}

/* text-sm outline-none w-56 = 14px, sin outline, 224px */
.rb-search-pill__input {
    font-size: 14px !important;
    font-family: "Inter", sans-serif !important;
    color: var(--rb-ink) !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    width: 224px !important;
    /* w-56 = 224px */
    padding: 0 !important;
    line-height: 1.5 !important;
    -webkit-appearance: none;
}

.rb-search-pill__input::placeholder {
    color: var(--rb-ink-soft);
    opacity: 0.7;
}

.rb-search-pill__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.rb-search-pill__input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.rb-hero {
    position: relative;
    overflow: hidden;
    background: var(--rb-surface-2);
}

/* Los slides se apilan en la misma celda de grid para el cross-fade.
   La imagen usa width:100% + height:auto (responsive puro): se ve completa,
   a lo ancho de la pantalla, sin recortes ni zoom. El alto del hero lo
   define la propia imagen. */
.rb-hero__bg {
    position: relative;
    display: grid;
    z-index: 0;
}

.rb-hero__bg > picture {
    display: block;
}

.rb-hero__bg > picture,
.rb-hero__bg > .rb-hero__bg-img {
    grid-area: 1 / 1;
}

.rb-hero__bg-img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.rb-hero__bg-img.is-active {
    opacity: 1;
}

/* Flechas de navegación del slider */
.rb-hero__nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: var(--rb-brand-deep, #333);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background 0.25s ease, transform 0.25s ease;
}

.rb-hero__nav:hover {
    background: #fff;
}

.rb-hero__nav--prev {
    left: 16px;
}

.rb-hero__nav--next {
    right: 16px;
}

@media (max-width: 767px) {
    .rb-hero__nav {
        width: 36px;
        height: 36px;
    }

    .rb-hero__nav--prev {
        left: 8px;
    }

    .rb-hero__nav--next {
        right: 8px;
    }
}

/* Puntos de navegación del slider */
.rb-hero__dots {
    position: absolute;
    z-index: 2;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.rb-hero__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.25s ease, transform 0.25s ease;
}

.rb-hero__dot:hover {
    background: rgba(0, 0, 0, 0.45);
}

.rb-hero__dot.is-active {
    background: var(--rb-brand-deep, #333);
    transform: scale(1.2);
}

/* Cada banner principal tiene su propio bloque de contenido; se apilan y
   solo el activo es visible, con cross-fade sincronizado con la imagen. */
.rb-hero__content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

.rb-hero__content.is-active {
    opacity: 1;
    pointer-events: auto;
}

.rb-hero__content > .rb-container {
    width: 100%;
    padding-top: 40px;
    padding-bottom: 40px;
}

.rb-hero__text {
    max-width: 640px;
    animation: rb-fade-up 0.6s cubic-bezier(0.2, 0, 0, 1) both;
}

/* Hero title: text-3xl md:text-4xl lg:text-5xl = 30px / 36px / 48px */
.rb-hero__title {
    font-size: clamp(30px, 5vw, 50px);
    font-weight: 300;
    color: var(--rb-ink);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    font-family: "Inter", sans-serif;
}

/* Hero subtitle: text-sm lg:text-base = 14px / 16px */
.rb-hero__subtitle {
    font-size: 16px;
    color: var(--rb-ink-soft);
    max-width: 448px;
    line-height: 1.65;
    margin-bottom: 28px;
    font-family: "Inter", sans-serif;
}

.rb-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 4px;
}

/* === SKIN TYPE TICKER === */
.rb-ticker-wrap {
    position: relative;
    z-index: 1;
    background: #fff;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.rb-ticker-container {
    position: relative;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    padding: 12px 20px;
}

@media (min-width: 1024px) {
    .rb-ticker-container {
        padding: 16px 32px;
    }
}

.rb-ticker__track {
    display: flex;
    gap: 28px;
    /* gap-7 = 28px */
    width: max-content;
    animation: rb-marquee 38s linear infinite;
}

.rb-ticker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

/* size-16 lg:size-20 = 64px / 80px */
.rb-ticker-item__icon {
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid var(--rb-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--rb-shadow-soft);
    color: var(--rb-brand-deep);
    font-size: 20px;
    /* size-5 ~ 20px icon */
    transition: all 0.4s ease;
}

@media (min-width: 1024px) {
    .rb-ticker-item__icon {
        width: 80px;
        height: 80px;
        font-size: 24px;
    }
}

/* ============================================================
   Iconos lucide (SVG) — mismos que la demo.
   Clase base: se comporta como una fuente de iconos,
   hereda tamaño (1em) y color (currentColor) del contexto.
   ============================================================ */
.rb-lucide {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Icono lucide (SVG) dentro del ticker — size-6 ~ 24px, trazo fino como la demo */
.rb-ticker-item__icon .rb-lucide {
    width: 24px;
    height: 24px;
    stroke: var(--rb-brand-deep);
    stroke-width: 1.4;
}

/* Flecha ArrowUpRight de las cards de categoría — size-3.5 ~ 14px */
.rb-cat-card__arrow .rb-lucide {
    width: 14px;
    height: 14px;
}

/* Chevrons de navegación del carrusel — size-5 ~ 20px */
.rb-carousel-btn .rb-lucide {
    width: 20px;
    height: 20px;
}

@media (min-width: 1024px) {
    /* size-7 ~ 28px en desktop */
    .rb-ticker-item__icon .rb-lucide {
        width: 28px;
        height: 28px;
    }
}

.rb-ticker-item:hover .rb-ticker-item__icon {
    border-color: var(--rb-brand);
    box-shadow: var(--rb-shadow-lift);
    transform: translateY(-4px);
}

/* text-[11px] lg:text-xs = 11px / 12px */
.rb-ticker-item__label {
    font-size: 11px;
    font-weight: 500;
    color: var(--rb-ink-soft);
    white-space: nowrap;
    transition: color 0.2s;
    font-family: "Inter", sans-serif;
}

@media (min-width: 1024px) {
    .rb-ticker-item__label {
        font-size: 12px;
    }
}

.rb-ticker-item:hover .rb-ticker-item__label {
    color: var(--rb-ink);
}

.rb-ticker-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 64px;
    pointer-events: none;
    z-index: 1;
}

.rb-ticker-fade--left {
    left: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.9),
        transparent
    );
}

.rb-ticker-fade--right {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
}

/* =====================================================
   BENEFITS — py-14 lg:py-20 = 56px / 80px
   ===================================================== */
.rb-benefits {
    background: var(--rb-surface);
    border-top: 1px solid var(--rb-border);
    border-bottom: 1px solid var(--rb-border);
    padding: 56px 0;
}

@media (min-width: 1024px) {
    .rb-benefits {
        padding: 80px 0;
    }
}

.rb-benefits__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .rb-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .rb-benefits__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

/* p-7 = 28px */
.rb-benefit-card {
    background: #fff;
    border-radius: var(--rb-radius-xl);
    padding: 28px;
    box-shadow: var(--rb-shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.4s ease;
}

.rb-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rb-shadow-lift);
}

/* size-12 = 48px, rounded-xl = 12px */
.rb-benefit-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--rb-brand-soft);
    color: var(--rb-brand-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    /* size-5 = 20px */
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.rb-benefit-card:hover .rb-benefit-card__icon {
    transform: scale(1.1);
}

/* text-lg = 18px font-medium */
.rb-benefit-card__title {
    font-size: 18px;
    font-weight: 500;
    color: var(--rb-ink);
    margin-bottom: 8px;
    font-family: "Inter", sans-serif;
}

/* text-sm = 14px */
.rb-benefit-card__body {
    font-size: 14px;
    color: var(--rb-ink-soft);
    line-height: 1.65;
    margin: 0;
    font-family: "Inter", sans-serif;
}

/* =====================================================
   CATEGORY CAROUSEL — py-20 lg:py-28 = 80px / 112px
   ===================================================== */
.rb-category-section {
    padding: 80px 0 112px;
    overflow: hidden;
}

.rb-category-section__header {
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 40px;
}

@media (min-width: 1024px) {
    .rb-category-section__header {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* text-2xl lg:text-3xl = 24px / 30px */
.rb-category-section__title {
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 300;
    color: var(--rb-ink);
    max-width: 512px;
    letter-spacing: -0.02em;
    font-family: "Inter", sans-serif;
    margin: 0;
}

.rb-cat-carousel-wrapper {
    position: relative;
}

.rb-cat-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 20px 16px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

@media (min-width: 1024px) {
    .rb-cat-carousel {
        padding-left: 32px;
        padding-right: 32px;
    }
}

.rb-cat-carousel::-webkit-scrollbar {
    display: none;
}

/* Cards: w-[44vw] sm:w-[30vw] md:w-[22vw] lg:w-[17.5%], min 160px, max 220px */
.rb-cat-card {
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 44vw;
    max-width: 220px;
    min-width: 160px;
    border-radius: var(--rb-radius-xl);
    overflow: hidden;
    position: relative;
    text-decoration: none;
    display: block;
}

@media (min-width: 480px) {
    .rb-cat-card {
        width: 30vw;
    }
}

@media (min-width: 768px) {
    .rb-cat-card {
        width: 22vw;
    }
}

@media (min-width: 1024px) {
    .rb-cat-card {
        width: 17.5%;
    }
}

.rb-cat-card__image-wrap {
    aspect-ratio: 3/4;
    background: var(--rb-surface-2);
    border-radius: var(--rb-radius-xl);
    overflow: hidden;
    position: relative;
}

.rb-cat-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease-out;
}

.rb-cat-card:hover .rb-cat-card__img {
    transform: scale(1.04);
}

.rb-cat-card__overlay {
    position: absolute;
    inset: 4px;
    border-radius: calc(var(--rb-radius-xl) - 4px);
    background: linear-gradient(
        to top,
        rgba(30, 41, 59, 0.72) 0%,
        rgba(30, 41, 59, 0.1) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.rb-cat-card__text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    color: #fff;
}

/* text-sm = 14px */
.rb-cat-card__name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #fff;
    margin: 0 0 4px;
    font-family: "Inter", sans-serif;
}

/* text-[10px] = 10px */
.rb-cat-card__blurb {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

/* size-7 = 28px */
.rb-cat-card__arrow {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--rb-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.rb-cat-card:hover .rb-cat-card__arrow {
    opacity: 1;
    transform: scale(1);
}

/* Carousel nav buttons — size-11 = 44px */
.rb-carousel-btn {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 8px));
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    box-shadow: var(--rb-shadow-soft);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--rb-ink);
    transition: all 0.2s ease;
    z-index: 10;
    font-size: 14px;
}

@media (min-width: 1024px) {
    .rb-carousel-btn {
        display: flex;
    }
}

.rb-carousel-btn:hover {
    background: var(--rb-surface);
    box-shadow: var(--rb-shadow-card);
}

.rb-carousel-btn:disabled {
    opacity: 0 !important;
    pointer-events: none;
}

.rb-carousel-btn--prev {
    left: -20px;
}

.rb-carousel-btn--next {
    right: -20px;
}

/* =====================================================
   PRODUCTS SECTION — py-20 lg:py-24 = 80px / 96px
   ===================================================== */
.rb-products-section {
    padding: 80px 0 96px;
}

.rb-products-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
}

@media (min-width: 1024px) {
    .rb-products-section__header {
        margin-bottom: 56px;
    }
}

/* Grid 2 cols mobile → 4 cols desktop — igual que demo grid-cols-2 lg:grid-cols-4 */
.rb-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 992px) {
    .rb-products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }
}

/* ── Card base: sin sombra ni borde del theme ── */
.product.product-3 {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    text-align: left;
}

.product.product-3:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* ── Imagen: aspect-ratio 4/5, rounded-2xl, overflow hidden ── */
.product.product-3 .product-media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--rb-radius-xl);
    /* 24px */
    background: var(--rb-surface);
    margin-bottom: 20px !important;
    position: relative;
    display: block;
}

/* El <a> y la imagen llenan todo el contenedor */
.product.product-3 .product-media > a {
    display: block;
    height: 100%;
}

.product.product-3 .product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.product.product-3:hover .product-image {
    transform: scale(1.05);
}

/* Borde turquesa sutil en las imágenes de los carruseles de la home
   (acotado a .rb-products-grid; sigue la línea de diseño de la marca).
   Se realza al pasar el mouse, en sintonía con el resto de las tarjetas. */
.rb-products-grid .product.product-3 .product-media {
    border: 1px solid rgba(61, 206, 206, 0.35);
    transition: border-color 0.3s ease;
}

.rb-products-grid .product.product-3:hover .product-media {
    border-color: var(--rb-brand);
}

/* Badge / tag */
.product.product-3 .product-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: var(--rb-ink) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px !important;
    border-radius: 9999px !important;
    box-shadow: var(--rb-shadow-soft);
    z-index: 2;
    line-height: 1.4;
}

/* Overlay hover "Ver dónde comprar" */
.rb-ver-comprar-overlay {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 14px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.product.product-3:hover .rb-ver-comprar-overlay {
    opacity: 1;
    transform: translateY(0);
}

.rb-ver-comprar-overlay__text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rb-ink);
    font-family: "Inter", sans-serif;
}

.rb-ver-comprar-overlay__icon {
    color: var(--rb-brand-deep);
    flex-shrink: 0;
}

/* ── Product body ── */
.product.product-3 .product-body {
    padding: 0 !important;
}

/* Título: text-base font-medium */
.product.product-3 .product-title {
    margin: 0 0 4px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    font-family: "Inter", sans-serif !important;
    line-height: 1.3;
}

.product.product-3 .product-title a {
    color: var(--rb-ink) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: color 0.2s;
}

.product.product-3:hover .product-title a {
    color: var(--rb-brand-deep) !important;
}

/* Precio */
.product.product-3 .product-price {
    font-family: "Inter", sans-serif;
    flex-direction: column;
}

.product.product-3 .new-price {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--rb-ink) !important;
}

.product.product-3 .old-price-wrapper,
.product.product-3 .old-price {
    font-size: 12px !important;
    color: var(--rb-ink-soft) !important;
}

/* Ocultar estrellas — no están en la demo */
.product.product-3 .ratings-container {
    display: none !important;
}

/* Farmacias — logos superpuestos + "en N farmacias" */
.product.product-3 .rb-card-farmacias {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.product.product-3 .rb-card-farmacias__logos {
    display: flex;
}

.product.product-3 .rb-card-farmacias__logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--rb-surface);
    overflow: hidden;
    margin-left: -6px;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--rb-ink-soft);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.product.product-3 .rb-card-farmacias__logo:first-child {
    margin-left: 0;
}

.product.product-3 .rb-card-farmacias__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product.product-3 .rb-card-farmacias__label {
    font-size: 11px;
    color: var(--rb-ink-soft);
    font-family: "Inter", sans-serif;
}

/* =====================================================
   EDITORIAL BANNER — py-16 lg:py-24 = 64px / 96px
   ===================================================== */
.rb-editorial {
    padding: 64px 0 96px;
}

.rb-editorial__inner {
    position: relative;
    border-radius: var(--rb-radius-xl);
    overflow: hidden;
    aspect-ratio: 21/9;
    background: var(--rb-surface-2);
}

@media (max-width: 767px) {
    .rb-editorial__inner {
        aspect-ratio: 16/9;
    }
}

/* Slides del slider editorial (cross-fade) */
.rb-editorial__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

.rb-editorial__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.rb-editorial__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Flechas del slider editorial */
.rb-editorial__nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: var(--rb-brand-deep, #333);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background 0.25s ease;
}

.rb-editorial__nav:hover {
    background: #fff;
}

.rb-editorial__nav--prev {
    left: 16px;
}

.rb-editorial__nav--next {
    right: 16px;
}

.rb-editorial__dots {
    position: absolute;
    z-index: 3;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.rb-editorial__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.25s ease, transform 0.25s ease;
}

.rb-editorial__dot:hover {
    background: rgba(0, 0, 0, 0.45);
}

.rb-editorial__dot.is-active {
    background: var(--rb-brand-deep, #333);
    transform: scale(1.2);
}

@media (max-width: 767px) {
    .rb-editorial__nav {
        width: 34px;
        height: 34px;
    }

    .rb-editorial__nav--prev {
        left: 8px;
    }

    .rb-editorial__nav--next {
        right: 8px;
    }
}

.rb-editorial__content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 32px;
}

@media (min-width: 1024px) {
    .rb-editorial__content {
        padding: 32px 64px;
    }
}

.rb-editorial__text {
    max-width: 448px;
}

/* Botón del banner editorial: esquina inferior derecha, fuera del bloque de texto */
.rb-editorial__cta {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 3;
}

@media (min-width: 1024px) {
    .rb-editorial__cta {
        right: 40px;
        bottom: 40px;
    }
}

/* text-xs = 12px tracking */
.rb-editorial__eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rb-brand-deep);
    margin-bottom: 12px;
    display: block;
    font-family: "Inter", sans-serif;
}

/* text-3xl lg:text-5xl = 30px / 48px */
.rb-editorial__title {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 300;
    color: var(--rb-ink);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    font-family: "Inter", sans-serif;
}

/* text-sm lg:text-base = 14px / 16px */
.rb-editorial__body {
    font-size: 16px;
    color: var(--rb-ink-soft);
    margin-bottom: 24px;
    font-family: "Inter", sans-serif;
}

/* =====================================================
   PHARMACY STRIP — py-12 = 48px
   ===================================================== */
.rb-pharmacy-strip {
    padding: 48px 0;
    border-top: 1px solid var(--rb-border);
    border-bottom: 1px solid var(--rb-border);
    background: #fff;
}

/* text-[11px] tracking-[0.25em] uppercase */
.rb-pharmacy-strip__label {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--rb-ink-soft);
    margin-bottom: 24px;
    font-family: "Inter", sans-serif;
}

.rb-pharmacy-strip__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

@media (min-width: 1024px) {
    .rb-pharmacy-strip__logos {
        gap: 64px;
    }
}

.rb-pharmacy-item {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.65;
    transition: opacity 0.2s;
    text-decoration: none;
}

.rb-pharmacy-item:hover {
    opacity: 1;
    text-decoration: none;
}

.rb-pharmacy-item__logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: 50%;
}

/* text-sm = 14px */
.rb-pharmacy-item__name {
    font-size: 14px;
    font-weight: 500;
    color: var(--rb-ink);
    font-family: "Inter", sans-serif;
}

/* =====================================================
   BLOG PREVIEW — py-20 lg:py-24 = 80px / 96px
   ===================================================== */
.rb-blog-section {
    padding: 80px 0 96px;
    background: var(--rb-surface);
    border-top: 1px solid var(--rb-border);
}

.rb-blog-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
}

.rb-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .rb-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .rb-blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

.rb-blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.rb-blog-card__image-wrap {
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: var(--rb-radius-xl);
    margin-bottom: 16px;
    background: var(--rb-surface-2);
}

.rb-blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    display: block;
}

.rb-blog-card:hover .rb-blog-card__img {
    transform: scale(1.05);
}

.rb-blog-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

/* text-[10px] = 10px tracking */
.rb-blog-card__tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rb-brand-deep);
    font-family: "Inter", sans-serif;
}

.rb-blog-card__sep {
    font-size: 10px;
    color: var(--rb-ink-soft);
}

/* text-base = 16px */
.rb-blog-card__title {
    font-size: 16px;
    font-weight: 500;
    color: var(--rb-ink);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
    margin: 0;
    font-family: "Inter", sans-serif;
}

.rb-blog-card:hover .rb-blog-card__title {
    color: var(--rb-brand-deep);
}

/* =====================================================
   FOOTER
   ===================================================== */
footer.footer {
    margin-top: 128px;
    /* mt-32 = 128px */
    background: var(--rb-surface) !important;
    border-top: 1px solid var(--rb-border);
    font-family: "Inter", sans-serif;
}

footer.footer .footer-middle {
    padding: 64px 0;
}

footer.footer .footer-logo {
    margin-bottom: 20px !important;
    height: 40px !important;
    width: auto !important;
}

/* Texto descriptivo col 1 */
.rb-footer-desc {
    font-size: 14px;
    color: var(--rb-ink-soft);
    font-family: "Inter", sans-serif;
    line-height: 1.65;
    max-width: 26ch;
    margin-bottom: 20px;
}

/* Redes sociales — iconos planos sin fondo */
.rb-footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.rb-footer-social__link {
    color: var(--rb-ink-soft);
    font-size: 20px;
    line-height: 1;
    transition: color 0.2s;
    text-decoration: none;
}

.rb-footer-social__link svg {
    width: 18px;
    height: 18px;
    display: block;
}

.rb-footer-social__link:hover {
    color: var(--rb-brand-deep);
    text-decoration: none;
}

/* text-xs tracking-[0.18em] uppercase = 12px */
footer.footer .widget-title {
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: var(--rb-ink) !important;
    margin-bottom: 16px !important;
    font-family: "Inter", sans-serif !important;
    border: none !important;
    padding: 0 !important;
}

footer.footer .widget-title::after {
    display: none !important;
}

footer.footer .widget-list {
    columns: 1 !important;
}

footer.footer .widget-list li {
    margin-bottom: 10px;
}

/* text-sm = 14px */
footer.footer .widget-list a,
footer.footer .widget-list li {
    font-size: 14px !important;
    color: var(--rb-ink-soft) !important;
    font-family: "Inter", sans-serif !important;
}

footer.footer .widget-list a:hover {
    color: var(--rb-brand-deep) !important;
}

footer.footer .social-icons {
    gap: 12px;
}

footer.footer .social-icon,
footer.footer .social-icon svg {
    color: var(--rb-ink-soft);
    transition: color 0.2s;
}

footer.footer .social-icon:hover {
    color: var(--rb-brand-deep);
}

/* text-sm = 14px */
footer.footer .widget-newsletter p {
    font-size: 14px;
    color: var(--rb-ink-soft);
    line-height: 1.65;
    margin-bottom: 16px;
}

footer.footer .widget-newsletter .form-control {
    border-radius: var(--rb-radius) 0 0 var(--rb-radius);
    border: 1px solid var(--rb-border);
    background: #fff;
    font-family: "Inter", sans-serif;
    font-size: 14px;
}

footer.footer .widget-newsletter .form-control:focus {
    border-color: var(--rb-brand);
    box-shadow: 0 0 0 2px rgba(61, 206, 206, 0.15);
}

footer.footer .widget-newsletter .btn-primary {
    background: var(--rb-brand);
    border-color: var(--rb-brand);
    border-radius: 0 var(--rb-radius) var(--rb-radius) 0;
}

footer.footer .widget-newsletter .btn-primary:hover {
    background: var(--rb-brand-deep);
    border-color: var(--rb-brand-deep);
}

footer.footer .footer-bottom {
    background: var(--rb-surface) !important;
    border-top: 1px solid var(--rb-border) !important;
    padding: 32px 0 !important;
}

/* text-xs = 12px */
/* Footer bottom: flex copyright ↔ tagline */
.rb-footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .rb-footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

footer.footer .footer-copyright {
    font-size: 12px;
    color: var(--rb-ink-soft);
    font-family: "Inter", sans-serif;
    margin: 0;
}

/* Tagline script footer — text-base font-script = 16px */
.rb-footer-tagline {
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-size: 17px;
    color: var(--rb-brand-deep);
}

/* =====================================================
   PAGE HEADER (páginas interiores)
   ===================================================== */
.page-header {
    background: var(--rb-surface) !important;
    border-bottom: 1px solid var(--rb-border) !important;
    padding: 24px 0 !important;
}

/* text-3xl font-light = 30px */
.page-header .page-title {
    font-family: "Inter", sans-serif !important;
    font-size: 30px !important;
    font-weight: 300 !important;
    color: var(--rb-ink) !important;
    letter-spacing: -0.02em !important;
}

.breadcrumb-item a {
    color: var(--rb-brand-deep) !important;
    font-size: 14px !important;
}

.breadcrumb-item.active {
    color: var(--rb-ink-soft) !important;
    font-size: 14px !important;
}

/* =====================================================
   SCROLL-TOP
   ===================================================== */
#scroll-top {
    background: var(--rb-ink) !important;
    color: #fff !important;
    border-radius: 9999px !important;
    width: 44px !important;
    height: 44px !important;
    border: none !important;
}

#scroll-top:hover {
    background: var(--rb-brand-deep) !important;
}

/* =====================================================
   WHATSAPP FLOATING
   ===================================================== */
.btn-wha.btn-success {
    background-color: #25d366 !important;
    border-color: #25d366 !important;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3) !important;
    border-radius: 9999px !important;
    width: 56px;
    height: 56px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
}

/* =====================================================
   CATÁLOGO — HERO ENCABEZADO
   ===================================================== */
.rb-catalog-hero {
    background: var(--rb-surface);
    border-bottom: 1px solid var(--rb-border);
    padding: 40px 0;
}

@media (min-width: 1024px) {
    .rb-catalog-hero {
        padding: 56px 0;
    }
}

.rb-catalog-hero__title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 300;
    color: var(--rb-ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
    font-family: "Inter", sans-serif;
}

.rb-catalog-hero__subtitle {
    font-size: 16px;
    color: var(--rb-ink-soft);
    max-width: 520px;
    line-height: 1.65;
    margin: 12px 0 0;
    font-family: "Inter", sans-serif;
}

.rb-catalog-hero__banner {
    margin-top: 24px;
    border-radius: var(--rb-radius-xl);
    overflow: hidden;
}

.rb-catalog-hero__banner img {
    width: 100%;
    height: auto;
    display: block;
}

.rb-catalog-hero__banner a {
    display: block;
}

/* =====================================================
   BUSCADOR — HERO ENCABEZADO
   ===================================================== */
.rb-search-hero {
    background: var(--rb-surface);
    border-bottom: 1px solid var(--rb-border);
    padding: 40px 0;
}

@media (min-width: 1024px) {
    .rb-search-hero {
        padding: 56px 0;
    }
}

.rb-search-hero__title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 300;
    color: var(--rb-ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
    font-family: "Inter", sans-serif;
}

.rb-search-hero__title em {
    font-style: italic;
    font-family: "Playfair Display", Georgia, serif;
    color: var(--rb-brand-deep);
}

/* =====================================================
   CATÁLOGO — BREADCRUMB NAV
   ===================================================== */
.breadcrumb-nav {
    background: #fff !important;
    border-bottom: 1px solid var(--rb-border) !important;
    padding: 10px 0 !important;
    margin-bottom: 0 !important;
}

.breadcrumb {
    background: transparent !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* =====================================================
   CATÁLOGO — LAYOUT, TOOLBOX, PRODUCT GRID
   ===================================================== */

/* Alineación izquierda en tarjetas (override text-center de Bootstrap) */
.product.product-3 {
    text-align: left !important;
}

/* Ocultar el h1 de Vue dentro del toolbox — lo muestra el héroe PHP */
#app .toolbox-info h1,
#app .toolbox-info h2 {
    display: none !important;
}

/* Toolbox (barra de sort) */
.toolbox {
    padding: 14px 0 !important;
    background: transparent !important;
    border: none !important;
    margin-bottom: 4px !important;
}

.toolbox-left {
    gap: 12px;
}

.toolbox-right {
    flex-shrink: 0;
}

.toolbox-sort {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.toolbox-sort label {
    font-size: 12px !important;
    font-family: "Inter", sans-serif !important;
    color: var(--rb-ink-soft) !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* El div select-custom */
.toolbox-sort .select-custom {
    border: 1px solid var(--rb-border) !important;
    border-radius: 9999px !important;
    background: #fff !important;
    overflow: hidden !important;
}

/* El select dentro */
.toolbox-sort .select-custom select,
.toolbox-sort select.form-control {
    font-size: 13px !important;
    font-family: "Inter", sans-serif !important;
    color: var(--rb-ink) !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 6px 36px 6px 14px !important;
    height: auto !important;
    line-height: 1.4 !important;
    border-radius: 9999px !important;
}

.toolbox-sort .select-custom select:focus,
.toolbox-sort select.form-control:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Botón "Filtros" móvil */
.sidebar-toggler {
    color: var(--rb-ink) !important;
    font-size: 13px !important;
    font-family: "Inter", sans-serif !important;
    font-weight: 500 !important;
    border: 1px solid var(--rb-border) !important;
    border-radius: 9999px !important;
    padding: 6px 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    background: #fff !important;
    transition: all 0.2s !important;
}

.sidebar-toggler:hover {
    border-color: var(--rb-brand) !important;
    color: var(--rb-brand-deep) !important;
    text-decoration: none !important;
}

.sidebar-toggler i {
    font-size: 14px !important;
}

/* =====================================================
   CATÁLOGO — BARRA DE FILTROS TIPO CHIPS
   ===================================================== */

.rb-filter-bar {
    padding: 20px 0 16px;
    border-bottom: 1px solid var(--rb-border);
    margin-bottom: 28px;
}

.rb-filter-bar__head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.rb-filter-bar__head i {
    font-size: 12px;
    color: var(--rb-ink-soft);
}

.rb-filter-bar__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rb-ink-soft);
    font-family: "Inter", sans-serif;
}

/* Fila scrollable horizontal de chips */
.rb-filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    margin-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.rb-filter-row::-webkit-scrollbar {
    display: none;
}

.rb-filter-row:last-child {
    margin-bottom: 0;
}

/* Fila que permite wrapping (marcas, atributos) */
.rb-filter-row--wrap {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
}

/* Chip base */
.rb-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 9999px;
    border: 1px solid var(--rb-border);
    background: #fff;
    color: var(--rb-ink);
    font-size: 12px;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
    line-height: 1.4;
    flex-shrink: 0;
}

.rb-chip:hover {
    border-color: var(--rb-brand);
    color: var(--rb-brand-deep);
    text-decoration: none;
}

.rb-chip.rb-chip--active {
    background: var(--rb-ink);
    color: #fff !important;
    border-color: var(--rb-ink);
}

.rb-chip.rb-chip--active:hover {
    background: var(--rb-ink-soft);
    border-color: var(--rb-ink-soft);
    color: #fff !important;
}

/* Título de grupo de atributos */
.rb-filter-section-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--rb-ink-soft);
    font-family: "Inter", sans-serif;
    margin: 10px 0 6px;
}

/* =====================================================
   CATÁLOGO — SIDEBAR DE FILTROS (rail izquierdo)
   ===================================================== */
.rb-catalog-wrap {
    display: flex;
    align-items: flex-start;
}

/* Sidebar pegado a la izquierda, con alto propio (independiente del catálogo) */
.rb-catalog-sidebar {
    flex: 0 0 288px;
    width: 288px;
    position: sticky;
    top: 88px;
    height: calc(100vh - 88px);
    align-self: flex-start;
}

/* Zona de productos a la derecha */
.rb-catalog-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 clamp(16px, 4vw, 48px);
}

/* Grilla de productos del catálogo: columnas auto-ajustables con tamaño de
   card acotado. Con auto-fill, un solo producto ocupa una celda y NO se
   estira a todo el ancho (mantiene el mismo tamaño que cuando hay muchos). */
.rb-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 24px 16px;
}

@media (min-width: 768px) {
    .rb-catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 32px 24px;
    }
}

/* Toggle "Filtros" — solo visible en mobile */
.rb-filter-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid var(--rb-border);
    border-radius: 12px;
    background: #fff;
    color: var(--rb-ink);
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.rb-filter-toggle i {
    margin-right: 6px;
    color: var(--rb-ink-soft);
}

.rb-filter-toggle__chev {
    transition: transform 0.25s ease;
}

.rb-filter-toggle__chev.is-open {
    transform: rotate(180deg);
}

/* Panel contenedor de los filtros: rail full-height con scroll propio */
.rb-filter-panel {
    height: 100%;
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid var(--rb-border);
    padding: 24px 20px 24px clamp(16px, 3vw, 36px);
}

.rb-filter-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rb-border);
}

.rb-filter-panel__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rb-ink-soft);
    font-family: "Inter", sans-serif;
}

.rb-filter-panel__label i {
    font-size: 13px;
}

/* Botón "Limpiar" filtros */
.rb-filter-clear {
    border: 0;
    background: transparent;
    color: var(--rb-brand-deep);
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 4px;
}

.rb-filter-clear:hover {
    text-decoration: underline;
}

/* Grupo de filtro (categorías / marcas / precio / atributos) */
.rb-filter-group {
    margin-bottom: 24px;
}

.rb-filter-group:last-child {
    margin-bottom: 0;
}

.rb-filter-group__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rb-ink-soft);
    font-family: "Inter", sans-serif;
    margin-bottom: 8px;
}

/* Listas verticales (un ítem por línea) */
.rb-filter-list,
.rb-filter-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rb-filter-list > li {
    display: block;
}

/* Fila categoría: checkbox + botón de acordeón en una línea */
.rb-filter-cat__row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rb-filter-cat__row .rb-check {
    flex: 1;
    min-width: 0;
}

/* Botón que despliega/colapsa las subcategorías */
.rb-filter-cat__toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--rb-ink-soft);
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}

.rb-filter-cat__toggle:hover {
    background: var(--rb-brand-soft);
    color: var(--rb-brand-deep);
}

.rb-filter-cat__toggle svg {
    transition: transform 0.25s ease;
}

.rb-filter-cat__toggle.is-open svg {
    transform: rotate(180deg);
}

/* Subcategorías desplegadas */
.rb-filter-sublist {
    margin: 0 0 4px 14px;
    padding-left: 8px;
    border-left: 1px solid var(--rb-border);
}

/* ── Checkbox / radio personalizados ── */
.rb-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 6px 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.rb-check:hover {
    background: var(--rb-brand-soft);
}

.rb-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.rb-check__box {
    flex-shrink: 0;
    position: relative;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--rb-border);
    border-radius: 5px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}

.rb-check--radio .rb-check__box {
    border-radius: 50%;
}

.rb-check__box::after {
    content: "";
    position: absolute;
    opacity: 0;
    transition: opacity 0.15s;
}

/* Tilde del checkbox */
.rb-check:not(.rb-check--radio) .rb-check__box::after {
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Punto del radio */
.rb-check--radio .rb-check__box::after {
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
}

.rb-check input:checked ~ .rb-check__box {
    background: var(--rb-brand);
    border-color: var(--rb-brand);
}

.rb-check input:checked ~ .rb-check__box::after {
    opacity: 1;
}

.rb-check input:focus-visible ~ .rb-check__box {
    box-shadow: 0 0 0 3px var(--rb-brand-soft);
}

.rb-check__label {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--rb-ink);
    line-height: 1.35;
}

.rb-check input:checked ~ .rb-check__label {
    color: var(--rb-brand-deep);
    font-weight: 600;
}

/* Subcategorías: texto un poco más suave */
.rb-check--sub .rb-check__label {
    font-size: 13px;
    color: var(--rb-ink-soft);
}

.rb-check--sub input:checked ~ .rb-check__label {
    color: var(--rb-brand-deep);
}

/* ── Responsive: en mobile el sidebar colapsa sobre un botón ── */
@media (max-width: 991px) {
    .rb-catalog-wrap {
        display: block;
    }

    .rb-catalog-sidebar {
        position: static;
        flex: none;
        width: auto;
        height: auto;
        padding: 0 16px;
        margin-bottom: 16px;
    }

    .rb-filter-toggle {
        display: flex;
    }

    .rb-filter-panel {
        display: none;
        height: auto;
        overflow: visible;
        margin-top: 10px;
        padding: 18px 16px;
        border: 1px solid var(--rb-border);
        border-radius: 14px;
    }

    .rb-filter-panel.is-open {
        display: block;
    }

    .rb-catalog-main {
        padding: 0 16px;
    }
}

/* =====================================================
   CATÁLOGO — INFINITE LOADING & ESTADOS
   ===================================================== */
.infinite-status-prompt,
.infinite-loading-container {
    font-family: "Inter", sans-serif !important;
    font-size: 13px !important;
    color: var(--rb-ink-soft) !important;
    text-align: center !important;
    padding: 24px 0 !important;
}

/* =====================================================
   CATÁLOGO — PAGE CONTENT SPACING
   ===================================================== */
.main > .page-content {
    padding-top: 0 !important;
    padding-bottom: 64px !important;
}

/* Gap entre filas de productos — override para nuevo layout full-width */
.rb-filter-bar ~ .products .row,
.products .row {
    row-gap: 24px;
}

@media (min-width: 992px) {
    .products .row {
        row-gap: 32px;
    }
}

/* =====================================================
   FICHA DE PRODUCTO
   ===================================================== */

/* Quitar padding-bottom global en ficha */
.rb-ficha.main > .page-content {
    padding-bottom: 0 !important;
}

/* ── Hero: 2 columnas ── */
.rb-ficha-hero {
    padding: 32px 0 64px;
}

@media (min-width: 1024px) {
    .rb-ficha-hero {
        padding: 32px 0 96px;
    }
}

.rb-ficha-hero__grid {
    display: grid;
    gap: 40px;
}

@media (min-width: 768px) {
    .rb-ficha-hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
        align-items: start;
    }
}

/* ── Galería ── */
.rb-ficha-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rb-ficha-main-img {
    position: relative;
    background: var(--rb-surface);
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/5;
    margin: 0;
}

.rb-ficha-main-img .container-img {
    width: 100%;
    height: 100%;
}

.rb-ficha-main-img img.img-ficha {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* tag y promo logo */
.rb-ficha-main-img .product-label {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--rb-ink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 9999px;
    font-family: "Inter", sans-serif;
    z-index: 2;
}

.rb-ficha-main-img .tag_img {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}

.rb-ficha-main-img .tag_img img {
    max-height: 54px;
    max-width: 54px;
    object-fit: contain;
}

/* botón expandir */
.rb-ficha-main-img #btn-product-gallery {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--rb-border);
    border-radius: 9999px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rb-ink);
    font-size: 14px;
    backdrop-filter: blur(4px);
    z-index: 2;
    transition: background 0.2s;
}

.rb-ficha-main-img #btn-product-gallery:hover {
    background: rgba(255, 255, 255, 1);
}

/* Thumbnails */
.rb-ficha-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.rb-ficha-thumbs::-webkit-scrollbar {
    display: none;
}

.rb-ficha-thumbs .product-gallery-item {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--rb-surface);
    transition: border-color 0.2s;
    display: block;
}

.rb-ficha-thumbs .product-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rb-ficha-thumbs .product-gallery-item.active,
.rb-ficha-thumbs .product-gallery-item:hover {
    border-color: var(--rb-brand);
}

/* ── Info (columna derecha) ── */
.rb-ficha-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Eyebrow: Marca · Categoría */
.rb-ficha-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rb-brand-deep);
    font-family: "Inter", sans-serif;
    margin: 0;
}

/* Título */
.rb-ficha-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 300;
    color: var(--rb-ink);
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin: 0;
    font-family: "Inter", sans-serif;
}

/* Precio */
.rb-ficha-info .product-price {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: var(--rb-ink) !important;
    font-family: "Inter", sans-serif !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.rb-ficha-info .old-price {
    font-size: 14px !important;
    color: var(--rb-ink-soft) !important;
    text-decoration: line-through !important;
    font-family: "Inter", sans-serif !important;
    margin: 4px 0 0 !important;
}

/* SKU */
.rb-ficha-sku {
    font-size: 12px;
    color: var(--rb-ink-soft);
    font-family: "Inter", sans-serif;
}

/* Badges de características */
.rb-ficha-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rb-ficha-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    line-height: 1;
}

.rb-ficha-badge--brand {
    background: var(--rb-brand-soft);
    color: var(--rb-brand-deep);
    border: 1px solid rgba(61, 206, 206, 0.25);
}

.rb-ficha-badge--dark {
    background: var(--rb-ink);
    color: #fff;
}

.rb-ficha-badge--outline {
    background: #fff;
    color: var(--rb-ink);
    border: 1px solid var(--rb-border);
}

/* Resumen (HTML del backend) */
.rb-ficha-resumen {
    font-size: 15px;
    line-height: 1.7;
    color: var(--rb-ink-soft);
    font-family: "Inter", sans-serif;
}

.rb-ficha-resumen p {
    margin-bottom: 8px;
}

/* ── Add to cart ── */
.rb-ficha-info .add-to-cart,
.rb-ficha-info [class*="add-to-cart"] {
    margin-top: 4px;
}

/* ── Categoría ── */
.rb-ficha-cat {
    font-size: 13px;
    color: var(--rb-ink-soft);
    font-family: "Inter", sans-serif;
}

.rb-ficha-cat a {
    color: var(--rb-brand-deep);
    text-decoration: none;
    font-weight: 500;
}

.rb-ficha-cat a:hover {
    text-decoration: underline;
}

/* Etiquetas del producto en la ficha (chips turquesa clicables) */
.rb-ficha-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.rb-ficha-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    border: 1px solid var(--rb-brand);
    background: var(--rb-brand-soft);
    color: var(--rb-brand-deep) !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
    transition: background .18s, color .18s;
}

.rb-ficha-tag:hover {
    background: var(--rb-brand);
    color: #fff !important;
}

/* ── Pharmacy availability card ── */
.rb-ficha-pharmacy {
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: 24px;
    padding: 24px;
}

@media (min-width: 768px) {
    .rb-ficha-pharmacy {
        padding: 28px 32px;
    }
}

.rb-ficha-pharmacy__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.rb-ficha-pharmacy__eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rb-brand-deep);
    font-family: "Inter", sans-serif;
    margin-bottom: 4px;
}

.rb-ficha-pharmacy__count {
    font-size: 20px;
    font-weight: 300;
    color: var(--rb-ink);
    font-family: "Inter", sans-serif;
    margin: 0;
}

.rb-ficha-pharmacy__pulse {
    width: 8px;
    height: 8px;
    background: var(--rb-brand);
    border-radius: 50%;
    margin-top: 6px;
    animation: rb-pulse 2s ease-in-out infinite;
}

@keyframes rb-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

.rb-ficha-pharmacy__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.rb-ficha-pharmacy__item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--rb-border);
    border-radius: 16px;
    padding: 14px 16px;
    text-decoration: none !important;
    color: inherit !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rb-ficha-pharmacy__item:hover {
    border-color: rgba(61, 206, 206, 0.5);
    box-shadow: var(--rb-shadow-card);
    text-decoration: none !important;
    color: inherit !important;
}

.rb-ficha-pharmacy__logo {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rb-ficha-pharmacy__logo img {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

.rb-ficha-pharmacy__name-wrap {
    flex: 1;
    min-width: 0;
}

.rb-ficha-pharmacy__name {
    font-size: 14px;
    font-weight: 500;
    color: var(--rb-ink);
    font-family: "Inter", sans-serif;
    display: block;
}

.rb-ficha-pharmacy__benefit {
    font-size: 12px;
    color: var(--rb-ink-soft);
    font-family: "Inter", sans-serif;
    display: block;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rb-ficha-pharmacy__badge {
    flex-shrink: 0;
    background: var(--rb-brand-soft);
    color: var(--rb-brand-deep);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 9999px;
    font-family: "Inter", sans-serif;
    display: none;
}

@media (min-width: 480px) {
    .rb-ficha-pharmacy__badge {
        display: inline-flex;
    }
}

.rb-ficha-pharmacy__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--rb-ink);
    font-family: "Inter", sans-serif;
    transition: color 0.2s;
    white-space: nowrap;
}

.rb-ficha-pharmacy__cta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.rb-ficha-pharmacy__cta-text {
    display: none;
}

@media (min-width: 768px) {
    .rb-ficha-pharmacy__cta-text {
        display: inline;
    }
}

.rb-ficha-pharmacy__item:hover .rb-ficha-pharmacy__cta {
    color: var(--rb-brand-deep);
}

.rb-ficha-pharmacy__disclaimer {
    font-size: 11px;
    color: var(--rb-ink-soft);
    font-family: "Inter", sans-serif;
    font-style: italic;
    line-height: 1.6;
    margin: 16px 0 0;
}

/* ── Sección descripción + info adicional ── */
.rb-ficha-desc-section {
    background: var(--rb-surface);
    border-top: 1px solid var(--rb-border);
    border-bottom: 1px solid var(--rb-border);
    padding: 64px 0;
}

@media (min-width: 1024px) {
    .rb-ficha-desc-section {
        padding: 80px 0;
    }
}

.rb-ficha-desc-grid {
    display: grid;
    gap: 48px;
}

.rb-ficha-desc-card {
    min-width: 0;
}

.rb-ficha-desc-grid--single {
    justify-items: center;
}

.rb-ficha-desc-grid--single > .rb-ficha-desc-card {
    width: min(100%, 860px);
}

@media (min-width: 768px) {
    .rb-ficha-desc-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }

    /* Con una sola card (solo descripción) usamos una columna para que
       quede centrada a lo ancho, en vez de anclada a la mitad izquierda. */
    .rb-ficha-desc-grid--single {
        grid-template-columns: 1fr;
    }

    .rb-ficha-desc-grid--dual > .rb-ficha-desc-card--primary {
        justify-self: center;
        width: min(100%, 620px);
    }
}

.rb-ficha-desc-heading {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 300;
    color: var(--rb-ink);
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    font-family: "Inter", sans-serif;
}

.rb-ficha-desc-heading em {
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    color: var(--rb-brand-deep);
}

.rb-ficha-desc-body {
    font-size: 15px;
    line-height: 1.75;
    color: var(--rb-ink-soft);
    font-family: "Inter", sans-serif;
}

.rb-ficha-desc-body p {
    margin-bottom: 12px;
}

.rb-ficha-desc-body ul {
    padding-left: 20px;
}

.rb-ficha-desc-body li {
    margin-bottom: 6px;
}

/* ── Reviews section ── */
.rb-ficha-reviews-section {
    padding: 56px 0 64px;
}

.rb-ficha-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.rb-ficha-reviews-avg {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rb-ficha-avg-number {
    font-size: 28px;
    font-weight: 300;
    color: var(--rb-ink);
    font-family: "Inter", sans-serif;
    line-height: 1;
}

.rb-ficha-stars {
    display: flex;
    gap: 3px;
    color: var(--rb-brand);
    font-size: 16px;
}

.rb-ficha-reviews-count {
    font-size: 13px;
    color: var(--rb-ink-soft);
    font-family: "Inter", sans-serif;
}

/* Grid de reseñas */
.rb-ficha-reviews-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 40px;
}

@media (min-width: 640px) {
    .rb-ficha-reviews-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .rb-ficha-reviews-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.rb-ficha-review-card {
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: 20px;
    padding: 22px 24px;
}

.rb-ficha-review-card__stars {
    display: flex;
    gap: 2px;
    color: var(--rb-brand);
    font-size: 13px;
    margin-bottom: 10px;
}

.rb-ficha-review-card__text {
    font-size: 14px;
    color: var(--rb-ink);
    line-height: 1.65;
    margin-bottom: 16px;
    font-family: "Inter", sans-serif;
}

.rb-ficha-review-card__author {
    font-size: 12px;
    font-weight: 600;
    color: var(--rb-ink);
    font-family: "Inter", sans-serif;
}

.rb-ficha-review-card__date {
    font-size: 11px;
    color: var(--rb-ink-soft);
    font-family: "Inter", sans-serif;
    margin-top: 2px;
}

/* Formulario de reseña */
.rb-ficha-review-form {
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: 24px;
    padding: 32px;
    max-width: 700px;
}

.rb-ficha-review-form h4 {
    font-size: 20px;
    font-weight: 300;
    color: var(--rb-ink);
    font-family: "Inter", sans-serif;
    margin: 0 0 20px;
}

.rb-ficha-review-form .form-control {
    border: 1px solid var(--rb-border) !important;
    border-radius: 12px !important;
    font-family: "Inter", sans-serif !important;
    font-size: 14px !important;
    color: var(--rb-ink) !important;
    padding: 10px 14px !important;
}

.rb-ficha-review-form .form-control:focus {
    border-color: var(--rb-brand) !important;
    box-shadow: 0 0 0 3px rgba(61, 206, 206, 0.15) !important;
}

.rb-ficha-review-form .btn-primary {
    background: var(--rb-ink) !important;
    border-color: var(--rb-ink) !important;
    border-radius: 9999px !important;
    font-family: "Inter", sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    letter-spacing: 0.03em !important;
}

.rb-ficha-review-form .btn-primary:hover {
    background: var(--rb-brand-deep) !important;
    border-color: var(--rb-brand-deep) !important;
}

/* Rating stars input */
.rb-ficha-review-form .rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 4px;
    justify-content: flex-end;
}

.rb-ficha-review-form .rating input {
    display: none;
}

.rb-ficha-review-form .rating label i {
    font-size: 22px;
    color: var(--rb-border);
    cursor: pointer;
    transition: color 0.15s;
}

.rb-ficha-review-form .rating label:hover ~ label i,
.rb-ficha-review-form .rating label:hover i,
.rb-ficha-review-form .rating label.selected i,
.rb-ficha-review-form .rating input:checked ~ label i {
    color: var(--rb-brand) !important;
}

/* ── Productos relacionados ── */
.rb-ficha-related {
    padding: 64px 0 80px;
}

.rb-ficha-related__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
}

.rb-ficha-related__title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 300;
    color: var(--rb-ink);
    letter-spacing: -0.02em;
    margin: 0;
    font-family: "Inter", sans-serif;
}

.rb-ficha-related__title em {
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    color: var(--rb-brand-deep);
}

.rb-ficha-related__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--rb-ink);
    font-family: "Inter", sans-serif;
    text-decoration: none;
    position: relative;
    display: none;
}

@media (min-width: 768px) {
    .rb-ficha-related__link {
        display: inline-block;
    }
}

.rb-ficha-related__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.rb-ficha-related__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ── Dónde comprar ── */
.rb-dc-intro {
    border-bottom: 1px solid var(--rb-border);
    background: var(--rb-surface);
    padding: 40px 20px;
    text-align: center;
}

@media (min-width: 992px) {
    .rb-dc-intro {
        padding: 56px 20px;
    }
}

.rb-dc-title {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 300;
    color: var(--rb-ink);
    max-width: 700px;
    margin: 8px auto 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.rb-dc-title em {
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    color: var(--rb-brand-deep);
}

.rb-dc-lead {
    margin-top: 12px;
    font-size: 14px;
    color: var(--rb-ink-soft);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.rb-dc-main {
    padding: 40px 0 64px;
}

@media (min-width: 992px) {
    .rb-dc-main {
        padding: 56px 0 80px;
    }
}

.rb-dc-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 992px) {
    .rb-dc-grid {
        grid-template-columns: 7fr 5fr;
        gap: 40px;
        align-items: start;
    }
}

.rb-dc-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rb-dc-card {
    background: #fff;
    border-radius: var(--rb-radius);
    border: 1px solid var(--rb-border);
    padding: 20px;
    transition: box-shadow 0.25s, transform 0.25s;
}

.rb-dc-card:hover {
    box-shadow: var(--rb-shadow-lift);
    transform: translateY(-2px);
}

.rb-dc-card__inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.rb-dc-card__logo {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: var(--rb-surface-2);
    border: 1px solid var(--rb-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (min-width: 992px) {
    .rb-dc-card__logo {
        width: 64px;
        height: 64px;
    }
}

.rb-dc-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.rb-dc-card__logo--empty {
    color: var(--rb-ink-soft);
    font-size: 22px;
}

.rb-dc-card__body {
    flex: 1;
    min-width: 0;
}

.rb-dc-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rb-dc-card__name {
    font-size: 16px;
    font-weight: 500;
    color: var(--rb-ink);
    margin: 0;
}

@media (min-width: 992px) {
    .rb-dc-card__name {
        font-size: 18px;
    }
}

.rb-dc-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--rb-ink-soft);
    background: var(--rb-surface-2);
    padding: 2px 8px;
    border-radius: 999px;
}

.rb-dc-card__desc {
    margin-top: 6px;
    font-size: 13px;
    color: var(--rb-ink-soft);
    line-height: 1.6;
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .rb-dc-card__desc {
        font-size: 14px;
    }
}

.rb-dc-card__zones {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.rb-dc-card__zone {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rb-ink-soft);
    border: 1px solid var(--rb-border);
    border-radius: 999px;
    padding: 2px 8px;
}

.rb-dc-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--rb-brand-deep);
    text-decoration: none;
    transition: gap 0.2s;
}

.rb-dc-card__link:hover {
    gap: 10px;
    color: var(--rb-brand-deep);
    text-decoration: none;
}

.rb-dc-map-wrap {
    position: sticky;
    top: 100px;
}

.rb-dc-map {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--rb-surface-2);
    border: 1px solid var(--rb-border);
    box-shadow: var(--rb-shadow-card);
    aspect-ratio: 4 / 5;
}

@media (min-width: 992px) {
    .rb-dc-map {
        aspect-ratio: 3 / 4;
    }
}

.rb-dc-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: grayscale(15%);
    border: none;
}

.rb-dc-map__footer {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--rb-ink-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rb-dc-map__count {
    font-weight: 500;
    color: var(--rb-ink);
}

.rb-ficha-related__link:hover {
    text-decoration: none;
    color: var(--rb-ink);
}

/* =====================================================
   BLOG / CONSEJOS — HERO ENCABEZADO
   ===================================================== */
.rb-blog-hero {
    background: var(--rb-surface);
    border-bottom: 1px solid var(--rb-border);
    padding: 40px 0;
}

@media (min-width: 1024px) {
    .rb-blog-hero {
        padding: 56px 0;
    }
}

.rb-blog-hero__title {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 300;
    color: var(--rb-ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
    max-width: 760px;
    font-family: "Inter", sans-serif;
}

.rb-blog-hero__title .rb-font-script {
    color: var(--rb-brand-deep);
}

.rb-blog-hero__subtitle {
    font-size: 16px;
    color: var(--rb-ink-soft);
    max-width: 520px;
    line-height: 1.65;
    margin: 16px 0 0;
    font-family: "Inter", sans-serif;
}

/* =====================================================
   BLOG / CONSEJOS — GRID DE ARTÍCULOS (Vue <blogs>)
   Reestiliza el markup .entry existente sin recompilar
   ===================================================== */
.rb-blog-page {
    padding: 48px 0 80px !important;
}

@media (min-width: 1024px) {
    .rb-blog-page {
        padding: 64px 0 96px !important;
    }
}

/* Grid CSS a todo el ancho: 1 col móvil, 2 tablet, 3 desktop (md:grid-cols-3 del
   demo). Sin isotope: las filas no se rompen y soporta el append de
   infinite-scroll sin necesidad de re-layout. */
.rb-blog-page .rb-blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px 24px;
}

@media (min-width: 576px) {
    .rb-blog-page .rb-blog-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .rb-blog-page .rb-blog-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 28px;
    }
}

.rb-blog-page .rb-blog-list__item {
    min-width: 0;
    margin: 0;
}

/* infinite-loading ocupa toda la fila, no una celda del grid */
.rb-blog-page .rb-blog-list > .infinite-loading-container {
    grid-column: 1 / -1;
}

.rb-blog-page .entry.entry-grid {
    text-align: left !important;
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
}

.rb-blog-page .entry-media {
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: var(--rb-radius-xl);
    margin-bottom: 16px;
    background: var(--rb-surface-2);
}

.rb-blog-page .entry-media a {
    display: block;
    width: 100%;
    height: 100%;
}

.rb-blog-page .entry-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.rb-blog-page .entry.entry-grid:hover .entry-media img {
    transform: scale(1.05);
}

.rb-blog-page .entry-body {
    padding: 0;
}

/* Meta: CATEGORÍA · FECHA (flex items-center gap-2 mb-2 del demo) */
.rb-blog-page .entry-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    border: none;
    padding: 0;
    justify-content: start;
}

.rb-blog-page .entry-cat {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rb-brand-deep);
    font-family: "Inter", sans-serif;
}

.rb-blog-page .entry-sep,
.rb-blog-page .entry-date {
    font-size: 10px;
    color: var(--rb-ink-soft);
    text-transform: none;
    letter-spacing: 0;
    font-family: "Inter", sans-serif;
}

/* Título: text-base font-medium leading-snug (16px) del demo */
.rb-blog-page .entry-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    letter-spacing: -0.01em;
    font-family: "Inter", sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rb-blog-page .entry-title a {
    color: var(--rb-ink);
    transition: color 0.2s;
}

.rb-blog-page .entry-title a:hover {
    color: var(--rb-brand-deep);
    text-decoration: none;
}

.max-col-2 .entry-grid .entry-title {
    font-size: 1.5rem;
}

/* Mensajes de infinite-loading */
.rb-blog-page .infinite-status-prompt {
    color: var(--rb-ink-soft) !important;
    font-size: 13px;
    font-family: "Inter", sans-serif;
}
