/**
 * RGBX front-end styles.
 * Adapted from the client-provided HTML and scoped to .rgbx-site.
 */

/* Gotham — commercial font (Hoefler&Co)
   Book = weight 400, Light = weight 300
   Fallback: Century Gothic / Futura approximate Gotham's geometric proportions */
@font-face {
  font-family: 'Gotham';
  font-weight: 400;
  font-style: normal;
  src: local('Gotham Book'), local('Gotham-Book'), local('GothamBook'),
       local('Gotham Medium'), local('Gotham');
}
@font-face {
  font-family: 'Gotham';
  font-weight: 300;
  font-style: normal;
  src: local('Gotham Light'), local('Gotham-Light'), local('GothamLight');
}

.rgbx-site{
  --f-title: 'Gotham', 'Century Gothic', 'Futura', 'Trebuchet MS', sans-serif;
  --f-body:  'Gotham', 'Century Gothic', 'Futura', 'Trebuchet MS', sans-serif;
  --fw-title: 400;   /* Book */
  --fw-body:  300;   /* Light */
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
.rgbx-site *, .rgbx-site *::before, .rgbx-site *::after{ box-sizing: border-box; margin: 0; padding: 0; }
.rgbx-site{ scroll-behavior: smooth; font-size: 12px; }

.rgbx-site{
  font-family: var(--f-body);
  font-weight: var(--fw-body);
  background: #f5f4f1;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─────────────────────────────────────────
   VARIABLES
───────────────────────────────────────── */
.rgbx-site{
  --bg:       #f5f4f1;
  --black:    #1a1a1a;
  --mid:      #6b6b6b;
  --light:    #aaa;
  --border:   #dddbd7;
  --white:    #ffffff;
  --lang-gray: #999;
}

/* ─────────────────────────────────────────
   LANGUAGE SYSTEM
───────────────────────────────────────── */
.rgbx-site [data-lang]{ display: none; }
.rgbx-site.lang-es [data-lang="es"], .rgbx-site.lang-en [data-lang="en"], .rgbx-site.lang-de [data-lang="de"]{ display: revert; }

/* inline spans */
.rgbx-site span[data-lang]{ display: none; }
.rgbx-site.lang-es span[data-lang="es"], .rgbx-site.lang-en span[data-lang="en"], .rgbx-site.lang-de span[data-lang="de"]{ display: inline; }

/* trilingual label (all 3 always visible, in gray) */
.rgbx-site .trilang{
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lang-gray);
}
.rgbx-site .trilang .sep{ margin: 0 6px; opacity: 0.4; }

/* ─────────────────────────────────────────
   NAVIGATION — logo top-left + hamburger top-right
───────────────────────────────────────── */
.rgbx-site .nav-topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 24px;
}

.rgbx-site .nav-topbar-right{
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding-bottom: 10px;
}

/* Lang switcher in topbar — horizontal, between logo and hamburger */
.rgbx-site .lang-switcher{
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  gap: 0;
}

.rgbx-site .lang-btn{
  font-family: var(--f-title);
  font-size: 10px;
  font-weight: var(--fw-title);
  letter-spacing: 0.14em;
  color: var(--lang-gray);
  cursor: pointer;
  padding: 4px 7px;
  background: none;
  border: none;
  transition: color 0.2s;
}

.rgbx-site .lang-btn:hover{ color: var(--black); }
.rgbx-site .lang-btn.active{ color: var(--black); font-weight: 400; }

.rgbx-site .lang-sep{
  color: var(--border);
  font-size: 10px;
  line-height: 1;
  user-select: none;
}

/* When menu open, lang switcher goes white too */
.rgbx-site.menu-open .lang-switcher{
  border-left-color: rgba(255,255,255,0.15);
  border-right-color: rgba(255,255,255,0.15);
}
.rgbx-site.menu-open .lang-btn{ color: rgba(255,255,255,0.5); }
.rgbx-site.menu-open .lang-btn.active{ color: rgba(255,255,255,0.9); }
.rgbx-site.menu-open .lang-sep{ color: rgba(255,255,255,0.2); }

.rgbx-site .nav-logo{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}

.rgbx-site .logo-main{
  font-family: var(--f-title);
  font-size: 29px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  display: block;
}

.rgbx-site .logo-x{
  color: #c8a97e;
}

.rgbx-site .x-beige{ color: #c8a97e; }

.rgbx-site .logo-sub{
  font-family: var(--f-title);
  font-size: 8px;
  font-weight: var(--fw-body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mid);
  display: block;
}

/* White versions when menu open */
.rgbx-site.menu-open .logo-main{ color: rgba(255,255,255,0.9); }
.rgbx-site.menu-open .logo-x{ color: #c8a97e; }
.rgbx-site.menu-open .logo-sub{ color: rgba(255,255,255,0.45); }

/* Hamburger button */
.rgbx-site .hamburger{
  width: 52px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  border-left: 1px solid var(--border);
  flex-shrink: 0;
  transition: background 0.15s;
  z-index: 400;
  position: relative;
}

.rgbx-site .hamburger:hover{ background: rgba(0,0,0,0.03); }

.rgbx-site .hamburger-line{
  display: block;
  height: 1px;
  background: var(--light);
  transition: width 0.25s ease, opacity 0.2s, transform 0.25s ease;
}

.rgbx-site .hamburger-line:nth-child(1){ width: 20px; }
.rgbx-site .hamburger-line:nth-child(2){ width: 14px; }
.rgbx-site .hamburger-line:nth-child(3){ width: 17px; }

.rgbx-site.menu-open .hamburger-line:nth-child(1){
  width: 18px;
  transform: translateY(6px) rotate(45deg);
  background: rgba(255,255,255,0.7);
}
.rgbx-site.menu-open .hamburger-line:nth-child(2){ opacity: 0; width: 0; }
.rgbx-site.menu-open .hamburger-line:nth-child(3){
  width: 18px;
  transform: translateY(-6px) rotate(-45deg);
  background: rgba(255,255,255,0.7);
}

/* Topbar transparent when menu open so it blends with hero */
.rgbx-site.menu-open .nav-topbar{
  background: transparent;
  border-bottom-color: transparent;
}
.rgbx-site.menu-open .nav-logo{ color: rgba(255,255,255,0.85); }
.rgbx-site.menu-open .hamburger{ border-left-color: rgba(255,255,255,0.15); background: transparent; }

/* Dropdown panel */
.rgbx-site .nav-dropdown{
  position: fixed;
  top: 0; left: 0;
  right: 0;
  bottom: 0;
  z-index: 250;
  display: flex;
  align-items: flex-start;
  padding-top: 60px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}

/* Gradient backdrop over hero — only when open */
.rgbx-site .nav-dropdown::before{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.45) 60%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

.rgbx-site.menu-open .nav-dropdown{
  opacity: 1;
  pointer-events: all;
}

/* Each nav item — transparent, text only */
.rgbx-site .nav-dropdown-item{
  flex: 1;
  padding: 32px 28px 28px;
  border-right: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  transition: background 0.15s;
  text-align: left;
}

.rgbx-site .nav-dropdown-item:last-child{ border-right: none; }
.rgbx-site .nav-dropdown-item:hover{ background: rgba(0,0,0,0.08); }

.rgbx-site .drop-num{
  font-family: var(--f-body);
  font-size: 7px;
  font-weight: var(--fw-body);
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.4);
}

.rgbx-site .drop-title{
  font-family: var(--f-title);
  font-size: 13px;
  font-weight: var(--fw-title);
  color: rgba(255,255,255,0.75);
  line-height: 1.1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.rgbx-site .nav-dropdown-item:hover .drop-title, .rgbx-site .nav-dropdown-item.active-page .drop-title{ color: #fff; }

.rgbx-site .drop-sub{
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: var(--fw-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  line-height: 1.9;
}

/* Click-outside overlay — behind the dropdown items */
.rgbx-site .nav-overlay{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 240;
}
.rgbx-site.menu-open .nav-overlay{ display: block; }

/* ─────────────────────────────────────────
   RIGHT SIDEBAR — fixed column
───────────────────────────────────────── */
.rgbx-site{ --sidebar: 72px; }





/* Quick access — projects + contact */




















/* ─────────────────────────────────────────
   PAGE SYSTEM — offset for topbar + sidebar
───────────────────────────────────────── */
.rgbx-site .page{ display: none; padding-top: 60px; }
.rgbx-site .page.active{ display: block; }

.rgbx-site footer{ padding-right: 40px; }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.rgbx-site .hero{
  position: relative;
  height: calc(100vh - 52px);
  min-height: 560px;
  overflow: hidden;
  background: #2a2520;
}

.rgbx-site .hero-img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.62;
}

.rgbx-site .hero-content{
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 40px 44px;
}

.rgbx-site .hero-content h1{
  font-family: var(--f-title);
  font-size: 12px;
  font-weight: var(--fw-title);
  line-height: 1.12;
  color: #fff;
  letter-spacing: -0.01em;
  max-width: 640px;
  margin-bottom: 12px;
}

.rgbx-site .hero-h1-small{
  font-size: 13px !important;
  line-height: 1.55 !important;
  letter-spacing: 0.02em !important;
}

.rgbx-site .hero-sub{
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  max-width: 420px;
}

.rgbx-site .hero-scroll{
  position: absolute;
  bottom: 44px; right: 40px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rgbx-site .hero-scroll::before{
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
}

/* ─────────────────────────────────────────
   SECTION PRIMITIVES
───────────────────────────────────────── */
.rgbx-site .section{ padding: 80px 40px; }
.rgbx-site .section-sm{ padding: 56px 40px; }

.rgbx-site .section-label{
  font-family: var(--f-title);
  font-size: 10px;
  font-weight: var(--fw-title);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 16px;
}

.rgbx-site h2.display{
  font-family: var(--f-title);
  font-size: 12px;
  font-weight: var(--fw-title);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 24px;
}

.rgbx-site p.body-text{
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: var(--fw-body);
  line-height: 1.82;
  color: var(--mid);
  max-width: 520px;
}

/* ─────────────────────────────────────────
   DIVIDER
───────────────────────────────────────── */
.rgbx-site .rule{ height: 1px; background: var(--border); margin: 0 40px; }

/* ─────────────────────────────────────────
   PROYECTOS GRID — INICIO
───────────────────────────────────────── */
.rgbx-site .projects-intro{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  margin: 0 40px;
}

.rgbx-site .proj-card{
  position: relative;
  overflow: hidden;
  background: #1e1c18;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.rgbx-site .proj-card.tall{ aspect-ratio: 3/4; }
.rgbx-site .proj-card.wide{ grid-column: span 2; aspect-ratio: 16/7; }

.rgbx-site .proj-card img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.75;
  transition: opacity 0.5s ease, transform 0.6s ease;
}

.rgbx-site .proj-card:hover img{
  opacity: 0.55;
  transform: scale(1.03);
}

.rgbx-site .proj-info{
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 28px;
  background: linear-gradient(to top, rgba(20,18,14,0.82) 0%, transparent 100%);
}

.rgbx-site .proj-cat{
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 5px;
}

.rgbx-site .proj-title{
  font-family: var(--f-title);
  font-size: 12px;
  font-weight: var(--fw-title);
  color: #fff;
  line-height: 1.25;
  margin-bottom: 4px;
}

.rgbx-site .proj-year{
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
}

/* ─────────────────────────────────────────
   SOBRE STRIP
───────────────────────────────────────── */
.rgbx-site .sobre-strip{
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.rgbx-site .sobre-text{
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}

.rgbx-site .sobre-img{
  position: relative;
  overflow: hidden;
  background: #2a2520;
}

.rgbx-site .sobre-img img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.8;
}

/* ─────────────────────────────────────────
   SERVICIOS STRIP (3 cols)
───────────────────────────────────────── */
.rgbx-site .servicios-strip{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  margin: 0 40px;
}

.rgbx-site .serv-col{
  background: var(--bg);
  padding: 40px 32px;
  border-top: 2px solid var(--black);
}

.rgbx-site .serv-num{
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--light);
  margin-bottom: 20px;
  display: block;
}

.rgbx-site .serv-col h3{
  font-family: var(--f-title);
  font-size: 12px;
  font-weight: var(--fw-title);
  color: var(--black);
  line-height: 1.25;
  margin-bottom: 14px;
}

.rgbx-site .serv-col p{
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: var(--fw-body);
  color: var(--mid);
  line-height: 1.75;
}

/* ─────────────────────────────────────────
   CTA BANNER
───────────────────────────────────────── */
.rgbx-site .cta-banner{
  position: relative;
  height: 380px;
  overflow: hidden;
  background: #1a1a1a;
  margin: 0;
}

.rgbx-site .cta-banner img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.38;
}

.rgbx-site .cta-content{
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 40px 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.rgbx-site .cta-content h2{
  font-family: var(--f-title);
  font-size: 12px;
  font-weight: var(--fw-title);
  color: #fff;
  line-height: 1.15;
  max-width: 520px;
  letter-spacing: -0.01em;
}

.rgbx-site .cta-link{
  font-family: var(--f-title);
  font-size: 12px;
  font-weight: var(--fw-title);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 3px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.rgbx-site .cta-link:hover{
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}

/* ─────────────────────────────────────────
   PAGE HERO (interior pages)
───────────────────────────────────────── */
.rgbx-site .page-hero{
  position: relative;
  height: 400px;
  overflow: hidden;
  background: #1e1c18;
}

.rgbx-site .page-hero img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.5;
}

.rgbx-site .page-hero-content{
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 40px 40px;
}

.rgbx-site .page-hero-content h1{
  font-family: var(--f-title);
  font-size: 18px;
  font-weight: var(--fw-title);
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 700px;
}

/* ─────────────────────────────────────────
   PROJECT MESSAGE CARDS (no image)
───────────────────────────────────────── */
.rgbx-site .proj-card-message{
  display: flex;
  align-items: flex-end;
}

.rgbx-site .proj-info-msg{
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rgbx-site .proj-cat-msg{
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.rgbx-site .proj-title-msg{
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  max-width: 340px;
}

/* ─────────────────────────────────────────
   PROYECTOS PAGE — FULL GRID
───────────────────────────────────────── */
.rgbx-site .proj-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  margin: 0 40px 80px;
}

.rgbx-site .proj-filter{
  display: flex;
  gap: 0;
  padding: 32px 40px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.rgbx-site .filter-btn{
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  background: none;
  border: none;
  padding: 8px 20px 8px 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}

.rgbx-site .filter-btn:hover{ color: var(--black); }
.rgbx-site .filter-btn.active{ color: var(--black); border-bottom-color: var(--black); }

/* ─────────────────────────────────────────
   ESTUDIO PAGE
───────────────────────────────────────── */
.rgbx-site .estudio-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.rgbx-site .estudio-col{
  padding: 40px 40px;
  border-bottom: 1px solid var(--border);
}

.rgbx-site .estudio-col:last-child{ border-right: none; }

.rgbx-site .proceso-steps{
  counter-reset: step;
  margin: 0 40px;
}

.rgbx-site .paso{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
  align-items: start;
}

.rgbx-site .paso:last-child{ border-bottom: none; }

.rgbx-site .paso-num{
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--light);
  padding-top: 4px;
}

.rgbx-site .paso-body h3{
  font-family: var(--f-title);
  font-size: 12px;
  font-weight: var(--fw-title);
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.2;
}

.rgbx-site .paso-body p{
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: var(--fw-body);
  color: var(--mid);
  line-height: 1.78;
  max-width: 480px;
}

/* ─────────────────────────────────────────
   CONTACTO PAGE
───────────────────────────────────────── */
.rgbx-site .contacto-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.rgbx-site .contacto-left{
  padding: 56px 40px;
  background: var(--black);
  color: #fff;
}

.rgbx-site .contacto-left-map{
  width: 100%;
  height: 100%;
  min-height: 560px;
  position: relative;
}

.rgbx-site .contacto-left-map iframe{
  width: 100%;
  height: 100%;
  min-height: 560px;
  border: none;
  display: block;
  filter: grayscale(20%) contrast(1.05);
}

.rgbx-site .contacto-left-overlay{
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 32px;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, transparent 100%);
}

.rgbx-site .contacto-left-overlay .contact-detail{
  border-top-color: rgba(255,255,255,0.12);
  padding: 10px 0;
}

.rgbx-site .contacto-left-overlay .contact-detail .label{
  color: rgba(255,255,255,0.4);
}

.rgbx-site .contacto-left-overlay .contact-detail .value{
  color: rgba(255,255,255,0.85);
}

.rgbx-site .contacto-left h2{
  font-family: var(--f-title);
  font-size: 12px;
  font-weight: var(--fw-title);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.rgbx-site .contacto-left p{
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: var(--fw-body);
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  margin-bottom: 48px;
}

.rgbx-site .contact-detail{
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
}

.rgbx-site .contact-detail:last-child{ border-bottom: 1px solid rgba(255,255,255,0.08); }

.rgbx-site .contact-detail .label{
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding-top: 2px;
}

.rgbx-site .contact-detail .value{ color: rgba(255,255,255,0.75); line-height: 1.6; }

.rgbx-site .contacto-right{
  padding: 72px 40px 72px 56px;
  background: #eeece8;
}

.rgbx-site label.form-label{
  font-family: var(--f-title);
  display: block;
  font-size: 10px;
  font-weight: var(--fw-title);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 8px;
}

.rgbx-site input.form-input, .rgbx-site textarea.form-input, .rgbx-site select.form-input{
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 12px;
  font-family: var(--f-body);
  font-weight: var(--fw-body);
  color: var(--black);
  outline: none;
  margin-bottom: 32px;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}

.rgbx-site input.form-input:focus, .rgbx-site textarea.form-input:focus{ border-color: var(--black); }

.rgbx-site textarea.form-input{ resize: none; height: 100px; }

.rgbx-site .form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.rgbx-site .form-submit{
  font-family: var(--f-title);
  font-size: 12px;
  font-weight: var(--fw-title);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--black);
  background: none;
  border: none;
  border-bottom: 1px solid var(--black);
  padding-bottom: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.rgbx-site .form-submit:hover{ opacity: 0.5; }

.rgbx-site .privacy-check{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12px;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 28px;
}

.rgbx-site .privacy-check input{ margin-top: 3px; flex-shrink: 0; }
.rgbx-site .privacy-check a{ color: var(--black); }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.rgbx-site footer{
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 56px 40px 36px;
}

.rgbx-site .footer-top{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}

.rgbx-site .footer-brand .logo-f{
  font-family: var(--f-title);
  font-size: 13px;
  font-weight: var(--fw-title);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}

.rgbx-site .footer-brand p{
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.rgbx-site .footer-detail{
  font-size: 12px;
  line-height: 1.9;
  color: rgba(255,255,255,0.38);
}

.rgbx-site .footer-col h4{
  font-family: var(--f-title);
  font-size: 10px;
  font-weight: var(--fw-title);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 16px;
}

/* The ES/EN/DE switcher is reused as-is from the header, but its default
   colors are tuned for the light background up there — override for the
   dark footer so the buttons are actually visible/legible here. */
.rgbx-site .footer-lang-switcher{
  border: none;
  height: auto;
  padding: 0;
}
.rgbx-site .footer-lang-switcher .lang-btn{ color: rgba(255,255,255,0.28); }
.rgbx-site .footer-lang-switcher .lang-btn:hover,
.rgbx-site .footer-lang-switcher .lang-btn.active{ color: #fff; }
.rgbx-site .footer-lang-switcher .lang-sep{ color: rgba(255,255,255,0.15); }

.rgbx-site .footer-col ul{ list-style: none; }
.rgbx-site .footer-col ul li{ margin-bottom: 8px; }
.rgbx-site .footer-col ul li a, .rgbx-site .footer-col ul li span{
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: var(--fw-body);
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.rgbx-site .footer-col ul li a:hover{ color: #fff; }

.rgbx-site .footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  flex-wrap: wrap;
  gap: 8px;
}

.rgbx-site .footer-funding{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.rgbx-site .footer-funding-logo{
  display: block;
  height: 26px;
  width: auto;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .rgbx-site .footer-funding{
    gap: 12px;
  }

  .rgbx-site .footer-funding-logo{
    height: 20px;
  }
}

/* ─────────────────────────────────────────
   NOTICIAS
───────────────────────────────────────── */
.rgbx-site .noticias-list{
  margin: 0 40px;
}

.rgbx-site .noticia-item{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  cursor: pointer;
  transition: opacity 0.2s;
}

.rgbx-site .noticia-item:hover{ opacity: 0.65; }

.rgbx-site .noticia-date{
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--light);
  padding-top: 4px;
}

.rgbx-site .noticia-body h3{
  font-family: var(--f-title);
  font-size: 12px;
  font-weight: var(--fw-title);
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 8px;
}

.rgbx-site .noticia-body p{
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: var(--fw-body);
  color: var(--mid);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   SOBRE PAGE — biography
───────────────────────────────────────── */
.rgbx-site .bio-section{
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.rgbx-site .bio-img{
  position: relative;
  overflow: hidden;
  background: #2a2520;
}

.rgbx-site .bio-img img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.rgbx-site .bio-text{
  padding: 72px 40px 72px 56px;
  background: #eceae6;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rgbx-site .bio-text p{
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: var(--fw-body);
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 16px;
  max-width: 480px;
}

.rgbx-site .bio-text p:last-child{ margin-bottom: 0; }

/* ─────────────────────────────────────────
   WHATSAPP — only on contacto page
───────────────────────────────────────── */
.rgbx-site .whatsapp-btn{
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: #25D366;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  transition: transform 0.2s;
}

.rgbx-site .whatsapp-btn:hover{ transform: scale(1.06); }

.rgbx-site #contacto.active ~ * .whatsapp-btn, .rgbx-site .show-whatsapp .whatsapp-btn{ display: flex; }

/* ─────────────────────────────────────────
   UTILITIES
───────────────────────────────────────── */
.rgbx-site .mt-0{ margin-top: 0; }
.rgbx-site .mb-40{ margin-bottom: 40px; }
.rgbx-site .text-link{
  font-family: var(--f-title);
  font-size: 12px;
  font-weight: var(--fw-title);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  cursor: pointer;
  transition: border-color 0.2s;
  display: inline-block;
  margin-top: 24px;
}

.rgbx-site .text-link:hover{ border-color: var(--black); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 768px) {
  .rgbx-site{ --sidebar: 0px; }

  /* Topbar shows logo + compact nav */
  .rgbx-site .nav-topbar{
    padding: 0 16px;
    justify-content: space-between;
    pointer-events: all;
  }

  /* Sidebar becomes bottom bar */
  

  .rgbx-site .lang-switcher{
    flex-direction: row;
    padding: 0 12px;
    border-bottom: none;
    border-right: 1px solid var(--border);
    height: 100%;
    gap: 0;
    flex-shrink: 0;
  }

  .rgbx-site .nav-topbar-right{ height: 100%; }
  .rgbx-site .lang-switcher{ padding: 0 10px; }
  .rgbx-site .lang-sep{ font-size: 10px; color: var(--border); }
  .rgbx-site .lang-btn{ padding: 2px 5px; font-size: 9px; }

  .rgbx-site .nav-links{
    flex-direction: row;
    padding: 0;
    border-bottom: none;
    border-right: 1px solid var(--border);
    height: 100%;
    flex: 1;
    justify-content: space-around;
    gap: 0;
  }

  .rgbx-site .nav-links a{
    padding: 0 8px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 8px;
  }

  
  
  

  .rgbx-site .page{ padding-right: 0; padding-bottom: 52px; }
  .rgbx-site footer{ padding-right: 40px; padding-bottom: 64px; }

  /* Content adjustments */
  .rgbx-site .hero-content{ padding: 0 20px 32px; }
  .rgbx-site .hero-scroll{ display: none; }
  .rgbx-site .section{ padding: 48px 20px; }
  .rgbx-site .section-sm{ padding: 36px 20px; }
  .rgbx-site .rule{ margin: 0 20px; }

  .rgbx-site .projects-intro{ grid-template-columns: 1fr; margin: 0 20px; }
  .rgbx-site .proj-card.wide{ grid-column: span 1; aspect-ratio: 4/3; }

  .rgbx-site .sobre-strip{ grid-template-columns: 1fr; }
  .rgbx-site .sobre-img{ height: 300px; }
  .rgbx-site .sobre-text{ padding: 48px 20px; }

  .rgbx-site .servicios-strip{ grid-template-columns: 1fr; margin: 0 20px; }

  .rgbx-site .cta-content{ flex-direction: column; align-items: flex-start; padding: 0 20px 32px; }
  .rgbx-site .page-hero-content{ padding: 0 20px 32px; }

  .rgbx-site .proj-filter{ padding: 24px 20px; }
  .rgbx-site .proj-grid{ grid-template-columns: 1fr; margin: 0 20px 48px; }

  .rgbx-site .estudio-grid{ grid-template-columns: 1fr; }
  .rgbx-site .estudio-col{ padding: 48px 20px; border-right: none; border-bottom: 1px solid var(--border); }

  .rgbx-site .proceso-steps{ margin: 0 20px; }
  .rgbx-site .paso{ grid-template-columns: 40px 1fr; }

  .rgbx-site .contacto-grid{ grid-template-columns: 1fr; }
  .rgbx-site .contacto-left{ padding: 48px 20px; }
  .rgbx-site .contacto-right{ padding: 48px 20px; }
  .rgbx-site .form-row{ grid-template-columns: 1fr; gap: 0; }

  .rgbx-site .footer-top{ grid-template-columns: 1fr 1fr; gap: 32px; }
  .rgbx-site .footer-brand{ grid-column: span 2; }

  .rgbx-site .noticias-list{ margin: 0 20px; }
  .rgbx-site .noticia-item{ grid-template-columns: 80px 1fr; gap: 16px; }

  .rgbx-site .bio-section{ grid-template-columns: 1fr; }
  .rgbx-site .bio-img{ height: 300px; }
  .rgbx-site .bio-text{ padding: 48px 20px; }
}

/* WordPress/Elementor integration and accessible control resets. */
body.rgbx-full-canvas {
	margin: 0;
}

.rgbx-site {
	min-height: 100vh;
	position: relative;
	width: 100%;
}

.rgbx-site button,
.rgbx-site input,
.rgbx-site select,
.rgbx-site textarea {
	font-family: inherit;
}

.rgbx-site button {
	border-radius: 0;
}

.rgbx-site .nav-logo,
.rgbx-site .nav-dropdown-item,
.rgbx-site .nav-overlay,
.rgbx-site .projects-intro > .proj-card,
.rgbx-site .rgbx-project-stack > .proj-card,
.rgbx-site .cta-link,
.rgbx-site .rgbx-text-button,
.rgbx-site .footer-col button {
	appearance: none;
	-webkit-appearance: none;
	background-color: transparent;
	border: 0;
	color: inherit;
	font: inherit;
}

.rgbx-site .nav-logo {
	align-items: flex-start;
	padding: 0;
}

.rgbx-site .nav-dropdown-item {
	background: transparent;
	color: inherit;
	min-height: 105px;
}

.rgbx-site .nav-overlay {
	background: transparent;
	cursor: default;
}

.rgbx-site .rgbx-text-button {
	cursor: pointer;
	margin-top: 38px;
	padding: 0;
	text-align: left;
}

.rgbx-site .rgbx-project-stack {
	background: var(--border);
	display: grid;
	gap: 2px;
	grid-template-rows: 1fr 1fr;
}

.rgbx-site .projects-intro .proj-card {
	display: block;
	padding: 0;
	text-align: left;
	width: 100%;
}

.rgbx-site .proj-card[hidden] {
	display: none !important;
}

.rgbx-site .proj-grid .proj-card {
	aspect-ratio: 4 / 3;
}

.rgbx-site .cta-link {
	background: transparent;
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	padding-left: 0;
	padding-right: 0;
}

.rgbx-site .rgbx-studio-lead {
	font-size: 12px;
	font-weight: var(--fw-body);
	line-height: 1.8;
}

.rgbx-site .rgbx-studio-copy {
	font-size: 12px;
	margin-bottom: 20px;
}

.rgbx-site .rgbx-process-title {
	margin-bottom: 48px;
	max-width: 500px;
}

.rgbx-site .rgbx-map-hero {
	background: #1a1a1a;
	height: 280px;
}

.rgbx-site .rgbx-map-hero iframe {
	border: 0;
	display: block;
	filter: sepia(40%) saturate(0.6) hue-rotate(5deg) contrast(0.9) brightness(0.85);
	height: 100%;
	opacity: 0.7;
	width: 100%;
}

.rgbx-site .contact-detail a.value {
	text-decoration: none;
}

.rgbx-site .rgbx-contact-intro {
	margin-bottom: 25px;
}

.rgbx-site .rgbx-contact-intro p:first-child {
	color: var(--black);
	font-family: var(--f-title);
	font-size: 13px;
	font-weight: var(--fw-title);
	margin-bottom: 10px;
}

.rgbx-site .rgbx-contact-intro p:last-child {
	color: var(--mid);
	font-family: var(--f-body);
	font-size: 12px;
}

.rgbx-site .rgbx-contact-form > label,
.rgbx-site .form-row > label {
	display: block;
}

.rgbx-site .form-label {
	color: var(--mid);
	display: block;
	font-family: var(--f-title);
	font-size: 10px;
	font-weight: var(--fw-title);
	letter-spacing: 0.2em;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.rgbx-site .rgbx-honeypot {
	height: 0;
	left: -10000px;
	overflow: hidden;
	position: absolute;
	width: 0;
}

.rgbx-site .rgbx-form-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
}

.rgbx-site .rgbx-form-status {
	border-top: 1px solid transparent;
	font-size: 12px;
	line-height: 1.6;
	margin-top: 16px;
	min-height: 20px;
	padding-top: 12px;
}

.rgbx-site .rgbx-form-status[data-state="success"] {
	border-top-color: var(--border);
	color: #2d6a4f;
}

.rgbx-site .rgbx-form-status[data-state="error"] {
	color: #a12d24;
}

.rgbx-site .form-submit:disabled {
	cursor: wait;
	opacity: 0.45;
}

.rgbx-site .footer-col button {
	cursor: pointer;
	padding: 0;
	text-align: left;
}

.rgbx-site .footer-col button:hover {
	color: #fff;
}

.rgbx-site .rgbx-funding {
	font-size: 10px;
	opacity: 0.6;
}

.admin-bar .rgbx-site .nav-topbar,
.admin-bar .rgbx-site .nav-dropdown {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .rgbx-site .nav-topbar,
	.admin-bar .rgbx-site .nav-dropdown {
		top: 46px;
	}
}

@media (max-width: 768px) {
	.rgbx-site .rgbx-project-stack {
		grid-template-rows: none;
	}

	.rgbx-site .nav-dropdown {
		flex-wrap: wrap;
	}

	.rgbx-site .nav-dropdown-item {
		flex-basis: 50%;
		min-height: 120px;
	}

	.rgbx-site .rgbx-form-actions {
		align-items: flex-start;
		flex-direction: column;
	}
}

/*
 * Theme isolation.
 *
 * Some WordPress themes apply global button backgrounds, rounded corners and
 * shadows with high specificity. The navigation overlay is also a button, so
 * those rules can turn its transparent full-screen hit area black.
 */
body.rgbx-full-canvas {
	background: #f5f4f1 !important;
}

.rgbx-site {
	isolation: isolate;
}

.rgbx-site button.nav-logo,
.rgbx-site button.hamburger,
.rgbx-site button.nav-dropdown-item,
.rgbx-site button.nav-overlay,
.rgbx-site .proj-card,
.rgbx-site button.cta-link,
.rgbx-site button.rgbx-text-button,
.rgbx-site .footer-col button {
	-webkit-appearance: none !important;
	appearance: none !important;
	background-color: transparent !important;
	background-image: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.rgbx-site button.nav-logo {
	border: 0 !important;
	color: inherit !important;
}

.rgbx-site button.hamburger {
	border: 0 !important;
	border-left: 1px solid var(--border) !important;
}

.rgbx-site button.hamburger:hover {
	background-color: rgba(0, 0, 0, 0.03) !important;
}

.rgbx-site.menu-open button.hamburger {
	background-color: transparent !important;
	border-left-color: rgba(255, 255, 255, 0.15) !important;
}

.rgbx-site button.nav-overlay {
	background: transparent !important;
	border: 0 !important;
	display: none !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.rgbx-site.menu-open button.nav-overlay {
	display: block !important;
	pointer-events: auto !important;
}

.rgbx-site:not(.menu-open) .nav-dropdown {
	opacity: 0 !important;
	pointer-events: none !important;
	visibility: hidden !important;
}

.rgbx-site.menu-open .nav-dropdown {
	opacity: 1 !important;
	pointer-events: auto !important;
	visibility: visible !important;
}

.rgbx-site button.nav-dropdown-item:hover {
	background-color: rgba(0, 0, 0, 0.08) !important;
}

/*
 * Remove theme "pill" hover/focus skin.
 *
 * Several WordPress themes style every <button> (and button-like <a>) with a
 * dark rounded background plus shadow on :hover/:focus/:active. Since almost
 * every clickable element in this plugin is a plain <button>, that generic
 * theme skin was showing up as a black pill on hover. We neutralise the
 * background/shape/shadow in every interactive state while leaving each
 * component's own intentional hover styling (color changes, underline,
 * opacity, etc. defined earlier in this file) untouched.
 */
.rgbx-site button,
.rgbx-site button:hover,
.rgbx-site button:focus,
.rgbx-site button:focus-visible,
.rgbx-site button:active,
.rgbx-site button:visited,
.rgbx-site a.text-link,
.rgbx-site a.text-link:hover,
.rgbx-site a.text-link:focus,
.rgbx-site a.text-link:active,
.rgbx-site a.proj-card,
.rgbx-site a.proj-card:hover,
.rgbx-site a.proj-card:focus,
.rgbx-site a.proj-card:active,
.rgbx-site a.proj-card:visited {
	background-color: transparent !important;
	background-image: none !important;
	background: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.rgbx-site button.whatsapp-btn,
.rgbx-site button.whatsapp-btn:hover,
.rgbx-site button.whatsapp-btn:focus,
.rgbx-site button.whatsapp-btn:active {
	/* The WhatsApp launcher is a deliberate round green button — restore it. */
	background: #25D366 !important;
	border-radius: 50% !important;
}

.rgbx-site button:focus-visible {
	outline: 2px solid currentColor !important;
	outline-offset: 2px !important;
}

.rgbx-site button:focus:not(:focus-visible) {
	outline: none !important;
}

/* ─────────────────────────────────────────
   STANDALONE LEGAL / SITEMAP PAGES
   Rendered via [rgbx_legal] and [rgbx_sitemap] inside
   the dedicated "RGBX — Página legal" page template,
   which supplies the same header/footer as the main site.
───────────────────────────────────────── */
.rgbx-site .rgbx-legal-page {
	margin: 0 auto;
	max-width: 860px;
	padding: 104px 24px 96px;
	width: 100%;
}

.rgbx-site .rgbx-legal-title {
	color: var(--black);
	font-family: var(--f-title);
	font-size: 28px;
	font-weight: var(--fw-title);
	letter-spacing: 0.02em;
	margin-bottom: 32px;
	text-transform: uppercase;
}

.rgbx-site .rgbx-legal-text {
	font-family: var(--f-body);
	font-size: 14px;
	font-weight: var(--fw-body);
	line-height: 1.9;
}

.rgbx-site .rgbx-legal-text br {
	content: "";
	display: block;
	margin-top: 14px;
}

.rgbx-site .rgbx-legal-text p {
	margin-bottom: 18px;
}

.rgbx-site .rgbx-sitemap-columns {
	display: grid;
	gap: 40px;
	grid-template-columns: 1fr 1fr;
}

.rgbx-site .rgbx-sitemap-columns h2 {
	font-family: var(--f-title);
	font-size: 12px;
	font-weight: var(--fw-title);
	letter-spacing: 0.18em;
	margin-bottom: 16px;
	text-transform: uppercase;
}

.rgbx-site .rgbx-sitemap-list {
	list-style: none;
}

.rgbx-site .rgbx-sitemap-list ul {
	list-style: none;
	margin: 6px 0 6px 18px;
}

.rgbx-site .rgbx-sitemap-list li {
	margin-bottom: 10px;
}

.rgbx-site .rgbx-sitemap-list a {
	color: var(--black);
	font-size: 13px;
	text-decoration: none;
}

.rgbx-site .rgbx-sitemap-list a:hover {
	text-decoration: underline;
}

@media (max-width: 600px) {
	.rgbx-site .rgbx-sitemap-columns {
		grid-template-columns: 1fr;
	}
}

/* ─────────────────────────────────────────
   SINGLE PROJECT PAGE
   A dedicated, larger-format hero (distinct
   from the smaller .page-hero used on section
   listing pages) for a more editorial feel.
───────────────────────────────────────── */
.rgbx-site .rgbx-project-hero {
	background: #1e1c18;
	height: 560px;
	overflow: hidden;
	position: relative;
}

.rgbx-site .rgbx-project-hero img {
	display: block;
	height: 100%;
	object-fit: cover;
	opacity: 0.55;
	width: 100%;
}

.rgbx-site .rgbx-project-hero-content {
	bottom: 0;
	left: 0;
	max-width: 900px;
	padding: 0 40px 56px;
	position: absolute;
	right: 0;
}

.rgbx-site .rgbx-project-eyebrow {
	color: rgba(255, 255, 255, 0.6);
	display: block;
	font-family: var(--f-title);
	font-size: 12px;
	font-weight: var(--fw-title);
	letter-spacing: 0.24em;
	margin-bottom: 16px;
	text-transform: uppercase;
}

.rgbx-site .rgbx-project-title {
	color: #fff;
	font-family: var(--f-title);
	font-size: 42px;
	font-weight: var(--fw-title);
	letter-spacing: -0.01em;
	line-height: 1.1;
}

@media (max-width: 768px) {
	.rgbx-site .rgbx-project-hero {
		height: 380px;
	}
	.rgbx-site .rgbx-project-hero-content {
		padding: 0 20px 32px;
	}
	.rgbx-site .rgbx-project-title {
		font-size: 26px;
	}
}

.rgbx-site .rgbx-project-page {
	margin: 0 auto;
	max-width: 860px;
	padding: 64px 24px 96px;
	width: 100%;
}

.rgbx-site .rgbx-project-description {
	color: var(--black);
	font-family: var(--f-body);
	font-size: 15px;
	font-weight: var(--fw-body);
	line-height: 1.9;
	margin-bottom: 56px;
	max-width: 720px;
}

.rgbx-site .rgbx-project-description br {
	content: "";
	display: block;
	margin-top: 14px;
}

.rgbx-site .rgbx-project-section-label {
	color: var(--lang-gray);
	display: block;
	font-family: var(--f-title);
	font-size: 11px;
	font-weight: var(--fw-title);
	letter-spacing: 0.22em;
	margin-bottom: 20px;
	text-transform: uppercase;
}

.rgbx-site .rgbx-project-carousel {
	margin-bottom: 48px;
	position: relative;
}

.rgbx-site .rgbx-carousel-viewport {
	overflow: hidden;
	width: 100%;
}

.rgbx-site .rgbx-carousel-track {
	display: flex;
	transition: transform 0.4s ease;
}

.rgbx-site .rgbx-carousel-slide {
	flex: 0 0 100%;
	width: 100%;
}

.rgbx-site .rgbx-carousel-slide img {
	aspect-ratio: 16 / 10;
	display: block;
	object-fit: cover;
	width: 100%;
}

.rgbx-site .rgbx-carousel-nav {
	align-items: center;
	background: var(--bg);
	border: 1px solid var(--border);
	color: var(--black);
	cursor: pointer;
	display: flex;
	font-family: var(--f-title);
	font-size: 20px;
	height: 40px;
	justify-content: center;
	line-height: 1;
	position: absolute;
	top: calc(50% - 20px);
	transition: background 0.2s, color 0.2s;
	width: 40px;
}

.rgbx-site .rgbx-carousel-prev { left: 12px; }
.rgbx-site .rgbx-carousel-next { right: 12px; }

.rgbx-site .rgbx-carousel-nav:hover {
	background: var(--black);
	color: #fff;
}

.rgbx-site .rgbx-carousel-dots {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 16px;
}

.rgbx-site .rgbx-carousel-dot {
	background: var(--border);
	border: none;
	cursor: pointer;
	height: 6px;
	padding: 0;
	transition: background 0.2s;
	width: 6px;
}

.rgbx-site .rgbx-carousel-dot:hover,
.rgbx-site .rgbx-carousel-dot.active {
	background: var(--black);
}

@media (max-width: 600px) {
	.rgbx-site .rgbx-carousel-nav {
		height: 34px;
		width: 34px;
	}
	.rgbx-site .rgbx-carousel-prev { left: 6px; }
	.rgbx-site .rgbx-carousel-next { right: 6px; }
}

.rgbx-site .rgbx-project-back a {
	color: var(--black);
	font-family: var(--f-title);
	font-size: 12px;
	font-weight: var(--fw-title);
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
}

.rgbx-site .rgbx-project-back a:hover {
	text-decoration: underline;
}
