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

/* =========================================================
   VOXELADAS IT CONSULTING
   ESTILOS GLOBALES
   ========================================================= */

/* BOTONES */

.bricks-button {
  padding: 11px 17px;
  letter-spacing: 0;
  line-height: 1.2;
}

.bricks-button:hover,
.bricks-button.bricks-background-primary:hover {
  border-color: var(--vx-azul);
}

.bricks-button.bricks-background-secondary:hover {
  border-color: var(--vx-verde);
}


/* =========================================================
   HEADER GLOBAL
   ========================================================= */

#brx-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  pointer-events: none;
}

.vx-header {
  position: relative;
  z-index: 100;
  padding: 27px 25px 0;
  background: transparent;
}

.vx-header__bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  width: 100%;
  max-width: 1390px;
  margin-inline: auto;
  padding: 13px clamp(20px, 8vw, 120px);

  background: var(--vx-blanco);
  border-radius: 26px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, .25);

  pointer-events: auto;
}

.vx-header__nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 38px;
}

.vx-header__nav .bricks-nav-menu {
  display: flex;
  align-items: center;
  gap: 38px;
}

.vx-header__nav .bricks-nav-menu a {
  font-size: var(--fs-body2);
  color: var(--vx-azul);
  transition: color .2s ease;
}

.vx-header__nav .bricks-nav-menu a:hover {
  color: var(--vx-violeta);
}

/* Barra de administración WordPress */

.admin-bar #brx-header {
  top: 32px;
}


/* =========================================================
   TARJETAS GENERALES
   SERVICIOS · SOPORTE · SECTORES
   ========================================================= */

.vx-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;

  width: 295px;
  max-width: 100%;
  min-height: 330px;
  padding: 25px 28px;

  background: var(--vx-azul);
  color: var(--vx-verde);

  border-radius: var(--vx-radio-card);
  box-shadow: var(--vx-sombra);

  transition:
    background-color .25s ease,
    color .25s ease;
}

/* Encabezados */

.vx-card :is(h1, h2, h3, h4, h5, h6) {
  margin: 0;
  color: inherit;
  font-size: var(--fs-h2);
  line-height: 1.1;
}

/* Descripciones desplegables */

.vx-card__desc {
  max-height: 0;
  overflow: hidden;
  opacity: 0;

  font-size: var(--fs-body2);
  line-height: 1.3;

  transition:
    max-height .3s ease,
    opacity .3s ease;
}

/* Hover */

.vx-card:hover {
  background: var(--vx-verde);
  color: var(--vx-azul);
}

.vx-card:hover .vx-card__desc {
  max-height: 140px;
  opacity: 1;
}


/* =========================================================
   TARJETAS SOPORTE
   ========================================================= */

.vx-card.vx-card--support {
  width: 100%;
  min-height: 303px;
  padding: 32px 38px;
}


/* =========================================================
   TARJETAS SECTORES
   ========================================================= */

.vx-card.vx-card--sector {
  height: auto;
  min-height: 330px;
}

.vx-card.vx-card--sector:hover .vx-card__desc {
  max-height: 300px;
}

.vx-card__subtitle {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  color: inherit;
}


/* =========================================================
   TEXTOS DESTACADOS
   ========================================================= */

.vx-chip {
  display: inline;
  padding: 0 .18em;

  background: var(--vx-verde);
  color: var(--vx-azul);

  border-radius: 7px;
  line-height: 1;

  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.vx-mark {
  display: inline;
  padding: 0 8px;

  background: var(--vx-verde);
  color: var(--vx-azul);

  border-radius: 7px;

  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}


/* =========================================================
   FORMULARIOS
   ========================================================= */

.vx-form-card {
  padding:
    clamp(24px, 4vw, 56px)
    clamp(24px, 6vw, 88px);

  background: var(--vx-azul);
  color: var(--vx-offwhite);

  border-radius: var(--vx-radio-form);
  box-shadow: var(--vx-sombra);
}

.vx-form-card :is(h1, h2, h3, h4) {
  color: var(--vx-offwhite);
}


/* =========================================================
   HOME · FONDO TECNOLÓGICO
   ========================================================= */

body {
  position: relative;
  isolation: isolate;
  background-color: #101447;
}

/* Fondo animado de escritorio */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

background-image:
  linear-gradient(
    to bottom,
    transparent 0%,
    transparent 35%,
    rgba(16, 20, 71, 0.35) 55%,
    rgba(16, 20, 71, 0.75) 75%,
    #101447 100%
  ),
  url("https://voxeladas.es/wp-content/uploads/2026/11/fondo-home.webp");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;

    /* Animación ambiental */

  transform-origin: center top;
  animation:
    vx-background-wave 8s ease-in-out infinite alternate;
}

/* Contenido principal transparente */

body #brx-content {
  background: transparent;
}

/* Animación ambiental */

@keyframes vx-background-wave {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.025) translateY(-8px);
  }

  100% {
    transform: scale(1.045) translateY(-15px);
  }
}


/* =========================================================
   RESPONSIVE · TABLET VERTICAL Y MÓVILES
   Hasta 991px
   ========================================================= */

@media (max-width: 991px) {

  /* Tarjetas Sectores */

  .vx-card.vx-card--sector {
    width: 100%;
    max-width: 467px;
  }

  /*
   * Fondo tecnológico:
   * - Imagen completa, sin recorte lateral.
   * - Degradado sobre la parte inferior de la imagen.
   * - Continuación en azul oscuro.
   * - Sin animación ni máscara.
   */

  body::before {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;

    background-color: #101447;

    background-image:
      linear-gradient(
        to bottom,
        transparent 25%,
        rgba(16, 20, 71, 0.25) 45%,
        rgba(16, 20, 71, 0.70) 75%,
        #101447 100%
      ),
      url("https://voxeladas.es/wp-content/uploads/2026/11/fondo-home.webp");

    /*
     * Primera capa: degradado de altura
     * proporcional a una imagen 16:9.
     * Segunda capa: imagen completa.
     */

    background-size:
      100% 56.25vw,
      100% auto;

    background-position:
      center top,
      center top;

    background-repeat:
      no-repeat,
      no-repeat;

    -webkit-mask-image: none;
    mask-image: none;

    animation: none;
    transform: none;
  }

}


/* =========================================================
   RESPONSIVE · MÓVIL
   Hasta 767px
   ========================================================= */

@media (max-width: 767px) {

  /* Tarjetas Soporte */

  .vx-card.vx-card--support {
    min-height: 280px;
    padding: 28px 24px;
  }

  /* Tarjetas Sectores */

  .vx-card.vx-card--sector {
    min-height: 280px;
    padding: 28px 24px;
  }

}


/* =========================================================
   DISPOSITIVOS TÁCTILES
   ========================================================= */

@media (hover: none) {

  .vx-card__desc {
    max-height: none;
    opacity: 1;
  }

}


/* =========================================================
   HEADER · PANTALLAS PEQUEÑAS
   ========================================================= */

@media (max-width: 782px) {

  #brx-content > .brxe-section:first-child {
    padding-top: 70px;
  }

  .admin-bar #brx-header {
    top: 46px;
  }

}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  body::before {
    animation: none;
    transform: none;
  }

}
/* VOXELADAS · TARJETAS SOPORTE */

.vx-card.vx-card--soporte {
    height: auto;
    min-height: 390px;
}

.vx-card.vx-card--soporte:hover .vx-card__desc {
    max-height: 450px;
}

/* Dispositivos táctiles */
@media (hover: none) {
    .vx-card.vx-card--soporte .vx-card__desc {
        max-height: none;
        opacity: 1;
    }
}