/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* ==========================================================================
   0. STICKY HEADER & 120PX SCROLL TRANSITION
   ========================================================================== */
#brx-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100%;
}

#brxe-ctq64y {
  transition: background-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.45s ease,
              box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

#brxe-ljn7kb {
  transition: min-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              padding 0.45s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

#brxe-1qy5u7 {
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

#brxe-3xq0pf,
#brxe-ctq64y .nav-link,
#brxe-75wny6,
#brxe-mobtgl .brxa-wrap {
  transition: color 0.4s ease,
              background-color 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              transform 0.35s ease !important;
}

/* Scrolled State (> 120px) */
#brx-header.is-scrolled #brxe-ctq64y,
#brxe-ctq64y.is-scrolled {
  background-color: rgba(45, 39, 33, 0.94) !important;
  border-bottom-color: rgba(189, 152, 135, 0.28) !important;
  box-shadow: 0 12px 32px rgba(36, 30, 25, 0.22) !important;
}

#brx-header.is-scrolled #brxe-ljn7kb,
#brxe-ctq64y.is-scrolled #brxe-ljn7kb {
  min-height: 70px !important;
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
}

#brx-header.is-scrolled #brxe-1qy5u7,
#brxe-ctq64y.is-scrolled #brxe-1qy5u7 {
  width: 45px !important;
  height: 45px !important;
}

#brx-header.is-scrolled #brxe-3xq0pf,
#brxe-ctq64y.is-scrolled #brxe-3xq0pf {
  color: var(--c-marfil) !important;
}

#brx-header.is-scrolled #brxe-ctq64y .nav-link,
#brxe-ctq64y.is-scrolled .nav-link {
  color: var(--c-arena) !important;
}

#brx-header.is-scrolled #brxe-ctq64y .nav-link:hover,
#brxe-ctq64y.is-scrolled .nav-link:hover {
  color: var(--c-marfil) !important;
}

#brx-header.is-scrolled #brxe-ctq64y .nav-link::after,
#brxe-ctq64y.is-scrolled .nav-link::after {
  background-color: var(--c-rosa-tierra) !important;
}

#brx-header.is-scrolled #brxe-75wny6,
#brxe-ctq64y.is-scrolled #brxe-75wny6 {
  background-color: var(--c-marfil) !important;
  color: #2D2721 !important;
  border-color: var(--c-arena) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

#brx-header.is-scrolled #brxe-75wny6:hover,
#brxe-ctq64y.is-scrolled #brxe-75wny6:hover {
  background-color: var(--c-arena) !important;
  color: #2D2721 !important;
  border-color: var(--c-rosa-tierra) !important;
  transform: translateY(-2px);
}

#brx-header.is-scrolled #brxe-mobtgl .brxa-wrap,
#brxe-ctq64y.is-scrolled #brxe-mobtgl .brxa-wrap {
  color: var(--c-marfil) !important;
}

/* ==========================================================================
   1. GLOBAL HEADING LINE-HEIGHT & FLEX WIDTH REFINEMENT
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.brxe-heading,
.font-serif.italic {
  line-height: 1.15;
}

.brxe-heading {
  width: 100%;
}

h1, .brxe-heading[data-tag="h1"], h1.brxe-heading {
  line-height: 1.1;
}

h2, .brxe-heading[data-tag="h2"], h2.brxe-heading {
  line-height: 1.15;
}

h3, .brxe-heading[data-tag="h3"], h3.brxe-heading {
  line-height: 1.18;
}

h4, .brxe-heading[data-tag="h4"], h4.brxe-heading {
  line-height: 1.22;
}

h5, .brxe-heading[data-tag="h5"], h5.brxe-heading {
  line-height: 1.25;
}

/* ==========================================================================
   2. MOBILE VERSION (<= 767px): ALL TEXT, HEADINGS & BUTTONS CENTERED
   ========================================================================== */
@media (max-width: 767px) {
  /* Headings & Headings line-height on mobile */
  h1, h2, h3, h4, h5, h6,
  .brxe-heading,
  .font-serif.italic {
    text-align: center !important;
    line-height: 1.15 !important;
    width: 100% !important;
  }

  h1, h1.brxe-heading {
    line-height: 1.12 !important;
  }

  h2, h2.brxe-heading {
    line-height: 1.15 !important;
  }

  h3, h3.brxe-heading {
    line-height: 1.18 !important;
  }

  h4, h4.brxe-heading {
    line-height: 1.2 !important;
  }

  /* All Text, Paragraphs, Leads, Subtitles */
  p,
  .lead,
  .brxe-text-basic,
  .brxe-text,
  .sng-back-link {
    text-align: center !important;
  }

  /* Badges & Pills */
  .badge,
  .bd0001,
  span.badge {
    display: table !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    align-self: center !important;
  }

  /* All Buttons & Links styled as Buttons */
  .btn,
  .bricks-button,
  .brxe-button,
  button[type="submit"],
  .submit-button-wrapper button {
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Button Wrappers */
  .hero-buttons,
  #brxe-hracts,
  #brxe-pthbw2,
  .btn-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }

  /* Mobile Drawer Menu */
  #brxe-moboff .mobile-nav-link {
    text-align: center !important;
  }

  /* Hero Section */
  #brxe-hrcol1 {
    align-items: center !important;
    text-align: center !important;
  }

  /* Modalidades (Paths) */
  .path-card-body,
  #brxe-pthbd1,
  #brxe-pthbd2 {
    align-items: center !important;
    text-align: center !important;
  }

  /* Sobre Mí (Sección 3) */
  #brxe-abtcnt,
  #brxe-abtquo,
  .about-quote {
    align-items: center !important;
    text-align: center !important;
  }

  /* Sesiones Individuales */
  .pillar-card,
  #brxe-sesint,
  #brxe-sescta {
    align-items: center !important;
    text-align: center !important;
  }
  .pillar-num {
    width: 46px !important;
    height: 46px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Encuentros Presenciales */
  #brxe-encchp {
    justify-content: center !important;
  }
  .event-card {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .event-card .btn {
    margin: 0 auto !important;
  }
  #brxe-encmwr {
    text-align: center !important;
  }
  #brxe-encmbt {
    margin: 0 auto !important;
  }

  /* Testimonios */
  .video-card-body {
    align-items: center !important;
    text-align: center !important;
  }

  /* Marco de Cuidado */
  .clarity-box,
  #brxe-clrcly,
  #brxe-clrcln {
    align-items: center !important;
    text-align: center !important;
  }

  /* Contacto & Reservas */
  #contacto #brxe-ptz6re {
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  #contacto .badge {
    margin: 0 auto 1rem auto !important;
  }
  #contacto .whatsapp-card,
  #brxe-saipoi {
    align-items: center !important;
    text-align: center !important;
  }
  #contacto .contact-form-card,
  #brxe-0ozh29 {
    align-items: center !important;
    text-align: center !important;
  }
  #brxe-9qqni3 label {
    text-align: center !important;
    display: block !important;
  }
  #brxe-9qqni3 .options-wrapper {
    justify-content: center !important;
  }
  #brxe-9qqni3 .submit-button-wrapper {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }

  /* Footer */
  #brxe-rom0qc #brxe-pf1197,
  #brxe-rom0qc #brxe-mmpy8f,
  #brxe-rom0qc #brxe-sxrtq0 {
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  #brxe-rom0qc #brxe-vawl13 {
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
  }
  #brxe-rom0qc #brxe-wfty20,
  #brxe-rom0qc #brxe-ywp260 {
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  #brxe-rom0qc .footer-link {
    text-align: center !important;
  }
  #brxe-rom0qc #brxe-fd2796 {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  /* Single Workshop Template */
  #brxe-sngbck {
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
  #brxe-sngbck .sng-back-link {
    justify-content: center !important;
    text-align: center !important;
  }
  #brxe-sngbnr {
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
  }
  #brxe-sngcol {
    text-align: center !important;
  }
  #brxe-sngcol h3 {
    text-align: center !important;
    line-height: 1.18 !important;
  }
  #brxe-sngcol p,
  #brxe-sngcol p.lead {
    text-align: center !important;
  }
  #brxe-sngcol ul {
    text-align: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto 1.5rem auto !important;
  }
  #brxe-sngcol li {
    text-align: center !important;
    margin-bottom: 0.75rem !important;
  }
  #brxe-sngsid {
    align-items: center !important;
    text-align: center !important;
  }
  #brxe-sngshd {
    text-align: center !important;
    line-height: 1.18 !important;
  }
  #brxe-sngdtb {
    margin: 0 auto 1.5rem auto !important;
    justify-content: center !important;
    text-align: center !important;
  }
  #brxe-snglst {
    align-items: center !important;
    text-align: center !important;
  }
  #brxe-sngli1, #brxe-sngli2, #brxe-sngli3 {
    text-align: center !important;
  }
  #brxe-sngwab {
    margin: 0 auto 0.85rem auto !important;
    text-align: center !important;
    justify-content: center !important;
  }
  #brxe-sngcfb {
    margin: 0 auto !important;
    text-align: center !important;
    justify-content: center !important;
  }
  #brxe-sngpnv {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.15rem !important;
  }
  #brxe-sngpnv a,
  #brxe-sngpnv a.prev-post,
  #brxe-sngpnv a.next-post {
    justify-content: center !important;
    text-align: center !important;
    padding: 1.35rem 1.4rem !important;
  }
  #brxe-sngpnv .content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  #brxe-sngpnv .label,
  #brxe-sngpnv .title {
    text-align: center !important;
    line-height: 1.18 !important;
    width: 100% !important;
  }
}