/* Revisión visual común: móvil y tableta. */
@media(max-width:1100px){
 #hero .hero__body{grid-column:1/-1;min-width:0}
 #hero .hero__editorial{width:100%;height:auto;min-height:340px;padding:142px 36px 54px;align-items:center;justify-content:center;text-align:center}
 #hero .hero__title{width:100%;max-width:100%;margin:0;text-align:center}
 #hero .hero__editorial-line{display:block;width:auto;max-width:100%;white-space:normal;overflow-wrap:normal;text-wrap:balance;text-align:center;margin-left:0}
 #hero .hero__editorial-line--one{font-size:clamp(32px,5.3vw,56px);line-height:1.1;letter-spacing:-.055em}
 #hero .hero__editorial-line--two{font-size:clamp(36px,5.9vw,64px);line-height:1.12;margin-top:.12em;letter-spacing:-.045em}
 #hero .hero__editorial-line--three{font-size:clamp(22px,3.6vw,38px);line-height:1.2;margin-top:.35em}
 #hero .hero__editorial-number{display:none}
 #hero .hero__next--video{margin:0 auto 20px}
}
@media(max-width:760px){
 #hero .hero__editorial{min-height:310px;padding:128px 28px 40px}
 #hero .hero__editorial-line--one{font-size:clamp(26px,7.1vw,40px)}
 #hero .hero__editorial-line--two{font-size:clamp(29px,7.7vw,44px)}
 #hero .hero__editorial-line--three{font-size:clamp(19px,5vw,27px)}
 .chapter:not(.hero){--mobile-heading-top:122px}
 .chapter:not(.hero)>.chapter__body{padding-top:122px}
 .chapter:not(.hero)::before{top:32px;font-size:80px;line-height:1;letter-spacing:-.08em}
 .chapter:not(.hero) .small-title{line-height:1.4}
 .book-index__page .service-row__media{margin-left:calc(-1 * (var(--axis) + var(--content-left)));margin-right:0}
 .book-index__tab,.book-index__tab+.book-index__tab,.portfolio-index__item,.portfolio-index__item+.portfolio-index__item{padding-left:4px;padding-right:4px}
 .book-index__name,.portfolio-index__name{font-size:10px;line-height:1.4}
 .large,.book-index__page h3,.faq-q__text{overflow-wrap:break-word;text-wrap:pretty}
}
.edge-index.edge-index--video .edge-index__toggle,.edge-index.edge-index--video .edge-index__toggle:hover{width:58px;height:46px;margin-left:0;background:#3B4953;color:#fff;padding-left:12px}
.edge-index.edge-index--video.is-open .edge-index__toggle{width:112px}
/* Cada fila de servicios tiene su propio contenido inmediato. */
.writing-service-group+.writing-service-group{margin-top:40px}
.writing-service-group .book-index__pages{display:block}
.writing-service-group .book-index__page[hidden]{display:none!important}
.writing-service-group .book-index__page.is-active{display:block}
.writing-service-group .book-index__tab{min-width:0}
@media(max-width:760px){.writing-service-group .book-index__page.is-active{display:flex;flex-direction:column}.writing-service-group .book-index__page h3{order:0}.writing-service-group .book-index__page .service-row__media{order:1;margin-top:0;margin-bottom:22px}.writing-service-group .book-index__page p{order:2}.writing-service-group .book-index__page .service-row__action{order:3}}
@media(min-width:761px) and (max-width:1100px){:root{--content-left:38px;--content-right:48px}#hero .hero__lead{margin-left:56px;margin-right:48px;max-width:none}#hero .hero__actions{margin-left:56px;margin-right:48px}}
@media(max-width:1100px){#hero #video-principal,#hero>.hero__body>.fullbleed-video{margin-left:0;margin-right:0;width:100%;max-width:100%}#hero .hero__lead{padding-right:0}.intro__copy,.service-row__copy,.about-text,.hero__lead,.book-index__page p{hyphens:auto;overflow-wrap:break-word;text-wrap:pretty}}
@media(min-width:600px) and (max-width:1100px){.intro__copy,.service-row__copy,.about-text,.hero__lead,.book-index__page p{text-align:justify;text-align-last:left}}
@media(min-width:1101px){.hero__lead,.intro__copy,.about-text,.service-row__copy,.book-index__page p,.process-step__answer p,.faq-a p,.method-note,.method-note--compact,.portfolio-index__caption p,.contact-option-help{font-size:14px;line-height:1.75}}
.chapter__body>.btn+.service-row__media{margin-top:32px}
.service-row__media+.btn,.book-index__page .service-row__media+.service-row__action{margin-top:24px}
.writing-service-group .book-index__name{white-space:nowrap;max-width:none}@media(max-width:760px){.writing-service-group .book-index__name{font-size:clamp(9px,2.5vw,11px)}}
/* Denominaciones completas y espacio útil en cada selector. */
.writing-service-group .book-index__tab{padding-left:8px;padding-right:5px}
.writing-service-group .book-index__tab:first-child{padding-left:0}
.writing-service-group .book-index__name{font-size:clamp(10px,.9vw,12px);letter-spacing:-.015em;white-space:nowrap}
@media(max-width:760px){.writing-service-group .book-index__name{white-space:normal;font-size:11px;text-wrap:balance}.writing-service-group .book-index__tab{padding-left:6px;padding-right:6px}}.writing-service-group .book-index__name{font-size:12px;letter-spacing:normal;max-width:none}@media(max-width:760px){.writing-service-group .book-index__name{font-size:11px;white-space:normal}}.edge-index.edge-index--video .edge-index__toggle,.edge-index.edge-index--video .edge-index__toggle:hover{width:46px}.edge-index.edge-index--video.is-open .edge-index__toggle{width:112px}
/* Ajuste de ritmo visual solicitado el 23 de octubre. */
.writing-service-group .book-index__selectors{border-top:0}
.writing-service-group+.writing-service-group{margin-top:60px}
.writing-service-group .book-index__pages{padding-top:40px}
.writing-service-group .book-index__page .service-row__media{margin-top:38px;margin-bottom:0}
@media(max-width:760px){.writing-service-group+.writing-service-group{margin-top:44px}.writing-service-group .book-index__pages{padding-top:30px}.writing-service-group .book-index__page .service-row__media{margin-top:0;margin-bottom:28px}}
/* Etiquetas completas de selectores en una sola línea en ordenador. */
@media(min-width:1101px){
 .book-index__tab,.book-index__tab+.book-index__tab,.portfolio-index__item,.portfolio-index__item+.portfolio-index__item{padding-left:6px;padding-right:6px}
 .book-index__tab:first-child,.portfolio-index__item:first-child{padding-left:0}
 .book-index__name,.portfolio-index__name{max-width:none;white-space:nowrap;overflow-wrap:normal;font-size:clamp(10px,.82vw,12px);letter-spacing:normal}
}
/* Una misma escala para todos los títulos bajo números. */
:root{--index-label-size:12px;--index-label-leading:1.45}
.book-index__name,.writing-service-group .book-index__name,.portfolio-index__name,.process-timeline--compact .process-step h3{font-family:var(--font-main);font-size:var(--index-label-size);font-weight:400;line-height:var(--index-label-leading);letter-spacing:0;max-width:none}
.process-timeline--compact{margin-top:36px;max-width:none}
.process-timeline--compact .process-step summary{padding:18px 6px 20px;min-height:0}
.process-timeline--compact .process-step:first-child summary{padding-left:0}
.process-timeline--compact .process-step summary>span:last-child{min-width:0}
.process-timeline--compact .process-step h3{margin:0;text-wrap:pretty}
.process-timeline--compact .process-step__answer{padding:0 12px 20px 6px}
.calendar{margin-top:28px}
@media(min-width:1101px){
 .process-timeline--compact .process-step h3{white-space:nowrap;text-wrap:nowrap}
 .chapter:not(.hero)>.chapter__body{padding-top:64px;padding-bottom:56px}
 #quien-soy>.chapter__body{padding-bottom:56px}
 .chapter:not(.hero) .chapter__keyword{top:82px}
}
@media(max-width:1100px){
 .book-index__name,.writing-service-group .book-index__name,.portfolio-index__name,.process-timeline--compact .process-step h3{white-space:normal;text-wrap:balance}
 .process-timeline--compact .process-step h3{line-height:1.45}
}
@media(max-width:760px){
 :root{--index-label-size:11px}
 .process-timeline--compact .process-step summary{padding:16px 0}
 .process-timeline--compact{margin-top:28px}
}
@media(min-width:1101px){
 #tu-libro .book-index__selectors{grid-template-columns:.95fr 1.05fr 1fr 1.35fr}
 .process-timeline--compact{grid-template-columns:.9fr 1.05fr 1.05fr 1.4fr}
 .writing-service-group:nth-child(2) .book-index__selectors{grid-template-columns:.85fr 1.35fr .8fr}
}
/* Retirar también límites de componentes locales de Comunicación. */
#servicios .book-index__name,#tu-libro .book-index__name,#servicios-escritura .book-index__name{font-family:var(--font-main);font-size:var(--index-label-size);font-weight:400;line-height:var(--index-label-leading);max-width:none;width:auto;letter-spacing:0}
@media(min-width:1101px){#servicios .book-index__name,#tu-libro .book-index__name,#servicios-escritura .book-index__name{white-space:nowrap;overflow-wrap:normal}}
@media(min-width:1101px) and (max-width:1200px){#hero .hero__body{grid-column:1/-1}#hero .hero__editorial{padding:120px 40px 50px;align-items:center;height:auto;min-height:340px}#hero .hero__title{width:100%;margin:0}#hero .hero__editorial-line{width:auto;max-width:100%;margin-left:0;text-align:center;white-space:normal}#hero .hero__editorial-line--one{font-size:48px}#hero .hero__editorial-line--two{font-size:54px}#hero .hero__editorial-line--three{font-size:34px}#hero .hero__editorial-number{display:none}}
@media(min-width:1101px) and (max-width:1200px){:root{--axis:160px;--content-left:40px;--content-right:40px}}
/* Alineación común del texto: la apertura sigue la misma columna que las secciones. */
:root{--hero-copy-inset:var(--content-left)}
@media(max-width:1200px){:root{--hero-copy-inset:calc(var(--axis) + var(--content-left))}}
#hero .hero__lead,#hero .hero__actions,#hero .hero-audio-slot,#hero .communication-audio,#hero>.hero__body>.mini-audio,#hero .hero__body>.shared-audio{
 margin-left:var(--hero-copy-inset);margin-right:var(--content-right);width:auto;max-width:none;box-sizing:border-box;padding-left:0;padding-right:0
}
#hero .communication-audio .shared-audio{margin-left:0;margin-right:0;width:100%}
.chapter:not(.hero)>.chapter__body{padding-left:var(--content-left);padding-right:var(--content-right)}
.chapter__body .intro__copy,.chapter__body .about-text,.chapter__body .service-row__copy,.chapter__body .contact-option-help,.chapter__body .process-step__answer p,.chapter__body .faq-a p{padding-left:0;padding-right:0}
/* No publicar marcadores de imágenes pendientes. Se mantiene el espacio editable en el HTML. */
#contacto .service-row__media:has([data-media-slot="08-cierre"]){display:none}
@media(max-width:1100px){
 #hero .hero__editorial{align-items:flex-start;text-align:left;padding-left:var(--hero-copy-inset);padding-right:var(--content-right)}
 #hero .hero__title{text-align:left}
 #hero .hero__title .hero__editorial-line,#hero .hero__editorial-line--three{text-align:left;text-wrap:pretty;width:auto;white-space:normal;max-width:100%}
 #hero .hero__editorial-line--one{margin-left:0}
 #hero .hero__title .hero__editorial-line--two{margin-left:12px;max-width:calc(100% - 12px)}
 #hero .hero__editorial-line--three{margin-left:4px;max-width:calc(100% - 4px)}
 #hero .hero__lead,.chapter__body .intro__copy,.chapter__body .service-row__copy,.chapter__body .about-text{text-align:left;text-align-last:auto;hyphens:none;text-wrap:pretty}
 .book-index__tab,.portfolio-index__item{min-width:0;box-sizing:border-box}
 #servicios .book-index__name,#tu-libro .book-index__name,#servicios-escritura .book-index__name,.portfolio-index__name{display:block;width:100%;max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;hyphens:auto;text-wrap:pretty}
 .book-index__name>span,.portfolio-index__name>span{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;hyphens:auto}
 .book-index__name>.full-tab-label,.portfolio-index__name>.full-tab-label{display:block}
}
@media(max-width:760px){
 #hero .hero__editorial{padding-top:120px;padding-bottom:36px;min-height:300px}
 #hero .hero__title .hero__editorial-line--one{font-size:clamp(22px,6.5vw,30px);line-height:1.08;letter-spacing:-.055em;white-space:normal}
 #hero .hero__title .hero__editorial-line--two{font-size:clamp(24px,6.8vw,32px);line-height:1.12;letter-spacing:-.045em;margin-top:.12em}
 #hero .hero__editorial-line--three{font-size:clamp(17px,4.6vw,22px);line-height:1.2;margin-top:.3em;letter-spacing:-.045em}
 .book-index__name>.full-tab-label,.portfolio-index__name>.full-tab-label{display:none}
 .book-index__name>.compact-tab-label,.portfolio-index__name>.compact-tab-label{display:block}
 .book-index__tab,.book-index__tab+.book-index__tab,.portfolio-index__item,.portfolio-index__item+.portfolio-index__item{padding-left:6px;padding-right:6px}
}
/* El contenido de apertura pertenece a la columna derecha, en todos los tamaños. */
:root{--hero-copy-inset:var(--content-left)}
#hero .hero__body{grid-column:2;min-width:0;width:auto}
#hero .hero__lead,#hero .hero__actions,#hero .hero-audio-slot,#hero .communication-audio,#hero>.hero__body>.mini-audio,#hero .hero__body>.shared-audio{margin-left:var(--content-left);margin-right:var(--content-right);width:auto;max-width:none}
@media(max-width:1200px){
 #hero .hero__editorial{padding-left:var(--content-left);padding-right:var(--content-right);align-items:flex-start;text-align:left}
 #hero .hero__title,#hero .hero__title .hero__editorial-line,#hero .hero__editorial-line--three{text-align:left}
}
/* Solo los medios salen de la columna; su fondo tapa el eje que queda detrás. */
#hero #video-principal,#hero>.hero__body>.fullbleed-video{position:relative;z-index:10;width:var(--bleed-width,100vw);max-width:none;margin-left:calc(-1 * var(--axis));margin-right:0;background:#fff;isolation:isolate}
.service-row__media,.portfolio-index__image-wrap,.communication-original-gallery .loop-item{background:#fff;isolation:isolate}
.journey::before,.journey__progress{z-index:0}
#hero::after{z-index:1}
#hero .hero__body{position:relative;z-index:3}
/* Invitación suave al menú, sin destellos. */
.edge-index.edge-index--video .edge-index__toggle,.edge-index.edge-index--video .edge-index__toggle:hover{background:linear-gradient(115deg,#3b4953 15%,#4e6e89 100%);color:#fff;box-shadow:0 2px 12px rgba(59,73,83,.2)}
@keyframes menu-soft-halo{0%,100%{box-shadow:0 2px 12px rgba(59,73,83,.2),0 0 0 0 rgba(78,110,137,0)}50%{box-shadow:0 2px 15px rgba(59,73,83,.3),0 0 0 5px rgba(78,110,137,.12)}}
@media(prefers-reduced-motion:no-preference){.edge-index:not(.is-open) .edge-index__toggle{animation:menu-soft-halo 3s ease-in-out 3}}
@keyframes menu-arrow-breathe{0%,100%{opacity:1}50%{opacity:.55}}@media(prefers-reduced-motion:no-preference){.edge-index:not(.is-open) .edge-index__toggle{animation:menu-soft-halo 3.6s ease-in-out infinite}.edge-index:not(.is-open) .edge-index__toggle>span:first-child{animation:menu-arrow-breathe 3.6s ease-in-out infinite}}
.footer-cookie-settings{padding:0;border:0;background:transparent;color:inherit;font:inherit;font-size:10px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* Titulares de tableta: escala por anchura útil y escalonado editorial. 24-10-2026 */
@media(min-width:761px) and (max-width:1200px){
 #hero .hero__editorial{container-type:inline-size;padding-top:148px;padding-bottom:50px;height:auto;min-height:0;align-items:flex-start;text-align:left}
 #hero .hero__title{width:100%;max-width:100%;margin:0;text-align:left}
 #hero .hero__title .hero__editorial-line--one{font-size:clamp(40px,8.1cqi,64px);line-height:1.12;letter-spacing:-.055em;margin-left:0;white-space:normal;text-wrap:pretty}
 #hero .hero__title .hero__editorial-line--two{font-size:clamp(46px,9.4cqi,74px);line-height:1.16;letter-spacing:-.045em;margin-top:.14em;margin-left:clamp(28px,7cqi,64px);max-width:calc(100% - clamp(28px,7cqi,64px));white-space:normal;text-wrap:pretty}
 #hero .hero__editorial-line--three{font-size:clamp(27px,5.2cqi,42px);line-height:1.25;letter-spacing:-.04em;margin-top:.38em;margin-left:clamp(16px,3.5cqi,32px);max-width:calc(100% - clamp(16px,3.5cqi,32px));white-space:normal;text-wrap:pretty}
}

/* Aire del acceso al CV, manteniendo el módulo de contenido. */
.cv-profile-link{margin:24px 0 32px}
@media(min-width:1101px){.cv-profile-link{margin-top:32px;margin-bottom:40px}}

/* Tableta por orientación: corrección final de Alicia. */
@media(min-width:761px) and (max-width:1200px) and (orientation:landscape){
 #hero .hero__title .hero__editorial-line--one{line-height:1.04}
 #hero .hero__title .hero__editorial-line--two{line-height:1.06;margin-top:.10em}
 #hero .hero__editorial-line--three{line-height:1.12;margin-top:.25em}
}
@media(min-width:600px) and (max-width:1100px) and (orientation:portrait){
 #hero .hero__editorial{container-type:inline-size;padding-left:calc(var(--content-left) + 32px);padding-right:32px;padding-top:148px;padding-bottom:42px;height:auto;min-height:0;align-items:flex-start;text-align:left}
 #hero .hero__title{width:100%;max-width:100%;margin:0;text-align:left}
 #hero .hero__title .hero__editorial-line--one{font-size:clamp(48px,9.4cqi,68px);line-height:1.06;letter-spacing:-.055em;margin-left:0;white-space:normal;text-wrap:pretty}
 #hero .hero__title .hero__editorial-line--two{font-size:clamp(52px,10.2cqi,74px);line-height:1.08;letter-spacing:-.045em;margin-top:.12em;margin-left:24px;max-width:calc(100% - 24px);white-space:normal;text-wrap:balance}
 #hero .hero__editorial-line--three{font-size:clamp(29px,5.9cqi,44px);line-height:1.16;letter-spacing:-.04em;margin-top:.30em;margin-left:14px;max-width:calc(100% - 14px);white-space:normal;text-wrap:pretty}
}

/* Ajustes de las capturas de Alicia, 25 octubre: proceso, audio y navegación. */
.edge-index--video .edge-index__panel{width:min(310px,calc(100vw - 24px));padding:58px 20px 22px 20px;box-sizing:border-box}
.edge-index__heading{margin:0 0 12px;font-size:11px;letter-spacing:.04em;text-transform:none}
.edge-index__panel a{grid-template-columns:32px minmax(0,1fr);gap:12px}
.edge-index__panel a>span:last-child{white-space:nowrap;font-size:12px;letter-spacing:0}
#como-trabajo .process-timeline--compact{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-top:40px}
#como-trabajo .process-timeline--compact .process-step{min-width:0;padding:0;border-left:1px solid var(--line)}
#como-trabajo .process-timeline--compact .process-step:first-child{border-left:0}
#como-trabajo .process-timeline--compact .process-step summary{padding:18px 18px 24px}
#como-trabajo .process-timeline--compact .process-step__answer{padding:0 18px 24px}
#como-trabajo .process-timeline--compact .process-step__answer p{text-align:left;hyphens:none;line-height:1.75;margin:0;max-width:none}
@media(max-width:1100px){#como-trabajo .process-timeline--compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 0}#como-trabajo .process-timeline--compact .process-step:nth-child(odd){border-left:0}}
@media(max-width:600px){#como-trabajo .process-timeline--compact{grid-template-columns:1fr;gap:18px}#como-trabajo .process-timeline--compact .process-step{border-left:0;border-top:1px solid var(--line)}#como-trabajo .process-timeline--compact .process-step summary{padding:18px 0 22px}#como-trabajo .process-timeline--compact .process-step__answer{padding:0 0 24px}}
#tu-libro .book-index>.mini-audio{width:100%;max-width:none;margin:28px 0 32px}
#tu-libro .book-index__pages{padding-top:0}
#tu-libro .book-index__page .service-row__copy{width:100%;max-width:none;text-align:left;hyphens:none;line-height:1.65}
#tu-libro .book-index__page .service-row__media{margin-top:28px;margin-bottom:0}
@media(max-width:760px){#tu-libro .book-index__page h3{order:0}#tu-libro .book-index__page .service-row__copy{order:1;margin:0}#tu-libro .book-index__page .service-row__media{order:2;margin-top:24px;margin-bottom:0}}
#contacto .chapter__body>h2+.mini-audio{width:100%;max-width:none;margin-top:28px;margin-bottom:30px}
#hero .communication-audio{margin-top:32px}#hero .communication-audio .shared-audio{border-top:0;padding-top:0}

/* Lengüeta más visible y destinos en dos líneas, petición de Alicia. */
.edge-index.edge-index--video .edge-index__toggle,.edge-index.edge-index--video .edge-index__toggle:hover{width:68px;height:48px;padding-left:18px;padding-right:12px;background:linear-gradient(110deg,#3b4953,#587d98);box-shadow:0 3px 18px rgba(59,73,83,.32)}
.edge-index.edge-index--video.is-open .edge-index__toggle{width:112px}
.edge-index--video .edge-index__panel{width:min(250px,calc(100vw - 24px));padding:60px 20px 22px}
.edge-index__panel a>span:last-child{white-space:pre-line;font-size:12px;line-height:1.5}
@keyframes menu-invitation-arrow{0%,100%{transform:translateX(0)}45%,60%{transform:translateX(5px)}}
@keyframes menu-invitation-halo{0%,100%{box-shadow:0 3px 14px rgba(59,73,83,.26),0 0 0 0 rgba(88,125,152,0)}50%{box-shadow:0 4px 22px rgba(59,73,83,.4),0 0 0 7px rgba(88,125,152,.17)}}
@media(prefers-reduced-motion:no-preference){.edge-index.edge-index--video:not(.is-open) .edge-index__toggle{animation:menu-invitation-halo 3.6s ease-in-out infinite}.edge-index.edge-index--video:not(.is-open) .edge-index__toggle>span:first-child{animation:menu-invitation-arrow 3.6s ease-in-out infinite}}
@media(prefers-reduced-motion:reduce){.edge-index .edge-index__toggle,.edge-index .edge-index__toggle>span:first-child{animation:none!important}}

/* Controles visibles y cómodos de pulsar en móvil y tableta. */
.compact-controls{display:flex!important;visibility:visible!important;opacity:1!important;position:fixed;right:max(12px,env(safe-area-inset-right));bottom:calc(14px + env(safe-area-inset-bottom));z-index:1100;gap:8px;transform:none;pointer-events:auto}
.compact-controls__button{width:46px;height:46px;min-width:46px;min-height:46px;border-radius:50%;color:#3b4953;pointer-events:auto}
.compact-controls__button::before{width:38px;height:38px;border:1px solid rgba(59,73,83,.42);background:rgba(255,255,255,.97);box-shadow:0 2px 8px rgba(30,45,60,.12)}
.compact-controls__button svg{width:18px;height:18px;stroke-width:1.6}
@media(max-width:1100px){.compact-controls{right:max(8px,env(safe-area-inset-right));bottom:calc(12px + env(safe-area-inset-bottom));gap:6px}.compact-controls__button{width:46px;height:46px}.compact-controls__button::before{width:38px;height:38px}.compact-controls__button svg{width:17px;height:17px}}
@media print{.compact-controls{display:none!important}}
