/* Homepage layout: one hero and one shared set of plans at every viewport. */
.home-restored { --hero-nav: 84px; }
.home-restored .hero { display: flex; position: relative; align-items: center; isolation: isolate; min-height: max(600px, calc(100svh - var(--hero-nav))); margin-top: var(--hero-nav); padding: clamp(3rem, 7vh, 7rem) 0; background: var(--crema); }
.home-restored .hero__inner { width: 100%; max-width: 1680px; }
.home-restored .hero__contenido { width: 43%; max-width: 39rem; }
.home-restored .hero__titulo { font-size: clamp(3.6rem, 5.35vw, 6.75rem); line-height: 1.03; margin-bottom: 1.5rem; }
.home-restored .hero__lead { max-width: 36ch; font-size: clamp(1rem, 1.15vw, 1.2rem); line-height: 1.65; margin-bottom: 2rem; }
.home-restored .hero__media { display: block; position: absolute; inset: 50% 0 auto auto; width: 58%; max-width: calc((100svh - var(--hero-nav)) * 827 / 941); height: auto; aspect-ratio: 827 / 941; transform: translateY(-50%); margin: 0; z-index: -1; }
.home-restored .hero__media img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; object-position: center; }
.home-restored .hero__media::before { display: block; width: 34%; background: linear-gradient(90deg,var(--crema),rgba(251,248,242,.7) 36%,rgba(251,248,242,0)); }
.home-restored .hero__lirio { display: none; }
.home-restored .hero__acciones { display: flex; flex-wrap: wrap; gap: .8rem; }
.home-restored .hero__acciones .btn { padding-inline: 1.6rem; }

.home-restored .sobre__grid { grid-template-columns: minmax(0,5fr) minmax(0,6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.home-restored .sobre__figura { width: 100%; max-width: none; position: relative; top: auto; }
.home-restored .sobre__figura img { aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 50% 25%; }
.home-restored .sobre__texto p { max-width: 56ch; }
.home-restored .sobre__texto > h2 { margin-bottom: 1.5rem; }
.home-restored .credenciales { gap: .85rem; margin-top: 1.5rem; }
.home-restored .credenciales__titulo { font-size: .9375rem; line-height: 1.55; }
.home-restored .sobre__acciones { margin-top: 1.5rem; }
.home-restored .servicios__cabecera { margin-bottom: 3rem; }
.home-restored .servicios__grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3rem 2rem; }
.home-restored .servicio__figura { width: clamp(170px, 16vw, 220px); margin-bottom: 1.4rem; }
.home-restored .servicio__contenido { display: flex; flex-direction: column; flex: 1; width: 100%; min-width: 0; }
.home-restored .servicio p { font-size: 1rem; max-width: none; padding: 0; line-height: 1.65; margin-bottom: .75rem; }
.home-restored .servicio .enlace-flecha { align-self: center; }
.home-restored .cms-lines { white-space: pre-line; }
.home-restored .evoluciona__grid { grid-template-columns: minmax(0,6fr) minmax(0,5fr); gap: clamp(2rem,5vw,5rem); }
.home-restored .evoluciona__figura { max-width: none; }
.home-restored .evoluciona__figura img { width: 100%; aspect-ratio: 4 / 5; max-height: 560px; object-fit: cover; }
.home-restored .paso p { font-size: 1rem; }
.home-restored .paso h3 { font-size: .875rem; letter-spacing: .08em; line-height: 1.5; }
.home-restored .cierre__precios { flex-wrap: wrap; }
.home-restored .cierre__precio-importe { font-size: clamp(1.75rem,2.7vw,2.4rem); }

/* The price, scope and action remain visible; longer details are opt-in. */
.home-restored #plan > .container { max-width: 1400px; }
.home-restored .precios__cabecera { max-width: 48rem; margin-bottom: 2rem; }
.home-restored .plans-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; align-items: start; }
.home-restored .plan-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(1.5rem,2.3vw,2.25rem); border: 1px solid #dcd3c3; border-top: 3px solid var(--olivo); border-radius: 6px; background: #fffdf8; }
.home-restored .plan-card h3 { font-size: clamp(1.8rem,2.25vw,2.3rem); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .9rem; min-height: 2.16em; max-width: 17ch; }
.home-restored .plan-card__summary { font-size: 1rem; line-height: 1.55; color: var(--tinta-suave); margin: 0; min-height: 3.1em; }
.home-restored .plan-card__highlights { display: grid; gap: .7rem; padding: 1.5rem 0; margin: 0; min-height: 9.5rem; font-size: .9375rem; line-height: 1.5; }
.home-restored .plan-card__highlights li { position: relative; padding-left: 1rem; }
.home-restored .plan-card__highlights li::before { content: ''; position: absolute; width: 4px; height: 4px; top: .65em; left: 0; background: var(--olivo); border-radius: 50%; }
.home-restored .plan-card__offer { border-top: 1px solid var(--linea); padding-top: 1.25rem; }
.home-restored .plan-card__price-line { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.home-restored .plan-card__from { font-size: .875rem; color: var(--tinta-suave); }
.home-restored .plan-card__amount { font-family: var(--serif); font-size: clamp(2.65rem,3.6vw,3.5rem); line-height: 1; font-variant-numeric: lining-nums; margin: 0; white-space: nowrap; }
.home-restored .plan-card__meta { font-size: .875rem; line-height: 1.5; color: var(--tinta-suave); margin: .5rem 0 0; min-height: 3em; }
.home-restored .plan-card__cta { display: flex; justify-content: space-between; width: 100%; margin-top: 1.3rem; padding: .8rem 1.25rem; }
.home-restored .plan-card__details { border-top: 1px solid var(--linea); margin-top: 1.2rem; }
.home-restored .plan-card__details > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; list-style: none; cursor: pointer; min-height: 48px; font-size: .9375rem; color: var(--tinta-suave); padding-top: .3rem; }
.home-restored .plan-card__details > summary::-webkit-details-marker { display: none; }
.home-restored .plan-card__toggle { position: relative; width: 12px; height: 12px; flex: 0 0 12px; }
.home-restored .plan-card__toggle::before,.home-restored .plan-card__toggle::after { content: ''; position: absolute; background: currentColor; }
.home-restored .plan-card__toggle::before { width: 12px; height: 1px; top: 5px; }
.home-restored .plan-card__toggle::after { width: 1px; height: 12px; left: 5px; }
.home-restored .plan-card__details[open] .plan-card__toggle::after { display: none; }
.home-restored .plan-card__detail-content { padding-top: .75rem; font-size: 1rem; line-height: 1.65; }
.home-restored .plan-card__detail-content :is(p,li) { font-size: 1rem; line-height: 1.65; }
.home-restored .plan-card__detail-content :is(.precio__duracion-label,.precio__subtitulo) { font-size: .875rem; }
.home-restored .plan-card__detail-content .lead { margin-bottom: 1rem; }
.home-restored .plan-card__detail-content :is(.inclusion-list,.precio__lista) { margin: 1rem 0; }
.home-restored .plan-card__detail-content li:empty { display: none; }
.home-restored .plan-card__detail-content .price-panel { padding: 1rem 0 0; border: 0; background: none; }
.home-restored .plan-card__detail-content .price-panel h3 { min-height: 0; font-size: 1.6rem; }
.home-restored .plan-card__detail-content .price-panel dl > div { flex-wrap: wrap; gap: .25rem 1rem; }
.home-restored .plan-card__detail-content .price-panel dd { font-size: 1.75rem; }
.home-restored .plan-card__detail-content .precio__cta { margin-top: 1rem; width: 100%; }
.home-restored .plan-card :focus-visible { outline: 2px solid var(--olivo-oscuro); outline-offset: 4px; }

@media (min-width: 720px) and (max-width: 1099.98px) {
 .home-restored .hero__contenido { width: 47%; }
 .home-restored .hero__titulo { font-size: clamp(3rem,5.8vw,4.25rem); }
 .home-restored .hero__media { width: 59%; }
 .home-restored .hero__media img { object-position: center; }
 .home-restored .hero__media::before { width: 12%; }
 .home-restored .hero__lead { max-width: 30ch; }
 .home-restored .hero__acciones { flex-direction: column; align-items: start; }
 .home-restored .hero__acciones .btn { min-width: 165px; }
 .home-restored .servicios__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .home-restored .plans-grid { grid-template-columns: 1fr; }
 .home-restored .plan-card { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 0 2rem; padding: 1.75rem; }
 .home-restored .plan-card__header { grid-column: 1; grid-row: 1 / span 2; }
 .home-restored .plan-card h3 { min-height: 0; max-width: none; }
 .home-restored .plan-card__summary { min-height: 0; }
 .home-restored .plan-card__offer { grid-column: 2; grid-row: 1; border: 0; padding-top: 0; }
 .home-restored .plan-card__meta { min-height: 0; }
 .home-restored .plan-card__cta { grid-column: 2; grid-row: 2; margin-top: .75rem; }
 .home-restored .plan-card__highlights { grid-column: 1; grid-row: 3; min-height: 0; padding-bottom: 0; }
 .home-restored .plan-card__details { grid-column: 1 / -1; }
}
@media (max-width: 999.98px) { .home-restored { --hero-nav: 76px; } }
@media (max-width: 719.98px) {
 .home-restored { --hero-nav: 70px; --seccion-y: 3rem; }
 .home-restored .hero { display: flex; flex-direction: column; min-height: 0; padding: 0; }
 .home-restored .hero__inner { padding-block: 2rem 1.75rem; }
 .home-restored .hero__contenido { width: 100%; max-width: none; }
 .home-restored .hero .eyebrow { margin-bottom: .85rem; max-width: 34ch; }
 .home-restored .hero__titulo { font-size: clamp(2.8rem,10.6vw,4.3rem); line-height: 1.02; margin-bottom: 1rem; }
 .home-restored .hero__lead { font-size: 1rem; max-width: 43ch; line-height: 1.6; margin-bottom: 1.25rem; }
 .home-restored .hero__acciones { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
 .home-restored .hero__acciones .btn { padding-inline: .6rem; min-width: 0; min-height: 46px; font-size: .875rem; }
 .home-restored .hero__media { position: relative; inset: auto; width: min(100%, 387px); max-width: none; height: auto; aspect-ratio: 827 / 941; transform: none; z-index: 0; }
 .home-restored .hero__media img { object-position: center; }
 .home-restored .hero__media::before { display: none; }
 .home-restored .sobre__grid { grid-template-columns: 1fr; gap: 1.75rem; }
 .home-restored .sobre__texto { display: contents; }
 .home-restored .sobre__texto > * { order: 3; }
 .home-restored .sobre__texto > .eyebrow { order: 0; margin: 0; }
 .home-restored .sobre__texto > h2 { order: 1; margin: -.75rem 0 0; }
 .home-restored .sobre__figura { order: 2; }
 .home-restored .sobre__texto > .lead { margin: 0; }
 .home-restored .sobre__texto > .credenciales { order: 4; margin-top: 0; }
 .home-restored .sobre__texto > .sobre__acciones { order: 5; margin-top: 0; }
 .home-restored .sobre__figura img { aspect-ratio: 4 / 3; object-position: 50% 25%; }
 .home-restored .sobre__figura::after { inset: 8px -8px -8px 8px; }
 .home-restored .sobre__texto .lead { font-size: 1rem; line-height: 1.7; }
 .home-restored .credenciales { gap: .75rem; }
 .home-restored .credenciales__titulo { font-size: .875rem; }
 .home-restored .servicios__cabecera { text-align: left; margin-bottom: 1.5rem; }
 .home-restored .servicios__cabecera .eyebrow::after { margin-inline: 0; }
 .home-restored .servicios__cabecera h2 { font-size: 2.25rem; }
 .home-restored .servicios__grid { grid-template-columns: 1fr; gap: 0; }
 .home-restored .servicio { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 1rem; text-align: left; align-items: start; padding: 1.4rem 0; border-top: 1px solid var(--linea); }
 .home-restored .servicio__figura { width: 88px; margin: .2rem 0 0; }
 .home-restored .servicio h3 { font-size: 1.55rem; line-height: 1.15; margin-bottom: .6rem; }
 .home-restored .servicio p { font-size: .9375rem; line-height: 1.6; margin-bottom: .35rem; }
 .home-restored .servicio .enlace-flecha { align-self: start; font-size: .875rem; padding-block: .35rem; }
 .home-restored .precios__cabecera { margin-bottom: 1.5rem; }
 .home-restored .precios__intro { font-size: 1rem; line-height: 1.6; }
 .home-restored .plans-grid { grid-template-columns: 1fr; gap: 1rem; }
 .home-restored .plan-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 .75rem; padding: 1.25rem 1.25rem .5rem; }
 .home-restored .plan-card__header { grid-column: 1 / -1; }
 .home-restored .plan-card h3 { font-size: 1.8rem; min-height: 0; max-width: none; margin-bottom: .45rem; }
 .home-restored .plan-card__summary { min-height: 0; font-size: .9375rem; line-height: 1.5; }
 .home-restored .plan-card__highlights { display: none; }
 .home-restored .plan-card__offer { grid-column: 1 / -1; grid-row: 2; border: 0; padding-top: 1rem; }
 .home-restored .plan-card__price-line { padding-right: 8rem; }
 .home-restored .plan-card__amount { font-size: 2.35rem; }
 .home-restored .plan-card__from { font-size: .875rem; }
 .home-restored .plan-card__meta { min-height: 0; font-size: .875rem; line-height: 1.45; margin-top: .45rem; max-width: none; }
 .home-restored .plan-card__cta { grid-column: 1 / -1; grid-row: 2; justify-self: end; align-self: start; margin-top: 1rem; min-height: 44px; width: auto; gap: 1.15rem; padding: .65rem .9rem; font-size: .875rem; }
 .home-restored .plan-card__details { grid-column: 1 / -1; margin-top: .9rem; }
 .home-restored .plan-card__details > summary { min-height: 44px; font-size: .875rem; padding: 0; }
 .home-restored .plan-card__detail-content { padding: .5rem 0 1rem; }
 .home-restored .evoluciona__grid { grid-template-columns: 1fr; gap: 1.75rem; }
 .home-restored .evoluciona__figura img { aspect-ratio: 16 / 9; max-height: 260px; }
 .home-restored .cierre__inner > .lead { font-size: 1rem; }
 .home-restored .cierre__precios { align-items: center; }
}
@media (max-width: 359.98px) {
 .home-restored .plan-card { padding-inline: 1rem; }
 .home-restored .plan-card h3 { font-size: 1.65rem; }
 .home-restored .plan-card__amount { font-size: 2.1rem; }
 .home-restored .plan-card__cta { gap: .5rem; padding-inline: .7rem; }
 .home-restored .servicio { grid-template-columns: 68px minmax(0,1fr); gap: .85rem; }
 .home-restored .servicio__figura { width: 68px; }
}

/* Each accompaniment keeps its own Enaya colour, on every screen. */
.home-restored .plan-card--compasiva { background: var(--lino); }
.home-restored .plan-card--body { background: var(--miel); }
.home-restored .plan-card--sport { background: var(--rosa); }

@media (min-width: 1100px) {
 .home-restored .plans-grid { scroll-margin-top: calc(var(--hero-nav) + 16px); }
 .home-restored .plans-grid--expanded { position: relative; isolation: isolate; }
 .home-restored .plans-grid--expanded > .plan-card { grid-row: 1; }
 .home-restored .plans-grid--expanded > .plan-card:nth-child(1) { grid-column: 1; }
 .home-restored .plans-grid--expanded > .plan-card:nth-child(2) { grid-column: 2; }
 .home-restored .plans-grid--expanded > .plan-card:nth-child(3) { grid-column: 3; }
 .home-restored .plans-grid--expanded > .plan-card:not(.plan-card--expanded) { visibility: hidden; }
 .home-restored .plans-grid--expanded > .plan-card--expanded:nth-child(n) { grid-column: 1 / -1; position: relative; z-index: 1; align-self: stretch; padding: 1.75rem 2rem; }
 .home-restored .plan-card--expanded > :is(.plan-card__highlights,.plan-card__offer,.plan-card__cta) { display: none; }
 .home-restored .plan-card--expanded .plan-card__header { padding-right: 17rem; padding-bottom: 1rem; border-bottom: 1px solid var(--linea); }
 .home-restored .plan-card--expanded .plan-card__header h3 { min-height: 0; max-width: none; margin-bottom: .4rem; font-size: 2.4rem; }
 .home-restored .plan-card--expanded .plan-card__summary { min-height: 0; }
 .home-restored .plan-card--expanded .plan-card__details { margin: 0; border: 0; }
 .home-restored .plan-card--expanded .plan-card__details > summary { position: absolute; right: 2rem; top: 1.75rem; min-height: 44px; padding: .6rem .9rem; border: 1px solid var(--olivo); border-radius: 4px; color: var(--tinta); background: rgba(255,255,255,.35); }
 .home-restored .plan-card--expanded .plan-card__detail-content { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem 2rem; padding-top: 1.25rem; }
 .home-restored .plan-card--expanded .plan-card__detail-content :is(p,li) { font-size: .9375rem; line-height: 1.5; }
 .home-restored .plan-card--expanded .plan-card__overview { grid-column: 1; }
 .home-restored .plan-card--expanded .plan-card__overview > p { margin: 0 0 .85rem; }
 .home-restored .plan-card--expanded .precio__cuerpo { grid-column: 2 / -1; }
 .home-restored .plan-card--expanded .precio__lista { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem 1.6rem; margin: 0; }
 .home-restored .plan-card--expanded .precio__lista li { padding: 0; border: 0; }
 .home-restored .plan-card--expanded .precio__subtitulo { margin: 0 0 1rem; }
 .home-restored .plan-card--expanded .precio__extra { margin: 1rem 0 0; padding-top: .9rem; }
 .home-restored .plan-card--expanded .precio__cta { margin-top: .75rem; }
 .home-restored .plan-card--expanded .plan-card__detail-content > .lead { grid-column: 1 / -1; margin: 0; }
 .home-restored .plan-card--expanded .inclusion-list { display: contents; }
 .home-restored .plan-card--expanded .inclusion-list > li { padding: 0; margin: 0; }
 .home-restored .plan-card--expanded .inclusion-list > li::before { display: none; }
 .home-restored .plan-card--expanded .price-panel { grid-column: 3; grid-row: 2 / span 2; padding: 0 0 0 1.5rem; border-left: 1px solid var(--linea); }
 .home-restored .plan-card--expanded .price-panel dl { margin-block: 0 1rem; }
 .home-restored .plan-card--expanded .price-panel .btn { width: 100%; padding-inline: 1rem; }
}
@media (min-width: 1100px) and (max-height: 850px) {
 .home-restored .plan-card { padding: 1.5rem; }
 .home-restored .plan-card__highlights { min-height: 7.5rem; padding-block: 1rem; gap: .5rem; }
 .home-restored .plan-card__meta { min-height: 0; }
 .home-restored .plan-card__cta { margin-top: 1rem; }
 .home-restored .plan-card--expanded .plan-card__detail-content { gap: .85rem 1.5rem; }
}

@media (min-width: 1100px) {
 .home-restored .plan-card--expanded .plan-card__overview .plan-card__offer { border: 0; padding: 0 0 1rem; }
 .home-restored .plan-card--expanded .plan-card__overview .plan-card__amount { font-size: 2.5rem; line-height: 1; }
 .home-restored .plan-card--expanded .plan-card__overview .plan-card__meta { min-height: 0; }
}

/* A full-viewport reading surface for the three desktop plans. */
html.plan-screen-open { overflow: hidden; scrollbar-gutter: stable; }
.home-restored dialog.plans-screen { border: 0; color: var(--tinta); }
.home-restored dialog.plans-screen[open] { display: block; position: fixed; inset: 0; margin: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; padding: clamp(20px,3vh,40px) clamp(24px,3vw,64px); overflow: auto; overscroll-behavior: contain; }
.home-restored dialog.plans-screen::backdrop { background: var(--crema); }
.home-restored dialog.plans-screen[open] > .plan-card--expanded:nth-child(n) { width: 100%; max-width: 1680px; min-height: 100%; margin: 0 auto; padding: 0; border: 0; border-radius: 0; background: transparent; }
.home-restored .plans-screen .plan-card--expanded .plan-card__details > summary { position: absolute; top: 0; right: 0; margin: 0; }
.home-restored .plans-screen .plan-card--expanded .plan-card__header { padding-right: 18rem; }
.home-restored .plans-screen .plan-card--expanded .plan-card__detail-content { grid-template-columns: minmax(0,1fr) minmax(0,1.1fr) minmax(0,1.1fr); }
.home-restored .plans-screen .plan-card--expanded .price-panel dl > div { padding-block: .75rem; }
.home-restored .plans-screen .plan-card--expanded .price-panel .btn { margin-top: .75rem; }
@media (min-width: 1100px) and (max-height: 800px) {
 .home-restored dialog.plans-screen[open] { padding-block: 20px; }
 .home-restored .plans-screen .plan-card--expanded .plan-card__header { padding-bottom: .7rem; }
 .home-restored .plans-screen .plan-card--expanded .plan-card__header h3 { font-size: 2.1rem; }
 .home-restored .plans-screen .plan-card--expanded .plan-card__detail-content { padding-top: .85rem; gap: .75rem 1.6rem; }
 .home-restored .plans-screen .plan-card--expanded .plan-card__detail-content :is(p,li) { font-size: .9375rem; line-height: 1.4; }
 .home-restored .plans-screen .plan-card--expanded .plan-card__overview > p { margin-bottom: .65rem; }
 .home-restored .plans-screen .plan-card--expanded .precio__lista { gap: .55rem 1.25rem; }
 .home-restored .plans-screen .plan-card--expanded .precio__extra { padding-top: .6rem; margin-top: .7rem; }
 .home-restored .plans-screen .plan-card--expanded .plan-card__overview .plan-card__offer { padding-bottom: .65rem; }
}

.home-restored .plans-screen .plan-card--expanded .plan-card__overview .plan-card__amount { font-size: 2.5rem; line-height: 1; }
