/* ===== fa-single-post-layout-clean.css ===== */
/* =========================================================
   ENTRADA INDIVIDUAL BLOG - FAUSTO ALFARO
   CSS COMPLETO LIMPIO
   Shortcode: [fa_single_post_layout]

   Sustituye cualquier CSS anterior de entradas individuales.
   ========================================================= */


/* =========================================================
   LIMPIEZA DIVI EN ENTRADAS
   ========================================================= */

body.single-post,
body.single-post #page-container,
body.single-post #et-main-area,
body.single-post #main-content,
body.single-post .et-l,
body.single-post .et-l--body,
body.single-post .et_builder_inner_content,
body.single-post .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.single-post #main-content > .container {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.single-post .et_pb_section:has(.fa-single-post-page),
body.single-post .et_pb_row:has(.fa-single-post-page),
body.single-post .et_pb_column:has(.fa-single-post-page),
body.single-post .et_pb_module:has(.fa-single-post-page),
body.single-post .et_pb_text:has(.fa-single-post-page),
body.single-post .et_pb_text_inner:has(.fa-single-post-page) {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}


/* =========================================================
   BASE
   ========================================================= */

.fa-single-post-page,
.fa-single-post-page * {
  box-sizing: border-box;
}

.fa-single-post-page {
  --fa-yellow: #e3aa00;
  --fa-yellow-light: #ffca08;
  --fa-black: #050505;
  --fa-white: #ffffff;
  --fa-soft: #f5f3ed;

  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: #050505;
}

.fa-single-post-wrap {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.fa-single-post-kicker {
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fa-yellow);
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.fa-single-post-kicker span {
  width: 38px;
  height: 2px;
  display: inline-block;
  background: var(--fa-yellow);
}


/* =========================================================
   HERO
   ========================================================= */

.fa-single-post-hero {
  width: 100%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 84% 10%, rgba(227,170,0,.20) 0 10%, transparent 34%),
    radial-gradient(circle at 6% 88%, rgba(255,255,255,.06) 0 7%, transparent 28%),
    linear-gradient(135deg, #050505 0%, #090909 50%, #111111 100%);
  color: #ffffff;
  padding: clamp(92px, 8vw, 136px) 0 clamp(76px, 7vw, 116px);
}

.fa-single-post-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(115deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.72) 48%, rgba(0,0,0,.32) 100%),
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.024) 0px,
      rgba(255,255,255,.024) 1px,
      transparent 1px,
      transparent 12px
    );
  pointer-events: none;
}

.fa-single-post-hero::after {
  content: "";
  position: absolute;
  right: -180px;
  top: -150px;
  width: 470px;
  height: 620px;
  z-index: -2;
  background: linear-gradient(135deg, rgba(227,170,0,.58), rgba(227,170,0,.06));
  clip-path: polygon(38% 0, 100% 0, 62% 100%, 0 100%);
  opacity: .48;
  pointer-events: none;
}

.fa-single-post-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .72fr);
  gap: clamp(42px, 5.6vw, 78px);
  align-items: center;
}

.fa-single-post-hero__content,
.fa-single-post-hero__visual {
  min-width: 0;
}

.fa-single-post-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 5vw, 76px);
  line-height: .92;
  font-weight: 950;
  font-style: italic;
  letter-spacing: -.058em;
  text-transform: uppercase;
  max-width: 880px;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  text-wrap: balance;
}

.fa-single-post-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fa-single-post-meta span {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.82);
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fa-single-post-hero__visual {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 0%, rgba(227,170,0,.18) 0 12%, transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.075) 0%, rgba(255,255,255,.028) 100%);
  border: 1px solid rgba(227,170,0,.26);
  box-shadow: 0 30px 78px rgba(0,0,0,.28);
}

.fa-single-post-hero__visual img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  display: block;
}

.fa-single-post-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.24), rgba(0,0,0,0));
  pointer-events: none;
}

.fa-single-post-placeholder {
  min-height: 430px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.fa-single-post-placeholder span {
  color: var(--fa-yellow);
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.fa-single-post-placeholder strong {
  margin-top: 12px;
  color: #ffffff;
  font-size: 44px;
  line-height: .95;
  font-weight: 950;
  font-style: italic;
  letter-spacing: -.05em;
  text-transform: uppercase;
}


/* =========================================================
   CONTENIDO
   ========================================================= */

.fa-single-post-content-section {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 7vw, 112px) 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(227,170,0,.12) 0 10%, transparent 32%),
    radial-gradient(circle at 92% 90%, rgba(5,5,5,.08) 0 10%, transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5f3ed 100%);
}

.fa-single-post-content-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(5,5,5,.027) 0px,
      rgba(5,5,5,.027) 1px,
      transparent 1px,
      transparent 13px
    );
  opacity: .62;
  pointer-events: none;
}

.fa-single-post-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(280px, 1fr);
  gap: clamp(34px, 4vw, 58px);
  align-items: start;
}

.fa-single-post-content {
  padding: clamp(26px, 3.4vw, 44px);
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(5,5,5,.09);
  box-shadow: 0 26px 68px rgba(0,0,0,.09);
  color: rgba(5,5,5,.78);
  font-size: 18px;
  line-height: 1.78;
  font-weight: 500;
}

.fa-single-post-content h2,
.fa-single-post-content h3,
.fa-single-post-content h4 {
  margin: 1.55em 0 .55em;
  color: #050505;
  font-weight: 950;
  font-style: italic;
  letter-spacing: -.04em;
  line-height: 1.05;
  text-transform: uppercase;
}

.fa-single-post-content h2 {
  font-size: clamp(30px, 3vw, 48px);
}

.fa-single-post-content h3 {
  font-size: clamp(24px, 2.2vw, 34px);
}

.fa-single-post-content p {
  margin: 0 0 1.25em;
}

.fa-single-post-content p:last-child {
  margin-bottom: 0;
}

.fa-single-post-content strong {
  color: #050505;
  font-weight: 900;
}

.fa-single-post-content a {
  color: #b68500 !important;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.fa-single-post-content ul,
.fa-single-post-content ol {
  margin: 0 0 1.25em 1.2em;
  padding: 0;
}

.fa-single-post-content li {
  margin-bottom: .55em;
}

.fa-single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 22px;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.fa-single-post-sidebar {
  position: sticky;
  top: 110px;
}

.fa-single-post-sidebar__card {
  padding: 30px 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 0%, rgba(227,170,0,.18) 0 12%, transparent 34%),
    linear-gradient(135deg, #050505 0%, #111111 100%);
  border: 1px solid rgba(227,170,0,.32);
  box-shadow: 0 28px 76px rgba(0,0,0,.20);
}

.fa-single-post-sidebar__card > span {
  display: block;
  margin-bottom: 12px;
  color: #e3aa00;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.fa-single-post-sidebar__card h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 2.3vw, 38px);
  line-height: 1;
  font-weight: 950;
  font-style: italic;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.fa-single-post-sidebar__card p {
  margin: 16px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
}

.fa-single-post-sidebar__card a {
  min-height: 54px;
  margin-top: 24px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ffca08 0%, #e3aa00 100%);
  color: #050505 !important;
  text-decoration: none !important;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}


/* =========================================================
   RELACIONADOS
   ========================================================= */

.fa-single-post-related {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 7vw, 112px) 0;
  background:
    radial-gradient(circle at 88% 14%, rgba(227,170,0,.18) 0 10%, transparent 34%),
    linear-gradient(135deg, #050505 0%, #090909 52%, #111111 100%);
  color: #ffffff;
}

.fa-single-post-related::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.024) 0px,
      rgba(255,255,255,.024) 1px,
      transparent 1px,
      transparent 12px
    );
  pointer-events: none;
}

.fa-single-post-section-head {
  max-width: 760px;
  margin-bottom: clamp(34px, 4.5vw, 56px);
}

.fa-single-post-section-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: .96;
  font-weight: 950;
  font-style: italic;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.fa-single-post-section-head h2 strong {
  color: #e3aa00;
  font-style: italic;
  font-weight: 950;
}

.fa-single-post-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.fa-single-post-related__card {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 92% 0%, rgba(227,170,0,.12) 0 12%, transparent 36%),
    linear-gradient(180deg, rgba(19,23,31,.96) 0%, rgba(10,12,17,.98) 100%);
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
}

.fa-single-post-related__image {
  height: 180px;
  display: block;
  overflow: hidden;
  background: #111;
}

.fa-single-post-related__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fa-single-post-related__content {
  padding: 24px 22px;
}

.fa-single-post-related__content h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(21px, 1.65vw, 28px);
  line-height: 1.04;
  font-weight: 950;
  font-style: italic;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.fa-single-post-related__content h3 a {
  color: inherit !important;
  text-decoration: none !important;
}

.fa-single-post-related__link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #e3aa00 !important;
  text-decoration: none !important;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1080px) {
  .fa-single-post-hero__inner,
  .fa-single-post-content-layout {
    grid-template-columns: 1fr;
  }

  .fa-single-post-hero__visual {
    max-width: 760px;
  }

  .fa-single-post-sidebar {
    position: static;
  }

  .fa-single-post-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .fa-single-post-wrap {
    width: min(100% - 30px, 1180px);
  }

  .fa-single-post-hero {
    padding: 78px 0 70px;
  }

  .fa-single-post-kicker {
    font-size: 10px;
    letter-spacing: .21em;
  }

  .fa-single-post-kicker span {
    width: 28px;
  }

  .fa-single-post-title {
    font-size: clamp(34px, 9vw, 48px);
    line-height: .96;
  }

  .fa-single-post-meta span {
    min-height: 38px;
    font-size: 11px;
  }

  .fa-single-post-hero__visual,
  .fa-single-post-hero__visual img,
  .fa-single-post-placeholder {
    min-height: 300px;
  }

  .fa-single-post-content-section,
  .fa-single-post-related {
    padding: 64px 0 70px;
  }

  .fa-single-post-content {
    padding: 24px 20px;
    border-radius: 22px;
    font-size: 16px;
    line-height: 1.68;
  }

  .fa-single-post-content h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .fa-single-post-content h3 {
    font-size: clamp(23px, 6.5vw, 31px);
  }

  .fa-single-post-sidebar__card {
    padding: 26px 22px;
    border-radius: 22px;
  }

  .fa-single-post-sidebar__card a {
    width: 100%;
  }

  .fa-single-post-related__grid {
    grid-template-columns: 1fr;
  }

  .fa-single-post-section-head h2 {
    font-size: clamp(32px, 9.5vw, 46px);
  }
}

@media (max-width: 420px) {
  .fa-single-post-wrap {
    width: min(100% - 24px, 1180px);
  }

  .fa-single-post-title {
    font-size: clamp(31px, 8.5vw, 40px);
  }
}
