/* Related destinations are bounded cards, never unbounded inline images. */
.ek-integrated .related{width:min(1160px,calc(100% - 48px));margin:56px auto 0;padding:32px 0}
.ek-integrated .related>h2{font-size:var(--ek-fs-h2);margin:0 0 26px}
.ek-integrated .related>ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:0;padding:0;list-style:none}
.ek-integrated .related>ul>li{min-width:0;margin:0}
.ek-integrated .related>ul>li>a{display:flex;flex-direction:column;height:100%;padding:0;border:1px solid var(--ek-line);border-radius:18px;overflow:hidden;background:var(--ek-white);font:inherit}
.ek-integrated .related-image{display:block;position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;flex:none}
.ek-integrated .related-image img{display:block;width:100%;height:100%;object-fit:cover;margin:0;transition:transform .25s}
.ek-integrated .related a:hover .related-image img{transform:scale(1.025)}
.ek-integrated .related-grain{display:none}
.ek-integrated .related-text{display:flex;flex-direction:column;gap:12px;padding:23px}
.ek-integrated .related-label{font-size:var(--ek-fs-meta);letter-spacing:var(--ek-ls-meta);text-transform:uppercase;color:var(--ek-muted)}
.ek-integrated .related-text strong{font:var(--ek-fw-heading-inter) var(--ek-fs-h3)/var(--ek-lh-heading) var(--ek-font-body);letter-spacing:var(--ek-ls-heading);}
.ek-integrated .related-desc{font-size:var(--ek-fs-small);line-height:var(--ek-lh-compact);color:var(--ek-muted)}
/* The help overview uses four explicit categories, with all approved detail accessible. */
.ek-integrated .reading .help-section{background:transparent;padding:32px 0;border-radius:0;border-top:1px solid var(--ek-line)}
.ek-integrated .help-section>.ek-section-body>p{max-width:66ch}
.ek-integrated .help-groups{display:block;margin:28px 0 0}
.ek-integrated .help-disclosure{display:block;background:transparent;border-top:1px solid var(--ek-line);border-radius:0;padding:0}
.ek-integrated .help-disclosure:last-child{border-bottom:1px solid var(--ek-line)}
.ek-integrated .help-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 0;min-height:80px}
.ek-integrated .help-disclosure>summary h3{margin:0;max-width:32ch;font-size:var(--ek-fs-h3);}
.ek-integrated .help-disclosure>summary:after{content:'+';font-size:1.625rem;font-weight:var(--ek-fw-action);color:var(--ek-coral)}
.ek-integrated .help-disclosure[open]>summary:after{content:'−'}
.ek-integrated .help-disclosure-body{max-width:68ch;padding:0 0 26px}
.ek-integrated .help-disclosure-body ul{margin-top:0}
.ek-integrated .help-disclosure-body ul+p{margin-top:18px}
.ek-integrated .help-disclosure-body :is(p,li){font-size:var(--ek-fs-body);line-height:var(--ek-lh-body);}
@media(max-width:800px){.ek-integrated .related>ul{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none;gap:18px}.ek-integrated .related-text{padding:20px}.ek-integrated .help-disclosure>summary{padding:21px 0}.ek-integrated .help-disclosure-body :is(p,li){font-size:var(--ek-fs-body);}}
@media(max-width:540px){.ek-integrated .related>ul{grid-template-columns:1fr}.ek-integrated .related{margin-top:36px}.ek-integrated .related-image{aspect-ratio:16/9}}

/* Compact editorial rhythm; one body scale, clear secondary and title scales. */
.ek-integrated{--ek-space-section:clamp(40px,5vw,68px);font-size:var(--ek-fs-body);}
.ek-integrated .reading{margin-top:36px}
.ek-integrated .reading .ek-section{padding-block:36px;gap:clamp(30px,5vw,64px)}
.ek-integrated .reading :is(.ek-section-body,.ek-section-copy,.ek-introduction,.ek-intro-editorial-copy)>:is(p,ul,ol){font-size:var(--ek-fs-body);line-height:var(--ek-lh-body);}
.ek-integrated .reading .ek-section>h2{font-size:var(--ek-fs-h2);}
.ek-integrated [data-reading-number]:before{content:attr(data-reading-number);display:block;margin-bottom:13px;color:var(--ek-muted);font:var(--ek-fw-body) 0.6875rem/var(--ek-lh-compact) var(--ek-font-body);letter-spacing:normal;}
.ek-integrated .reading .ek-band{display:block;padding:30px!important}
.ek-integrated .reading .ek-band>h2{max-width:28ch;margin-bottom:24px}
.ek-integrated .reading .ek-band .ek-section-body{max-width:70ch}
.ek-integrated .ek-intro-editorial{padding:36px 0;border-top:1px solid var(--ek-line)}
.ek-integrated .ek-intro-editorial-head{margin-bottom:28px;max-width:42ch}
.ek-integrated .ek-intro-editorial-eyebrow{font-size:var(--ek-fs-meta);letter-spacing:var(--ek-ls-meta);text-transform:uppercase;color:var(--ek-muted);margin-bottom:14px}
.ek-integrated .ek-intro-editorial-title{font-size:var(--ek-fs-h3);}
.ek-integrated .ek-intro-editorial-row{display:grid;grid-template-columns:minmax(130px,.32fr) minmax(0,1fr);gap:32px;padding:25px 0;border-top:1px solid var(--ek-line)}
.ek-integrated .ek-intro-editorial-label{display:flex;align-items:baseline;gap:14px;font-size:var(--ek-fs-meta);font-weight:var(--ek-fw-body);}
.ek-integrated .ek-intro-editorial-number{flex:none;white-space:nowrap;font-size:var(--ek-fs-meta);font-weight:var(--ek-fw-body);color:var(--ek-muted);letter-spacing:normal;}
.ek-integrated .ek-intro-editorial-copy{max-width:66ch}
@media(max-width:800px){.ek-integrated{font-size:var(--ek-fs-body);}.ek-integrated .reading .ek-section{padding-block:28px}.ek-integrated .reading :is(.ek-section-body,.ek-section-copy,.ek-introduction,.ek-intro-editorial-copy)>:is(p,ul,ol){font-size:var(--ek-fs-body);}.ek-integrated .ek-intro-editorial-row{grid-template-columns:1fr;gap:14px;padding:22px 0}.ek-integrated .reading .ek-band{padding:24px!important}.ek-integrated .ek-section>h2{margin-bottom:20px}}

/* Route introduction above an aligned three-column destination grid. */
.ek-integrated .ek-page .ek-problem-index{display:block;width:min(var(--ek-width),calc(100% - 48px));margin:28px auto 38px}
.ek-integrated .ek-problem-index-lead{max-width:68ch;margin:0 0 22px;font-size:var(--ek-fs-body);line-height:var(--ek-lh-body);}
.ek-integrated .ek-problem-index ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ek-integrated .ek-problem-index li{display:flex;margin:0;min-width:0}
.ek-integrated .ek-problem-index a{width:100%;min-height:110px;padding:24px;border-radius:14px;font-size:var(--ek-fs-ui);}
@media(max-width:800px){.ek-integrated .ek-problem-index ul{grid-template-columns:repeat(2,minmax(0,1fr))}.ek-integrated .ek-problem-index a{min-height:100px;padding:20px;font-size:var(--ek-fs-ui);}}
@media(max-width:480px){.ek-integrated .ek-problem-index ul{gap:12px}.ek-integrated .ek-problem-index a{padding:16px;gap:12px}.ek-integrated .ek-problem-index-arrow{font-size:1.25rem;}}

.ek-integrated .reading:has(.ek-destination-grid){max-width:1160px}
.ek-integrated .ek-destination-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:20px 0 32px}
.ek-integrated .reading .ek-destination-grid>.ek-section{display:flex;flex-direction:column;gap:0;padding:26px;border:1px solid var(--ek-line);border-radius:16px;background:var(--ek-white)}
.ek-integrated .reading .ek-destination-grid>.ek-section>h2{position:static;margin:0 0 20px;padding:0;border:0;font-size:var(--ek-fs-h2);max-width:none}
.ek-integrated .ek-destination-grid .ek-section-body{display:flex;flex-direction:column;flex:1}
.ek-integrated .ek-destination-grid .ek-section-copy{display:flex;flex-direction:column;flex:1}
.ek-integrated .ek-destination-grid .ek-section-copy>p:last-child{margin-top:auto;padding-top:18px}
.ek-integrated .ek-chapter-group{font-size:var(--ek-fs-meta);text-transform:uppercase;letter-spacing:normal;color:var(--ek-muted)}
@media(max-width:850px){.ek-integrated .ek-destination-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Single-column editorial destination cards on all phone-sized screens, including wide phones. */
@media(max-width:767px){.ek-integrated .ek-destination-grid{grid-template-columns:minmax(0,1fr)}.ek-integrated .reading .ek-destination-grid>.ek-section{padding:24px}}

.ek-integrated .home-flow :is(.home-split-main,.home-work-main,.home-banner-copy,.home-location) p{font-size:var(--ek-fs-body);line-height:var(--ek-lh-body);}
@media(max-width:800px){.ek-integrated .home-flow :is(.home-split-main,.home-work-main,.home-banner-copy,.home-location) p{font-size:var(--ek-fs-body);}}
/* Long-form text uses a centered column with left-aligned copy throughout. */
.ek-integrated .reading{width:min(760px,calc(100% - 48px));max-width:760px;margin-inline:auto;text-align:left}
.ek-integrated .reading .ek-section{display:block;max-width:760px;margin-inline:auto}
.ek-integrated .reading .ek-section>h2{position:static;max-width:30ch;margin-bottom:22px;padding:0;border-bottom:0;text-align:left}
.ek-integrated .reading :is(.ek-section-body,.ek-section-copy){max-width:none;width:100%;text-align:left}
.ek-integrated .reading :is(.ek-section-body,.ek-section-copy)>:is(p,ul,ol){max-width:none}
.ek-integrated .reading .ek-introduction,.ek-integrated .ek-hero-intro{max-width:760px;margin-inline:auto;text-align:left}
.ek-integrated .ek-hero-intro{width:min(760px,calc(100% - 48px))}
.ek-integrated .technique-note{width:min(760px,100%);margin-inline:auto}
.ek-integrated .reading:has(.ek-destination-grid){width:min(1160px,calc(100% - 48px));max-width:1160px}
.ek-integrated .reading:has(.ek-destination-grid)>.ek-section{width:min(760px,100%)}
.ek-integrated .reading .ek-destination-grid>.ek-section{max-width:none;margin:0}
.ek-integrated .reading .ek-destination-grid>.ek-section>h2{padding:0;border:0}
@media(max-width:800px){.ek-integrated .reading .ek-section>h2{margin-bottom:20px}}

/* ======================================================================
   ATO-475 / ATO-476 / ATO-477 · Composición, editorial y móvil
   ====================================================================== */

/* --- ATO-475.1 · One photographic frame for Home ---------------------- */
.ek-integrated .home-flow :is(.home-split,.home-work-grid) figure img,
.ek-integrated .home-flow .home-banner-visual img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:50% 50%}
.ek-integrated .home-flow .home-split figure img{border-radius:22px}
.ek-integrated .home-flow .home-youcome figure img{border-radius:38% 38% 18px 18px}
.ek-integrated .home-flow .home-person figure img{border-radius:18px 18px 38% 38%}
.ek-integrated .home-flow .home-banner-visual img{border-radius:22px}
.ek-integrated .home-flow .home-contact-visual img{object-position:50% 50%;border-radius:24px}


/* ATO-474 · One clean, compact sticky heading system. No masks or gradients.
   The desktop 112px offset clears the intelligent pill header. */
@media(min-width:1001px){
 .ek-integrated .reading .ek-section:not(.ek-band):not(.help-section)>h2,
 .ek-integrated .home-flow .home-block>h2,
 .ek-integrated .home-flow .home-split-main>h2,
 .ek-integrated .home-flow .home-work-main>h2{
   position:sticky;top:112px;z-index:4;max-width:none;
   background:#f4f0e7!important;background-image:none!important;
   mask-image:none!important;-webkit-mask-image:none!important;
   padding:16px 12px!important;scroll-margin-top:172px;
   border-radius:9px;
 }
 .ek-integrated .reading .ek-section>h2.is-stuck,
 .ek-integrated .home-flow .home-block>h2.is-stuck,
 .ek-integrated .home-flow .home-split-main>h2.is-stuck,
 .ek-integrated .home-flow .home-work-main>h2.is-stuck{
   background:#f4f0e7!important;font-size:var(--ek-fs-h2)!important;
   line-height:var(--ek-lh-heading)!important;padding:13px 16px!important;
   margin-bottom:14px!important;border:0!important;
   border-bottom:1px solid #303b3224!important;box-shadow:none!important;
   text-shadow:none!important;
 }
 .ek-integrated .reading .ek-section>h2:after,
 .ek-integrated .home-flow .home-block>h2:after,
 .ek-integrated .home-flow .home-split-main>h2:after,
 .ek-integrated .home-flow .home-work-main>h2:after{
   content:none!important;display:none!important;background:none!important;
   mask:none!important;-webkit-mask:none!important;
 }
 .ek-integrated .reading .ek-section.ek-band>h2,
 .ek-integrated .reading .ek-section.help-section>h2,
 .ek-integrated .reading .ek-destination-grid .ek-section>h2{
   position:static!important;padding:0!important;
   margin-bottom:22px!important;background:transparent!important;border:0!important;
 }
}

/* --- ATO-475.2 · «Algunas claves» reads as a composition of firsts ---- */
.ek-integrated .home-topics--first{display:grid;gap:0}
.ek-integrated .home-topics--first .home-topic{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:26px 0;border-top:1px solid var(--ek-line)}
.ek-integrated .home-topics--first .home-topic:last-child{border-bottom:1px solid var(--ek-line)}
.ek-integrated .home-topics--first .home-topic h3{margin:0;font-size:var(--ek-fs-h3);max-width:26ch}
.ek-integrated .home-topics--first .home-topic-intro{margin:0;color:var(--ek-ink)}
.ek-integrated .home-topics--first .home-topic-detail{margin:0}
.ek-integrated .home-topics--first .home-topic-detail p{margin:0;color:var(--ek-muted);max-width:62ch}
.ek-integrated .home-topics--first .home-topic-link{margin-top:2px;align-self:start}

/* --- ATO-475.3 / ATO-475.4 · The Problems hub is a graphite surface ---
   Same catalogue geometry as Reseñas, on the approved graphite tone. */
main.ek-catalogue-page.ek-problem-hub{--ek-surface:var(--ek-graphite);--ek-catalogue-ink:#f4f0e7;--ek-catalogue-muted:#c9cec2;width:min(1320px,calc(100% - 24px));margin:16px auto 8px;padding:0 clamp(20px,4vw,60px) 52px;background:var(--ek-graphite);color:#f4f0e7;border-radius:30px}
main.ek-problem-hub .ek-catalogue-hero{color:var(--ek-catalogue-ink)}
main.ek-problem-hub .ek-catalogue-hero>.eyebrow{color:var(--ek-catalogue-muted)}
main.ek-problem-hub .ek-catalogue-hero .ek-page-actions .share-trigger{color:var(--ek-catalogue-ink)}
main.ek-problem-hub .ek-catalogue-lead p{color:var(--ek-catalogue-ink)}
main.ek-problem-hub .ek-problem-discovery>.eyebrow{color:var(--ek-catalogue-muted)}
main.ek-problem-hub .ek-problem-discovery>h2{color:var(--ek-catalogue-ink)}
main.ek-problem-hub .related{border-top-color:#ffffff26}
main.ek-problem-hub .related h2{color:var(--ek-catalogue-ink)}
main.ek-problem-hub .related-label{color:var(--ek-catalogue-muted)}
main.ek-problem-hub .related-text strong{color:var(--ek-catalogue-ink)}
main.ek-problem-hub .related-desc{color:var(--ek-catalogue-muted)}
.ek-problem-hub .hub-search{width:min(1080px,100%);margin:0 auto 44px;border-top:1px solid #ffffff26;border-bottom:1px solid #ffffff26;padding:30px 0 34px}
.ek-problem-hub .hub-search>.eyebrow{color:var(--ek-catalogue-muted)}
.ek-problem-hub .hub-search>h2{color:var(--ek-catalogue-ink);font-size:var(--ek-fs-h2);max-width:24ch;margin:0 0 6px}
.ek-problem-hub .symptom-search{max-width:none;margin-top:0}
.ek-problem-hub .symptom-form label{color:var(--ek-catalogue-muted);font-size:var(--ek-fs-meta);max-width:62ch;display:block}
.ek-problem-hub .symptom-field{border-bottom-color:#ffffff66}
.ek-problem-hub .symptom-field input{color:var(--ek-catalogue-ink)}
.ek-problem-hub .symptom-field input::placeholder{color:#ffffff66}
.ek-problem-hub .symptom-submit{color:var(--ek-catalogue-ink);border-bottom:1px solid #ffffff66}
.ek-problem-hub .symptom-chips-label{color:var(--ek-catalogue-muted)}
.ek-problem-hub .symptom-chips .chip{border-color:#ffffff40;color:var(--ek-catalogue-ink)}
.ek-problem-hub .symptom-chips .chip:hover,.ek-problem-hub .symptom-chips .chip:focus-visible{border-color:#ffffff9c;color:#fff}
.ek-problem-hub .symptom-note,.ek-problem-hub .symptom-status{color:var(--ek-catalogue-muted)}
.ek-problem-hub .search-hit{border-top-color:#ffffff26}
.ek-problem-hub .search-hit strong{color:var(--ek-catalogue-ink)}
.ek-problem-hub .search-hit p{color:var(--ek-catalogue-muted)}
.ek-problem-hub .symptom-empty p,.ek-problem-hub .symptom-empty-links a{color:var(--ek-catalogue-ink)}
.ek-problem-hub .symptom-empty-ask{color:var(--ek-catalogue-ink);border-bottom-color:#ffffff59}
.ek-problem-hub .ek-ed-card-desc{color:#ffffffe0}
.ek-problem-hub .ek-ed-card-title{color:#fff}

/* --- ATO-476.1 · Editorial introduction -------------------------------- */
.ek-integrated .reading .ek-editorial-intro{max-width:760px;margin:0 auto 44px;padding:0 0 34px;border-bottom:1px solid var(--ek-line)}
.ek-integrated .reading .ek-editorial-intro .ek-intro-editorial-copy{max-width:64ch}
.ek-integrated .reading .ek-editorial-intro p{font-size:var(--ek-fs-body);line-height:var(--ek-lh-body);color:var(--ek-ink)}
.ek-integrated .reading .ek-editorial-intro p+p{margin-top:var(--ek-space-text)}
.ek-integrated .reading .ek-editorial-intro strong{font-weight:var(--ek-fw-body);}
.ek-integrated .reading .ek-hero-intro--editorial{padding-top:0;border-bottom:0;margin-bottom:48px}
.ek-integrated .reading .ek-hero-intro--editorial .ek-intro-editorial-head{max-width:44ch}
.ek-integrated .reading .ek-hero-intro--editorial .ek-intro-editorial-title{font-size:var(--ek-fs-h3);}

/* --- ATO-476.2 · «Para profundizar» ------------------------------------ */
.ek-integrated .reading .references.ek-deepen{width:100%;max-width:760px;margin:44px auto 0;padding:34px 0 0;border-top:1px solid var(--ek-line)}
.ek-integrated .reading .ek-deepen .section-label{margin:0 0 12px;color:var(--ek-muted)}
.ek-integrated .reading .ek-deepen h2{font-size:var(--ek-fs-h2);margin:0 0 10px;max-width:24ch}
.ek-integrated .reading .ek-deepen .references-lead{margin:0 0 18px;color:var(--ek-muted);font-size:var(--ek-fs-body);}
.ek-integrated .reading .ek-deepen-list{margin:0;padding-left:20px;font-size:var(--ek-fs-small);line-height:var(--ek-lh-body);color:var(--ek-muted)}
.ek-integrated .reading .ek-deepen-list li{margin:0 0 9px;padding-left:4px}
.ek-integrated .reading .ek-deepen-list a{color:var(--ek-ink);border-bottom-color:var(--ek-line);white-space:normal}

/* --- ATO-476.3 · Light green observation blocks ------------------------ */
.ek-integrated .reading .ek-band .ek-observation-list{list-style:none;margin:24px 0 0;padding:0;display:grid;gap:22px}
.ek-integrated .reading .ek-band .ek-observation-list .ek-step{position:relative;padding-left:56px;margin:0;counter-increment:none}
.ek-integrated .reading .ek-band .ek-observation-list .ek-step strong{display:block;margin-bottom:4px}
.ek-step-badge{position:absolute;left:0;top:0;width:40px;height:40px;display:grid;place-items:center;color:var(--ek-coral)}
.ek-step-badge svg{position:absolute;inset:0;width:40px;height:40px}
.ek-step-badge span{position:relative;font:var(--ek-fw-body) var(--ek-fs-meta)/var(--ek-lh-compact) var(--ek-font-body);letter-spacing:normal;color:var(--ek-ink)}

/* --- ATO-477.5 / ATO-477.6 · Related cards ---------------------------- */
.ek-integrated .related>ul>li>a{border:0;border-radius:18px;background:var(--ek-white)}
.ek-integrated .reading .ek-destination-grid>.ek-section{border:0;background:var(--ek-white)}
.ek-integrated .reading .ek-destination-grid>.ek-section>h2{background:none}
@media(hover:hover) and (pointer:fine){
 @media(prefers-reduced-motion:no-preference){
  .ek-integrated .related a:hover .related-image img{filter:blur(1.4px);transform:scale(1.015)}
  .ek-integrated .ek-ed-card:hover .ek-ed-card-photo{filter:blur(1.4px);transform:scale(1.015)}
 }
}

/* --- ATO-477.7 · «También puede interesarte» on mobile --------------- */
/* ATO-366 · M1: the action is no longer removed with `display:none`, which
   could not be undone by the shared hover layer. The shared consistency
   layer hides it at rest on desktop and reveals it on hover or focus. */
.ek-integrated .related-dots{display:none}
@media(max-width:700px){
 .ek-integrated .related{width:calc(100% - 32px);margin-top:34px;padding-top:24px}
 .ek-integrated .related>h2{font-size:var(--ek-fs-h2);margin-bottom:18px}
 .ek-integrated .related--carousel>ul{display:flex;flex-wrap:nowrap;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding:2px 16px 6px;margin-inline:-16px;scrollbar-width:none}
 .ek-integrated .related--carousel>ul::-webkit-scrollbar{display:none}
 .ek-integrated .related--carousel>ul>li{flex:0 0 78%;scroll-snap-align:start}
 .ek-integrated .related--carousel>ul>li>a{height:100%}
 .ek-integrated .related-image{aspect-ratio:4/3}
 .ek-integrated .related-text{padding:18px}
 .ek-integrated .related-text strong{font-size:var(--ek-fs-h3);}
 .ek-integrated .related-desc{display:none}
 .ek-integrated .related-text>span.related-action{display:inline-flex;align-items:center;gap:8px;margin-top:6px;font-size:var(--ek-fs-meta);font-weight:var(--ek-fw-body);color:var(--ek-coral)}
 .ek-integrated .related-dots{display:flex;justify-content:center;gap:8px;margin-top:14px}
 .ek-integrated .related-dots button{width:7px;height:7px;min-width:7px;padding:0;border:0;border-radius:50%;background:#b4b8ab}
 .ek-integrated .related-dots button[aria-current=true]{background:var(--ek-ink);transform:scale(1.15)}
 .ek-problem-hub .related-dots button[aria-current=true]{background:var(--ek-catalogue-ink)}
}
@media(max-width:700px){
 main.ek-catalogue-page.ek-problem-hub{width:calc(100% - 16px);margin:10px auto 6px;border-radius:22px;padding:0 18px 40px}
 main.ek-problem-hub .ek-catalogue-hero{padding-top:26px}
 .ek-problem-hub .hub-search{margin-bottom:32px;padding:24px 0 28px}
}

/* ======================================================================
   ATO-474 · Pulido visual transversal
   ====================================================================== */

/* --- Buscador de molestias: foco sin marco de cuatro lados ---------- */
/* El campo conserva su línea inferior. El foco de teclado sigue siendo
   perceptible, pero sin encerrar el texto en un rectángulo. */
.ek-integrated .symptom-field input:focus-visible{outline:0;outline-offset:0}
.ek-integrated .symptom-field input:focus-visible::after{content:none}
.ek-integrated .symptom-field:focus-within{border-bottom-color:var(--ek-coral)}
.ek-integrated .symptom-field:focus-within input{outline:0}
/* Fallback de foco accesible cuando el navegador no marca :focus-visible. */
.ek-integrated .symptom-field input:focus{border-bottom:2px solid var(--ek-coral);outline:0}
.ek-problem-hub .symptom-field:focus-within{border-bottom-color:#f0b49b}
.ek-problem-hub .symptom-field input:focus{border-bottom-color:#f0b49b}

/* --- Chips del buscador: cuatro estados legibles --------------------- */
/* Regla única: una pastilla clara exige texto grafito; una pastilla oscura,
   texto claro. El estado seleccionado se distingue además del color. */
.ek-integrated .symptom-chips .chip{border:1px solid var(--ek-line);background:transparent;color:var(--ek-ink);transition:background .2s,color .2s,border-color .2s}
.ek-integrated .symptom-chips .chip:hover{background:var(--ek-surface-alt);color:var(--ek-ink);border-color:var(--ek-muted)}
.ek-integrated .symptom-chips .chip:focus-visible{outline:2px solid var(--ek-coral);outline-offset:3px}
.ek-integrated .symptom-chips .chip[aria-pressed="true"],.ek-integrated .symptom-chips .chip.is-active{background:var(--ek-ink);border-color:var(--ek-ink);color:var(--ek-paper);font-weight:var(--ek-fw-body);}
.ek-problem-hub .symptom-chips .chip{border-color:#ffffff40;color:var(--ek-catalogue-ink)}
.ek-problem-hub .symptom-chips .chip:hover{background:#ffffff1f;color:#fff;border-color:#ffffff8c}
.ek-problem-hub .symptom-chips .chip:focus-visible{outline:2px solid #f0b49b;outline-offset:3px}
.ek-problem-hub .symptom-chips .chip[aria-pressed="true"],.ek-problem-hub .symptom-chips .chip.is-active{background:var(--ek-catalogue-ink);border-color:var(--ek-catalogue-ink);color:var(--ek-graphite)}

/* --- Resultados de búsqueda: realce del área clicable --------------- */
.ek-integrated .search-hit{border-top:1px solid var(--ek-line)}
.ek-integrated .search-hit a{display:block;padding:2px 0;text-decoration:none;color:inherit}
.ek-integrated .search-hit strong{display:inline;background:linear-gradient(currentColor,currentColor) no-repeat left bottom/0 1px;transition:color .2s,background-size .22s}
.ek-integrated .search-hit a:hover strong,.ek-integrated .search-hit a:focus-visible strong{color:var(--ek-coral);background-size:100% 1px}
.ek-integrated .search-hit a:hover,.ek-integrated .search-hit a:focus-visible{color:inherit}
.ek-integrated .search-hit a:focus-visible{outline:2px solid var(--ek-coral);outline-offset:4px;border-radius:6px}
.ek-problem-hub .search-hit{border-top-color:#ffffff26}
.ek-problem-hub .search-hit strong{color:var(--ek-catalogue-ink)}
.ek-problem-hub .search-hit a:hover strong,.ek-problem-hub .search-hit a:focus-visible strong{color:#f0b49b}
.ek-problem-hub .search-hit p{color:var(--ek-catalogue-muted)}

/* --- «También puede interesarte»: pie grafito legible --- */
/* Nada de blanco sobre blanco: pie oscuro con texto claro, foto arriba. */
.ek-integrated .related>ul>li>a{background:var(--ek-graphite);color:#f4f0e7}
.ek-integrated .related-text strong{color:#fff}
.ek-integrated .related-desc,.ek-integrated .related-text>span:not(.related-label):not(.related-action){color:#dfe3d8}
.ek-integrated .related-label{color:#b9c0b2}
.ek-integrated .related-text>span.related-action{color:#f0b49b}
.ek-problem-hub .related-text strong{color:#fff}

/* --- Hub /problemas/: superficie continua, no isla redondeada ---------- */
/* El grafito llega al borde de la página y la navegación se apoya sobre él,
   sin banda crema intermedia. El CTA verde y el footer se conservan. */
main.ek-catalogue-page.ek-problem-hub{width:100%;max-width:none;margin:0;border-radius:0;padding:0 clamp(20px,4vw,60px) clamp(56px,6vw,96px);background:var(--ek-graphite);color:#f4f0e7}
/* Keep the graphite hub full bleed; constrain the editorial content and cards. */
main.ek-problem-hub .ek-problem-discovery{width:min(1080px,100%);margin:0 auto}
@media(max-width:700px){
  main.ek-catalogue-page.ek-problem-hub{width:100%;margin:0;border-radius:0;padding:0 18px 40px}
}

/* --- Tarjetas con fotografía y texto superpuesto --------------------- */
/* Tratamiento común para cualquier tarjeta que pone texto sobre la foto:
   degradado oscuro hacia la zona de lectura, gaussiano en esa zona y una
   desaturación suave que sólo acompaña. La foto sigue reconocible. */
.ek-integrated .ek-ed-card{isolation:isolate}
.ek-integrated .ek-ed-card-photo{filter:saturate(.88) contrast(1.02)}
.ek-integrated .ek-ed-card:before{background:linear-gradient(180deg,rgba(14,26,21,.06) 0%,rgba(14,26,21,.42) 34%,rgba(12,22,18,.86) 100%)}
.ek-integrated .ek-ed-card-glass{display:block;position:absolute;left:0;right:0;bottom:0;height:60%;pointer-events:none;background:linear-gradient(to top,rgba(16,28,23,.34),rgba(16,28,23,.10) 48%,rgba(16,28,23,0) 78%);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);-webkit-mask-image:linear-gradient(to top,#000 18%,rgba(0,0,0,.55) 48%,transparent 76%);mask-image:linear-gradient(to top,#000 18%,rgba(0,0,0,.55) 48%,transparent 76%)}
.ek-integrated .ek-ed-card-body{position:relative;z-index:2}
.ek-integrated .ek-ed-card-title{color:#fff;text-shadow:0 1px 14px rgba(10,18,14,.6)}
.ek-integrated .ek-ed-card-desc{color:rgba(255,255,255,.88);text-shadow:0 1px 10px rgba(10,18,14,.55)}
.ek-integrated .ek-ed-card-cta{color:rgba(255,255,255,.92)}
.ek-integrated .related-image img{filter:saturate(.9)}
.ek-integrated .related-text strong,.ek-integrated .related-desc{text-shadow:none}

/* --- Transición del hub al cierre: sin banda crema intermedia -------- */
/* El grafito llega hasta el pie y el cierre verde se apoya sobre él. */
body.ek-unified:has(main.ek-problem-hub) .ek-footer{margin-top:0;border-radius:0 0 30px 30px}
body.ek-unified:has(main.ek-problem-hub) .ek-footer{padding-top:0}
body.ek-unified:has(main.ek-problem-hub) main.ek-problem-hub{padding-bottom:clamp(48px,5.5vw,84px)}
body.ek-unified:has(main.ek-problem-hub) .ek-final-cta{padding-top:clamp(48px,5.5vw,84px)}
@media(max-width:700px){
  body.ek-unified:has(main.ek-problem-hub) .ek-footer{margin:0 10px 10px;border-radius:24px}
}

/* --- Navegación sobre el grafito del hub ----------------------------- */
/* El menú, el logo y los iconos se apoyan sobre la superficie grafito con
   controles blancos. Al desplazarse sigue mandando la píldora grafito. */
body.ek-unified:has(main.ek-problem-hub) .ek-header{margin-bottom:0}
body.ek-unified:has(main.ek-problem-hub) .ek-header:not(.is-pill) .ek-header-inner{background:transparent;border-color:transparent;color:#fff;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
body.ek-unified:has(main.ek-problem-hub) .ek-header:not(.is-pill) .brand img{filter:brightness(0) invert(1)}
body.ek-unified:has(main.ek-problem-hub) .ek-header:not(.is-pill) .button{color:#fff;border-color:#ffffff9c}
body.ek-unified:has(main.ek-problem-hub) .ek-header:not(.is-pill) .ek-icon:hover,body.ek-unified:has(main.ek-problem-hub) .ek-header:not(.is-pill) .button:hover{background:#ffffff18;color:#fff}
body.ek-unified:has(main.ek-problem-hub) .ek-header:not(.is-pill) .ek-nav>a:hover,body.ek-unified:has(main.ek-problem-hub) .ek-header:not(.is-pill) .ek-explore>summary:hover{color:#f0b49b}
body.ek-unified:has(main.ek-problem-hub) .ek-header:not(.is-pill) .ek-explore>nav{background:rgba(35,39,41,.96);border-color:#ffffff24;color:#fff}
body.ek-unified:has(main.ek-problem-hub) .ek-header:not(.is-pill) .ek-explore>nav a:hover{background:#ffffff18;color:#fff}
/* El hub se dibuja desde el borde superior: la navegación va sobre el grafito. */
body.ek-unified:has(main.ek-problem-hub) main.ek-problem-hub{margin-top:calc(-1 * var(--ek-header-h,78px));padding-top:var(--ek-header-h,78px)}
@media(max-width:1000px){body.ek-unified:has(main.ek-problem-hub) main.ek-problem-hub{margin-top:calc(-1 * 90px);padding-top:90px}}
@media(max-width:600px){body.ek-unified:has(main.ek-problem-hub) main.ek-problem-hub{margin-top:calc(-1 * 82px);padding-top:82px}}

/* ======================================================================
   ATO-360 · Segunda ronda visual final
   R2  Resultados del buscador de /problemas/: retícula editorial de dos
       columnas, contenida y respirada. En móvil, una columna.
   R4  Introducciones editoriales: columna de lectura contenida, aire
       generoso, separación clara y acento discreto. Nunca una caja verde.
   R6  Cajas de lectura verde pálido: aire uniforme en los cuatro lados,
       checks lineales para observaciones y números en círculos para los
       pasos secuenciales. Sin duplicar indicadores.
   R9  El enlace del banner «Principios de trabajo» no vira a naranja.
   R10 «Osteopatía en el centro de Granada»: más aire y fotografía más alta.
   R11 Cuadrículas de enlaces sin contornos finos: manda la superficie.
   R13 Consistencia global: sin huerdas naranja aisladas, foco siempre.
   ====================================================================== */

/* R2 · Retícula de resultados ------------------------------------------------ */
.ek-problem-hub .symptom-results{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(14px,1.6vw,22px);width:100%;max-width:100%;margin:24px 0 0;padding:0;list-style:none;
}
.ek-problem-hub .symptom-results>li{min-width:0;margin:0}
.ek-problem-hub .search-hit{border-top:0;padding:0;height:100%}
.ek-problem-hub .search-hit a{
  display:flex;flex-direction:column;gap:8px;height:100%;padding:20px 22px;border-radius:16px;
  background:rgba(244,240,231,.055);text-decoration:none;transition:background .2s ease,box-shadow .2s ease;
}
.ek-problem-hub .search-hit a:hover,.ek-problem-hub .search-hit a:focus-visible{
  background:rgba(244,240,231,.10);color:inherit;box-shadow:0 12px 26px rgba(0,0,0,.18);
}
.ek-problem-hub .search-hit strong{display:block;font:var(--ek-fw-heading) var(--ek-fs-h3)/var(--ek-lh-heading) var(--ek-font-heading);letter-spacing:var(--ek-ls-heading);}
.ek-problem-hub .search-hit p{margin:0;font-size:var(--ek-fs-body);line-height:var(--ek-lh-body);color:var(--ek-catalogue-muted)}
@media(max-width:800px){.ek-problem-hub .symptom-results{grid-template-columns:1fr;max-width:100%;gap:12px}}

/* R4 · Introducción editorial ------------------------------------------------ */
.ek-integrated .reading .ek-editorial-intro:not(.ek-hero-intro--editorial){
  width:auto;max-width:none;margin:clamp(40px,5vw,72px) 0 clamp(48px,5.5vw,84px);
  padding:0;border-bottom:0;position:relative;
}
.ek-integrated .reading .ek-editorial-intro:not(.ek-hero-intro--editorial)::before{
  content:'';display:block;width:clamp(38px,4vw,58px);height:2px;background:var(--ek-ink);
  margin-bottom:clamp(20px,2.4vw,30px);
}
.ek-integrated .reading .ek-editorial-intro .ek-intro-editorial-copy{max-width:64ch}
.ek-integrated .reading .ek-editorial-intro p{font-size:var(--ek-fs-body);line-height:var(--ek-lh-body);color:var(--ek-ink)}
@media(max-width:768px){
  .ek-integrated .reading .ek-editorial-intro:not(.ek-hero-intro--editorial){margin:clamp(30px,7vw,46px) 0 clamp(36px,8vw,54px)}
  .ek-integrated .reading .ek-editorial-intro p{font-size:var(--ek-fs-body);}
}

/* R6 · Cajas de lectura verde pálido ---------------------------------------- */
.ek-integrated .reading .ek-band,
.ek-integrated .ek-personal-contact,
.ek-integrated .contact-first{
  padding:clamp(24px,3vw,40px)!important;
}
.ek-integrated .help-group ul{margin:0;padding:0;list-style:none}
.ek-integrated .help-group ul>li{position:relative;padding-left:26px}
.ek-integrated .help-group ul>li+li{margin-top:14px}
.ek-integrated .help-group ul>li::before{
  content:'';position:absolute;left:0;top:.34em;width:15px;height:15px;
  background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23303b32' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E");
}
.ek-integrated .ek-observation-list{gap:clamp(20px,2.2vw,28px)}
.ek-integrated .ek-observation-list .ek-step{padding-left:clamp(54px,4.4vw,64px)}
.ek-integrated .ek-observation-list .ek-step-badge{width:42px;height:42px}
.ek-integrated .ek-observation-list .ek-step-badge svg{width:42px;height:42px}

/* R9 · Banner «Principios de trabajo» --------------------------------------- */
.home-principles a,.home-principles a:visited{color:var(--ek-paper)}
.home-principles p a{border-bottom-color:rgba(244,240,231,.45);transition:color .2s ease,border-color .2s ease}
.home-principles p a:hover,.home-principles p a:focus-visible{color:#fff;border-bottom-color:#fff}

/* R10 · «Osteopatía en el centro de Granada» -------------------------------- */
.home-contact{gap:clamp(52px,4.4vw,64px) 8%}
.home-contact-visual img{height:clamp(468px,33vw,478px);object-fit:cover}
@media(max-width:768px){
  .home-contact{gap:38px}
  .home-contact-visual img{height:340px}
}

/* R11 · Cuadrículas de enlaces sin contornos finos --------------------------- */
.ek-integrated :is(.ek-page,.ek-document,.ek-hero)>nav:not(.breadcrumbs):not(.goal-paths):not(.ek-formacion-index)>a,
.ek-integrated .ek-hero+nav:not(.goal-paths)>a,
.ek-integrated .ek-problem-index a{
  border:0;
  transition:background .2s ease,box-shadow .2s ease,color .2s ease;
}
.ek-integrated :is(.ek-page,.ek-document,.ek-hero)>nav:not(.breadcrumbs):not(.goal-paths):not(.ek-formacion-index)>a:hover,
.ek-integrated .ek-hero+nav:not(.goal-paths)>a:hover,
.ek-integrated .ek-problem-index a:hover{
  background:var(--ek-surface-alt);color:inherit;box-shadow:0 12px 28px rgba(48,59,50,.08);
}
.ek-integrated :is(.ek-page,.ek-document,.ek-hero)>nav:not(.breadcrumbs):not(.goal-paths):not(.ek-formacion-index)>a[aria-current],
.ek-integrated .ek-problem-index a[aria-current]{
  background:var(--ek-surface-alt);color:inherit;box-shadow:inset 3px 0 0 var(--ek-ink);
}
.ek-integrated :is(.ek-page,.ek-document,.ek-hero)>nav:not(.breadcrumbs):not(.goal-paths):not(.ek-formacion-index)>a:focus-visible,
.ek-integrated .ek-problem-index a:focus-visible{outline:2px solid var(--ek-ink);outline-offset:4px}

/* R13 · Hovers y foco coherentes -------------------------------------------- */
.ek-integrated .ek-hero :is(a,.share-trigger):hover,
.ek-integrated .ek-hero :is(a,.share-trigger):focus-visible{color:#fff}
.ek-integrated .ek-review-card.review :is(a,.ek-review-share):hover{color:#fff}
.ek-integrated .ek-review-card.review :is(a,.ek-review-share):focus-visible{outline-color:#f4f0e7}
