:root{
  --tribal-bg:#0B0E14;
  --tribal-surface:#141923;
  --tribal-surface-2:#1B2130;
  --tribal-text:#F5F7FA;
  --tribal-muted:#9CA7B8;
  --tribal-blue:#5268FF;
  --tribal-cyan:#52D6E8;
  --tribal-border:rgba(255,255,255,.10);
  --tribal-container:min(1280px, calc(100vw - 48px));
  --tribal-radius:14px;
  --tribal-shadow:0 20px 70px rgba(0,0,0,.18);
}


/* ---------------------------------------------------------
   BASE
--------------------------------------------------------- */

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

img,
svg{
  max-width:100%;
  height:auto;
}

a{
  text-underline-offset:.18em;
}

button{
  font:inherit;
}

.wp-site-blocks{
  overflow:hidden;
}

.wp-site-blocks > * + *{
  margin-block-start:0 !important;
}

.tribal-container{
  width:var(--tribal-container);
  margin-inline:auto;
}


/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.tribal-header{
  position:relative;
  z-index:10;
  background:var(--tribal-bg);
  color:var(--tribal-text);
  border-bottom:1px solid rgba(255,255,255,.06);
}

.tribal-header__inner{
  width:var(--tribal-container);
  margin:auto;
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}

.tribal-wordmark{
  color:var(--tribal-text);
  font-size:1.45rem;
  font-weight:800;
  letter-spacing:-.055em;
  text-decoration:none;
}

.tribal-nav{
  display:flex;
  align-items:center;
  gap:24px;
  font-size:.92rem;
}

.tribal-nav a{
  color:#D9DFEA;
  text-decoration:none;
}

.tribal-nav a:hover,
.tribal-nav a:focus-visible{
  color:#fff;
}


/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */

.tribal-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 19px;
  border-radius:10px;
  text-decoration:none;
  font-weight:700;
  transition:
    transform .18s ease,
    background-color .18s ease,
    border-color .18s ease;
}

.tribal-btn:hover{
  transform:translateY(-1px);
}

.tribal-btn--primary{
  background:var(--tribal-blue);
  color:#fff;
}

.tribal-btn--secondary{
  color:var(--tribal-text);
  border:1px solid var(--tribal-border);
  background:rgba(255,255,255,.03);
}


/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */

.tribal-hero{
  position:relative;
  isolation:isolate;
  background:
    radial-gradient(
      circle at 65% 25%,
      rgba(82,104,255,.15),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      #0B0E14 0%,
      #0D111A 100%
    );
  color:var(--tribal-text);
  min-height:650px;
  display:grid;
  align-items:center;
}

.tribal-hero__grid{
  width:var(--tribal-container);
  margin:auto;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);
  gap:64px;
  align-items:center;
  padding:82px 0 88px;
}

.tribal-hero__content{
  min-width:0;
}

.tribal-eyebrow{
  color:var(--tribal-cyan);
  font-size:.8rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:18px;
}

.tribal-hero h1{
  max-width:780px;
  margin:0;
  font-size:clamp(2.7rem,5vw,4.35rem);
  line-height:.98;
  letter-spacing:-.05em;
}


/* ---------------------------------------------------------
   SERVICE ROTATOR
--------------------------------------------------------- */

.tribal-service-rotator{
  margin-top:30px;
}

.tribal-service-slides{
  min-height:210px;
}

.tribal-service-slide[hidden]{
  display:none !important;
}

.tribal-service-slide.is-active{
  animation:tribal-slide-in .28s ease both;
}

@keyframes tribal-slide-in{
  from{
    opacity:0;
    transform:translateY(5px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}

.tribal-service-name{
  color:#FFFFFF;
  font-size:1.08rem;
  font-weight:700;
  letter-spacing:-.015em;
}

.tribal-hero__lead{
  max-width:650px;
  color:#B9C2D2;
  font-size:clamp(1.05rem,1.45vw,1.2rem);
  line-height:1.58;
  margin:12px 0 25px;
}

.tribal-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}


/* ---------------------------------------------------------
   SERVICE SELECTOR
--------------------------------------------------------- */

.tribal-service-tabs{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-top:18px;
  padding:5px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(255,255,255,.025);
}


/*
 * Reset completo del botón nativo del navegador.
 */
.tribal-service-tab{
  -webkit-appearance:none;
  appearance:none;
  border:0;
  outline:0;
  box-shadow:none;
  margin:0;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-height:36px;
  padding:0 13px;

  border-radius:8px;
  background:transparent;

  color:#7F8A9C;

  font-family:inherit;
  font-size:.78rem;
  font-weight:650;
  line-height:1;
  letter-spacing:0;

  cursor:pointer;

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

.tribal-service-tab:hover{
  color:#DCE3EE;
}

.tribal-service-tab.is-active{
  color:#FFFFFF;
  background:rgba(82,104,255,.16);
}

.tribal-service-tab.is-active::before{
  content:"";
  width:5px;
  height:5px;
  margin-right:7px;
  border-radius:50%;
  background:var(--tribal-cyan);
  box-shadow:0 0 10px rgba(82,214,232,.5);
}

.tribal-service-tab:focus-visible{
  outline:2px solid var(--tribal-cyan);
  outline-offset:2px;
}


/* ---------------------------------------------------------
   HERO VISUAL
--------------------------------------------------------- */

.tribal-hero__visual{
  position:relative;
  min-height:450px;
  display:grid;
  place-items:center;
}

.tribal-hero__visual img{
  width:min(100%,760px);
  filter:drop-shadow(
    0 30px 70px rgba(0,0,0,.30)
  );
}


/* ---------------------------------------------------------
   CLIENTES
--------------------------------------------------------- */

.tribal-trust{
  background:#fff;
  padding:36px 0;
  border-bottom:1px solid #E8EBF0;
}

.tribal-trust__inner{
  width:var(--tribal-container);
  margin:auto;
  display:grid;
  grid-template-columns:240px 1fr;
  align-items:center;
  gap:40px;
}

.tribal-trust__title{
  margin:0;
  color:#5B6473;
  font-size:.88rem;
  font-weight:700;
}

.tribal-logo-row{
  display:flex;
  flex-wrap:wrap;
  gap:24px 34px;
  color:#8A93A2;
  font-size:.95rem;
  font-weight:700;
}


/* ---------------------------------------------------------
   SERVICIOS
--------------------------------------------------------- */

.tribal-services{
  background:#F5F7FA;
  padding:96px 0;
}

.tribal-services__grid{
  width:var(--tribal-container);
  margin:auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.tribal-card{
  background:#fff;
  border:1px solid #E4E8EE;
  border-radius:var(--tribal-radius);
  padding:30px;
  min-height:260px;
  display:flex;
  flex-direction:column;
  transition:
    transform .18s ease,
    border-color .18s ease;
}

.tribal-card:hover{
  transform:translateY(-2px);
  border-color:#C7D0FF;
}

.tribal-card h2{
  font-size:1.55rem;
  line-height:1.12;
  margin:0 0 14px;
  min-height:3.5rem;
}

.tribal-card p{
  color:#667085;
  line-height:1.55;
  margin:0;
  min-height:4.8rem;
}

.tribal-price{
  margin-top:auto;
  padding-top:24px;
  font-size:1.08rem;
  font-weight:800;
  color:#1D2CA3;
}


/* ---------------------------------------------------------
   TABLET
--------------------------------------------------------- */

@media (max-width:980px){

  :root{
    --tribal-container:min(100% - 40px,1280px);
  }

  .tribal-nav{
    display:none;
  }

  .tribal-hero{
    min-height:auto;
  }

  .tribal-hero__grid{
    grid-template-columns:1fr;
    gap:24px;
    padding:64px 0 52px;
  }

  .tribal-hero h1{
    max-width:760px;
  }

  .tribal-service-slides{
    min-height:200px;
  }

  .tribal-hero__visual{
    min-height:280px;
  }

  .tribal-hero__visual img{
    max-height:330px;
  }

  .tribal-trust__inner{
    grid-template-columns:1fr;
    gap:20px;
  }

  .tribal-services__grid{
    grid-template-columns:1fr;
  }

  .tribal-card{
    min-height:auto;
  }

  .tribal-card h2,
  .tribal-card p{
    min-height:0;
  }

  .tribal-price{
    margin-top:24px;
    padding-top:0;
  }
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width:640px){

  :root{
    --tribal-container:calc(100% - 32px);
  }


  /* HEADER */

  .tribal-header__inner{
    min-height:64px;
    gap:14px;
  }

  .tribal-wordmark{
    font-size:1.3rem;
  }

  .tribal-header .tribal-btn{
    width:auto;
    min-height:40px;
    padding:0 14px;
    font-size:.88rem;
  }


  /* HERO */

  .tribal-hero{
    min-height:auto;
  }

  .tribal-hero__grid{
    display:block;
    padding:38px 0 34px;
  }

  .tribal-eyebrow{
    margin-bottom:15px;
    font-size:.7rem;
  }

  .tribal-hero h1{
    max-width:370px;
    font-size:clamp(2rem,9vw,2.5rem);
    line-height:1.02;
    letter-spacing:-.045em;
  }

  .tribal-service-rotator{
    margin-top:25px;
  }

  .tribal-service-slides{
    min-height:226px;
  }

  .tribal-service-name{
    font-size:1rem;
  }

  .tribal-hero__lead{
    max-width:100%;
    margin:9px 0 20px;
    font-size:.96rem;
    line-height:1.5;
  }

  .tribal-actions{
    display:grid;
    gap:9px;
  }

  .tribal-actions .tribal-btn{
    width:100%;
    min-height:46px;
  }


  /* Selector de servicios */

  .tribal-service-tabs{
    width:100%;
    display:grid;
    grid-template-columns:.8fr 1.25fr .9fr;
    gap:3px;
    margin-top:14px;
    padding:4px;
    border-radius:11px;
  }

  .tribal-service-tab{
    width:100%;
    min-height:38px;
    padding:0 6px;
    border-radius:7px;
    font-size:.71rem;
    white-space:nowrap;
  }

  .tribal-service-tab.is-active::before{
    width:4px;
    height:4px;
    margin-right:5px;
  }

  .tribal-hero__visual{
    display:none;
  }


  /* CLIENTES */

  .tribal-trust{
    padding:28px 0;
  }

  .tribal-trust__inner{
    gap:18px;
  }

  .tribal-logo-row{
    gap:14px 24px;
    font-size:.86rem;
    line-height:1.4;
  }


  /* SERVICIOS */

  .tribal-services{
    padding:56px 0;
  }

  .tribal-services__grid{
    gap:14px;
  }

  .tribal-card{
    min-height:0;
    padding:24px;
  }

  .tribal-card h2{
    min-height:0;
    margin-bottom:12px;
    font-size:1.4rem;
  }

  .tribal-card p{
    min-height:0;
    font-size:.96rem;
  }

  .tribal-price{
    margin-top:20px;
    padding-top:0;
    font-size:1rem;
  }
}


/* ---------------------------------------------------------
   REDUCED MOTION
--------------------------------------------------------- */

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

  *,
  *::before,
  *::after{
    scroll-behavior:auto !important;
    transition:none !important;
    animation:none !important;
  }
}