/* ==========================================================
   RENKÁVIA — Catálogo editorial de servicios
   ========================================================== */

.rk-services-page {
    --services-paper: #f7f4ef;
    --services-paper-light: #fbf9f6;
    --services-ink: #3a4049;
    --services-muted: #6e737b;
    --services-navy: #4c5564;
    --services-sage: #aec3ba;
    --services-gold: #b59668;
    --services-line: rgba(76, 85, 100, 0.16);
    --services-editorial: var(--rk-font-editorial);

    min-height: 100vh;
    color: var(--services-ink);
    background: var(--services-paper);
    font-family: var(--rk-font-primary);
    font-weight: 400;
    line-height: 1.65;
}

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

.rk-services-wrap {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding-right: clamp(22px, 5vw, 72px);
    padding-left: clamp(22px, 5vw, 72px);
}

.rk-services-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(82px, 10vw, 132px) 0 clamp(62px, 8vw, 96px);
    text-align: center;
    background:
        radial-gradient(circle at 14% 12%, rgba(174, 195, 186, 0.4), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(218, 208, 198, 0.58), transparent 36%),
        linear-gradient(155deg, var(--services-paper-light), var(--services-paper));
}

.rk-services-hero-content {
    position: relative;
    z-index: 1;
}

.rk-services-hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: clamp(34px, 6vw, 76px);
}

.rk-service-detail-hero {
    padding-top: clamp(42px, 6vw, 78px);
    text-align: left;
}

.rk-service-detail-hero .rk-services-hero-content {
    min-width: 0;
}

.rk-service-detail-hero h1,
.rk-service-detail-hero p {
    margin-right: 0;
    margin-left: 0;
}

.rk-service-hero-media {
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #e9e5df;
    border: 1px solid var(--services-line);
    border-radius: 14px;
    box-shadow: 0 24px 58px rgba(58, 64, 73, 0.12);
}

.rk-service-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rk-services-eyebrow {
    display: inline-block;
    color: var(--services-gold);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 0.07em;
    line-height: 1.3;
    text-transform: uppercase;
}

.rk-services-hero h1 {
    max-width: 850px;
    margin: 0.75rem auto 1rem;
    color: var(--services-navy);
    font-size: clamp(3rem, 7vw, 5.4rem);
    font-weight: 600;
    line-height: 1.06;
}

.rk-services-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--services-muted);
    font-size: clamp(1.1rem, 1.7vw, 1.28rem);
    line-height: 1.6;
}

.rk-services-section {
    padding: clamp(68px, 9vw, 112px) 0;
}

.rk-services-heading {
    max-width: 760px;
    margin-bottom: clamp(30px, 5vw, 48px);
}

.rk-services-heading h2,
.rk-services-cta h2 {
    margin: 0.65rem 0 0;
    color: var(--services-navy);
    font-size: clamp(2.25rem, 5vw, 3.8rem);
    font-weight: 600;
    line-height: 1.12;
}

.rk-published-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.5vw, 30px);
}

.rk-treatment-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(20px, 2.5vw, 30px);
}

.rk-treatment-card {
    grid-column: span 2;
}

.rk-treatment-card:nth-last-child(-n + 2) {
    grid-column: span 3;
}

.rk-treatment-card {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: clamp(26px, 3.5vw, 40px);
    background: var(--services-paper-light);
    border: 1px solid var(--services-line);
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(58, 64, 73, 0.06);
}

.rk-published-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    background: var(--services-paper-light);
    border: 1px solid var(--services-line);
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(58, 64, 73, 0.06);
    text-decoration: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.rk-published-card:hover,
.rk-published-card:focus-visible {
    color: inherit;
    border-color: rgba(181, 150, 104, 0.7);
    box-shadow: 0 22px 54px rgba(58, 64, 73, 0.11);
    transform: translateY(-3px);
}

.rk-published-card:focus-visible {
    outline: 3px solid rgba(181, 150, 104, 0.34);
    outline-offset: 3px;
}

.rk-published-card-media {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #e9e5df;
}

.rk-published-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.rk-published-card:hover .rk-published-card-media img {
    transform: scale(1.018);
}

.rk-published-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(24px, 3vw, 34px);
}

.rk-treatment-card > span {
    color: var(--services-gold);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-transform: uppercase;
}

.rk-treatment-card h3,
.rk-published-card h3 {
    margin: 0.75rem 0 1rem;
    color: var(--services-navy);
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
}

.rk-treatment-card p,
.rk-published-card-description {
    display: block;
    margin: 0 0 1.5rem;
    color: var(--services-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.rk-treatment-card strong {
    margin-top: auto;
    padding-top: 1.1rem;
    color: var(--services-navy);
    border-top: 1px solid var(--services-line);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.4;
    text-transform: uppercase;
}

.rk-services-catalog {
    background: rgba(174, 195, 186, 0.16);
}

.rk-published-card-cta {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    color: var(--services-navy);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.rk-services-cta {
    padding: clamp(68px, 9vw, 110px) 0;
    color: #fff;
    text-align: center;
    background: var(--services-navy);
}

.rk-services-cta .rk-services-eyebrow {
    color: #d8bd94;
}

.rk-services-cta h2 {
    color: #fff;
}

.rk-services-cta p {
    max-width: 680px;
    margin: 1rem auto 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
    line-height: 1.65;
}

.rk-services-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 2rem;
}

.rk-services-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
}

.rk-services-button-primary {
    color: #fff;
    background: var(--services-gold);
    border-color: var(--services-gold);
}

.rk-services-button-primary:hover,
.rk-services-button-primary:focus-visible {
    color: #fff;
    background: #99794f;
    border-color: #99794f;
}

.rk-services-button-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.62);
}

.rk-services-button-secondary:hover,
.rk-services-button-secondary:focus-visible {
    color: var(--services-navy);
    background: #fff;
}

.rk-service-article {
    max-width: 880px;
    padding-top: clamp(54px, 8vw, 92px);
    padding-bottom: clamp(74px, 10vw, 126px);
}

.rk-service-content-section + .rk-service-content-section,
.rk-service-faq {
    margin-top: clamp(36px, 5vw, 54px);
}

.rk-service-article h2 {
    margin: 0 0 0.8rem;
    color: var(--services-navy);
    font-size: clamp(1.6rem, 3vw, 2.05rem);
    font-weight: 600;
    line-height: 1.25;
}

.rk-service-article p {
    margin: 0;
    color: var(--services-muted);
    font-size: clamp(1.08rem, 1.6vw, 1.18rem);
    line-height: 1.75;
}

.rk-service-content-section p + p {
    margin-top: 1rem;
}

.rk-service-content-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.rk-service-content-list li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--services-muted);
    font-size: clamp(1.04rem, 1.5vw, 1.14rem);
    line-height: 1.55;
}

.rk-service-content-list li::before {
    position: absolute;
    top: 0.67em;
    left: 0;
    width: 0.38rem;
    height: 0.38rem;
    background: var(--services-gold);
    border-radius: 50%;
    content: '';
}

.rk-service-metrics .rk-service-content-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.rk-service-metrics .rk-service-content-list li {
    display: flex;
    min-height: 76px;
    align-items: center;
    padding: 1rem 1.1rem;
    color: var(--services-navy);
    background: var(--services-paper-light);
    border: 1px solid var(--services-line);
    border-radius: 10px;
    font-weight: 600;
}

.rk-service-metrics .rk-service-content-list li::before {
    display: none;
}

.rk-service-care,
.rk-service-normal-reactions,
.rk-service-contact-alert {
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid var(--services-line);
    border-radius: 12px;
}

.rk-service-care {
    background: rgba(174, 195, 186, 0.17);
}

.rk-service-care-guide {
    margin-top: clamp(36px, 5vw, 54px);
}

.rk-service-care-guide .rk-services-button {
    margin-top: 1.2rem;
}

.rk-service-normal-reactions {
    background: var(--services-paper-light);
}

.rk-service-contact-alert {
    background: #f8edeb;
    border-color: rgba(151, 76, 65, 0.32);
}

.rk-service-contact-alert h2 {
    color: #74453f;
}

.rk-service-contact-alert .rk-service-content-list li::before {
    background: #9a5b51;
}

.rk-service-faq-list {
    display: grid;
    gap: 12px;
}

.rk-service-faq-item {
    overflow: hidden;
    background: var(--services-paper-light);
    border: 1px solid var(--services-line);
    border-radius: 10px;
}

.rk-service-faq-item summary {
    padding: 18px 48px 18px 20px;
    color: var(--services-navy);
    cursor: pointer;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.4;
}

.rk-service-faq-item summary:focus-visible {
    outline: 3px solid rgba(181, 150, 104, 0.34);
    outline-offset: -3px;
}

.rk-service-faq-item p {
    padding: 0 20px 20px;
}

.rk-service-detail-cta {
    margin-top: clamp(52px, 7vw, 76px);
    padding: clamp(28px, 5vw, 48px);
    background: rgba(174, 195, 186, 0.2);
    border: 1px solid var(--services-line);
    border-radius: 12px;
}

.rk-service-detail-cta .rk-services-button {
    margin-top: 1.5rem;
}

.rk-service-highlights,
.rk-related-services {
    margin-top: clamp(52px, 7vw, 76px);
}

.rk-service-highlights-grid,
.rk-related-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 1.4rem;
}

.rk-service-highlights-grid article,
.rk-related-services-grid a {
    padding: 24px;
    background: var(--services-paper-light);
    border: 1px solid var(--services-line);
    border-radius: 10px;
}

.rk-service-highlights-grid h3,
.rk-related-services-grid strong {
    display: block;
    margin: 0 0 0.55rem;
    color: var(--services-navy);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
}

.rk-service-highlights-grid p,
.rk-related-services-grid span {
    display: block;
    color: var(--services-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.rk-related-services-grid a {
    text-decoration: none;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease;
}

.rk-related-services-grid a:hover,
.rk-related-services-grid a:focus-visible {
    border-color: var(--services-gold);
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .rk-service-highlights-grid,
    .rk-related-services-grid {
        grid-template-columns: 1fr;
    }

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

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

    .rk-treatment-card,
    .rk-treatment-card:nth-last-child(-n + 2) {
        grid-column: auto;
    }

    .rk-service-metrics .rk-service-content-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rk-treatment-card,
    .rk-published-card {
        min-height: auto;
    }
}

@media (max-width: 767.98px) {
    .rk-services-hero-layout {
        grid-template-columns: 1fr;
    }

    .rk-service-detail-hero {
        text-align: center;
    }

    .rk-service-detail-hero h1,
    .rk-service-detail-hero p {
        margin-right: auto;
        margin-left: auto;
    }

    .rk-service-hero-media {
        width: min(100%, 430px);
        margin: 0 auto;
    }

    .rk-service-metrics .rk-service-content-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .rk-services-hero {
        padding-top: 66px;
    }

    .rk-services-actions {
        flex-direction: column;
    }

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

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

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

    .rk-service-content-list {
        grid-template-columns: 1fr;
    }

    .rk-service-care,
    .rk-service-normal-reactions,
    .rk-service-contact-alert {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rk-published-card,
    .rk-published-card-media img {
        transition: none;
    }
}

/* ==========================================================
   Tipografia editorial
   ========================================================== */

.rk-treatment-card p,
.rk-published-card-description,
.rk-services-cta p,
.rk-service-article p,
.rk-service-content-list li,
.rk-related-services-grid a > span {
    font-family: var(--services-editorial);
    font-size: var(--rk-font-editorial-size);
    font-weight: 400;
    line-height: 1.67;
}

.rk-services-hero p {
    font-family: var(--services-editorial);
    font-size: var(--rk-font-editorial-lead);
    font-weight: 400;
    line-height: 1.65;
}

.rk-service-metrics .rk-service-content-list li,
.rk-service-care .rk-service-content-list li,
.rk-service-normal-reactions .rk-service-content-list li,
.rk-service-contact-alert .rk-service-content-list li {
    font-family: var(--rk-font-primary);
}

/* Fase 4. Opt-in editorial shell; legacy detail rules above remain untouched. */
.rk-services-editorial [id] { scroll-margin-top: calc(var(--rk-shell-header-height, 6rem) + 1.5rem); }
.rk-services-editorial .rk-areas-hero { padding-bottom: clamp(3rem, 5vw, 5rem); }
.rk-services-editorial .rk-public-breadcrumb { padding-block: 1.5rem; margin: 0; font-size: var(--rk-web-text-xs); }
.rk-services-editorial .rk-areas-hero__layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.rk-services-editorial .rk-areas-hero__copy { padding-block: 2rem; }
.rk-services-editorial .rk-areas-hero__copy .rk-display { max-width: 16ch; margin-block: 1.5rem; font-size: clamp(3.25rem, 4.8vw, 5rem); overflow-wrap: break-word; }
.rk-services-editorial .rk-areas-hero__copy .rk-lead { max-width: 37ch; }
.rk-services-editorial .rk-areas-hero__copy .rk-button { margin-top: 2rem; }
.rk-services-editorial .rk-areas-hero__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.rk-services-editorial .rk-areas-navigation { padding-block: 2rem 3rem; border-top: 1px solid var(--rk-web-line); }
.rk-services-editorial .rk-areas-navigation ul { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.rk-services-editorial .rk-areas-navigation a { display: inline-flex; min-height: 2.75rem; align-items: center; font-size: var(--rk-web-text-sm); text-decoration-thickness: 1px; }
.rk-services-editorial .rk-areas-row .rk-editorial__media img { aspect-ratio: 5 / 4; object-fit: cover; }
.rk-services-editorial #medicina-estetica .rk-editorial__media img { object-position: 50% 75%; }
.rk-services-editorial #tecnologia-medica .rk-editorial__media img,
.rk-services-editorial #evaluaciones-complementarias .rk-editorial__media img { object-position: 50% 70%; }
.rk-services-editorial .rk-areas-row .rk-heading { font-size: clamp(2.25rem, 3.7vw, 3.75rem); }
.rk-services-editorial .rk-areas-row .rk-section-heading { margin-bottom: 2rem; }
.rk-services-editorial .rk-areas-section__layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.rk-services-editorial .rk-areas-section__layout > .rk-heading { max-width: 16ch; }
.rk-services-editorial .rk-areas-section__body { max-width: var(--rk-web-reading); }
.rk-services-editorial .rk-areas-list { margin: 0; padding: 0; list-style: none; }
.rk-services-editorial .rk-areas-list li { padding-block: 1rem; border-bottom: 1px solid var(--rk-web-line); }
.rk-services-editorial .rk-areas-section__body > p + .rk-areas-list { margin-top: 2rem; }
.rk-services-editorial .rk-areas-plan-note { margin-top: 2rem; color: var(--rk-web-muted); font-size: var(--rk-web-text-sm); }
.rk-services-editorial .rk-areas-method { --rk-web-focus: var(--rk-web-champagne); background: var(--rk-web-ink); color: var(--rk-web-paper); }
.rk-services-editorial .rk-areas-method .rk-eyebrow { color: var(--rk-web-champagne); }
.rk-services-editorial .rk-areas-method .rk-section-heading { max-width: 56rem; }
.rk-services-editorial .rk-areas-method .rk-heading { white-space: pre-line; }
.rk-services-editorial .rk-areas-method__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.rk-services-editorial .rk-areas-method__steps li { padding-top: 1.5rem; border-top: 1px solid var(--rk-web-wood); }
.rk-services-editorial .rk-areas-method__steps h3 { margin-block: 1.25rem 1rem; }
.rk-services-editorial .rk-areas-method__steps p { max-width: 30ch; color: var(--rk-web-sand); }
.rk-services-editorial .rk-areas-faq .rk-disclosure { background: transparent; }
.rk-services-editorial .rk-areas-faq .rk-disclosure__content p { max-width: 45ch; }
.rk-services-editorial .rk-areas-booking { background: var(--rk-web-sand); text-align: center; }
.rk-services-editorial .rk-areas-booking .rk-heading { max-width: 20ch; margin: 1.5rem auto; }
.rk-services-editorial .rk-areas-booking .rk-lead { max-width: 42ch; margin-inline: auto; }
.rk-services-editorial .rk-areas-booking .rk-actions { justify-content: center; margin-top: 2rem; }
.rk-services-editorial .rk-areas-booking__note { margin-top: 1.5rem; font-size: var(--rk-web-text-xs); color: var(--rk-web-muted); }
.rk-services-editorial .rk-areas-return { padding-block: 2rem; }
.rk-services-editorial .rk-areas-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 63.99rem) {
    .rk-services-editorial .rk-areas-hero__layout { gap: 2rem; }
    .rk-services-editorial .rk-areas-hero__copy .rk-display { font-size: clamp(2.75rem, 5.5vw, 4rem); }
    .rk-services-editorial .rk-areas-section__layout { gap: 2.5rem; }
}
@media (max-width: 47.99rem) {
    .rk-services-editorial .rk-areas-hero__layout, .rk-services-editorial .rk-areas-section__layout, .rk-services-editorial .rk-areas-method__steps { grid-template-columns: 1fr; }
    .rk-services-editorial .rk-areas-hero__copy { padding-block: 1rem; }
    .rk-services-editorial .rk-areas-hero__copy .rk-display { max-width: 18ch; font-size: clamp(2.375rem, 10vw, 3rem); }
    .rk-services-editorial .rk-areas-hero__photo img { aspect-ratio: 4 / 3; }
    .rk-services-editorial .rk-areas-navigation { padding-block: 1.5rem; }
    .rk-services-editorial .rk-areas-navigation ul { display: block; }
    .rk-services-editorial .rk-areas-navigation li + li { margin-top: .25rem; }
    .rk-services-editorial .rk-areas-row .rk-editorial__media img { aspect-ratio: 4 / 3; }
    .rk-services-editorial .rk-areas-method__steps { gap: 2.5rem; }
}
