/* =========================================================
   REUBIC®
   SISTEMA VISUAL UNIFICADO CON MOVILX®

   PARTE 1:
   - Variables globales
   - Base general
   - Portada / Hero
   - Información inferior del Hero
   - Títulos generales
========================================================= */


/* =========================================================
   INICIA BASE GLOBAL
========================================================= */

:root{
  --reubic-accent: #F35109;
  --reubic-orange: #F35109;

  --reubic-bg: #f3f4f6;
  --reubic-card: #ffffff;
  --reubic-card-2: #fafafa;

  --reubic-text: #111111;
  --reubic-text-soft: #6b7280;
  --reubic-border: #e5e7eb;
  --reubic-border-strong: #d1d5db;

  --reubic-blue-900: #0F2236;
  --reubic-blue-800: #16314D;
  --reubic-blue-700: #244C73;
  --reubic-blue-600: #2F5F8F;
  --reubic-blue-500: #4A78A8;

  --reubic-white: #FFFFFF;
  --reubic-soft-white: #F8F9FB;
  --reubic-light-gray: #EEF1F4;

  --reubic-light-text: rgba(255,255,255,.96);
  --reubic-light-text-soft: rgba(255,255,255,.84);
  --reubic-light-text-muted: rgba(255,255,255,.60);

  --reubic-shadow:
    0 8px 28px rgba(15,23,42,.06);

  --reubic-shadow-hover:
    0 16px 36px rgba(15,23,42,.10);

  --reubic-shadow-dark:
    0 20px 50px rgba(0,0,0,.18);

  --reubic-radius-xl: 32px;
  --reubic-radius-lg: 28px;
  --reubic-radius-md: 24px;
  --reubic-radius-sm: 18px;

  /* Escala tipográfica igual a Movilx */
  --fs-display: clamp(40px, 5vw, 58px);
  --fs-h1: clamp(30px, 3.5vw, 42px);
  --fs-h2: clamp(26px, 3vw, 34px);
  --fs-h3: 22px;
  --fs-h4: 18px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-xs: 12px;

  --lh-tight: 1.05;
  --lh-title: 1.15;
  --lh-body: 1.6;
}

body{
  overflow-x: hidden;
}

main{
  overflow: visible;
}

.reubic-container{
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 22px;
}

/* =========================================================
   TERMINA BASE GLOBAL
========================================================= */


/* =========================================================
   INICIA PORTADA / HERO REUBIC
========================================================= */

.reubic-hero-premium{
  position: relative;

  min-height: 72vh;

  display: flex;
  align-items: flex-end;

  background: #0e0e12;
  overflow: hidden;
}


/* Fondo e imágenes */

.reubic-hero-bg{
  position: absolute;
  inset: 0;
  z-index: 1;
}

.reubic-hero-img{
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.reubic-hero-img-desktop{
  display: block;
}

.reubic-hero-img-mobile{
  display: none;
}


/* Overlay */

.reubic-hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 2;

  background:
    linear-gradient(
      to top,
      rgba(8,8,10,.68) 0%,
      rgba(8,8,10,.08) 38%,
      transparent 62%
    );
}


/* Contenido */

.reubic-hero-content{
  position: relative;
  z-index: 3;

  width: 100%;
  padding: 110px 0 42px;
}

.reubic-hero-inner{
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}


/* =========================================================
   HERO / TEXTO PRINCIPAL
========================================================= */

.reubic-hero-topcopy{
  max-width: 760px;
  margin: 0 auto 48px;

  text-align: center;
  color: #fff;
}

.reubic-eyebrow{
  display: inline-block;

  margin-bottom: 6px;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;

  color: rgba(255,255,255,.75);
}

.reubic-hero-topcopy h1{
  margin: 0 0 14px;

  font-size: clamp(2.4rem, 4vw, 4.9rem);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 600;

  color: #fff;
  text-wrap: balance;
}

.reubic-hero-topcopy p{
  max-width: 650px;
  margin: 0 auto;

  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 400;

  color: rgba(255,255,255,.86);
}


/* =========================================================
   HERO / BENEFICIOS DESKTOP
========================================================= */

.desktop-icons,
.reubic-hero-icons{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.reubic-icon-item{
  padding: 10px 12px;

  text-align: center;
  color: #fff;
}

.reubic-icon-wrap{
  width: 58px;
  height: 58px;

  margin: 0 auto 16px;

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

  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;

  background: rgba(255,255,255,.08);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 12px 30px rgba(0,0,0,.20);
}

.reubic-icon-wrap i{
  font-size: 1.4rem;
  color: #fff;
}

.reubic-icon-item p{
  max-width: 300px;
  margin: 0 auto;

  font-size: 1.03rem;
  line-height: 1.55;
  font-weight: 600;

  color: rgba(255,255,255,.95);
  text-wrap: balance;
}


/* =========================================================
   HERO / CARRUSEL MOBILE
========================================================= */

.reubic-hero-icons-mobile{
  display: none;
}

.reubic-hero-icons-mobile .carousel-inner{
  overflow: visible;
  margin-bottom: -12%;
}

.reubic-hero-icons-mobile .carousel-item{
  min-height: 170px;
}

.reubic-hero-icons-mobile .reubic-icon-item{
  width: 100%;
  max-width: 320px;

  margin: 0 auto;
  padding: 0;

  text-align: center;
}


/* Indicadores */

.reubic-icons-indicators{
  position: static;

  display: flex;
  gap: 8px;

  margin: 0 0 45px;
}

.reubic-icons-indicators [data-bs-target]{
  width: 8px;
  height: 8px;

  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 50%;

  background: rgba(255,255,255,.9);
  opacity: .38;
}

.reubic-icons-indicators .active{
  opacity: 1;
  transform: scale(1.1);
}


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

@media (max-width: 991.98px){

  .reubic-hero-premium{
    min-height: 78vh;
  }

  .reubic-hero-content{
    padding: 100px 0 34px;
  }

  .reubic-hero-topcopy{
    margin-bottom: 34px;
  }

}


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

@media (max-width: 767.98px){

  .reubic-hero-img-desktop{
    display: none;
  }

  .reubic-hero-img-mobile{
    display: block;
    object-position: center center;
  }

  .desktop-icons{
    display: none !important;
  }

  .reubic-hero-icons-mobile{
    display: block;

    width: 100%;
    max-width: 360px;

    margin: 0 auto;
  }

  .reubic-hero-icons-mobile .carousel-item{
    min-height: 180px;
  }

  .reubic-icon-wrap{
    width: 54px;
    height: 54px;

    margin: 0 auto 12px;
  }

  .reubic-icon-wrap i{
    font-size: 1.2rem;
  }

  .reubic-icon-item p{
    max-width: 280px;
    margin: 0 auto;

    font-size: .97rem;
    line-height: 1.5;
    font-weight: 600;

    color: rgba(255,255,255,.95);
  }

}


/* =========================================================
   HERO / MOBILE PEQUEÑO
========================================================= */

@media (max-width: 575.98px){

  .reubic-hero-premium{
    min-height: 79vh;
  }

  .reubic-hero-inner{
    width: min(100% - 28px, 1320px);
  }

  .reubic-hero-content{
    padding: 88px 0 28px;
  }

  .reubic-eyebrow{
    font-size: 11px;
    letter-spacing: .16em;
  }

  .reubic-hero-topcopy h1{
    font-size: clamp(2.15rem, 9vw, 3.2rem);
    line-height: 1.02;
  }

  .reubic-hero-topcopy p{
    font-size: .96rem;
    line-height: 1.6;
  }

}

/* =========================================================
   TERMINA PORTADA / HERO REUBIC
========================================================= */


/* =========================================================
   INICIA INFORMACIÓN INFERIOR DEL HERO
========================================================= */

.reubic-hero-info{
  position: relative;

  color: #fff;

  background:
    radial-gradient(
      circle at 14% 18%,
      rgba(255,255,255,.08),
      transparent 18%
    ),
    radial-gradient(
      circle at 82% 30%,
      rgba(74,120,168,.16),
      transparent 22%
    ),
    linear-gradient(
      180deg,
      #17324E 0%,
      #193654 48%,
      #12263B 100%
    );

  border-top:
    1px solid rgba(255,255,255,.08);

  overflow: hidden;
}

.reubic-hero-info::before{
  content: "";

  position: absolute;
  inset: 0;

  background-image:
    radial-gradient(
      rgba(255,255,255,.08) .7px,
      transparent .7px
    );

  background-size: 9px 9px;
  opacity: .10;

  pointer-events: none;
}

.reubic-hero-info-inner{
  position: relative;
  z-index: 2;

  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0;

  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 54px;
  align-items: center;
}

.reubic-info-kicker2{
  display: inline-block;

  margin-bottom: 10px;

  font-size: .95rem;
  font-weight: 500;

  color: rgba(255,255,255,.88);
}

.reubic-hero-info-left h1,
.reubic-hero-info-left h2{
  margin: 0;

  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 600;

  color: #fff;
  text-wrap: balance;
}

.reubic-hero-info-right p{
  max-width: 760px;
  margin: 0;

  font-size: 1.14rem;
  line-height: 1.75;

  color: rgba(255,255,255,.84);
}


/* =========================================================
   INFORMACIÓN HERO / TABLET
========================================================= */

@media (max-width: 991.98px){

  .reubic-hero-info-inner{
    grid-template-columns: 1fr;
    gap: 28px;

    padding: 42px 0 52px;
  }

  .reubic-hero-info-right p{
    font-size: 1.04rem;
    line-height: 1.7;
  }

}


/* =========================================================
   INFORMACIÓN HERO / MOBILE
========================================================= */

@media (max-width: 575.98px){

  .reubic-hero-info-inner{
    width: min(100% - 28px, 1320px);
    padding: 34px 0 44px;
  }

  .reubic-hero-info-left h1,
  .reubic-hero-info-left h2{
    font-size: 2rem;
  }

  .reubic-hero-info-right p{
    font-size: .98rem;
    line-height: 1.7;
  }

}

/* =========================================================
   TERMINA INFORMACIÓN INFERIOR DEL HERO
========================================================= */


/* =========================================================
   INICIA TÍTULOS GENERALES
========================================================= */

.reubic-head{
  width: 100%;
  max-width: 1200px;

  margin: 0 auto 44px;

  text-align: center;
}

.reubic-section-kicker,
.reubic-mini-kicker{
  display: inline-block;

  margin-bottom: 10px;

  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;

  color: var(--reubic-accent);
}

.reubic-section-kicker--light{
  color: rgba(255,255,255,.60);
}

.reubic-head h2,
.reubic-process-head h2,
.reubic-showcase-head h2{
  margin: 0 0 12px;

  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 600;

  color: var(--reubic-text);
  text-wrap: balance;
}

.reubic-head p,
.reubic-showcase-head p{
  max-width: 720px;
  margin: 0 auto;

  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);

  color: var(--reubic-text-soft);
}


/* Título de configuración en una línea en desktop */

.reubic-modules .reubic-head h2{
  max-width: none;
  white-space: nowrap;
}


/* =========================================================
   TÍTULOS GENERALES / TABLET
========================================================= */

@media (max-width: 1100px){

  .reubic-modules .reubic-head h2{
    white-space: normal;
  }

}


/* =========================================================
   TÍTULOS GENERALES / MOBILE
========================================================= */

@media (max-width: 575.98px){

  .reubic-head{
    margin-bottom: 34px;
  }

  .reubic-head h2,
  .reubic-process-head h2,
  .reubic-showcase-head h2{
    font-size: 34px;
    white-space: normal;
  }

  .reubic-head p,
  .reubic-showcase-head p{
    font-size: 15px;
  }

}

/* =========================================================
   TERMINA TÍTULOS GENERALES
========================================================= */








/* =========================================================
   INICIA CONFIGURACIÓN MODULAR REUBIC
========================================================= */

.reubic-modules{
  padding: 100px 0 110px;

  background: var(--reubic-soft-white);
  color: var(--reubic-text);
}

.reubic-modules-shell{
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap: 34px;
  align-items: stretch;
}


/* =========================================================
   CONFIGURACIÓN / COLUMNA IZQUIERDA
========================================================= */

.reubic-modules-copy{
  padding: 34px 30px;

  background: rgba(255,255,255,.92);
  border: 1px solid var(--reubic-border);
  border-radius: var(--reubic-radius-xl);

  box-shadow: var(--reubic-shadow);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}


/* =========================================================
   CONFIGURACIÓN / PESTAÑAS A, B Y C
========================================================= */

.reubic-module-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-bottom: 28px;
}

.reubic-module-tab{
  appearance: none;

  padding: 12px 18px;

  border: 1px solid var(--reubic-border);
  border-radius: 999px;

  background: #fff;
  color: var(--reubic-text);

  font-size: var(--fs-small);
  font-weight: 600;
  font-family: inherit;

  cursor: pointer;

  box-shadow: 0 2px 10px rgba(0,0,0,.03);

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

.reubic-module-tab:hover{
  border-color: rgba(243,81,9,.35);
}

.reubic-module-tab.active{
  background: var(--reubic-accent);
  color: #fff;
  border-color: var(--reubic-accent);

  box-shadow:
    0 10px 24px rgba(243,81,9,.18);
}


/* =========================================================
   CONFIGURACIÓN / TEXTOS A, B Y C
========================================================= */

.reubic-module-copy-panels{
  position: relative;
  min-height: 20px;
}

.reubic-module-copy-panel{
  display: none;

  animation:
    reubicFadeUp .35s ease;
}

.reubic-module-copy-panel.active{
  display: block;
}

.reubic-module-copy-panel h3{
  margin: 0 0 14px;

  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 600;

  color: var(--reubic-text);
  text-wrap: balance;
}

.reubic-module-copy-panel p{
  max-width: 44ch;
  margin: 0;

  font-size: var(--fs-body-lg);
  line-height: 1.75;

  color: var(--reubic-text-soft);
}


/* =========================================================
   CONFIGURACIÓN / COMBINACIONES
========================================================= */

.reubic-combos{
  padding-top: 24px;

  border-top:
    1px solid var(--reubic-border);
}

.reubic-combos-label{
  display: inline-block;

  margin-bottom: 12px;

  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;

  color: #8b9099;
}

.reubic-combo-list{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reubic-combo-chip{
  appearance: none;

  min-height: 40px;
  padding: 0 16px;

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

  border: 1px solid var(--reubic-border);
  border-radius: 999px;

  background: #fff;
  color: var(--reubic-text);

  font-size: var(--fs-small);
  font-weight: 600;
  font-family: inherit;

  cursor: pointer;

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

.reubic-combo-chip:hover{
  border-color: rgba(243,81,9,.35);
}

.reubic-combo-chip.active{
  background: var(--reubic-accent);
  color: #fff;
  border-color: var(--reubic-accent);

  box-shadow:
    0 10px 24px rgba(243,81,9,.18);
}


/* =========================================================
   CONFIGURACIÓN / PREVISUALIZACIÓN
========================================================= */

.reubic-combo-preview{
  position: relative;

  width: 100%;
  margin-top: 18px;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: #fff;
  border: 1px solid var(--reubic-border);
  border-radius: var(--reubic-radius-md);

  box-shadow: var(--reubic-shadow);
}

.reubic-combo-preview img{
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}


/* =========================================================
   CONFIGURACIÓN / COLUMNA DERECHA
========================================================= */

.reubic-modules-visual{
  position: relative;

  min-height: 620px;

  overflow: hidden;

  border-radius: var(--reubic-radius-xl);

  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(243,81,9,.10),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #111216 0%,
      #17181d 55%,
      #101115 100%
    );

  box-shadow: var(--reubic-shadow);
}

.reubic-module-card{
  position: absolute;
  inset: 0;

  padding: 20px;

  display: flex;
  flex-direction: column;

  opacity: 0;
  pointer-events: none;

  transform:
    translateY(10px) scale(.985);

  transition:
    opacity .4s ease,
    transform .4s ease;
}

.reubic-module-card.active{
  opacity: 1;
  pointer-events: auto;

  transform:
    translateY(0) scale(1);
}


/* Imagen grande del módulo */

.reubic-module-card-media{
  flex: 1;
  min-height: 0;

  overflow: hidden;

  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--reubic-radius-lg);

  background: #1f2127;
}

.reubic-module-card-media img{
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}


/* Footer de la tarjeta negra */

.reubic-module-card-footer{
  padding: 18px 6px 4px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  color: #fff;
}

.reubic-module-card-footer strong{
  font-size: var(--fs-h3);
  line-height: var(--lh-title);
  font-weight: 650;
}

.reubic-module-card-footer span{
  font-size: var(--fs-small);
  line-height: 1.45;

  color: rgba(255,255,255,.68);
}


/* =========================================================
   CONFIGURACIÓN / TABLET
========================================================= */

@media (max-width: 991.98px){

  .reubic-modules-shell{
    grid-template-columns: 1fr;
  }

  .reubic-modules-visual{
    min-height: 500px;
  }

}


/* =========================================================
   CONFIGURACIÓN / MOBILE
   ORDEN:
   1. PESTAÑAS
   2. IMAGEN
   3. DESCRIPCIÓN
   4. CONFIGURACIONES
========================================================= */

@media (max-width: 767.98px){

  .reubic-modules{
    padding: 72px 0 82px;
  }

  .reubic-modules-shell{
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  /*
    Permite reordenar los hijos sin modificar el PHP
  */

  .reubic-modules-copy{
    display: contents;
  }


  /* =======================================================
     1. PESTAÑAS
  ======================================================= */

  .reubic-module-tabs{
    order: 1;

    width: 100%;
    margin: 0;
    padding: 10px;

    display: grid;
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
    gap: 8px;

    overflow: visible;

    background: rgba(255,255,255,.96);
    border: 1px solid var(--reubic-border);
    border-radius: var(--reubic-radius-md);

    box-shadow: var(--reubic-shadow);
  }

  .reubic-module-tab{
    width: 100%;
    min-width: 0;

    padding: 12px 5px;

    border-radius: 999px;

    font-size: clamp(12px, 3.6vw, 14px);
    line-height: 1.2;
    letter-spacing: -.015em;

    white-space: nowrap;
  }


  /* =======================================================
     2. IMAGEN
  ======================================================= */

  .reubic-modules-visual{
    order: 2;

    width: 100%;
    min-height: 430px;

    overflow: hidden;

    border-radius: var(--reubic-radius-md);
  }

  .reubic-module-card{
    padding: 14px 14px 20px;

    box-sizing: border-box;
  }

  .reubic-module-card-media{
    flex: 0 0 300px;
    min-height: 300px;

    border-radius: var(--reubic-radius-sm);
  }

  .reubic-module-card-media img{
    width: 100%;
    height: 100%;
    min-height: 300px;

    object-fit: cover;
    object-position: center;
  }

  .reubic-module-card-footer{
    flex: 0 0 auto;

    min-height: 96px;
    padding: 20px 10px 12px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 7px;

    box-sizing: border-box;
  }

  .reubic-module-card-footer strong{
    display: block;

    margin: 0;

    font-size: 28px;
    line-height: 1.1;
    font-weight: 650;

    color: #fff;
  }

  .reubic-module-card-footer span{
    display: block;

    margin: 0;

    font-size: 15px;
    line-height: 1.45;

    color: rgba(255,255,255,.68);
  }


  /* =======================================================
     3. DESCRIPCIÓN
  ======================================================= */

  .reubic-module-copy-panels{
    order: 3;

    min-height: auto;
    padding: 26px 22px;

    background: rgba(255,255,255,.96);
    border: 1px solid var(--reubic-border);
    border-radius: var(--reubic-radius-md);

    box-shadow: var(--reubic-shadow);
  }

  .reubic-module-copy-panel{
    margin: 0;
  }

  .reubic-module-copy-panel h3{
    margin-bottom: 14px;

    font-size: clamp(30px, 9vw, 42px);
  }

  .reubic-module-copy-panel p{
    margin-bottom: 0;

    font-size: 15px;
    line-height: 1.7;
  }


  /* =======================================================
     4. EJEMPLOS DE CONFIGURACIÓN
  ======================================================= */

  .reubic-combos{
    order: 4;

    padding: 26px 22px;

    background: rgba(255,255,255,.96);
    border: 1px solid var(--reubic-border);
    border-radius: var(--reubic-radius-md);

    box-shadow: var(--reubic-shadow);
  }

  .reubic-combo-list{
    display: grid;
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
    gap: 7px;

    width: 100%;
    padding: 0;

    overflow: visible;
  }

  .reubic-combo-chip{
    width: 100%;
    min-width: 0;
    min-height: 44px;

    padding: 0 5px;

    border-radius: 999px;

    font-size: clamp(11px, 3.3vw, 14px);
    line-height: 1;
    letter-spacing: -.02em;
    font-weight: 650;

    text-align: center;
    white-space: nowrap;
  }

  .reubic-combo-preview{
    aspect-ratio: 16 / 10;
  }

}


/* =========================================================
   CONFIGURACIÓN / MOBILE MUY PEQUEÑO
========================================================= */

@media (max-width: 360px){

  .reubic-module-tabs{
    gap: 5px;
    padding: 8px;
  }

  .reubic-module-tab{
    padding: 11px 3px;
    font-size: 11px;
  }

  .reubic-combo-list{
    gap: 5px;
  }

  .reubic-combo-chip{
    min-height: 40px;
    padding: 0 3px;

    font-size: 11px;
  }

}


/* =========================================================
   ANIMACIÓN CONFIGURACIÓN
========================================================= */

@keyframes reubicFadeUp{

  from{
    opacity: 0;
    transform: translateY(12px);
  }

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

}

/* =========================================================
   TERMINA CONFIGURACIÓN MODULAR REUBIC
========================================================= */





/* =========================================================
   INICIA PROCESO MODULAR REUBIC
========================================================= */

.reubic-process{
  position: relative;
  z-index: 1;

  background:
    radial-gradient(
      circle at 16% 20%,
      rgba(255,255,255,.10),
      transparent 18%
    ),
    radial-gradient(
      circle at 78% 30%,
      rgba(74,120,168,.16),
      transparent 22%
    ),
    linear-gradient(
      180deg,
      #0F1F31 0%,
      #11263D 46%,
      #0B1521 100%
    );
}

.reubic-process::before{
  content: "";

  position: absolute;
  inset: 0;

  background-image:
    radial-gradient(
      rgba(255,255,255,.08) .7px,
      transparent .7px
    );

  background-size: 8px 8px;
  opacity: .08;

  pointer-events: none;
}


/* =========================================================
   PROCESO / TRACK Y STICKY DESKTOP
========================================================= */

.reubic-process-track{
  position: relative;
  height: 300vh;
}

.reubic-process-stage{
  position: sticky;
  top: 0;

  width: min(1320px, calc(100% - 48px));
  height: 100vh;

  margin: 0 auto;

  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 48px;
  align-items: center;
}


/* =========================================================
   PROCESO / COLUMNA IZQUIERDA
========================================================= */

.reubic-process-left{
  position: relative;
  z-index: 2;

  align-self: center;
}

.reubic-process-head{
  margin-bottom: 18px;
}

.reubic-process-head h2{
  color: #fff;
}


/* =========================================================
   PROCESO / NAVEGACIÓN DE PASOS
========================================================= */

.reubic-steps-nav{
  padding: 0 24px;

  display: flex;
  flex-direction: column;

  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--reubic-radius-lg);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.10),
      rgba(255,255,255,.05)
    );

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow: var(--reubic-shadow-dark);
}

.reubic-step-item{
  appearance: none;

  width: 100%;
  padding: 18px 0;

  background: transparent;
  border: 0;
  border-top:
    1px solid rgba(255,255,255,.10);

  text-align: left;
  font-family: inherit;

  cursor: pointer;

  transition:
    padding .3s ease;
}

.reubic-step-item:first-child{
  border-top: 0;
}

.reubic-step-item.active{
  padding: 28px 0;
}


/* Kicker */

.step-kicker{
  display: inline-block;

  margin-bottom: 10px;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;

  color: rgba(255,255,255,.58);

  transition:
    color .25s ease;
}

.reubic-step-item.active .step-kicker{
  color: var(--reubic-accent);
}


/* Título */

.step-title{
  margin: 0;

  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 500;

  color: rgba(255,255,255,.72);
  text-wrap: balance;

  transition:
    color .25s ease;
}

.reubic-step-item.active .step-title{
  color: #fff;
}


/* Descripción */

.reubic-step-item .step-body{
  max-height: 0;

  overflow: hidden;
  opacity: 0;

  transition:
    max-height .38s ease,
    opacity .25s ease,
    margin-top .25s ease;
}

.reubic-step-item.active .step-body{
  max-height: 180px;

  margin-top: 10px;

  opacity: 1;
}

.step-body p{
  max-width: 42ch;
  margin: 0;

  font-size: var(--fs-body);
  line-height: 1.75;

  color: rgba(255,255,255,.88);
}


/* =========================================================
   PROCESO / COLUMNA DERECHA
========================================================= */

.reubic-process-right{
  position: relative;
  z-index: 2;

  height: 100%;

  display: flex;
  align-items: center;
}

.reubic-process-visual-wrap{
  position: relative;

  width: 100%;
  height: min(76vh, 760px);

  overflow: hidden;

  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--reubic-radius-xl);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.16),
      rgba(255,255,255,.08)
    );

  box-shadow: var(--reubic-shadow-dark);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.reubic-process-visual-wrap::before{
  content: "";

  position: absolute;
  inset: 0;
  z-index: 2;

  background:
    radial-gradient(
      circle at 18% 20%,
      rgba(255,255,255,.14),
      transparent 24%
    ),
    radial-gradient(
      circle at 76% 22%,
      rgba(74,120,168,.18),
      transparent 26%
    );

  pointer-events: none;
}


/* Imágenes */

.reubic-process-visual{
  position: absolute;
  inset: 0;
  z-index: 1;

  opacity: 0;
  pointer-events: none;

  transform:
    translateY(12px) scale(1.02);

  transition:
    opacity .45s ease,
    transform .45s ease;
}

.reubic-process-visual.active{
  opacity: 1;
  pointer-events: auto;

  transform:
    translateY(0) scale(1);
}

.reubic-process-visual img{
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}


/* =========================================================
   PROCESO / TABLET
========================================================= */

@media (max-width: 991.98px){

  .reubic-process{
    padding: 80px 0;
  }

  .reubic-process-track{
    height: auto;
  }

  .reubic-process-stage{
    position: relative;
    top: auto;

    width: min(1320px, calc(100% - 48px));
    height: auto;
    min-height: 0;

    padding: 0;

    grid-template-columns: 1fr;
    gap: 28px;

    align-items: start;
  }

  .reubic-process-left{
    order: 1;
  }

  .reubic-process-right{
    order: 2;

    height: auto;
  }

  .reubic-process-visual-wrap{
    height: 420px;
  }

}


/* =========================================================
   PROCESO / MOBILE
   ORDEN:
   1. TÍTULO
   2. IMAGEN
   3. PASOS
========================================================= */

@media (max-width: 767.98px){

  .reubic-process{
    padding: 72px 0 82px;
  }

  .reubic-process-track{
    position: relative;
    height: auto;
  }

  .reubic-process-stage{
    position: relative;
    top: auto;

    width: min(100% - 28px, 1320px);
    height: auto;
    min-height: 0;

    margin: 0 auto;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 22px;

    align-items: stretch;
  }


  /*
    Permite reordenar el título, imagen y pasos
    sin modificar el PHP.
  */

  .reubic-process-left{
    display: contents;
  }


  /* =======================================================
     1. TÍTULO
  ======================================================= */

  .reubic-process-head{
    order: 1;

    margin: 0 0 4px;
  }

  .reubic-process-head h2{
    margin: 0;

    font-size: clamp(42px, 13vw, 58px);
    line-height: .98;
    letter-spacing: -.045em;

    color: #fff;
  }


  /* =======================================================
     2. IMAGEN
  ======================================================= */

  .reubic-process-right{
    order: 2;

    width: 100%;
    height: auto;

    display: block;
  }

  .reubic-process-visual-wrap{
    width: 100%;
    height: 340px;

    overflow: hidden;

    border-radius: var(--reubic-radius-md);
  }

  .reubic-process-visual img{
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
  }


  /* =======================================================
     3. PASOS
  ======================================================= */

  .reubic-steps-nav{
    order: 3;

    width: 100%;
    padding: 0 20px;

    overflow: hidden;

    border-radius: var(--reubic-radius-md);

    box-sizing: border-box;
  }

  .reubic-step-item{
    padding: 17px 0;
  }

  .reubic-step-item.active{
    padding: 22px 0;
  }

  .step-kicker{
    margin-bottom: 7px;

    font-size: 10px;
  }

  .step-title{
    font-size: 24px;
    line-height: 1.08;
  }

  .reubic-step-item .step-body{
    max-height: 0;
  }

  .reubic-step-item.active .step-body{
    max-height: 190px;

    margin-top: 10px;
  }

  .step-body p{
    max-width: none;

    font-size: 15px;
    line-height: 1.65;
  }

}


/* =========================================================
   PROCESO / MOBILE PEQUEÑO
========================================================= */

@media (max-width: 575.98px){

  .reubic-process{
    padding: 64px 0 74px;
  }

  .reubic-process-stage{
    gap: 18px;
  }

  .reubic-process-head h2{
    font-size: 42px;
  }

  .reubic-process-visual-wrap{
    height: 300px;
  }

  .reubic-steps-nav{
    padding: 0 18px;

    border-radius: 22px;
  }

  .reubic-step-item{
    padding: 15px 0;
  }

  .reubic-step-item.active{
    padding: 20px 0;
  }

  .step-title{
    font-size: 23px;
  }

  .step-body p{
    font-size: 14px;
    line-height: 1.62;
  }

}

/* =========================================================
   TERMINA PROCESO MODULAR REUBIC
========================================================= */






/* =========================================================
   INICIA PROYECTOS REUBIC
========================================================= */

.reubic-showcase-projects{
  padding: 100px 0 110px;

  background: var(--reubic-soft-white);
}

.reubic-showcase-projects-inner{
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}


/* =========================================================
   PROYECTOS / ENCABEZADO
========================================================= */

.reubic-showcase-head{
  max-width: 900px;
  margin: 0 auto 44px;

  text-align: center;
}


/* =========================================================
   PROYECTOS / GRID
========================================================= */

.reubic-showcase-grid{
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 24px;

  align-items: start;
}


/* =========================================================
   PROYECTOS / TARJETAS
========================================================= */

.reubic-showcase-card{
  position: relative;
  min-width: 0;
}

.reubic-showcase-card-frame{
  padding: 16px 16px 0;

  overflow: hidden;

  background: #fff;
  border: 1px solid var(--reubic-border);
  border-radius: 30px;

  box-shadow: var(--reubic-shadow);

  transition:
    box-shadow .35s ease,
    transform .35s ease,
    border-color .35s ease;
}

.reubic-showcase-card:hover
.reubic-showcase-card-frame{
  transform: translateY(-3px);

  box-shadow:
    var(--reubic-shadow-hover);
}

.reubic-showcase-card.is-open
.reubic-showcase-card-frame,
.reubic-showcase-card.active
.reubic-showcase-card-frame{
  border-color: rgba(243,81,9,.30);

  box-shadow:
    0 18px 42px rgba(243,81,9,.10);
}


/* =========================================================
   PROYECTOS / IMAGEN DE TARJETA
========================================================= */

.reubic-showcase-card-media{
  position: relative;

  height: 320px;

  overflow: hidden;

  border-radius: 26px;
  background: #dfe6ef;
}

.reubic-showcase-card-media img{
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform .45s ease;
}

.reubic-showcase-card:hover
.reubic-showcase-card-media img{
  transform: scale(1.03);
}

.reubic-showcase-card-overlay{
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(8,10,14,.62),
      rgba(8,10,14,.08)
    );
}


/* =========================================================
   PROYECTOS / TEXTO SOBRE IMAGEN
========================================================= */

.reubic-showcase-card-copy{
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;

  color: #fff;
}

.reubic-showcase-card-copy h3{
  margin: 0 0 6px;

  font-size: 28px;
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 600;

  color: #fff;
  text-wrap: balance;
}

.reubic-showcase-card-copy p{
  margin: 0;

  font-size: 15px;
  line-height: 1.55;

  color: rgba(255,255,255,.86);
}


/* =========================================================
   PROYECTOS / BOTÓN VER PROYECTO
========================================================= */

.reubic-showcase-card-bottom{
  min-height: 76px;

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

.reubic-showcase-toggle{
  appearance: none;

  width: 100%;
  min-height: 60px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  border: 0;
  background: transparent;
  color: var(--reubic-text);

  font-family: inherit;
  font-size: 15px;
  font-weight: 700;

  cursor: pointer;
}

.reubic-showcase-toggle-text::before{
  content: "Ver proyecto";
}

.reubic-showcase-card.is-open
.reubic-showcase-toggle-text::before,
.reubic-showcase-card.active
.reubic-showcase-toggle-text::before{
  content: "Cerrar";
}

.reubic-showcase-chevron{
  width: 14px;
  height: 14px;

  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;

  transform:
    rotate(45deg) translateY(-2px);

  transition:
    transform .28s ease;
}

.reubic-showcase-card.is-open
.reubic-showcase-chevron,
.reubic-showcase-card.active
.reubic-showcase-chevron{
  transform:
    rotate(225deg) translate(-2px, -2px);
}


/* =========================================================
   PROYECTOS / PANEL GENERAL
========================================================= */

.reubic-showcase-detail{
  grid-column: 1 / -1;

  scroll-margin-top: 96px;

  animation:
    reubicShowcaseFadeUp .3s ease;
}

.reubic-showcase-detail[hidden]{
  display: none;
}

.reubic-showcase-detail-shell{
  padding: 22px;

  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;

  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(74,120,168,.10),
      transparent 20%
    ),
    linear-gradient(
      180deg,
      rgba(255,255,255,.98),
      rgba(255,255,255,.94)
    );

  border: 1px solid var(--reubic-border);
  border-radius: var(--reubic-radius-xl);

  box-shadow:
    var(--reubic-shadow-hover);
}

.reubic-showcase-detail-gallery,
.reubic-showcase-detail-copy{
  min-width: 0;
}


/* =========================================================
   PROYECTOS / SLIDER
========================================================= */

.reubic-showcase-detail-slider{
  position: relative;

  overflow: hidden;

  border-radius: 26px;
  background: #dfe6ef;
}

.reubic-showcase-detail-slider-track{
  height: 540px;
}

.reubic-showcase-detail-slider-track img{
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    opacity .2s ease;
}

.reubic-showcase-detail-slider-track img.is-changing{
  opacity: .18;
}


/* =========================================================
   PROYECTOS / FLECHAS
========================================================= */

.reubic-showcase-detail-arrow{
  position: absolute;
  top: 50%;
  z-index: 3;

  width: 48px;
  height: 48px;

  transform: translateY(-50%);

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

  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;

  background: rgba(10,12,18,.35);
  color: #fff;

  font-size: 28px;
  line-height: 1;

  cursor: pointer;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition:
    background-color .25s ease;
}

.reubic-showcase-detail-arrow:hover{
  background:
    var(--reubic-accent);
}

.reubic-showcase-detail-prev{
  left: 16px;
}

.reubic-showcase-detail-next{
  right: 16px;
}


/* =========================================================
   PROYECTOS / INDICADORES
========================================================= */

.reubic-showcase-detail-dots{
  padding: 14px 0 0;

  display: flex;
  justify-content: center;
  gap: 8px;
}

.reubic-showcase-detail-dots button{
  width: 11px;
  height: 11px;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: #cfd6e0;

  cursor: pointer;

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

.reubic-showcase-detail-dots button.active{
  background: var(--reubic-accent);
  transform: scale(1.15);
}


/* =========================================================
   PROYECTOS / INFORMACIÓN
========================================================= */

.reubic-showcase-detail-copy{
  padding: 8px 6px 2px 0;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reubic-showcase-detail-kicker{
  display: inline-block;

  margin-bottom: 10px;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;

  color: var(--reubic-accent);
}

.reubic-showcase-detail-copy h3{
  margin: 0 0 8px;

  font-size: clamp(34px, 4vw, 56px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 500;

  color: var(--reubic-text);
  text-wrap: balance;
}

.reubic-showcase-detail-location{
  margin: 0;

  font-size: 17px;

  color: var(--reubic-text-soft);
}


/* =========================================================
   PROYECTOS / PILLS
========================================================= */

.reubic-showcase-detail-meta{
  margin: 18px 0 22px;

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reubic-showcase-detail-meta span{
  min-height: 40px;
  padding: 0 14px;

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

  border: 1px solid #E4E7EC;
  border-radius: 999px;

  background: #F2F4F7;
  color: #475467;

  font-size: 14px;
  font-weight: 600;
}


/* =========================================================
   PROYECTOS / DESCRIPCIÓN
========================================================= */

.reubic-showcase-detail-body p{
  margin: 0;

  font-size: 16px;
  line-height: 1.78;

  color: var(--reubic-text-soft);

  white-space: pre-line;
}


/* =========================================================
   PROYECTOS / BOTONES
========================================================= */

.reubic-showcase-detail-actions{
  margin-top: 24px;

  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.reubic-showcase-btn{
  min-height: 50px;
  padding: 0 18px;

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

  border: 1px solid transparent;
  border-radius: 999px;

  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;

  cursor: pointer;
}

.reubic-showcase-btn-primary{
  background: var(--reubic-accent);
  color: #fff;
}

.reubic-showcase-btn-primary:hover{
  background: #d94800;
  color: #fff;
}

.reubic-showcase-btn-secondary{
  background: #fff;
  color: var(--reubic-text);

  border-color: #D9DEE6;
}


/* =========================================================
   PROYECTOS / VER TODOS
========================================================= */

.reubic-showcase-footer{
  margin-top: 34px;

  display: flex;
  justify-content: center;
}

.reubic-showcase-more{
  min-height: 50px;
  padding: 0 20px;

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

  border-radius: 999px;

  background: #111;
  color: #fff;

  font-size: 14px;
  font-weight: 700;
  text-decoration: none;

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

.reubic-showcase-more:hover{
  color: #fff;
  background: var(--reubic-accent);

  transform: translateY(-2px);
}


/* =========================================================
   PROYECTOS / TABLET
========================================================= */

@media (max-width: 1199.98px){

  .reubic-showcase-grid{
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .reubic-showcase-detail-shell{
    grid-template-columns: 1fr;
  }

  .reubic-showcase-detail-copy{
    padding: 6px 8px 8px;
  }

}


/* =========================================================
   PROYECTOS / MOBILE
========================================================= */

@media (max-width: 767.98px){

  .reubic-showcase-projects{
    padding: 76px 0 82px;
  }

  .reubic-showcase-projects-inner{
    width: min(100% - 28px, 1320px);
  }

  .reubic-showcase-grid{
    grid-template-columns: 1fr;
  }

  .reubic-showcase-card-media{
    height: 280px;
  }

  .reubic-showcase-card-frame{
    padding: 12px 12px 0;

    border-radius: 26px;
  }

  .reubic-showcase-card-media{
    border-radius: 22px;
  }

  .reubic-showcase-card-bottom{
    min-height: 70px;
  }

  .reubic-showcase-detail-shell{
    padding: 14px;

    grid-template-columns: 1fr;

    border-radius: 24px;
  }

  .reubic-showcase-detail-slider{
    border-radius: 20px;
  }

  .reubic-showcase-detail-slider-track{
    height: 300px;
  }

  .reubic-showcase-detail-copy h3{
    font-size: 34px;
  }

  .reubic-showcase-detail-arrow{
    width: 42px;
    height: 42px;
  }

  .reubic-showcase-detail-actions{
    flex-direction: column;
  }

  .reubic-showcase-btn{
    width: 100%;
  }

}


/* =========================================================
   ANIMACIÓN PROYECTOS
========================================================= */

@keyframes reubicShowcaseFadeUp{

  from{
    opacity: 0;
    transform: translateY(12px);
  }

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

}

/* =========================================================
   TERMINA PROYECTOS REUBIC
========================================================= */


/* =========================================================
   FIN DEL ARCHIVO REUBIC.CSS
========================================================= */



