/* =========================================================
   NOSOTROS (se usa solo en estudio.html)
   Las tarjetas reutilizan .obra-card: mismo borde fino y misma sombra al pasar el cursor
   ========================================================= */

/* ---------- Descripción general ---------- */
.descripcion { padding-top: 3rem; }
.descripcion-card { border: 1px solid var(--linea); border-radius: 6px; overflow: hidden; background: #fff; }
.descripcion-cab {
  padding: 1rem 1.5rem 1.1rem; text-align: center; color: #fff;
  background: var(--grad-logo);
}
.descripcion-cab h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.1; }
.descripcion-cab p { font-weight: 600; }
.descripcion-cuerpo { padding: 1.8rem 2rem; font-size: 1rem; line-height: 1.75; color: var(--tinta); }

/* ---------- Objetivos y Perspectiva ---------- */
.tarjetas {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.6rem; padding-top: 2.5rem; padding-bottom: 3rem;
}
.tarjeta { display: flex; flex-direction: column; }

/* Foto con el título encima */
.tarjeta-img {
  position: relative; height: 200px; padding: 1.2rem 1.5rem;
  display: flex; align-items: flex-end;
  background: var(--teal-900) center / cover no-repeat;
  color: #fff;
}
.tarjeta-img::before {                /* capa oscura para que se lea el título */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 28, 48, .15), rgba(10, 28, 48, .78));
}
.tarjeta-img h2 {
  position: relative;
  font-size: 1.5rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.tarjeta-cuerpo { padding: 1.6rem 1.5rem 1.9rem; font-size: .92rem; line-height: 1.7; color: var(--gris); }

/* ---------- Títulos de sección (barra oscura arriba) ---------- */
.cifras, .marcas { padding-top: 1rem; padding-bottom: 3rem; }
.sec-titulo {
  position: relative; padding-top: 1.1rem; margin-bottom: 1.8rem;
  font-size: 1.7rem; font-weight: 400; color: var(--teal-900);
}
.sec-titulo::before { content: ''; position: absolute; top: 0; left: 0; width: 72px; height: 6px; background: var(--teal-900); }
.sec-titulo strong { font-weight: 700; }

/* ---------- El estudio en cifras ---------- */
.cifras-lista { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; }
.cifras-lista li {
  width: 146px; height: 146px; padding: .5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  border: 3px solid var(--teal-900); border-radius: 50%; color: var(--teal-900);
}
.cifras-lista b { font-size: 2.3rem; font-weight: 700; line-height: 1.1; }
.cifras-lista li > span { font-size: .7rem; line-height: 1.3; color: var(--gris); }

/* ---------- Carrusel de marcas ---------- */
.carrusel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; }
.carrusel-pista {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.carrusel-pista::-webkit-scrollbar { display: none; }

.marca {
  flex: 0 0 25%; height: 110px; padding: 1rem 1.5rem;
  display: grid; place-items: center; scroll-snap-align: start;
}
.marca img {
  max-width: 100%; max-height: 60px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s;
}
.marca:hover img { filter: none; opacity: 1; }

.carrusel-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--teal-100); color: var(--teal-700);
  transition: background .3s, color .3s;
}
.carrusel-btn .icon { width: 1.3em; height: 1.3em; }
.carrusel-btn:hover { background: var(--teal-700); color: #fff; }

/* Puntos oscuros (el activo se alarga, igual que en la portada) */
.carrusel-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.carrusel-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: var(--teal-900); opacity: .3; transition: width .3s, opacity .3s;
}
.carrusel-dots button.activo { width: 22px; border-radius: 8px; opacity: 1; }

/* Con una sola página no hacen falta flechas ni puntos */
.carrusel--una .carrusel-btn, .carrusel--una + .carrusel-dots { display: none; }

@media (max-width: 900px) { .marca { flex-basis: 33.3333%; } }
@media (max-width: 600px) {
  .marca { flex-basis: 50%; }
  .cifras-lista { justify-content: center; }
  .cifras-lista li { width: 130px; height: 130px; }
}

/* Arreglo: la pista ocupa siempre la columna del medio, aunque se oculten las flechas */
.carrusel-prev { grid-column: 1; }
.carrusel-pista { grid-column: 2; min-width: 0; }
.carrusel-next { grid-column: 3; }
.carrusel--una { grid-template-columns: 1fr; }
.carrusel--una .carrusel-pista { grid-column: 1; }