/* ==========================================================================
   Página "El estudio"
   Ritmo propio, distinto al de las páginas de servicio: banda oscura a
   sangre, hoja crema montada encima, tira partida a todo el ancho y lista
   numerada. Comparte tipografía, colores y componentes con el resto.
   ========================================================================== */

/* ---------- 1 · Banda oscura ---------- */
/* La miga aportaba el aire que separaba del menú fijo; al quitarla hay que
   declararlo aquí, con especificidad por encima de la regla general. */
.est-page main section.est-cover{padding-top:calc(104px + clamp(2.2rem,4vw,3.6rem))}
.est-cover{
  position:relative;overflow:hidden;isolation:isolate;
  background:#16120E;color:#fff;
  padding:calc(104px + clamp(3.5rem,7vw,6rem)) 0 clamp(7rem,12vw,11rem);
}
.est-cover__bg{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.est-cover__bg i{
  position:absolute;display:block;border-radius:50%;
  filter:blur(110px);opacity:.5;
}
.est-cover__bg i:nth-child(1){width:46vw;height:46vw;left:-8vw;top:-14vw;background:#e36539}
.est-cover__bg i:nth-child(2){width:38vw;height:38vw;right:-6vw;top:2vw;background:#7d9fe4;opacity:.32}
.est-cover__bg i:nth-child(3){width:34vw;height:34vw;left:38vw;bottom:-18vw;background:#c9962e;opacity:.28}

.est-cover__k{
  display:block;font-size:.75rem;font-weight:500;letter-spacing:.12em;
  text-transform:uppercase;color:rgba(255,255,255,.62);
}
.est-cover h1{
  margin:1.4rem 0 0;color:#fff;
  font-size:clamp(2.9rem,7.4vw,6.4rem);font-weight:500;
  letter-spacing:-.055em;line-height:1;
}
.est-dot{color:#e36539}
.est-cover__p{
  margin:1.8rem 0 0;max-width:46ch;
  font-size:clamp(1rem,1.35vw,1.15rem);line-height:1.7;color:rgba(255,255,255,.74);
}
.est-cover__meta{
  display:flex;flex-wrap:wrap;gap:.6rem 2.2rem;margin-top:2.4rem;
  padding-top:1.3rem;border-top:1px solid rgba(255,255,255,.18);
  font-size:.8125rem;color:rgba(255,255,255,.6);
}

/* ---------- 2 · Hoja crema montada encima ---------- */
.est-sheet{
  position:relative;z-index:2;
  margin-top:clamp(-6.5rem,-7vw,-4.5rem);
  background:var(--paper);
  border-radius:clamp(20px,3vw,34px) clamp(20px,3vw,34px) 0 0;
  padding-top:clamp(3.5rem,6vw,5.5rem);
}

/* ---------- Intro a tres columnas ---------- */
.est-triple{padding-bottom:clamp(3rem,5vw,4.5rem)}
.est-center{display:block;text-align:center}
.est-lead{
  margin:1.4rem auto 0;max-width:26ch;text-align:center;
  font-size:clamp(1.7rem,3.1vw,2.6rem);line-height:1.18;letter-spacing:-.04em;
}
.est-cols{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:clamp(1.6rem,3vw,3rem);margin-top:clamp(2.6rem,5vw,4rem);
  text-align:center;
}
.est-cols article{display:flex;flex-direction:column;align-items:center}
.est-cols__ic{
  width:46px;height:46px;display:flex;align-items:center;justify-content:center;
  color:var(--ink);
}
.est-cols__ic svg{
  width:26px;height:26px;fill:none;stroke:currentColor;
  stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;
}
.est-cols h3{margin:.9rem 0 0;font-size:1.05rem;letter-spacing:-.02em}
.est-cols p{margin:.7rem 0 0;color:var(--gray);font-size:.9375rem;line-height:1.7;max-width:32ch}
.est-cols__btn{
  margin-top:1.4rem;display:inline-flex;align-items:center;
  font-size:.6875rem;font-weight:600;letter-spacing:.11em;text-transform:uppercase;
  color:var(--ink);text-decoration:none;
  border:1px solid rgba(27,24,21,.25);border-radius:999px;padding:.7rem 1.4rem;
  transition:background .35s var(--ease),color .35s var(--ease),border-color .35s var(--ease);
}
.est-cols__btn:hover{background:var(--ink);border-color:var(--ink);color:#fff}

/* ---------- 3 · Historia con desplegables ---------- */
.est-story{padding:clamp(3.5rem,6vw,6rem) 0 clamp(4rem,7vw,7rem)}
.est-story__grid{
  display:grid;grid-template-columns:1fr 1fr;
  gap:clamp(2.5rem,5vw,5rem);align-items:center;
}
.est-story__p{margin:1.4rem 0 0;color:var(--gray);font-size:1rem;line-height:1.8;max-width:42ch}
.est-acc{margin-top:2rem;border-top:1px solid var(--home-line)}
.est-story__media{margin:0;position:relative}
.est-story__media img{
  width:100%;height:auto;display:block;
  border-radius:14px;aspect-ratio:4/5;object-fit:cover;
}
.est-story__media figcaption{
  margin-top:.9rem;font-size:.8125rem;color:var(--gray);
}

/* ---------- 4 · Banda partida a sangre ---------- */
/* Sin el relleno vertical que .web-service-page main section pone a todas las
   secciones: aquí dejaba una franja crema entre la banda oscura y el blanco
   de "Quiénes somos". La banda va a sangre y sus columnas ya llevan su aire. */
.est-page main section.est-split{padding:0}
.est-split{
  position:relative;display:grid;grid-template-columns:1fr 1fr;
  background:var(--paper);
}
.est-split__media{position:relative;min-height:clamp(340px,42vw,560px)}
.est-split__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.est-split__copy{
  background:#16120E;color:#fff;
  padding:clamp(2.8rem,5vw,5rem) clamp(1.5rem,4vw,4.5rem);
  display:flex;flex-direction:column;justify-content:center;
}
.est-split__copy .kicker{color:rgba(255,255,255,.62)}
.est-split__copy .kicker::before{display:none}
.est-split__copy h2{
  color:#fff;margin:1.2rem 0 0;
  font-size:clamp(1.9rem,3.4vw,3.1rem);line-height:1.1;letter-spacing:-.045em;font-weight:500;
}
.est-split__copy p{margin:1.4rem 0 0;color:rgba(255,255,255,.72);font-size:1rem;line-height:1.8;max-width:44ch}
.est-split__ctas{display:flex;flex-wrap:wrap;gap:.8rem 1.6rem;align-items:center;margin-top:2.2rem}
.est-split__copy .web-button{background:#fff;color:#16120E;border-color:#fff}
.est-split__copy .web-button:hover{background:rgba(255,255,255,.85)}
.est-split__copy .web-link{color:#fff;border-bottom-color:rgba(255,255,255,.4)}

/* ---------- 5 · Los dos socios ---------- */
/* Mismo fondo que "Cómo entendemos el trabajo": el crema de la página */
.est-duo{padding:clamp(5rem,8vw,8rem) 0 clamp(3.5rem,6vw,5.5rem)}
.est-people{display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(1rem,2vw,1.5rem)}
.est-person{
  display:flex;flex-direction:column;
  border:1px solid rgba(27,24,21,.13);border-radius:14px;
  padding:clamp(1.6rem,2.6vw,2.3rem);
  background:linear-gradient(158deg,rgba(255,255,255,.72),rgba(255,255,255,.3) 62%);
}
.est-person__mono{
  width:64px;height:64px;border-radius:18px;
  display:flex;align-items:center;justify-content:center;
  font-size:1.9rem;font-weight:500;letter-spacing:-.05em;
  background:var(--ink);color:#fff;margin-bottom:1.7rem;
}
.est-person--alt .est-person__mono{background:#e36539}
.est-person h3{margin:0;font-size:clamp(1.5rem,2.4vw,2rem);letter-spacing:-.045em;line-height:1.1}
.est-person__role{
  display:block;margin-top:.5rem;
  font-size:.75rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#8c8279;
}
.est-person p{margin:1.2rem 0 0;color:var(--gray);font-size:.9375rem;line-height:1.75}
.est-person__list{
  list-style:none;margin:1.5rem 0 0;padding:1.3rem 0 0;
  border-top:1px solid rgba(27,24,21,.13);
  display:flex;flex-wrap:wrap;gap:.4rem .9rem;
}
.est-person__list li{font-size:.8125rem;color:#6f675f}
.est-person__list li+li::before{content:"·";margin-right:.9rem;color:rgba(27,24,21,.32)}

/* ---------- 6 · Reglas en lista ---------- */
.est-rules{padding:clamp(3.5rem,6vw,5.5rem) 0}
.est-list{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:1fr 1fr;
  column-gap:clamp(2.5rem,5vw,5rem);
  border-top:1px solid var(--home-line);
}
/* Dos columnas: el número ocupa la primera en toda la altura y el texto la
   segunda. Sin esto el párrafo caía en la columna estrecha del número. */
.est-list li{
  display:grid;grid-template-columns:3.2rem 1fr;
  column-gap:1.2rem;row-gap:0;
  padding:1.7rem 0;border-bottom:1px solid var(--home-line);
}
.est-list__n{grid-column:1;grid-row:1 / span 2}
.est-list h3,.est-list p{grid-column:2}
.est-list__n{
  font-size:.75rem;font-weight:600;letter-spacing:.1em;
  color:#a89d93;font-variant-numeric:tabular-nums;padding-top:.35rem;
}
.est-list h3{margin:0;font-size:1.15rem;letter-spacing:-.03em;line-height:1.25}
.est-list p{margin:.55rem 0 0;color:var(--gray);font-size:.9375rem;line-height:1.7}

/* ---------- 7 · Trabajo en tira ---------- */
.est-work{padding:clamp(3rem,5vw,4.5rem) 0 clamp(4.5rem,7vw,7rem)}
.est-strip-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1rem,1.8vw,1.5rem)}
.est-strip-grid a{display:block;text-decoration:none;color:inherit}
.est-strip-grid img{
  width:100%;height:auto;display:block;aspect-ratio:4/5;object-fit:cover;
  border-radius:12px;transition:transform .6s var(--ease);
}
.est-strip-grid a:hover img{transform:scale(1.03)}
.est-strip-grid span{display:block;margin-top:1rem}
.est-strip-grid strong{display:block;font-size:1.05rem;font-weight:500;letter-spacing:-.025em}
.est-strip-grid small{display:block;margin-top:.25rem;font-size:.8125rem;color:var(--gray)}
.est-work__all{
  display:inline-flex;align-items:center;gap:1rem;margin-top:clamp(2rem,3.5vw,2.8rem);
  font-size:.875rem;font-weight:500;text-decoration:none;color:var(--ink);
  border-bottom:1px solid var(--home-line);padding-bottom:.35rem;
}
.est-work__all:hover{border-bottom-color:var(--ink)}

/* ---------- Adaptación ---------- */
@media (max-width:1000px){
  .est-story__grid{grid-template-columns:1fr;gap:2.5rem}
  .est-story__media img{aspect-ratio:16/10}
  .est-list{grid-template-columns:1fr}
}
@media (max-width:820px){
  .est-cols{grid-template-columns:1fr;gap:2.6rem}
  .est-people{grid-template-columns:1fr}
  .est-person__mono{width:56px;height:56px;font-size:1.6rem;margin-bottom:1.3rem}
  .est-split{grid-template-columns:1fr}
  .est-split__media{min-height:280px}
  .est-strip-grid{grid-template-columns:1fr;gap:2rem}
  .est-strip-grid img{aspect-ratio:16/10}
}
@media (max-width:560px){
  /* Especificidad por encima de .web-service-page main section, que si no
     dejaba la miga de navegación escondida detrás del menú fijo. */
  .est-page main section.est-cover{padding-top:calc(78px + 2.5rem)}
  .est-cover__meta{gap:.4rem 1.4rem}
  .est-sheet{margin-top:-3.5rem}
  .est-list li{grid-template-columns:2.4rem 1fr;gap:.9rem}
}
@media (prefers-reduced-motion:reduce){
  .est-strip-grid a:hover img{transform:none}
}
