:root {
    --color-primary: #01566D;
    --color-secondary: #36848B;
    --color-surface: #FFFFFF;
    --color-surface-alt: #F7FAFA;
    --color-surface-soft: #EEF4F5;
    --color-text: #013847;
    --font-heading: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container-max: 1180px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.32s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-width: 320px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

body::selection {
    background: rgba(54, 132, 139, 0.18);
}

svg,
img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    margin: 0 auto;
}

/* Header propio del standalone eliminado — se usa el partial header.php del
   proyecto (styles.css lo controla). */





































/* Sin .btn base aquí: los botones (todos del proyecto: btnPrimary/btnWhite/btnWhiteOutline)
   los define styles.css, cargado después. Evita colarles color/line-height/min-height. */

.btn:focus-visible,
.language-switch:focus-visible,
.header__mobile-toggle:focus-visible {
    outline: 2px solid rgba(54, 132, 139, 0.38);
    outline-offset: 3px;
}



















/* .eyebrow usa el estilo global de styles.css (texto + líneas fade a los lados).
   El badge del CTA azul replica ese estilo en blanco. */






.feature-section {
    position: relative;
    overflow: hidden;
    scroll-margin-top: 84px;
    padding: 108px 0;
}

.feature-heading,
.profit-intro,
.history-copy {
    max-width: 650px;
}

.feature-heading h2,
.profit-intro h2,
.insurer-copy h2,
.history-copy h2 {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

.catalog-section .feature-heading h2 {
    color: var(--color-primary);
}

.profit-intro h2,
.insurer-copy h2 {
    color: var(--color-primary);
}

.catalog-section .feature-heading > .eyebrow {
    display: flex;
    width: 100%;
    justify-content: center;
}

.catalog-section .feature-heading > .eyebrow::before,
.catalog-section .feature-heading > .eyebrow::after {
    flex: 1 1 auto;
    width: auto;
}

.feature-heading p,
.profit-intro p,
.insurer-copy p,
.history-copy p {
    margin-top: 18px;
    color: rgba(1, 56, 71, 0.72);
    font-size: 18px;
    line-height: 1.8;
}

.feature-detail-title {
    color: var(--color-primary) !important;
    font-weight: 800;
}

.feature-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin-top: 18px;
    list-style: none;
}

.feature-detail-list li {
    position: relative;
    padding-left: 20px;
    color: rgba(1, 56, 71, 0.76);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.feature-detail-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-secondary);
}

.treatment-hero {
    position: relative;
    overflow: hidden;
    min-height: 760px;
    padding: 152px 0 118px;
    background: transparent;
}

.treatment-hero__inner {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    align-items: center;
    gap: 56px;
}

.treatment-hero__copy {
    max-width: 520px;
}

.treatment-hero__title {
    margin-top: 26px;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0;
}

.treatment-hero__title span {
    display: block;
    color: var(--color-primary);
}

.treatment-hero__text {
    margin: 28px 0 26px;
    max-width: 470px;
    color: rgba(1, 56, 71, 0.74);
    font-size: 18px;
    line-height: 1.85;
}

.treatment-hero__visual {
    min-width: 0;
}



/* === Mockup primitivo: discos circulares en órbita === */
.orb {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

































/* === Mockup con foto de fondo + card de tratamiento === */
.treatment-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(1, 56, 71, 0.18);
}

.treatment-stage__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    filter: brightness(0.82);
}

.treatment-stage__panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: min(470px, 90%);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 62px rgba(1, 56, 71, 0.34);
}

.t-panel__top {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px 28px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(145deg, #01566D 0%, #1E6F7B 100%);
    color: #fff;
}

.t-panel__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.t-panel__icon svg {
    width: 30px;
    height: 30px;
}

.t-panel__combo {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 56px;
    gap: 3px;
}

.t-panel__cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.t-panel__name {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
}

.t-panel__price {
    flex: none;
    align-self: center;
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.t-panel__tabs {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 16px 18px 18px;
    border-radius: 0 0 22px 22px;
    background: #fff;
}

/* Cada propiedad = un "cajón" del armario */
.t-tab {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 9px 14px;
    border-radius: 11px;
    background: var(--color-surface-soft);
    box-shadow: 0 2px 9px rgba(1, 56, 71, 0.10);
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, background 0.3s ease;
    animation: t-fit-1 9s ease-in-out infinite;
}

/* Ratón encima del mockup: el JS fija la posición y desliza al sitio (.t-settling) */
.treatment-stage.t-settling .t-tab {
    animation: none;
    box-shadow: 0 2px 9px rgba(1, 56, 71, 0.10);
    z-index: 1;
}

/* ===== Detalle: la propiedad vuela arriba y debajo sale la card con foto ===== */
.t-detail {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 30px 28px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(1, 28, 37, 0.82);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
}

.t-detail.is-open {
    opacity: 1;
    visibility: visible;
}

/* Chip: la propiedad seleccionada, volada arriba y un poco más grande */
.t-detail__chip {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 200px;
    max-width: 80%;
    padding: 13px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #01566D, #1E6F7B);
    box-shadow: 0 18px 40px rgba(1, 56, 71, 0.42);
    transform: translateY(24px) scale(0.92);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.t-detail.is-open .t-detail__chip {
    transform: translateY(0) scale(1.06);
    opacity: 1;
}

.t-detail__chip .t-tab__txt {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.t-detail__chip .t-tab__txt small {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.t-detail__chip .t-tab__txt strong {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.t-detail__chip .t-tab__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.t-detail__chip .t-tab__icon svg { width: 19px; height: 19px; }

/* Zona de la foto: referencia para centrar las flechas */
.t-detail__stage {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
}

/* Card que sale debajo del chip con el hueco de la foto */
.t-detail__card {
    width: min(80%, 440px);
    max-height: 100%;
    margin: 0;
    display: grid;
    place-items: center;
    background: transparent;
    transform: scaleY(0.55);
    transform-origin: top center;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.08s, opacity 0.45s ease 0.08s;
}

.t-detail.is-open .t-detail__card {
    transform: scaleY(1);
    opacity: 1;
}

.t-detail__ph {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 150px;
    color: rgba(255, 255, 255, 0.45);
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 16px, rgba(255, 255, 255, 0.02) 16px 32px);
}

.t-detail__ph svg { width: 56px; height: 56px; }

.t-detail__img,
.t-detail__card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 14px;
    display: block;
}

.t-detail__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.t-detail__close:hover { background: rgba(255, 255, 255, 0.28); }
.t-detail__close svg { width: 20px; height: 20px; }

.t-detail__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 46px;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.t-detail__nav:hover { opacity: 1; }
.t-detail__nav--prev { left: 8px; }
.t-detail__nav--next { right: 8px; }
.t-detail__nav svg { width: 28px; height: 28px; }

/* ===== Carrusel coverflow quickNav (copiado de funcionalidades) ===== */
.quickNavBlock {
    margin-top: 56px;
    text-align: center;
}

/* Sección del quickNav: menos espacio abajo (pegado a la CTA) */
.feature-section.quicknav-section {
    padding: 62px 0 0;
}

.quicknav-section .quickNavBlock {
    margin-top: 0;
}


.quickNavBlock h2 {
    max-width: 760px;
    margin: 0 auto;
}














































.t-tab__txt {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.t-tab__txt small {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(1, 56, 71, 0.55);
}

.t-tab__txt strong {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text);
}

.t-tab__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(54, 132, 139, 0.12);
    color: var(--color-primary);
}

.t-tab__icon svg {
    width: 18px;
    height: 18px;
}

/* Hover sobre una propiedad: se "selecciona" (azul, texto blanco) */
.t-tab__txt small,
.t-tab__txt strong,
.t-tab__icon { transition: color 0.3s ease, background 0.3s ease; }

.t-tab:hover {
    background: linear-gradient(135deg, #01566D, #1E6F7B);
    box-shadow: 0 12px 28px rgba(1, 56, 71, 0.32);
}

.t-tab:hover .t-tab__txt small { color: rgba(255, 255, 255, 0.75); }
.t-tab:hover .t-tab__txt strong { color: #fff; }
.t-tab:hover .t-tab__icon { background: rgba(255, 255, 255, 0.18); color: #fff; }

/*
 * Loop sincronizado (mismo reloj para los 5):
 *   0-8%   salen TODOS a la vez (dentro → fuera)
 *   8-..%  esperan fuera
 *   ..     entra cada uno en su turno (1 a 1, ~0.7s) con destello al encajar
 *   ..100% todos dentro hasta que el loop reinicia y vuelven a salir
 * Sólo cambia el % de entrada por cajón; la salida es común.
 */
.t-tab:nth-child(1) { --tx: -13%; --ty: -22%; --rot: -4deg; animation-name: t-fit-1; }
.t-tab:nth-child(2) { --tx: 17%;  --ty: -11%; --rot: 4deg;  animation-name: t-fit-2; }
.t-tab:nth-child(3) { --tx: -19%; --ty: 4%;   --rot: -3deg; animation-name: t-fit-3; }
.t-tab:nth-child(4) { --tx: 15%;  --ty: 13%;  --rot: 4deg;  animation-name: t-fit-4; }
.t-tab:nth-child(5) { --tx: -11%; --ty: 22%;  --rot: -3deg; animation-name: t-fit-5; }

@keyframes t-fit-1 {
    0%   { transform: translate(0,0) rotate(0deg) scale(1); box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
    8%   { transform: translate(var(--tx),var(--ty)) rotate(var(--rot)) scale(1); box-shadow: 0 8px 20px rgba(1,56,71,.16); z-index: 20; }
    25%  { transform: translate(var(--tx),var(--ty)) rotate(var(--rot)) scale(1); box-shadow: 0 8px 20px rgba(1,56,71,.16); z-index: 20; }
    29%  { transform: translate(0,0) rotate(0deg) scale(1); box-shadow: 0 0 0 0 rgba(54,132,139,0); z-index: 20; }
    31%  { box-shadow: 0 0 11px 1px rgba(54,132,139,.34); }
    34%  { box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
    52.5% { box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
    54%   { box-shadow: 0 0 11px 1px rgba(54,132,139,.34); }
    55.5% { box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
    100% { transform: translate(0,0) rotate(0deg) scale(1); box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
}

@keyframes t-fit-2 {
    0%    { transform: translate(0,0) rotate(0deg) scale(1); box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
    8%    { transform: translate(var(--tx),var(--ty)) rotate(var(--rot)) scale(1); box-shadow: 0 8px 20px rgba(1,56,71,.16); z-index: 20; }
    29.5% { transform: translate(var(--tx),var(--ty)) rotate(var(--rot)) scale(1); box-shadow: 0 8px 20px rgba(1,56,71,.16); z-index: 20; }
    33.5% { transform: translate(0,0) rotate(0deg) scale(1); box-shadow: 0 0 0 0 rgba(54,132,139,0); z-index: 20; }
    35.5% { box-shadow: 0 0 11px 1px rgba(54,132,139,.34); }
    38.5% { box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
    54%   { box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
    55.5% { box-shadow: 0 0 11px 1px rgba(54,132,139,.34); }
    57%   { box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
    100%  { transform: translate(0,0) rotate(0deg) scale(1); box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
}

@keyframes t-fit-3 {
    0%   { transform: translate(0,0) rotate(0deg) scale(1); box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
    8%   { transform: translate(var(--tx),var(--ty)) rotate(var(--rot)) scale(1); box-shadow: 0 8px 20px rgba(1,56,71,.16); z-index: 20; }
    34%  { transform: translate(var(--tx),var(--ty)) rotate(var(--rot)) scale(1); box-shadow: 0 8px 20px rgba(1,56,71,.16); z-index: 20; }
    38%  { transform: translate(0,0) rotate(0deg) scale(1); box-shadow: 0 0 0 0 rgba(54,132,139,0); z-index: 20; }
    40%  { box-shadow: 0 0 11px 1px rgba(54,132,139,.34); }
    43%  { box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
    55.5% { box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
    57%   { box-shadow: 0 0 11px 1px rgba(54,132,139,.34); }
    58.5% { box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
    100% { transform: translate(0,0) rotate(0deg) scale(1); box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
}

@keyframes t-fit-4 {
    0%    { transform: translate(0,0) rotate(0deg) scale(1); box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
    8%    { transform: translate(var(--tx),var(--ty)) rotate(var(--rot)) scale(1); box-shadow: 0 8px 20px rgba(1,56,71,.16); z-index: 20; }
    38.5% { transform: translate(var(--tx),var(--ty)) rotate(var(--rot)) scale(1); box-shadow: 0 8px 20px rgba(1,56,71,.16); z-index: 20; }
    42.5% { transform: translate(0,0) rotate(0deg) scale(1); box-shadow: 0 0 0 0 rgba(54,132,139,0); z-index: 20; }
    44.5% { box-shadow: 0 0 11px 1px rgba(54,132,139,.34); }
    47.5% { box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
    57%   { box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
    58.5% { box-shadow: 0 0 11px 1px rgba(54,132,139,.34); }
    60%   { box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
    100%  { transform: translate(0,0) rotate(0deg) scale(1); box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
}

@keyframes t-fit-5 {
    0%   { transform: translate(0,0) rotate(0deg) scale(1); box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
    8%   { transform: translate(var(--tx),var(--ty)) rotate(var(--rot)) scale(1); box-shadow: 0 8px 20px rgba(1,56,71,.16); z-index: 20; }
    43%  { transform: translate(var(--tx),var(--ty)) rotate(var(--rot)) scale(1); box-shadow: 0 8px 20px rgba(1,56,71,.16); z-index: 20; }
    47%  { transform: translate(0,0) rotate(0deg) scale(1); box-shadow: 0 0 0 0 rgba(54,132,139,0); z-index: 20; }
    49%  { box-shadow: 0 0 11px 1px rgba(54,132,139,.34); }
    52%  { box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
    58.5% { box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
    60%   { box-shadow: 0 0 11px 1px rgba(54,132,139,.34); }
    61.5% { box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
    100% { transform: translate(0,0) rotate(0deg) scale(1); box-shadow: 0 2px 9px rgba(1,56,71,.10); z-index: 1; }
}

/* Líneas que unen las badges con la card central */




@keyframes tFlow {
    to { stroke-dashoffset: -24; }
}

@media (prefers-reduced-motion: reduce) {
    
    .t-tab { animation: none; }
}

/* Propiedades como badges flotantes sobre la foto */






















.system-map__lines,
.ecosystem-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 0;
}

.system-map__lines path,
.ecosystem-lines path {
    fill: none;
    stroke: rgba(54, 132, 139, 0.38);
    stroke-width: 1.7;
    stroke-linecap: round;
}

.ecosystem-lines path {
    stroke: rgba(54, 132, 139, 0.62);
    stroke-width: 2;
    stroke-dasharray: 3 9;
}

.ecosystem-lines path {
    animation: flowLine 2.6s linear infinite;
}

.ecosystem-lines circle {
    fill: var(--color-primary);
    transform-box: fill-box;
    transform-origin: center;
    animation: nodePulse 2.6s ease-in-out infinite;
}

.ecosystem-lines path:nth-of-type(2) { animation-delay: 0.25s; }
.ecosystem-lines path:nth-of-type(3) { animation-delay: 0.5s; }
.ecosystem-lines path:nth-of-type(4) { animation-delay: 0.75s; }
.ecosystem-lines path:nth-of-type(5) { animation-delay: 1s; }
.ecosystem-lines path:nth-of-type(6) { animation-delay: 1.25s; }
.ecosystem-lines path:nth-of-type(7) { animation-delay: 1.5s; }
.ecosystem-lines path:nth-of-type(8) { animation-delay: 1.75s; }

.ecosystem-lines circle:nth-of-type(even) { animation-delay: 0.6s; }
.ecosystem-lines circle:nth-of-type(3n) { animation-delay: 1.2s; }

@media (prefers-reduced-motion: reduce) {
    .ecosystem-lines path { animation: none; }
    .ecosystem-lines circle { animation: none; }
}










@keyframes flowLine {
    to { stroke-dashoffset: -26; }
}

@keyframes nodePulse {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.25); }
}



.treatment-card,
.node-card,
.service-catalog-card,
.ecosystem-center,
.insurer-node,
.history-panel,
.history-arrow,
.history-tab {
    box-shadow: 0 22px 48px rgba(1, 56, 71, 0.08);
}



































.feature-section.catalog-section {
    padding-block: clamp(14px, 1.5vw, 22px);
    background: transparent;
}

.catalog-section .feature-detail-title {
    margin-top: 26px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(1, 56, 71, 0.55) !important;
}

.catalog-section .feature-detail-list li {
    padding-left: 26px;
    color: rgba(1, 56, 71, 0.78);
}

.catalog-section .feature-detail-list li::before {
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    transform: translateY(-50%);
    background: rgba(54, 132, 139, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2301566D' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 64px;
}

.catalog-cloud {
    position: relative;
    display: grid;
    align-items: center;
    justify-items: end;
    min-height: 396px;
    padding: 0;
}

.catalog-cloud::before,
.catalog-cloud::after {
    display: none;
}

@keyframes catalog-line-flow {
    from { background-position: 120% 0; }
    to { background-position: -100% 0; }
}

@keyframes catalog-header-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(54, 132, 139, 0.14); }
    50% { box-shadow: 0 0 0 7px rgba(54, 132, 139, 0.05); }
}



@media (prefers-reduced-motion: reduce) {
    .catalog-cloud::after { animation: none; }
    
    .profit-orbit::after { animation: none; }
    .profit-core::before { animation: none; }
    .profit-metric { animation-play-state: paused; }
}

/* ===== Tabla mockup catálogo ===== */
.cat-table {
    position: relative;
    z-index: 2;
    width: min(100%, 640px);
    border: 0;
    border-radius: 22px;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}

.cat-table__head,
.cat-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1.25fr) minmax(86px, 0.85fr) 100px 78px;
    align-items: center;
    gap: 14px;
    padding: 0 22px;
}









.cat-row {
    min-height: 66px;
    transition: background 0.2s ease;
}

.cat-row:not(:last-child) {
    border-bottom: 1px solid rgba(1, 86, 109, 0.10);
}

.cat-row:hover {
    background: rgba(54, 132, 139, 0.045);
}

.cat-row--muted {
    opacity: 0.46;
}

.cat-cell {
    min-width: 0;
}

.cat-cell--id {
    display: flex;
}

.cat-ic {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: var(--color-primary);
    background: rgba(54, 132, 139, 0.10);
}

.cat-ic svg {
    width: 19px;
    height: 19px;
}

.cat-ic--1 { color: #01566D; background: rgba(1, 86, 109, 0.13); }
.cat-ic--2 { color: #2F8F8C; background: rgba(47, 143, 140, 0.16); }
.cat-ic--3 { color: #C2871F; background: rgba(201, 138, 43, 0.16); }
.cat-ic--4 { color: #6E5AAE; background: rgba(110, 90, 174, 0.16); }
.cat-ic--5 { color: #1E9A6B; background: rgba(30, 154, 107, 0.16); }
.cat-ic--6 { color: #C2566E; background: rgba(194, 86, 110, 0.15); }

.cat-cell--name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

.cat-cell--spec {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-secondary);
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 96px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cat-chip__ic {
    display: grid;
    place-items: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.cat-chip--basic {
    border: 1px solid rgba(1, 56, 71, 0.18);
    background: transparent;
    color: rgba(1, 56, 71, 0.6);
}

.cat-chip--basic .cat-chip__ic {
    border: 1.5px solid rgba(1, 56, 71, 0.26);
}

.cat-chip--bono {
    border: 1px solid rgba(54, 132, 139, 0.28);
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 1px 4px rgba(1, 56, 71, 0.08);
}

.cat-chip--bono .cat-chip__ic {
    background: var(--color-secondary);
    color: #fff;
}

.cat-cell--pvp {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: var(--color-text);
    text-align: right;
}

.feature-section.profit-section {
    padding: clamp(44px, 5vw, 72px) 0 clamp(16px, 1.5vw, 24px);
    background: transparent;
}

.profit-layout {
    display: grid;
    grid-template-columns: minmax(470px, 0.95fr) minmax(560px, 1.05fr);
    grid-template-areas:
        "intro orbit"
        "intro note";
    align-items: center;
    gap: 18px 56px;
}

.profit-intro {
    grid-area: intro;
}

.profit-intro {
    max-width: 470px;
}



.profit-intro p + p {
    margin-top: 18px;
}

.profit-orbit {
    grid-area: orbit;
    position: relative;
    justify-self: end;
    width: min(100%, 560px);
    min-height: 520px;
}

@media (min-width: 1121px) {
    .profit-orbit {
        right: -42px;
    }

    .profit-note-copy {
        position: relative;
        right: -42px;
        width: min(100%, 560px);
        max-width: 560px;
        justify-self: end;
    }

    .profit-note-copy p {
        max-width: 460px;
        margin-inline: auto;
    }
}

/* Halo radial sutil teal detrás de la composición */
.profit-orbit::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background:
        linear-gradient(rgba(54, 132, 139, 0.13) 1px, transparent 1px) center / 40px 40px,
        linear-gradient(90deg, rgba(54, 132, 139, 0.13) 1px, transparent 1px) center / 40px 40px,
        radial-gradient(circle, rgba(54, 132, 139, 0.10), transparent 66%);
    -webkit-mask-image: radial-gradient(circle, #000 32%, transparent 72%);
            mask-image: radial-gradient(circle, #000 32%, transparent 72%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* Anillo punteado animado (flujo) */
.profit-orbit::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 326px;
    height: 326px;
    border-radius: 50%;
    background:
        repeating-conic-gradient(rgba(54, 132, 139, 0.32) 0deg 2.4deg, transparent 2.4deg 10deg);
    mask: radial-gradient(circle, transparent 0 161px, #000 162px 163px, transparent 164px);
    -webkit-mask: radial-gradient(circle, transparent 0 161px, #000 162px 163px, transparent 164px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    animation: profit-ring-spin 26s linear infinite;
}

/* Aro de progreso de margen (64deg ≈ rentabilidad) */
.profit-progress {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 256px;
    height: 256px;
    border-radius: 50%;
    background: conic-gradient(var(--color-primary) 0 64deg, rgba(54, 132, 139, 0.14) 64deg 360deg);
    mask: radial-gradient(circle, transparent 0 113px, #000 115px);
    -webkit-mask: radial-gradient(circle, transparent 0 113px, #000 115px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

@keyframes profit-ring-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Elemento focal — más elevado que las tarjetas satélite */
.profit-core {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    width: 218px;
    min-height: 218px;
    border: 1px solid rgba(1, 86, 109, 0.10);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 38%, rgba(54, 132, 139, 0.07), transparent 60%),
        #fff;
    text-align: center;
    box-shadow: 0 22px 48px rgba(1, 56, 71, 0.08), 0 40px 80px rgba(1, 56, 71, 0.10);
    transform: translate(-50%, -50%);
}

/* Punto de pulso teal sobre el aro de margen */
.profit-core::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-bottom: 3px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 0 rgba(54, 132, 139, 0.30);
    animation: profit-core-pulse 2.6s ease-out infinite;
}

.profit-core span {
    color: rgba(1, 56, 71, 0.55);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.profit-core strong {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.profit-core small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
}

/* Estado check teal junto al beneficio */
.profit-core small::before {
    content: "";
    flex: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%2300556d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E") center / 11px no-repeat,
        rgba(54, 132, 139, 0.14);
}

@keyframes profit-core-pulse {
    0% { box-shadow: 0 0 0 0 rgba(54, 132, 139, 0.30); }
    70% { box-shadow: 0 0 0 12px rgba(54, 132, 139, 0); }
    100% { box-shadow: 0 0 0 0 rgba(54, 132, 139, 0); }
}

.profit-metric {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    column-gap: 10px;
    width: 156px;
    border: 1px solid rgba(1, 86, 109, 0.10);
    border-radius: 16px;
    padding: 12px 14px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(1, 56, 71, 0.10);
    animation: profit-orbit-spin var(--orbit-dur, 42s) linear infinite;
    animation-delay: var(--orbit-delay, 0s);
    transition: box-shadow 0.3s ease;
}

/* Cada satélite orbita el núcleo manteniéndose recto (contra-rotación) */
@keyframes profit-orbit-spin {
    from { transform: translate(-50%, -50%) rotate(0deg) translateX(var(--orbit-r, 192px)) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg) translateX(var(--orbit-r, 192px)) rotate(-360deg); }
}

/* Pausa toda la órbita al pasar el ratón para poder leer */
.profit-orbit:hover .profit-metric {
    animation-play-state: paused;
}

.profit-metric:hover {
    z-index: 6;
    box-shadow: 0 22px 52px rgba(1, 56, 71, 0.16);
}

.profit-metric__icon {
    display: grid;
    grid-row: span 2;
    width: 34px;
    height: 34px;
    place-items: center;
    background: transparent;
    color: var(--color-primary);
}

.profit-metric__icon svg {
    width: 18px;
    height: 18px;
}

.profit-metric strong {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.profit-metric small {
    margin-top: 4px;
    color: rgba(1, 56, 71, 0.55);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.25;
    text-transform: uppercase;
}

.profit-metric--price       { --orbit-delay: 0s; }
.profit-metric--clinical    { --orbit-delay: -7s; }
.profit-metric--materials   { --orbit-delay: -14s; }
.profit-metric--consumables { --orbit-delay: -21s; }
.profit-metric--tax         { --orbit-delay: -28s; }
.profit-metric--margin      { --orbit-delay: -35s; }

/* Métrica de resultado favorable: chip teal reforzado + estado check */
.profit-metric--margin .profit-metric__icon {
    background: transparent;
    box-shadow: none;
}

.profit-metric--margin strong::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 7px;
    vertical-align: -2px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 24 24' fill='none' stroke='%2300556d' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E") center / 9px no-repeat,
        rgba(54, 132, 139, 0.16);
}

.profit-note-copy {
    grid-area: note;
    justify-self: center;
    max-width: 460px;
    margin: 0 auto;
    color: rgba(1, 56, 71, 0.72);
    font-size: 15.5px;
    line-height: 1.85;
    text-align: center;
}

.profit-note-copy strong {
    color: var(--color-primary);
}

.treatment-mobile-copy-only {
    display: none;
}

.quickNavTitle__mobile {
    display: none;
}

.insurer-section {
    background: transparent;
}

.insurer-grid {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    align-items: center;
    gap: 36px;
}

.insurer-copy {
    max-width: 500px;
}

@media (min-width: 1121px) {
    .insurer-section .eco-fit {
        position: relative;
        right: -44px;
    }
}

.insurer-copy h2 {
    font-size: 42px;
}

.insurer-copy__rule {
    display: block;
    width: 66px;
    height: 5px;
    margin: 36px 0 40px;
    border-radius: 999px;
    background: var(--color-secondary);
}

.insurer-copy p + p {
    margin-top: 32px;
}

.insurer-copy p {
    font-size: 18px;
    line-height: 1.82;
}

.eco-fit {
    width: 100%;
}

.insurer-ecosystem {
    position: relative;
    min-height: 560px;
    background:
        radial-gradient(circle at 50% 50%, rgba(54, 132, 139, 0.10), transparent 66%);
}

.insurer-ecosystem::before,
.insurer-ecosystem::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(54, 132, 139, 0.13);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.insurer-ecosystem::before {
    width: 420px;
    height: 420px;
}

.insurer-ecosystem::after {
    width: 320px;
    height: 320px;
    box-shadow: 0 0 0 18px rgba(238, 244, 245, 0.72);
}

.ecosystem-center {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 300px;
    border: 1px solid rgba(1, 86, 109, 0.12);
    border-radius: 50%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 48px;
    background: #fff;
    text-align: center;
    box-shadow: 0 30px 64px rgba(1, 56, 71, 0.12);
    transform: translate(-50%, -50%);
}

.ecosystem-center span {
    color: rgba(1, 56, 71, 0.55);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.ecosystem-center strong {
    margin-top: 8px;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 25px;
    line-height: 1.05;
}

.ecosystem-center strong {
    font-size: 28px;
    line-height: 1.12;
    text-align: center;
}

.insurer-node {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 180px;
    min-height: 78px;
    border: 1px solid rgba(1, 86, 109, 0.10);
    border-radius: 18px;
    padding: 12px 24px 12px 16px;
    background: #fff;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 22px 48px rgba(1, 56, 71, 0.08);
}

.insurer-logo {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(1, 86, 109, 0.12);
    border-radius: 50%;
    background: var(--color-surface-soft);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
}

.insurer-logo--sanitas {
    color: #147BD1;
    font-size: 40px;
}

.insurer-logo--chip {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: rgba(54, 132, 139, 0.10);
    color: var(--color-primary);
    font-size: 0;
}

.insurer-logo--chip svg {
    width: 20px;
    height: 20px;
}

.brand-word {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1;
}

.brand-word--mapfre {
    color: #E52B2D;
    font-size: 19px;
    letter-spacing: 0;
}

.brand-word--dkv {
    color: #3F7D20;
    font-size: 26px;
}

.brand-word--adeslas {
    color: #147BD1;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 31px;
    font-weight: 700;
}

.brand-word--asisa {
    color: #0A55BD;
    font-size: 28px;
}

.insurer-node strong {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.05;
}

.insurer-node--one {   /* Sanitas — arriba izquierda */
    top: 12px;
    left: 6%;
    min-width: 190px;
}

.insurer-node--two {   /* MAPFRE — lateral izquierda, tirando arriba */
    top: 178px;
    left: 0;
    min-width: 200px;
}

.insurer-node--three { /* DKV — arriba centro */
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 188px;
}

.insurer-node--four {  /* Adeslas — arriba derecha */
    top: 12px;
    right: 3%;
    justify-content: center;
    min-width: 225px;
}

.insurer-node--five {  /* asisa+ — lateral derecha, tirando arriba */
    top: 178px;
    right: 0;
    min-width: 205px;
}

.insurer-node--six {   /* Póliza activa — abajo centro */
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    min-width: 235px;
}

.insurer-node--seven { /* Seguros — abajo izquierda */
    left: 1%;
    bottom: 12px;
    min-width: 215px;
}

.insurer-node--eight { /* Bono / tarifa — abajo derecha */
    right: 1%;
    bottom: 12px;
    min-width: 225px;
}

.insurer-node--status {
    background: var(--color-surface);
    color: var(--color-primary);
    border-radius: 999px;
}

.insurer-node--status strong {
    color: var(--color-primary);
}

.insurer-node--rate {
    background: var(--color-surface);
}

.history-section {
    /* sin background aquí: el fondo lo pinta .bgModoAzul (styles.css); un
       background:transparent lo pisaba tras el flip de orden (fase 3). */
    padding-bottom: 0;
}

.history-layout {
    display: block;
}

.history-copy {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}



.history-copy p {
    max-width: 1040px;
    margin-right: auto;
    margin-left: auto;
    font-size: 18px;
    line-height: 1.78;
}

.history-copy p + p {
    margin-top: 4px;
}

.history-showcase {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 58px;
    min-height: 430px;
}







/* Crossfade al rotar el carrusel del historial */
























.history-person {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
    text-align: left;
}

.history-person__avatar {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
}

.history-person strong {
    display: block;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}

.history-person small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.history-dots,
.history-detail-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.history-dots {
    margin-top: 28px;
}

.history-dots i,
.history-detail-dots i {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(54, 132, 139, 0.22);
}

.history-dots i.active,
.history-detail-dots i.active {
    width: 18px;
    background: var(--color-primary);
}













@keyframes history-connector-flow {
    to { background-position: -20px 0; }
}

@keyframes history-dot-pulse {
    0%, 100% { opacity: 0.45; transform: translateY(-50%) scale(0.85); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.3); }
}



.history-arrow,
.history-detail-arrow {
    display: grid;
    place-items: center;
    border: 1px solid rgba(1, 86, 109, 0.10);
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-primary);
    cursor: default;
}

.history-arrow {
    flex: 0 0 auto;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.history-arrow:hover {
    color: #fff;
    transform: scale(1.15);
}

.history-arrow:active {
    transform: scale(0.95);
}

/* ===== Showcase como coverflow deslizante (movimiento real + loop) ===== */
.history-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: 100%;
    margin: 0 auto;
}

.history-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.history-viewport {
    flex: 1;
    overflow: hidden;
    padding: 72px 0;
    display: flex;
    align-items: center;
    cursor: grab;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
}

.history-viewport.is-dragging { cursor: grabbing; }

.history-track {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 0 50%;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.history-viewport.is-dragging .history-track { transition: none; }

.history-card {
    flex: 0 0 340px;
    box-sizing: border-box;
    margin: 0 -14px;
    min-height: 322px;
    padding: 38px 34px 32px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    transform: scale(0.82);
    opacity: 0.5;
    filter: blur(0.3px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease, box-shadow 0.45s ease, color 0.45s ease, background 0.45s ease, border-color 0.45s ease;
    cursor: pointer;
}

.history-card.is-near { opacity: 0.7; transform: scale(0.88); }

.history-card.is-active {
    transform: scale(1);
    opacity: 1;
    filter: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: 0 22px 52px rgba(0, 20, 30, 0.3);
    z-index: 3;
}

.history-card__icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin: 0 auto 18px;
    place-items: center;
    background: transparent;
    color: #fff;
}

.history-card__icon svg { width: 28px; height: 28px; }

.history-card > strong {
    display: block;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.1;
}

.history-card.is-active > strong { color: #fff; }

.history-card > small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.62);
}

.history-card > p {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
}

/* Persona: reserva espacio siempre (misma altura), visible solo en la activa */
.history-card .history-person {
    margin-top: 22px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.history-card.is-active .history-person { opacity: 1; }

.history-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.history-dots-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.history-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.history-dot.is-active {
    width: 22px;
    background: #fff;
}

/* Sección historial en modo fondo azul (full-bleed texturizado, como el home) */
.history-section.bgModoAzul {
    padding-top: 88px;
    padding-bottom: 92px;
}

.history-section.bgModoAzul .history-copy h2 {
    color: #fff;
}

.history-section.bgModoAzul .history-copy p {
    color: rgba(255, 255, 255, 0.85);
}

.history-section.bgModoAzul .eyebrow {
    color: #fff;
}

.history-section.bgModoAzul .eyebrow::before {
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.8) 100%);
}

.history-section.bgModoAzul .eyebrow::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
}

.history-carousel.no-anim .history-track,
.history-carousel.no-anim .history-card,
.history-carousel.no-anim .history-person {
    transition: none !important;
}

























@keyframes history-ring-pulse {
    0%, 100% { opacity: 0.7; transform: scale(0.85); }
    50% { opacity: 0; transform: scale(1.4); }
}

















.footer {
    border-top: 1px solid rgba(1, 86, 109, 0.08);
}





.animate-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.72s ease, transform 0.72s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.treatment-hero .animate-on-scroll {
    transition-delay: 0.08s;
}

.treatment-hero .treatment-hero__visual.animate-on-scroll {
    transition-delay: 0.18s;
}

@media (max-width: 1120px) {
    .treatment-hero__inner,
    .catalog-layout,
    .profit-layout,
    .insurer-grid {
        grid-template-columns: 1fr;
    }

    .treatment-hero__copy,
    .catalog-layout .feature-heading,
    .insurer-copy,
    .history-copy {
        max-width: 720px;
    }

    .treatment-hero {
        padding-top: 140px;
    }

    .feature-section {
        padding: 76px 0;
    }

    

    .catalog-layout {
        gap: 42px;
    }

    .catalog-cloud {
        justify-items: center;
        min-height: auto;
        max-width: 760px;
        margin-inline: auto;
        padding: 12px 0 18px;
    }

    .catalog-layout .feature-heading {
        margin-inline: auto;
        text-align: center;
    }

    .catalog-section .feature-detail-list {
        justify-items: center;
    }

    .profit-layout .profit-intro {
        max-width: 680px;
        margin-inline: auto;
        text-align: center;
    }

    .insurer-copy {
        margin-inline: auto;
        text-align: center;
    }

    .insurer-copy__rule {
        margin-inline: auto;
    }

    .treatment-hero__copy {
        margin-inline: auto;
        text-align: center;
    }

    .treatment-hero__text {
        margin-inline: auto;
    }

    /* El ecosistema se escala como imagen (JS) → recortar el ancho sobrante,
       pero dejar hueco abajo (padding) para que no se corte la sombra */
    .eco-fit {
        overflow: hidden;
        padding-bottom: 56px;
    }

    .profit-layout {
        gap: 42px;
        grid-template-areas: none;
    }

    /* sin áreas, los grid-area apuntarían a zonas inexistentes → reset a auto */
    .profit-intro,
    .profit-orbit,
    .profit-note-copy {
        grid-area: auto;
    }

    .profit-intro {
        max-width: 720px;
    }

    .profit-orbit {
        justify-self: center;
        width: min(100%, 760px);
    }

    .profit-note-copy {
        max-width: 720px;
    }

    

    

    

    

    
}

@media (max-width: 900px) {
    

    

    

    

    .treatment-hero__title {
        font-size: 52px;
    }

    .feature-heading h2,
    .profit-intro h2,
    .insurer-copy h2,
    .history-copy h2 {
        font-size: 38px;
    }

    .catalog-cloud::before,
    .catalog-cloud::after {
        display: none;
    }

    

    .profit-orbit {
        min-height: 560px;
    }

    .history-showcase {
        min-height: 600px;
    }

    

    

    

    

    

    

    .history-arrow {
        top: 174px;
        width: 52px;
        height: 52px;
    }

    

    
}

@media (max-width: 720px) {
    .body--tratamientos main {
        padding-inline: 0;
    }

    .body--tratamientos main > section > .container {
        width: 100%;
        max-width: var(--container-max);
        padding-inline: 28px;
    }

    .treatment-hero__inner {
        justify-items: center;
    }

    .treatment-hero {
        min-height: auto;
        padding: 118px 0 78px;
    }

    .treatment-hero__inner {
        gap: 38px;
    }

    .treatment-hero__title {
        font-size: 42px;
    }

    .treatment-hero__text {
        font-size: 15.5px;
    }

    /* Mockup del hero en móvil: proporcional al ancho (escala como imagen) */
    .treatment-hero__visual {
        margin-top: 30px;
    }

    .treatment-stage {
        container-type: inline-size;
        box-shadow: none;
        /* La img va en flujo (relative) centrada por flex: el stage toma
           su altura y nada desborda */
        width: auto;
        margin-inline: calc(50% - 50vw + 18px);
        aspect-ratio: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0;
        overflow: visible;
    }

    .treatment-stage__bg {
        -webkit-mask-image: none;
                mask-image: none;
        position: relative;
        inset: auto;
        width: 90%;
        height: auto;
        aspect-ratio: 0.88 / 1;
        object-fit: cover;
        border-radius: 32px;
        filter: brightness(0.74);
    }

    .treatment-stage__panel {
        width: 63cqw;
        border-radius: 4.4cqw;
    }

    .t-panel__top {
        gap: 3.2cqw;
        padding: 4cqw 4.2cqw;
        border-radius: 4.4cqw 4.4cqw 0 0;
    }

    .t-panel__icon {
        width: 11.5cqw;
        height: 11.5cqw;
        border-radius: 3.3cqw;
    }

    .t-panel__icon svg { width: 6cqw; height: 6cqw; }
    .t-panel__combo { height: 11.5cqw; gap: 0.6cqw; }
    .t-panel__cat { font-size: 2.5cqw; }
    .t-panel__name { font-size: 4.4cqw; }
    .t-panel__price { font-size: 4.7cqw; }

    .t-panel__tabs {
        gap: 1.7cqw;
        padding: 3cqw 3.2cqw 3.4cqw;
    }

    .t-tab { padding: 1.7cqw 2.8cqw; border-radius: 2.6cqw; pointer-events: none; cursor: default; }
    .t-tab__txt small { font-size: 2.3cqw; }
    .t-tab__txt strong { font-size: 3cqw; }
    .t-tab__icon { width: 6.4cqw; height: 6.4cqw; }
    .t-tab__icon svg { width: 3.8cqw; height: 3.8cqw; }

    

    

    

    

    

    .feature-section {
        padding: 60px 0;
    }

    .feature-heading h2,
    .profit-intro h2,
    .insurer-copy h2,
    .history-copy h2 {
        font-size: 32px;
    }

    .insurer-copy h2 .treatment-mobile-copy-desktop {
        display: none;
    }

    .insurer-copy h2 .treatment-mobile-copy-only {
        display: inline;
    }

    #functionality-carousel-tratamientos-title .quickNavTitle__desktop {
        display: none;
    }

    #functionality-carousel-tratamientos-title .quickNavTitle__mobile {
        display: inline;
    }

    .catalog-cloud {
        margin-top: 0;
    }

    .feature-detail-list {
        grid-template-columns: 1fr;
    }

    .cat-table {
        width: 100%;
        border-radius: 18px;
    }

    

    .cat-row {
        grid-template-columns: 40px 1fr auto;
        grid-template-areas:
            "id name pvp"
            "id spec type";
        column-gap: 14px;
        row-gap: 5px;
        min-height: 0;
        padding: 14px 18px;
    }

    .cat-cell--id { grid-area: id; align-self: center; }
    .cat-cell--name { grid-area: name; font-size: 15px; }
    .cat-cell--pvp { grid-area: pvp; align-self: center; justify-self: end; }
    .cat-cell--spec { grid-area: spec; }
    .cat-cell--type { grid-area: type; justify-self: end; }

    /* Ruleta de beneficio visible en móvil: la composición es fluida
       (posiciones %) y se adapta sola al ancho del track */
    .profit-orbit {
        min-width: 0;
        width: 100%;
    }

    .profit-note-copy {
        max-width: none;
    }

    /* Insurer: se mantiene la composición de PC, escalada al ancho por JS
       (scale-to-fit). Este mockup escapa del ancho interior del container para
       aprovechar el móvil dejando exactamente 8px de aire a cada lado. */
    .eco-fit {
        width: calc(100vw - 16px);
        max-width: none;
        margin-left: calc(50% - 50vw + 8px);
        margin-right: 0;
        overflow: hidden;
    }

    /* Navegación del historial en móvil: flechas a media altura de la tarjeta,
       con una reserva lateral para que no queden pegadas a su borde. */
    .history-showcase {
        position: relative;
    }

    .history-arrow {
        position: absolute;
        top: calc(50% - 18px);
        z-index: 6;
        width: 28px;
        height: 40px;
        border: 0;
        background: transparent;
        transform: translateY(-50%);
    }

    .history-arrow--left { left: -10px; }
    .history-arrow--right { right: -10px; }

    /* En móvil el hover no debe descolocar ni escalar los controles. */
    .history-arrow:hover,
    .history-arrow:active {
        background: transparent;
        transform: translateY(-50%);
        color: rgba(255, 255, 255, 0.85);
    }

    .history-section {
        padding-bottom: 0;
    }

    .history-section > .container {
        width: 100%;
        max-width: none;
        padding-inline: 28px;
    }

    .history-copy {
        width: 100%;
        max-width: 620px;
        margin-inline: auto;
        text-align: center;
    }

    .history-copy p {
        max-width: 38ch;
        margin-inline: auto;
        font-size: 15.5px;
    }

    .history-showcase {
        gap: 14px;
        margin-top: 42px;
        min-height: 0;
    }

    .history-viewport {
        padding-bottom: 44px;
    }

    .history-card {
        flex-basis: min(326px, calc(100vw - 80px));
        margin-inline: 0;
    }

    

    

    

    

    

    

    

    

    

    

    

    

    

    .cta-final__actions,
    .btn {
        width: 100%;
    }

    .body--tratamientos .cta-final__inner {
        width: calc(100vw - 24px);
        max-width: none;
        margin-left: calc(50% - 50vw + 12px);
        margin-right: 0;
    }

    
}

@media (max-width: 440px) {
    .treatment-hero__title {
        font-size: 36px;
    }

    .feature-heading h2,
    .profit-intro h2,
    .insurer-copy h2,
    .history-copy h2 {
        font-size: 29px;
    }

    
}

/* Teléfono: los ticks alineados en columna (el justify-items:center de
   la media 1120 centraba cada item y los hacía bailar); el bloque
   queda centrado */
@media (max-width: 720px) {
    .catalog-section .feature-detail-list {
        justify-items: start;
        text-align: left;
        width: fit-content;
        margin-inline: auto;
    }
}

/* Teléfono: catálogo compacto */
@media (max-width: 720px) {
    .cat-row {
        grid-template-columns: 32px 1fr auto;
        column-gap: 10px;
        row-gap: 3px;
        padding: 10px 14px;
    }

    .cat-ic {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .cat-ic svg {
        width: 16px;
        height: 16px;
    }

    .cat-cell--name { font-size: 13.5px; }
    .cat-cell--spec { font-size: 11.5px; }
    .cat-cell--pvp { font-size: 13.5px; }

    .cat-cell--type > * {
        padding: 4px 10px;
        font-size: 10px;
    }
}

/* Teléfono: ruleta de beneficio compacta (todas las piezas fijas
   reducidas ~75%, incluido el radio de órbita) */
@media (max-width: 720px) {
    .profit-orbit {
        min-height: 390px;
    }

    .profit-core {
        width: 160px;
        min-height: 160px;
        gap: 9px;
    }

    .profit-core strong {
        font-size: 30px;
    }

    .profit-core small {
        font-size: 9.5px;
        gap: 4px;
    }

    .profit-progress {
        width: 190px;
        height: 190px;
    }

    .profit-metric {
        --orbit-r: 142px;
        width: 124px;
        grid-template-columns: 26px 1fr;
        column-gap: 8px;
        padding: 8px 10px;
        border-radius: 13px;
    }

    .profit-metric__icon {
        width: 26px;
        height: 26px;
    }

    .profit-metric strong {
        font-size: 13.5px;
    }

    .profit-metric small {
        font-size: 9px;
        margin-top: 2px;
    }
}
