/* =========================================================
   Anabel Waigandt & Asoc. — estilos agregados en la versión PHP
   (carrusel del equipo, bloque de enfoque, crédito del pie,
   estados del formulario y novedades vacías)
   ========================================================= */

:root { --azul-700: #3f6577; --pizarra-900: #1d2e38; }

/* ---------- Carrusel del equipo (inicio) ---------- */
@media (min-width: 901px) {
  .about__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: start; }
  /* El carrusel queda fijo mientras se recorre el texto del bloque */
  .about__grid > .tcar { position: sticky; top: max(calc(var(--header-h) + 1.5rem), calc((100vh + var(--header-h)) / 2 - 15rem)); }
}
.tcar { position: relative; display: grid; gap: 1.4rem; user-select: none; min-width: 0; container-type: inline-size; }
.tcar__stage {
  position: relative;
  /* El ancho de la foto se calcula sobre la columna (no la ventana) para que
     las fotos laterales nunca invadan el texto: el abanico completo ocupa ~2,7 × --w */
  --w: clamp(120px, 36cqi, 250px);
  height: calc(var(--w) * 1.25 + 4rem);
  perspective: 1200px;
  touch-action: pan-y;
  cursor: grab;
}
.tcar__stage:active { cursor: grabbing; }
.tcar__stage::before { /* forma de marca detrás de la principal */
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: calc(var(--w) * 1.5); height: calc(var(--w) * 1.25 + 3rem);
  translate: -50% -50%;
  background: var(--papel);
  border-radius: 140px 0 140px 0;
}
.tcar__item {
  --o: 0; --abs: 0;
  position: absolute;
  left: 50%; top: 50%;
  width: var(--w);
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: var(--gris-claro);
  box-shadow: 0 18px 40px -22px rgb(29 46 56 / .55);
  transform:
    translateX(calc(-50% + var(--o) * 52%))
    translateY(calc(-50% + var(--abs) * 3%))
    scale(calc(1 - var(--abs) * .17));
  z-index: calc(10 - var(--abs));
  opacity: calc(1 - var(--abs) * .32);
  filter: grayscale(calc(var(--abs) * .6)) brightness(calc(1 - var(--abs) * .08));
  transition: transform .9s var(--ease), opacity .7s var(--ease), filter .7s, box-shadow .7s;
  cursor: pointer;
}
.tcar__item.is-active { cursor: default; box-shadow: 0 28px 60px -24px rgb(29 46 56 / .7); }
.tcar__item.is-active::after { /* barra azul de marca */
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 4px;
  background: var(--azul);
}
.tcar__item.is-far { opacity: 0; pointer-events: none; }
.tcar__item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.tcar:not(.is-ready) .tcar__item:not(:first-child) { opacity: 0; }

.tcar__info { position: relative; min-height: 3.6rem; text-align: center; }
.tcar__caption {
  position: absolute; inset: 0;
  display: grid; justify-items: center; gap: .25rem;
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s, transform .6s var(--ease);
  pointer-events: none;
}
.tcar__caption.is-active { opacity: 1; transform: none; }
.tcar__caption strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--pizarra); }
.tcar__caption span { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--azul); }

.tcar__nav { display: flex; align-items: center; justify-content: center; gap: 1.2rem; }
.tcar__btn {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--gris-claro); border-radius: 50%;
  background: #fff; color: var(--pizarra);
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.tcar__btn:hover { background: var(--pizarra); border-color: var(--pizarra); color: #fff; }
.tcar__btn:active { transform: scale(.94); }
.tcar__btn .icon { width: 18px; height: 18px; }
.tcar__dots { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: center; }
.tcar__dot {
  width: 8px; height: 8px; padding: 0;
  border: 0; border-radius: 99px;
  background: var(--gris-claro);
  transition: width .5s var(--ease), background .3s;
}
.tcar__dot.is-active { width: 26px; background: var(--azul); }
.tcar.is-single .tcar__nav { display: none; }
.tcar :focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; }

@media (max-width: 900px) {
  .tcar { order: 2; }
  .tcar__stage { --w: clamp(130px, 44cqi, 230px); }
  .tcar { overflow-x: clip; }
}
@media (prefers-reduced-motion: reduce) {
  .tcar__item, .tcar__caption { transition: none; }
}

/* ---------- Nosotros: bloque de enfoque ---------- */
.enfoque { position: relative; overflow: hidden; }
.enfoque__head { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem clamp(2rem, 6vw, 6rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.enfoque__head .eyebrow, .enfoque__head .h2 { grid-column: 1; }
.enfoque__head .h2 { margin: 0; }
.enfoque__head .lead { grid-column: 2; grid-row: 1 / span 2; margin: 0; }

.enfoque__flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative;
  counter-reset: paso;
}
.enfoque__flow::before { /* línea que une los pasos */
  content: '';
  position: absolute; left: 34px; right: 25%; top: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--azul), var(--gris-claro));
}
.enfoque__step { position: relative; padding: 0 clamp(1rem, 2vw, 2rem) 0 0; }
.enfoque__step::after { /* flecha entre pasos */
  content: '';
  position: absolute; top: 30px; right: clamp(1rem, 2vw, 2rem);
  width: 9px; height: 9px;
  border-top: 1px solid var(--azul); border-right: 1px solid var(--azul);
  transform: rotate(45deg);
}
.enfoque__step:last-child::after { display: none; }
.enfoque__ic {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--gris-claro);
  color: var(--azul);
  transition: background .4s, color .4s, border-color .4s, transform .5s var(--ease);
}
.enfoque__ic svg { width: 28px; height: 28px; }
.enfoque__step:hover .enfoque__ic { background: var(--pizarra); border-color: var(--pizarra); color: #fff; transform: translateY(-4px); }
.enfoque__num {
  position: absolute; top: -.4rem; left: 54px; z-index: 2;
  font-size: .68rem; font-weight: 600; letter-spacing: .14em;
  color: #fff; background: var(--azul);
  padding: .2rem .45rem; border-radius: 99px;
}
.enfoque__title { font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 500; margin: 1.5rem 0 .6rem; color: var(--pizarra); }
.enfoque__step p { margin: 0; color: var(--gris); font-size: .98rem; line-height: 1.65; }

.enfoque__result {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem clamp(2rem, 5vw, 5rem); align-items: center;
  padding: clamp(2rem, 4vw, 3.4rem) clamp(1.6rem, 4vw, 3.6rem);
  background: var(--pizarra);
  color: #fff;
  border-radius: 0 0 0 120px;
  overflow: hidden;
}
.enfoque__result::before { /* monograma de fondo */
  content: '';
  position: absolute; right: -1rem; bottom: -1.5rem;
  width: 21rem; aspect-ratio: 366.1 / 184.6;
  background: rgb(255 255 255 / .05);
  -webkit-mask: url(/assets/img/isotipo-aw.svg) center / contain no-repeat;
  mask: url(/assets/img/isotipo-aw.svg) center / contain no-repeat;
  pointer-events: none;
}
.enfoque__kicker { margin: 0 0 .8rem; font-size: .7rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: #9cc3d3; }
.enfoque__quote { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.3; }
.enfoque__quote em { color: #9cc3d3; }
.enfoque__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; position: relative; }
.enfoque__chips li {
  padding: .75rem 1.2rem;
  border: 1px solid rgb(255 255 255 / .25);
  border-radius: 99px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: background .3s, border-color .3s;
}
.enfoque__chips li:hover { background: var(--azul); border-color: var(--azul); }

@media (max-width: 900px) {
  .enfoque__head { grid-template-columns: 1fr; }
  .enfoque__head .lead { grid-column: 1; grid-row: auto; }
  .enfoque__flow { grid-template-columns: 1fr 1fr; gap: 2.6rem 0; }
  .enfoque__flow::before, .enfoque__step::after { display: none; }
  .enfoque__result { grid-template-columns: 1fr; border-radius: 0 0 0 60px; }
}
@media (max-width: 560px) {
  .enfoque__flow { grid-template-columns: 1fr; }
  .enfoque__step { padding: 0 0 0 5.4rem; min-height: 68px; }
  .enfoque__ic { position: absolute; left: 0; top: 0; }
  .enfoque__num { left: 50px; }
  .enfoque__title { margin-top: .2rem; }
}

/* ---------- Pie: crédito BRO Manager ---------- */
.footer__bottom { align-items: center; }
.footer__credit {
  display: inline-flex; align-items: center; gap: .8rem;
  color: #8ba0aa;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  transition: color .3s;
}
.footer__credit img { display: block; width: 88px; height: auto; transition: transform .4s var(--ease), opacity .3s; opacity: .9; }
.footer__credit:hover { color: #fff; }
.footer__credit:hover img { transform: translateY(-2px); opacity: 1; }

/* ---------- Formulario de contacto ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.field [aria-invalid="true"] { border-color: #b4483c; }
.field [aria-invalid="true"] + label { color: #b4483c; }
.form__status.is-ok { color: #2f6b4f; font-weight: 500; }
.form__status.is-error { color: #b4483c; }
.form.is-sending .btn { opacity: .6; pointer-events: none; }
.form.is-sent .form__status::before { content: '✓ '; }

/* ---------- Novedades sin resultados ---------- */
.news-empty {
  margin: 1rem 0 0; padding: 2.4rem;
  text-align: center;
  border: 1px dashed var(--gris-claro);
  color: var(--gris);
  font-family: var(--serif); font-size: 1.25rem;
}
.news-empty[hidden] { display: none; }
[data-cat][hidden] { display: none !important; }

/* Pie: la columna de contacto es más ancha para que el email entre en una sola línea */
@media (min-width: 961px) {
  .footer__top { grid-template-columns: 1.25fr .8fr 1.15fr 1.8fr; gap: clamp(2rem, 3vw, 3rem); }
  .footer__top address a { overflow-wrap: normal; white-space: nowrap; }
}

/* ---------- Bloque de contacto (CTA): foto de fondo con capa y parallax ---------- */
.cta { isolation: isolate; background: var(--pizarra-900); }
.cta__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.cta__bg { position: absolute; left: 0; right: 0; top: -32%; bottom: -32%; display: block; will-change: transform; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cta__overlay { /* misma capa que el bloque principal de inicio */
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, #1d2e38e6, #1d2e38c4 38%, #2e46547a 68%, #3f657740),
    linear-gradient(0deg, rgb(29 46 56 / .55) 0%, transparent 35%);
}
.cta__overlay::after { content: ''; position: absolute; inset: 0; background: var(--azul); mix-blend-mode: color; opacity: .28; }
@media (max-width: 900px) {
  .cta__overlay { background: linear-gradient(180deg, #1d2e38d9, #1d2e38b0 55%, #2e465480); }
  .cta__bg img { object-position: 68% 30%; }
}

/* ---------- Nosotros: sin esquinas redondeadas en el resultado y la foto de la directora ---------- */
.enfoque__result { border-radius: 0 !important; }
.lp__photo .media-reveal { border-radius: 0; }

/* Nosotros, enfoque: los íconos y sus números no se recortan al terminar la animación de entrada */
.enfoque__flow > .enfoque__step.is-in { clip-path: none; }

/* Barra superior siempre fija y botón de contacto más compacto */
.header.is-hidden { transform: none; }
.nav__cta { padding: .62rem 1rem; gap: .55rem; font-size: .7rem; letter-spacing: .18em; }
.nav__cta .icon, .nav__cta svg { width: 14px; height: 14px; }

/* ---------- Nosotros, enfoque: pasos centrados (ícono, número, título y texto) ---------- */
@media (min-width: 561px) {
  .enfoque__step { padding: 0 clamp(.8rem, 1.6vw, 1.6rem); text-align: center; }
  .enfoque__ic { margin-inline: auto; }
  .enfoque__num { left: calc(50% + 20px); }
  .enfoque__step p { text-align: center !important; }
}
@media (min-width: 901px) {
  /* la línea va del centro del primer ícono al centro del último */
  .enfoque__flow::before { left: 12.5%; right: 12.5%; }
  /* flecha justo en el límite entre columnas */
  .enfoque__step::after { right: -5px; }
}

/* ---------- Textos justificados (no títulos) en todo el sitio ---------- */
main p, main blockquote, .prose li {
  text-align: justify;
  -webkit-hyphens: auto; hyphens: auto;
}
main :is(.eyebrow, .stat__num, .svc-row__n, .svc-index__label, .lp__role, .hv__years, .hv__lead,
  .enfoque__kicker, .enfoque__quote, .ahead__kicker, .asource, .news-empty, .form__status) {
  text-align: inherit;
  -webkit-hyphens: manual; hyphens: manual;
}

/* Encabezados de página: la bajada no va justificada */
main :is(.phero, .ahead) p { text-align: left; -webkit-hyphens: manual; hyphens: manual; }

/* Nosotros: nombre y rol centrados bajo cada foto del equipo */
.member { text-align: center; align-items: stretch; }
.member__name, .member__role { display: block; text-align: center; }
.member__more { justify-content: center; }

/* Monogramas de fondo: isotipo AW del logo (mismo color y trazo que antes) */
.phero__mono, .stats__mono { line-height: 0; }
.phero__mono svg, .stats__mono svg { display: block; width: 1.7em; height: auto; overflow: visible; }
.phero__mono path { fill: none; stroke: rgb(104 154 175 / .28); stroke-width: 1.5px; }
.stats__mono path { fill: none; stroke: rgb(104 154 175 / .18); stroke-width: 1px; }

/* Móvil: isotipo del encabezado chico, arriba a la derecha y sin tapar los textos */
@media (max-width: 760px) {
  .phero__mono { top: calc(var(--header-h) + .9rem); right: 1rem; font-size: clamp(4.6rem, 22vw, 7rem); transform: none !important; }
  .phero__mono path { stroke-width: 1px; }
}
