/* ==========================================================================
   Auxiliar de la migracion a Astro. No reemplaza tgs.css: solo cubre lo que
   en WordPress hacia el contenedor del editor (entry-content).
   ========================================================================== */

/* --- Contenido de paginas ------------------------------------------------- */
.tgs-articulo {
  max-width: 820px;
}

.tgs-articulo > :first-child {
  margin-top: 0;
}

.tgs-articulo h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tgs-marino-2);
  margin: 0 0 20px;
}

.tgs-articulo h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.25;
  font-weight: 600;
  color: var(--tgs-marino-2);
  margin: 48px 0 16px;
}

.tgs-articulo h3 {
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 600;
  color: var(--tgs-marino-2);
  margin: 34px 0 12px;
}

.tgs-articulo p {
  font-size: 16.5px;
  line-height: 1.75;
  color: #4a5878;
  margin: 0 0 1.15em;
}

.tgs-articulo strong {
  color: var(--tgs-marino-2);
  font-weight: 600;
}

.tgs-articulo a {
  color: var(--tgs-azul);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.tgs-articulo a:hover {
  color: var(--tgs-marino-2);
}

.tgs-articulo ul,
.tgs-articulo ol {
  margin: 0 0 1.3em;
  padding-left: 22px;
}

.tgs-articulo li {
  font-size: 16.5px;
  line-height: 1.7;
  color: #4a5878;
  margin-bottom: 8px;
}

.tgs-articulo li::marker {
  color: var(--tgs-azul);
}

.tgs-articulo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  margin: 28px 0;
}

.tgs-articulo figure {
  margin: 32px 0;
}

.tgs-articulo figure img {
  margin: 0 0 10px;
}

.tgs-articulo figcaption {
  font-size: 13.5px;
  color: #6b7791;
  text-align: center;
}

.tgs-articulo blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--tgs-celeste);
  font-size: 17px;
  color: var(--tgs-marino-2);
}

.tgs-articulo hr {
  border: 0;
  border-top: 1px solid var(--tgs-borde);
  margin: 40px 0;
}

/* --- Cabecera de paginas interiores --------------------------------------- */
.tgs-banda {
  background: var(--tgs-marino);
  color: #fff;
  padding: 132px 0 56px;
}

.tgs-banda--foto {
  background-size: cover;
  background-position: center;
  position: relative;
}

.tgs-banda--foto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(11, 16, 38, 0.6), rgba(11, 16, 38, 0.85));
}

.tgs-banda > .tgs-wrap {
  position: relative;
}

.tgs-banda h1 {
  font-size: clamp(27px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
  max-width: 22ch;
}

.tgs-banda__lead {
  font-size: 16.5px;
  line-height: 1.7;
  color: #cfdcf2;
  max-width: 66ch;
  margin: 0;
}

.tgs-banda .tgs-eyebrow {
  color: var(--tgs-celeste) !important;
}

.tgs-migas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #93a5c6;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.tgs-migas a {
  color: #93a5c6;
  text-decoration: none;
}

.tgs-migas a:hover {
  color: #fff;
}

/* --- Proyectos: ficha y galeria ------------------------------------------ */
.tgs-obra-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  margin: 32px 0 8px;
}

.tgs-obra-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.tgs-obra-contenido {
  max-width: 820px;
}

.tgs-obra-contenido p {
  font-size: 16.5px;
  line-height: 1.75;
  color: #4a5878;
  margin: 0 0 1.1em;
}

.tgs-obra-contenido h2 {
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 600;
  color: var(--tgs-marino-2);
  margin: 36px 0 14px;
}

.tgs-galeria-titulo {
  margin-top: 56px !important;
}

.tgs-volver {
  font-size: 14px;
  color: var(--tgs-celeste) !important;
  text-decoration: none;
  margin-bottom: 12px;
  display: inline-block;
}

.tgs-volver:hover {
  color: #fff !important;
}

@media (max-width: 900px) {
  .tgs-obra-cols {
    grid-template-columns: 1fr;
  }

  .tgs-banda {
    padding: 104px 0 40px;
  }

  .tgs-articulo h2 {
    margin-top: 36px;
  }
}

/* --- Columnas que en WordPress venian del editor -------------------------- */
.tgs-columnas {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  margin: 32px 0;
  align-items: stretch;
}

.tgs-columna {
  flex: 1 1 260px;
  min-width: 0;
}

/* --- Formulario sin WordPress -------------------------------------------- */
.tgs-form__aviso {
  font-size: 15px;
  line-height: 1.6;
  padding: 16px 20px;
  border-radius: 12px;
  margin: 20px 0 0;
  text-align: center;
}

.tgs-form__aviso--ok {
  background: rgba(131, 177, 242, 0.18);
  color: #fff !important;
  border: 1px solid rgba(131, 177, 242, 0.5);
}

.tgs-form__aviso--error {
  background: rgba(255, 120, 120, 0.14);
  color: #ffd9d9 !important;
  border: 1px solid rgba(255, 120, 120, 0.45);
}

.tgs-form [aria-invalid="true"] {
  border-color: #ff8080 !important;
}