/* --- base (igual que tenías) --- */
.rb{
  --rb-bg: #f6f8fc;
  --rb-border: rgba(12,32,60,.18);
  --rb-border-strong: rgba(12,32,60,.26);
  --rb-text: rgba(10,18,30,.92);
  --rb-muted: rgba(10,18,30,.62);
  --rb-blue: #163a73;
  --rb-blue-2: #0f2f62;
  --rb-yellow: #f6c400;
  --rb-shadow: 0 18px 50px rgba(12,32,60,.12);
  --rb-shadow-strong: 0 22px 70px rgba(12,32,60,.18);
  --rb-radius: 18px;

  color: var(--rb-text);
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(22,58,115,.18), transparent 60%),
    radial-gradient(900px 520px at 92% 10%, rgba(246,196,0,.30), transparent 55%),
    linear-gradient(135deg, rgba(22,58,115,.06), transparent 35%),
    var(--rb-bg);
  min-height: 100vh;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
}
.rb *{ box-sizing: border-box; }
.rb a{ color: inherit; text-decoration: none; }
.rb img, .rb video{ max-width: 100%; display: block; }

/* fondo */
.rb-bg{ position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.rb-bg__blob{
  position: absolute;
  width: 560px; height: 560px;
  filter: blur(80px);
  opacity: .55;
  border-radius: 999px;
  animation: rbFloat 10s ease-in-out infinite;
}
.rb-bg__blob--1{
  left: -200px; top: -240px;
  background: radial-gradient(circle at 30% 30%, rgba(22,58,115,.55), rgba(22,58,115,.06));
}
.rb-bg__blob--2{
  right: -240px; top: 20px;
  width: 620px; height: 620px;
  background: radial-gradient(circle at 30% 30%, rgba(246,196,0,.62), rgba(246,196,0,.07));
  animation-duration: 12s;
}
.rb-bg__grid{
  position: absolute; inset: -2px;
  background:
    linear-gradient(to right, rgba(12,32,60,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12,32,60,.06) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(circle at 50% 10%, rgba(0,0,0,.55), transparent 75%);
  opacity: .42;
}
.rb-bg__vignette{
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, transparent 45%, rgba(10,18,30,.07) 100%);
  opacity: .9;
}
@keyframes rbFloat{
  0%,100%{ transform: translateY(0) translateX(0) scale(1); }
  50%{ transform: translateY(22px) translateX(16px) scale(1.03); }
}

/* header */
.rb-header{
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rb-border);
}
.rb-header__inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.rb-brand__logo{ height: 78px; width: auto; object-fit: contain; }

/* layout */
.rb-main{
  position: relative; z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
}

/* h1 + pill */
.rb-h1{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: -0.6px;
}
.rb-h1__side{
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 900;
  color: rgba(22,58,115,.95);
  letter-spacing: .2px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(252 210 5);
  border: 1px solid rgba(252,196,0,.28);
}
.rb-lead{
  font-size: 16px;
  line-height: 1.55;
  color: var(--rb-muted);
  margin: 0;
}

/* media hero */
.rb-mediahero{ padding: 18px 0 10px; }
.rb-mediahero__head{ margin: 6px 0 14px; }

.rb-mediahero__grid{
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 14px;
  align-items: start;
}

/* spotlight */
/* ✅ CORREGIDO: glow tipo GrupoBaena pero en amarillo (sin neón) */
.rb-spot{
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid var(--rb-border-strong);
  background: rgba(255,255,255,.90);
  box-shadow:
    0 34px 90px rgba(12,32,60,.18),
    0 0 0 4px rgba(246,196,0,.18);
}

.rb-spot__frame{ position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.rb-spot__media{
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: contrast(1.03) saturate(1.08);
}
.rb-spot__shine{
  position: absolute; inset: -40%;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.45), transparent 65%);
  transform: translateX(-30%) rotate(12deg);
  animation: rbShine 5.2s ease-in-out infinite;
  opacity: .18;
  pointer-events: none;
}
.rb-spot__cap{
  padding: 14px 16px 16px;
  display: grid; gap: 4px;
  background: linear-gradient(to top, rgba(255,255,255,.94), rgba(255,255,255,.74));
  border-top: 1px solid var(--rb-border);
}
.rb-spot__cap strong{ font-size: 15px; }
.rb-spot__cap span{ font-size: 13px; color: var(--rb-muted); }

/* columna derecha */
.rb-rightcol{ display: grid; grid-template-columns: 1fr; gap: 12px; }

/* tiles base */
.rb-tile{
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--rb-border);
  background: rgba(255,255,255,.90);
  box-shadow: var(--rb-shadow-strong);
  position: relative;
}
.rb-tile__frame{ position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.rb-tile__media{
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: contrast(1.03) saturate(1.06);
}
.rb-tile__shine{
  position: absolute; inset: -40%;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.42), transparent 65%);
  transform: translateX(-30%) rotate(12deg);
  animation: rbShine 5.5s ease-in-out infinite;
  opacity: .16;
  pointer-events: none;
}
.rb-tile__cap{
  padding: 12px 14px 14px;
  display: flex; justify-content: space-between; gap: 10px;
  align-items: baseline;
  background: linear-gradient(to top, rgba(255,255,255,.94), rgba(255,255,255,.74));
  border-top: 1px solid var(--rb-border);
}
.rb-tile__cap strong{ font-size: 13.5px; }
.rb-tile__cap span{ font-size: 12.5px; color: var(--rb-muted); }

@keyframes rbShine{
  0%,100%{ transform: translateX(-35%) rotate(12deg); opacity: .12; }
  50%{ transform: translateX(25%) rotate(12deg); opacity: .22; }
}

/* tiles MÁS GRANDES + glow adaptado */
/* ✅ CORREGIDO: glow tipo GrupoBaena pero en amarillo (sin neón) */
.rb-tile--big{
  border-color: var(--rb-border-strong);
  box-shadow:
    0 22px 64px rgba(12,32,60,.16),
    0 0 0 3px rgba(246,196,0,.30);
}
.rb-tile--big .rb-tile__frame{
  aspect-ratio: 16 / 9; /* un pelín más “hero” */
}

/* contacto */
.rb-contactcol{ display: grid; gap: 10px; }
.rb-contactbox{
  border-radius: 16px;
  border: 2px solid rgba(12,32,60,.16);
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 46px rgba(12,32,60,.10);
  padding: 12px 14px;
}
.rb-contactbox__label{ font-size: 12.5px; color: var(--rb-muted); margin-bottom: 6px; }
.rb-contactbox__value{ font-weight: 900; color: rgba(10,18,30,.90); line-height: 1.25; }
.rb-contactbox__row{ display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.rb-contactbox__addrText{ font-weight: 850; color: rgba(10,18,30,.88); }

/* contacto compacto (para el bloque a la derecha de servicios) */
.rb-contactcol--tight{ gap: 10px; }
.rb-contactbox--compact{ padding: 11px 13px; }
.rb-contactbox--compact .rb-contactbox__label{ margin-bottom: 5px; }
.rb-contactbox--compact .rb-contactbox__value{ font-size: 15px; }

/* botón Maps */
.rb-btnMap{
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(246,196,0,1), rgba(246,196,0,.78));
  color: rgba(10,12,16,.92);
  font-weight: 900;
  font-size: 12.5px;
  letter-spacing: .2px;
  border: 1px solid rgba(10,12,16,.14);
  box-shadow: 0 16px 34px rgba(246,196,0,.24);
}
.rb-btnMap:hover{ transform: translateY(-1px); filter: brightness(1.02); }

/* divisor bonito */
.rb-divider{
  height: 1px;
  margin: 22px 0 0;
  border-radius: 999px;
  background:
    linear-gradient(to right,
      transparent 0%,
      rgba(22,58,115,.18) 18%,
      rgba(246,196,0,.55) 50%,
      rgba(22,58,115,.18) 82%,
      transparent 100%);
  box-shadow: 0 8px 30px rgba(246,196,0,.12);
}

/* servicios + contacto a la derecha */
.rb-section{ padding: 28px 0 10px; }
.rb-section__head{ margin-bottom: 14px; }
.rb-section__head--tight{ margin-bottom: 12px; }

.rb-h2{ margin: 0 0 6px; font-size: 26px; letter-spacing: -0.3px; }
.rb-sub{ margin: 0; color: var(--rb-muted); line-height: 1.55; }

.rb-svcwrap{ padding-top: 22px; }
.rb-svcwrap__inner{
  display: grid;
  grid-template-columns: 1fr 1px 340px; /* servicios | línea | contacto */
  gap: 18px;
  align-items: start;
}
.rb-svcwrap__divider{
  width: 1px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(12,32,60,.14) 18%,
    rgba(246,196,0,.40) 50%,
    rgba(12,32,60,.14) 82%,
    transparent 100%);
  box-shadow: 0 10px 30px rgba(246,196,0,.10);
}

/* grid servicios compacto */
.rb-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.rb-grid--compact{
  gap: 12px;
}
.rb-card{
  border-radius: 18px;
  border: 2px solid var(--rb-border);
  background: rgba(255,255,255,.90);
  box-shadow: var(--rb-shadow-strong);
  padding: 16px;
}
.rb-card--compact{
  padding: 14px 14px;
}
.rb-h3{ margin: 0 0 8px; font-size: 18px; }
.rb-h3--compact{ font-size: 17px; margin-bottom: 6px; }

.rb-p{ margin: 0 0 10px; color: var(--rb-muted); line-height: 1.55; }
.rb-p--compact{ margin-bottom: 8px; font-size: 13.8px; }

.rb-list{ margin: 0; padding-left: 18px; color: var(--rb-muted); }
.rb-list--compact{ padding-left: 16px; font-size: 13.6px; }
.rb-list li{ margin: 6px 0; }
.rb-list--compact li{ margin: 5px 0; }

/* footer solo copyright */
.rb-footer{
  position: relative; z-index: 1;
  padding: 18px 18px 22px;
  border-top: 1px solid var(--rb-border);
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(10px);
}
.rb-footer__copy{
  max-width: 1180px;
  margin: 0 auto;
  color: rgba(10,18,30,.62);
  font-size: 12.5px;
}

/* anim */
.rb-anim{
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
}
.rb-anim--in{ opacity: 1; transform: translateY(0); }

/* responsive */
@media (max-width: 1100px){
  .rb-svcwrap__inner{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .rb-svcwrap__divider{ display: none; }
}
@media (max-width: 980px){
  .rb-mediahero__grid{ grid-template-columns: 1fr; }
  .rb-grid{ grid-template-columns: 1fr; }
  .rb-brand__logo{ height: 64px; }
}
@media (prefers-reduced-motion: reduce){
  .rb-bg__blob, .rb-spot__shine, .rb-tile__shine{ animation: none; }
  .rb-anim{ transition: none; opacity: 1; transform: none; }
}
/* =========================
   RB — RESPONSIVE FINO
   ========================= */

/* Tablets: da un poco más de aire y evita que se estreche demasiado el contacto */
@media (max-width: 1100px){
  .rb-svcwrap__inner{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .rb-svcwrap__divider{ display: none; }

  /* Servicios: si cabe, 2 columnas en tablet */
  .rb-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Móvil: todo a una columna y Maps debajo si hace falta */
@media (max-width: 720px){
  .rb-main{ padding: 14px; }

  .rb-h1{
    font-size: clamp(26px, 6vw, 40px);
  }
  .rb-h1__side{
    width: 100%;
    justify-self: flex-start;
  }

  /* Media: columna única */
  .rb-mediahero__grid{ grid-template-columns: 1fr; }
  .rb-rightcol{ gap: 10px; }

  /* Tiles algo más altas en móvil */
  .rb-tile--big .rb-tile__frame{ aspect-ratio: 16 / 10; }

  /* Contacto: dirección + botón Maps se apilan */
  .rb-contactbox__row{
    flex-direction: column;
    align-items: stretch;
  }
  .rb-btnMap{
    width: 100%;
    text-align: center;
  }

  /* Servicios: 1 columna */
  .rb-grid{
    grid-template-columns: 1fr;
  }

  /* Cards más compactas aún en móvil */
  .rb-card--compact{ padding: 13px 13px; }
  .rb-h3--compact{ font-size: 16px; }
  .rb-list--compact{ font-size: 13.5px; }
}

/* Extra pequeño: reduce logo y sombras para que no “coma” pantalla */
@media (max-width: 420px){
  .rb-brand__logo{ height: 56px; }
  .rb-spot{ box-shadow:
    0 22px 70px rgba(12,32,60,.16),
    0 0 0 6px rgba(246,196,0,.30),
    0 18px 50px rgba(246,196,0,.14);
  }
}

.rb-grid--two{
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px){
  .rb-grid--two{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px){
  .rb-grid--two{
    grid-template-columns: 1fr;
  }
}