/* ==========================================================
   RENKÁVIA — Lista de precios
   ========================================================== */

.rk-prices-page {
    --prices-beige: #dad0c6;
    --prices-sage: #aec3ba;
    --prices-navy: #4c5564;
    --prices-lavender: #e0e7f9;
    --prices-blue: #7f9dc9;
    --prices-gold: #b59668;

    --prices-paper: #f7f4ef;
    --prices-paper-light: #fbf9f6;
    --prices-ink: #3a4049;
    --prices-muted: #72767c;
    --prices-green: #537362;
    --prices-red: #9b4652;
    --prices-line: rgba(76, 85, 100, 0.15);

    --prices-display: var(--rk-font-primary);
    --prices-body: var(--rk-font-primary);

    color: var(--prices-ink);
    background: var(--prices-paper);
    font-family: var(--prices-body);
    font-weight: 400;
    line-height: 1.65;

    --prices-header-offset: 98px;
    --prices-filter-height: 0px;
    --prices-sticky-gap: 10px;
    --prices-section-header-height: 58px;
}

.rk-prices-page *,
.rk-prices-page *::before,
.rk-prices-page *::after {
    box-sizing: border-box;
}

.rk-prices-wrap {
    width: min(100%, 1240px);
    margin: 0 auto;
    padding-right: clamp(20px, 5vw, 80px);
    padding-left: clamp(20px, 5vw, 80px);
}

.rk-prices-display {
    font-family: var(--prices-display);
    font-weight: 400;
    line-height: 1.08;
}

.rk-prices-eyebrow {
    display: inline-block;
    color: var(--prices-gold);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Hero */

.rk-prices-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(85px, 11vw, 145px) 0 clamp(70px, 9vw, 110px);
    color: var(--prices-paper);
    background:
        radial-gradient(
            circle at 15% 70%,
            rgba(174, 195, 186, 0.18),
            transparent 38%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(181, 150, 104, 0.13),
            transparent 34%
        ),
        #363c45;
}

.rk-prices-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.rk-prices-hero h1 {
    margin: 1rem 0 1.25rem;
    color: var(--prices-paper);
    font-size: clamp(3.5rem, 7vw, 5.8rem);
}

.rk-prices-hero h1 em {
    color: var(--prices-gold);
    font-weight: 400;
}

.rk-prices-lead {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(247, 244, 239, 0.76);
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    line-height: 1.72;
}

.rk-prices-validity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 9px 15px;
    margin-top: 1.8rem;
    color: rgba(247, 244, 239, 0.7);
    font-size: var(--rk-text-sm);
    line-height: 1.5;
    letter-spacing: 0.04em;
}

.rk-prices-validity > i:first-child {
    color: var(--prices-gold);
}

.rk-prices-dot {
    width: 4px;
    height: 4px;
    background: var(--prices-gold);
    border-radius: 50%;
}

.rk-prices-motif {
    position: absolute;
    top: -270px;
    right: -230px;
    width: 650px;
    height: 650px;
}

.rk-prices-motif span {
    position: absolute;
    border: 1px solid rgba(218, 208, 198, 0.12);
    border-radius: 50%;
}

.rk-prices-motif span:nth-child(1) {
    inset: 0;
}

.rk-prices-motif span:nth-child(2) {
    inset: 90px;
}

.rk-prices-motif span:nth-child(3) {
    inset: 180px;
}

/* Promociones */

.rk-prices-promotions {
    background: var(--prices-gold);
}

.rk-prices-promotion-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rk-promotion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 90px;
    padding: 18px 20px;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.19);
    font-size: var(--rk-text-base);
    line-height: 1.55;
}

.rk-promotion-item:last-child {
    border-right: 0;
}

.rk-promotion-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 31px;
    padding: 5px 9px;
    color: var(--prices-gold);
    background: #fff;
    border-radius: 999px;
    font-size: var(--rk-text-sm);
    font-weight: 600;
}

/* Catálogo */

.rk-prices-catalog {
    padding: clamp(75px, 9vw, 120px) 0;
}

.rk-prices-heading {
    max-width: 720px;
    margin-bottom: 40px;
}

.rk-prices-heading h2 {
    margin: 0.8rem 0 1rem;
    color: var(--prices-navy);
    font-size: clamp(2.35rem, 4.7vw, 3.6rem);
}

.rk-prices-heading p {
    margin: 0;
    color: var(--prices-muted);
    font-size: var(--rk-text-md);
    line-height: 1.68;
}

/* Filtros */

.rk-prices-filter-container {
    position: sticky;
    top: var(--prices-header-offset);
    z-index: 50;
    margin-bottom: 25px;
    padding: 12px;
    background: rgba(247, 244, 239, 0.96);
    border: 1px solid var(--prices-line);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(58, 64, 73, 0.07);
    backdrop-filter: blur(14px);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.filter-btn {
    min-height: 36px;
    padding: 7px 13px;
    color: var(--prices-muted);
    background: #fff;
    border: 1px solid var(--prices-line);
    border-radius: 999px;
    font-family: var(--prices-body);
    font-size: var(--rk-text-sm);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.filter-btn:hover {
    color: var(--prices-navy);
    border-color: var(--prices-gold);
    transform: translateY(-1px);
}

.filter-btn.active {
    color: #fff;
    background: var(--prices-navy);
    border-color: var(--prices-navy);
}

/* Secciones */

.sections {
    display: grid;
    gap: 10px;
}

.price-section {
    position: relative;
    overflow: visible;
    background: #fff;
    border: 1px solid var(--prices-line);
    border-radius: 10px;
    box-shadow: 0 9px 25px rgba(58, 64, 73, 0.035);
}

.price-section[hidden],
.price-row[hidden] {
    display: none !important;
}

.section-header {
    position: sticky;
    top: calc(
        var(--prices-header-offset) +
        var(--prices-filter-height) +
        var(--prices-sticky-gap)
    );
    z-index: 40;

    display: flex;
    align-items: stretch;
    min-height: var(--prices-section-header-height);

    overflow: hidden;
    background: var(--prices-navy);
    border-radius: 9px 9px 0 0;
    box-shadow: 0 5px 15px rgba(58, 64, 73, 0.12);

    cursor: pointer;
    user-select: none;
}

.section-header:focus-visible {
    outline: 3px solid rgba(181, 150, 104, 0.25);
    outline-offset: 2px;
}

.section-bar {
    width: 4px;
    flex: 0 0 auto;
    background: var(--prices-gold);
}

.section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 19px;
    color: #fff;
    background: var(--prices-navy);
}

.section-name {
    font-size: var(--rk-text-base);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section-count {
    margin-left: 5px;
    opacity: 0.55;
    font-weight: 400;
}

.chevron {
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.25s ease;
}

.section-header.open .chevron {
    transform: rotate(180deg);
}

.section-body {
    display: none;
}

.section-body.open {
    display: block;
}

.col-header,
.price-row {
    display: grid;
    grid-template-columns:
        minmax(280px, 1.7fr)
        minmax(105px, 0.5fr)
        minmax(115px, 0.55fr)
        minmax(115px, 0.55fr);
    gap: 12px;
    align-items: center;
}

.price-section--single .col-header,
.price-section--single .price-row {
    grid-template-columns:
        minmax(280px, 1.8fr)
        minmax(105px, 0.55fr)
        minmax(120px, 0.6fr);
}

.section-note {
    margin: 0;
    padding: 12px 18px;
    color: var(--prices-muted);
    background: rgba(181, 150, 104, 0.08);
    border-bottom: 1px solid var(--prices-line);
    font-size: var(--rk-text-sm);
    line-height: 1.55;
}

.col-header {
    position: sticky;
    top: calc(
        var(--prices-header-offset) +
        var(--prices-filter-height) +
        var(--prices-sticky-gap) +
        var(--prices-section-header-height)
    );
    z-index: 35;

    padding: 10px 18px;
    background: #f1ede7;
    border-bottom: 1px solid var(--prices-line);
    box-shadow: 0 5px 12px rgba(58, 64, 73, 0.07);
}

.col-header span {
    color: var(--prices-muted);
    font-size: var(--rk-text-xs);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.price-row {
    padding: 13px 18px;
    border-bottom: 1px solid rgba(76, 85, 100, 0.08);
    transition: background-color 0.18s ease;
}

.price-row:last-child {
    border-bottom: 0;
}

.price-row:nth-child(even) {
    background: rgba(247, 244, 239, 0.58);
}

.price-row:hover {
    background: rgba(174, 195, 186, 0.1);
}

.row-name {
    display: block;
    color: var(--prices-ink);
    font-size: 1.1875rem;
    font-weight: 500;
    line-height: 1.45;
}

.row-desc {
    display: block;
    margin-top: 2px;
    color: var(--prices-muted);
    font-size: var(--rk-text-base);
    line-height: 1.5;
}

.level {
    margin-right: 5px;
    color: var(--prices-gold);
    font-size: var(--rk-text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.row-meta {
    color: var(--prices-muted);
    font-size: var(--rk-text-sm);
    line-height: 1.45;
}

.row-price,
.row-cash {
    font-family: var(--prices-display);
    font-size: 1.35rem;
    font-weight: 500;
    white-space: nowrap;
}

.row-price {
    color: var(--prices-navy);
}

.row-cash {
    color: var(--prices-green);
}

/* Notas */

.rk-prices-notes-section {
    padding: clamp(70px, 8vw, 110px) 0;
    background: linear-gradient(
        180deg,
        var(--prices-paper),
        #eee8df
    );
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    background: var(--prices-line);
    border: 1px solid var(--prices-line);
    border-radius: 10px;
}

.note-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 180px;
    padding: 27px;
    background: var(--prices-paper-light);
}

.note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    color: var(--prices-gold);
    background: rgba(181, 150, 104, 0.11);
    border-radius: 50%;
}

.note-title {
    margin: 4px 0 8px;
    color: var(--prices-navy);
    font-size: var(--rk-text-base);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.note-text {
    margin: 0;
    color: var(--prices-muted);
    font-size: var(--rk-text-base);
    line-height: 1.65;
}

/* Contacto */

.rk-prices-contact {
    padding: clamp(70px, 8vw, 110px) 0;
    background: var(--prices-paper);
}

.rk-prices-contact-box {
    padding: clamp(45px, 7vw, 80px);
    text-align: center;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(224, 231, 249, 0.8),
            transparent 38%
        ),
        linear-gradient(145deg, #fbf9f6, #e7eeea);
    border: 1px solid var(--prices-line);
    border-radius: 16px;
}

.rk-prices-contact-box h2 {
    max-width: 820px;
    margin: 0.8rem auto 1.2rem;
    color: var(--prices-navy);
    font-size: clamp(2.3rem, 4.7vw, 3.6rem);
}

.rk-prices-contact-box > p {
    max-width: 670px;
    margin: 0 auto 2rem;
    color: var(--prices-muted);
    font-size: var(--rk-text-md);
    line-height: 1.68;
}

.rk-prices-contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.rk-prices-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0.9rem 1.7rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.rk-prices-button:hover {
    transform: translateY(-2px);
}

.rk-prices-button-primary {
    color: #fff;
    background: var(--prices-navy);
}

.rk-prices-button-primary:hover {
    color: #fff;
    background: #3a414d;
}

.rk-prices-button-outline {
    color: var(--prices-navy);
    background: transparent;
    border-color: var(--prices-navy);
}

.rk-prices-button-outline:hover {
    color: #fff;
    background: var(--prices-navy);
}

/* Legal */

.rk-prices-legal {
    padding: 18px 0;
    color: rgba(247, 244, 239, 0.68);
    background: #363c45;
    border-bottom: 1px solid rgba(247, 244, 239, 0.1);
    text-align: center;
}

.rk-prices-legal p {
    margin: 0;
    font-size: var(--rk-text-xs);
    line-height: 1.55;
}

/* Responsive */

@media (max-width: 991.98px) {
    .rk-prices-promotion-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rk-promotion-item:nth-child(2) {
        border-right: 0;
    }

    .rk-promotion-item:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.19);
    }

    .notes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .col-header,
    .price-row {
        grid-template-columns:
            minmax(220px, 1.55fr)
            minmax(90px, 0.5fr)
            minmax(100px, 0.55fr)
            minmax(100px, 0.55fr);
    }

    .price-section--single .col-header,
    .price-section--single .price-row {
        grid-template-columns:
            minmax(220px, 1.65fr)
            minmax(90px, 0.5fr)
            minmax(105px, 0.55fr);
    }
}

@media (max-width: 767.98px) {
    
    .rk-prices-page {
        --prices-header-offset: 70px;
        --prices-sticky-gap: 6px;
    }

    .rk-prices-filter-container {
        top: 70px;
        margin-right: -20px;
        margin-left: -20px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .section-header {
        border-radius: 0;
    }

    .col-header {
        display: none;
    }

    .filters {
        flex-wrap: nowrap;
        padding-bottom: 3px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .filter-btn {
        flex: 0 0 auto;
    }

    .col-header {
        display: none;
    }

    .price-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 0;
        padding: 18px;
    }

    .price-row > div:first-child {
        padding-bottom: 9px;
        border-bottom: 1px solid var(--prices-line);
    }

    .row-meta,
    .row-price,
    .row-cash {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        width: 100%;
    }

    .row-meta::before,
    .row-price::before,
    .row-cash::before {
        content: attr(data-label);
        color: var(--prices-muted);
        font-family: var(--prices-body);
        font-size: var(--rk-text-xs);
        font-weight: 600;
        line-height: 1.25;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .notes-grid {
        grid-template-columns: 1fr;
    }

    .note-item {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .rk-prices-hero {
        padding-top: 72px;
        padding-bottom: 65px;
    }

    .rk-prices-hero h1 {
        font-size: 3.4rem;
    }

    .rk-prices-validity {
        flex-direction: column;
    }

    .rk-prices-validity .rk-prices-dot {
        display: none;
    }

    .rk-prices-promotion-grid {
        grid-template-columns: 1fr;
    }

    .rk-promotion-item {
        min-height: 75px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.19);
    }

    .rk-promotion-item:last-child {
        border-bottom: 0;
    }

    .rk-prices-contact-box {
        padding: 43px 20px;
        border-radius: 10px;
    }

    .rk-prices-contact-actions {
        flex-direction: column;
    }

    .rk-prices-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rk-prices-page *,
    .rk-prices-page *::before,
    .rk-prices-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
