:root {
  --fashionteca-accent: #998484;
  --fashionteca-dark: #111111;
  --fashionteca-content-width: 1280px;
  --fashionteca-section-title-size: clamp(38px, 4vw, 58px);
}

.ft-structure-page {
  width: 88%;
  max-width: var(--fashionteca-content-width);
  margin: 0 auto;
  padding: 72px 0 90px;
  color: #222;
  font-family: Abel, Helvetica, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.55;
}

/*
 * El H1 automático de Divi queda fuera de .ft-structure-page. Como esta hoja
 * solo se carga en las portadas estructurales de FASHIONTECA, podemos unificar
 * aquí todos sus encabezados sin modificar los títulos almacenados ni el SEO.
 */
body.page #left-area > article > h1.entry-title,
body.page #left-area > article > h1.entry-title.main_title,
body.page article.page > h1.entry-title,
.ft-structure-page h1,
.ft-structure-page h2,
.ft-structure-page h3,
.ft-structure-page h4 {
  text-transform: uppercase;
}

/*
 * Un único H1 para todas las portadas estructurales. La presencia de H2 u
 * otros bloques posteriores no puede alterar la jerarquía del título.
 */
body.page #left-area > article > h1.entry-title,
body.page #left-area > article > h1.entry-title.main_title,
body.page article.page > h1.entry-title,
.ft-structure-title {
  color: #111;
  font-family: Oswald, Helvetica, Arial, sans-serif;
  font-size: var(--fashionteca-section-title-size);
  font-weight: 500;
  line-height: 1.05;
  text-transform: uppercase;
}

/*
 * En las portadas sin directorio, Divi imprime el H1 fuera del bloque de
 * FASHIONTECA. Se le aplica exactamente el mismo ancho del 88 % y el mismo
 * centrado para que arranque en el eje del lema, la introducción y las tarjetas.
 */
body.page:not(.fashionteca-typology-directory-page) #left-area > article > h1.entry-title,
body.page:not(.fashionteca-typology-directory-page) #left-area > article > h1.entry-title.main_title {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
}

/*
 * Las portadas sencillas no necesitan la columna lateral vacía de Divi. El
 * contenedor pasa al ancho editorial de la cabecera: 88 % con máximo 1280 px,
 * equivalente al recorrido visual entre el logotipo y la hamburguesa.
 */
body.page:not(.fashionteca-typology-directory-page) #main-content > .container {
  width: 88% !important;
  max-width: var(--fashionteca-content-width) !important;
}

body.page:not(.fashionteca-typology-directory-page) #main-content > .container::before {
  display: none !important;
  content: none !important;
}

body.page:not(.fashionteca-typology-directory-page) #main-content #left-area {
  float: none !important;
  width: 100% !important;
  padding-right: 0 !important;
}

body.page:not(.fashionteca-typology-directory-page) #main-content #sidebar {
  display: none !important;
}

/* Evita el salto vertical excesivo entre ese H1 y el contenido de la portada. */
body.page:not(.fashionteca-typology-directory-page) .ft-structure-page {
  width: 100%;
  max-width: none;
  padding-top: 42px;
}

.ft-structure-kicker {
  margin: 0 0 18px;
  color: var(--fashionteca-accent);
  font-family: Oswald, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.ft-structure-title {
  margin: 0 0 18px;
  color: #111;
  font-family: Oswald, Helvetica, Arial, sans-serif;
  font-size: var(--fashionteca-section-title-size);
  font-weight: 500;
  line-height: 1.05;
  text-transform: uppercase;
}

.ft-structure-intro {
  max-width: 920px;
  margin: 0 0 30px;
  font-size: 24px;
  line-height: 1.35;
}

.ft-development-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: baseline;
  margin: 30px 0 46px;
  padding: 18px 22px;
  border-left: 5px solid var(--fashionteca-accent);
  background: var(--fashionteca-dark);
  color: #fff;
}

.ft-development-note strong,
.ft-structure-page h2 {
  font-family: Oswald, Helvetica, Arial, sans-serif;
}

.ft-development-note strong {
  color: #b7a0a0;
  letter-spacing: .7px;
}

.ft-structure-page h2 {
  margin: 42px 0 18px;
  color: #111;
  font-size: 30px;
  line-height: 1.2;
}

.ft-structure-list {
  columns: 2;
  column-gap: 50px;
  padding-left: 1.2em;
}

.ft-structure-list li {
  break-inside: avoid;
  margin: 0 0 9px;
}

.ft-structure-subsections {
  margin-top: 48px;
}

.ft-structure-subsections ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none !important;
}

.ft-structure-subsections li {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.ft-structure-subsections li::marker,
.ft-structure-subsections li::before {
  display: none !important;
  content: none !important;
}

.ft-structure-subsections a {
  display: flex;
  height: 100%;
  min-height: 54px;
  align-items: center;
  padding: 12px 14px;
  border: 2px solid #cfc0c0;
  color: #111;
  font-family: Oswald, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.25;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .2s ease;
}

.ft-structure-subsections a:hover,
.ft-structure-subsections a:focus-visible {
  border-color: var(--fashionteca-accent);
  background: var(--fashionteca-accent);
  color: #111;
  transform: translateY(-2px);
}

.ft-structure-connections {
  margin-top: 48px;
  padding-top: 6px;
  border-top: 1px solid #e6dede;
}

.ft-structure-connections ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none !important;
}

.ft-structure-connections-intro {
  margin: -8px 0 20px;
  color: #4f4848;
  font-family: Abel, Helvetica, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.45;
}

.ft-structure-connections li {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.ft-structure-connections li::marker,
.ft-structure-connections li::before {
  display: none !important;
  content: none !important;
}

.ft-structure-connections a {
  display: flex;
  height: 100%;
  min-height: 54px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--fashionteca-accent);
  color: #111;
  font-family: Oswald, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.25;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, transform .2s ease;
}

.ft-structure-connections .ft-external-mark {
  margin-left: auto;
  padding-left: 10px;
  font-size: 18px;
  line-height: 1;
}

.ft-structure-connections a:hover,
.ft-structure-connections a:focus-visible {
  background: var(--fashionteca-accent);
  color: #111;
  transform: translateY(-2px);
}

/* Navegación compacta situada antes del directorio general de MODA NUPCIAL. */
.ft-structure-subsections--compact {
  margin: 26px 0 30px;
}

.ft-structure-subsections--compact h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.ft-structure-subsections--compact ul {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ft-structure-subsections--compact a {
  display: flex;
  min-height: 54px;
  align-items: center;
  padding: 12px 14px;
  font-size: 15px;
}

.ft-all-nupcial-title {
  margin: 34px 0 0 !important;
  font-size: 26px !important;
}

@media (max-width: 767px) {
  .ft-structure-page {
    width: 88%;
    padding: 50px 0 70px;
    font-size: 18px;
  }
  .ft-structure-intro {
    font-size: 21px;
  }
  .ft-structure-list {
    columns: 1;
  }
  .ft-structure-subsections ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .ft-structure-connections ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .ft-structure-connections a {
    min-height: 52px;
    padding: 10px 9px;
    font-size: 14px;
  }
  .ft-structure-subsections a {
    min-height: 52px;
    padding: 10px 9px;
    font-size: 14px;
  }
  .ft-structure-subsections--compact ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .ft-structure-subsections--compact a {
    min-height: 52px;
    padding: 10px 9px;
    font-size: 14px;
  }
  body.page:not(.fashionteca-typology-directory-page) .ft-structure-page {
    padding-top: 32px;
  }
}
