/*
 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
*/

/* --------- Menu ------------ */
.c-header--navbar {
  transition: padding-top 0.3s ease-in-out !important;
}

.c-header--navbar.is-scrolled {
  padding-top: var(--space-m) !important; 
}

/* --------- Logo Animación ------------ */
/* 1. Altura inicial (Pon aquí el número que tenías en el panel, ej: 186px) */
.c-logo--sticky img {
  height: 186px !important; /* El !important vence a Bricks */
  transition: height 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* 2. Tamaño encogido (Ej: que baje a 120px al hacer scroll) */
.c-header--navbar.is-scrolled .c-logo--sticky img {
  height: 120px !important;
}

/* Cuando hay scroll, ajustamos el 'top' de todo el bloque del logo */
.c-header--navbar.is-scrolled .c-logo--sticky {
  top: -10px !important; /* Pon aquí el número que lo deje centrado visualmente en la barra encogida */
}

/* --------- Logo ------------ */
/* Logo */
.c-logo--sticky {
  height: 186px !important;
  transition: height 0.3s ease !important;
}

.c-logo--sticky.logo-scrolled {
  top: 0 !important;
}

/* --------- Button Action Skew ------------ */
.brxe-button.c-btn-action--skew {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: skewX(-7deg) !important;
  background: none !important;
  padding: 12px 40px !important;
  border: none !important;
  border-radius: 0 !important;
  clip-path: none !important;
  transition: transform 0.2s, filter 0.2s !important;
  color: #ffffff !important;
  font-family: 'Arial Black', Arial, sans-serif !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

/* Borde: gradiente azul claro → azul oscuro */
.brxe-button.c-btn-action--skew::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #a8e4f8 0%, #004f7a 100%);
  clip-path: polygon(3% 0%, 100% 0%, 97% 100%, 0% 100%);
  z-index: -2;
}

/* Fondo azul interior */
.brxe-button.c-btn-action--skew::after {
  content: '';
  position: absolute;
  inset: 3px 4px;
  background: linear-gradient(160deg, #3cc5f0 0%, #0fa8dc 40%, #0087be 100%);
  clip-path: polygon(3% 0%, 100% 0%, 97% 100%, 0% 100%);
  z-index: -1;
}

.brxe-button.c-btn-action--skew:hover {
  filter: brightness(1.1);
}

/* --------- Button Action Orange ------------ */
.brxe-button.c-btn-action--orange {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  transform: skewX(-7deg) !important;
  background: linear-gradient(160deg, #f07848 0%, #e85520 50%, #d04010 100%) !important;
  padding: 14px 48px !important;
  border: none !important;
  border-radius: 10px !important;
  clip-path: none !important;
  transition: transform 0.2s, filter 0.2s !important;
  gap: 2px !important;
  line-height: 1 !important;
  color: #ffffff !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px !important;
  /* Sombra sólida con box-shadow */
  box-shadow: -8px 8px 0px 0px #AF3C15 !important;
}

/* Borde gradiente: claro arriba, oscuro abajo */
.brxe-button.c-btn-action--orange::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(180deg, #FF8961 0%, #AF3C15 100%);
  border-radius: 10px;
  z-index: -1;
}

/* Fondo naranja interior */
.brxe-button.c-btn-action--orange::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #f07848 0%, #e85520 50%, #d04010 100%);
  border-radius: 10px;
  z-index: -1;
}

/* Texto recto (contra-skew) */
.brxe-button.c-btn-action--orange * {
  position: relative !important;
  z-index: 1 !important;
  transform: skewX(7deg) !important;
}

/* Subtexto */
.brxe-button.c-btn-action--orange small {
  display: block !important;
  font-family: Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0.3px !important;
  color: rgba(255,255,255,0.92) !important;
  margin-top: 3px !important;
}

.brxe-button.c-btn-action--orange:hover {
  transform: skewX(-7deg) translateY(-2px) !important;
  filter: brightness(1.08);
}

.brxe-button.c-btn-action--orange:active {
  transform: skewX(-7deg) translate(-5px, 5px) !important;
  box-shadow: 0px 0px 0px 0px #AF3C15 !important;
}

/* --------- Button Action Blue ------------ */
.brxe-button.c-btn-action--blue {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  transform: skewX(-7deg) !important;
  background: linear-gradient(160deg, #3cc5f0 0%, #0fa8dc 50%, #0087be 100%) !important;
  padding: 14px 44px !important;
  border: none !important;
  border-radius: 10px !important;
  clip-path: none !important;
  transition: transform 0.2s, filter 0.2s !important;
  gap: 2px !important;
  line-height: 1 !important;
  color: #ffffff !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px !important;
  /* Sombra sólida — mismo color que borde inferior */
  box-shadow: -8px 8px 0px 0px #00527a !important;
}

/* Borde gradiente: azul claro arriba, se mezcla con sombra abajo */
.brxe-button.c-btn-action--blue::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: #fff;
  border-radius: 13px;
  z-index: -1;
}

/* Fondo azul interior */
.brxe-button.c-btn-action--blue::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #3cc5f0 0%, #0fa8dc 50%, #0087be 100%);
  border-radius: 10px;
  z-index: -1;
}

/* Texto recto (contra-skew) */
.brxe-button.c-btn-action--blue * {
  position: relative !important;
  z-index: 1 !important;
  transform: skewX(6deg) !important;
}

/* Subtexto */
.brxe-button.c-btn-action--blue small {
  display: block !important;
  font-family: Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0.3px !important;
  color: rgba(255,255,255,0.92) !important;
  margin-top: 3px !important;
}

.brxe-button.c-btn-action--blue:hover {
  transform: skewX(-7deg) translateY(-2px) !important;
  filter: brightness(1.08);
}

.brxe-button.c-btn-action--blue:active {
  transform: skewX(-7deg) translate(-5px, 5px) !important;
  box-shadow: 0px 0px 0px 0px #00527a !important;
}

/* --------- Text Shadow ------------ */
.c-text-shadow--orange {
  text-shadow: -1.23px 4.92px 0px #F26636 !important;
}

.c-text--skew-stroke {
  display: inline-block !important;
  -webkit-text-stroke: 6px #09A3D8 !important;
  paint-order: stroke fill !important;
}

.c-text--stroke-blue {
  display: inline-block !important;
  -webkit-text-stroke: 6px #09A3D8 !important;
  paint-order: stroke fill !important;
}

.c-text--stroke-black {
  display: inline-block !important;
  -webkit-text-stroke: 6px #000000 !important;
  paint-order: stroke fill !important;
}

/* --------- Responsive ------------ */
/* Tablet */
@media (max-width: 1024px) {
  .brxe-button.c-btn-action--orange,
  .brxe-button.c-btn-action--blue {
    font-size: 20px !important;
    padding: 14px 24px !important;
  }

  .brxe-button.c-btn-action--orange small,
  .brxe-button.c-btn-action--blue small {
    font-size: 12px !important;
  }
	
  .c-text--skew-stroke {
    -webkit-text-stroke: 4px #09A3D8 !important;
  }
	
  .c-text--stroke-blue {
    -webkit-text-stroke: 3px #09A3D8 !important;
  }

  .c-text--stroke-black {
    -webkit-text-stroke: 3px #000000 !important;
  }
}

/* Mobile */
@media (max-width: 768px){
	/* --------- Logo Animación ------------ */
  .brxe-button.c-btn-action--orange,
  .brxe-button.c-btn-action--blue {
    font-size: 18px !important;
    padding: 14px !important;
  }

  .c-logo--sticky img {
  	height: 126px !important; /* El !important vence a Bricks */
  }
	
  .c-header--navbar.is-scrolled .c-logo--sticky img {
    height: 90px !important; /* O la altura que prefieras en móvil */
  }
}