/* RB Legal enhancements */
.rb-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:999px;padding:12px 16px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:#fff;text-decoration:none;cursor:pointer;font-weight:700;letter-spacing:.06em}.rb-btn-gold{background:linear-gradient(180deg,#d8b14e,#c39c33);color:#0a0a0a;border:none}.rb-mini{font-size:.84rem;color:#cfc8bb}.rb-note{font-size:.84rem;color:#cfc8bb;line-height:1.6}
.rb-loader{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:#000;transition:opacity .5s ease,visibility .5s ease;overflow:hidden}
.rb-loader.hidden{opacity:0;visibility:hidden}

.rb-loader::before{content:"";position:absolute;inset:0;background:
repeating-linear-gradient(90deg,transparent 0 7%, rgba(195,156,51,.07) 7.06% 7.18%, transparent 7.18% 14%),
radial-gradient(circle at center, rgba(195,156,51,.05), transparent 58%);
opacity:.42;pointer-events:none}
.rb-loader::after{content:"";position:absolute;inset:-10% 0;background:repeating-linear-gradient(90deg,transparent 0 18%, rgba(216,177,78,.18) 18.08% 18.16%, transparent 18.16% 36%);opacity:.18;mix-blend-mode:screen;animation:rbGoldStripes 8s linear infinite;pointer-events:none}
@keyframes rbGoldStripes{0%{transform:translateX(-6%)}50%{transform:translateX(6%)}100%{transform:translateX(-6%)}}

.rb-loader-inner{position:relative;display:grid;gap:18px;place-items:center;padding:34px 40px;border-radius:28px;background:radial-gradient(circle at center, rgba(195,156,51,.10), rgba(0,0,0,0) 68%)}
.rb-loader-logo{width:94px;height:94px;object-fit:contain;animation:rbPulseZoom 2.2s ease-in-out infinite;filter:drop-shadow(0 0 0 rgba(195,156,51,0))}
.rb-loader-line{width:160px;height:2px;background:linear-gradient(90deg,transparent,#c39c33,#fff,#c39c33,transparent);background-size:200% 100%;animation:rbShine 1.8s linear infinite}
@keyframes rbPulseZoom{0%,100%{transform:scale(.92);filter:drop-shadow(0 0 0 rgba(195,156,51,0))}50%{transform:scale(1.06);filter:drop-shadow(0 0 24px rgba(195,156,51,.34))}}
@keyframes rbShine{to{background-position:200% 0}}
.rb-menu-toggle{display:none;width:42px;height:42px;border-radius:999px;border:1px solid rgba(195,156,51,.28);background:rgba(255,255,255,.05);color:var(--text);font-size:1.2rem;cursor:pointer}
.rb-mobile-nav{position:fixed;inset:0;z-index:70;background:rgba(0,0,0,.76);backdrop-filter:blur(12px);opacity:0;visibility:hidden;transition:.28s ease}
.rb-mobile-nav.open{opacity:1;visibility:visible}
.rb-mobile-sheet{position:absolute;top:0;right:0;width:min(360px,90vw);height:100%;background:linear-gradient(180deg,#0a0a0a,#151515);padding:24px;border-left:1px solid rgba(195,156,51,.22);display:grid;gap:18px;align-content:start;transform:translateX(100%);transition:.28s ease}
.rb-mobile-nav.open .rb-mobile-sheet{transform:translateX(0)}
.rb-mobile-sheet a{display:block;padding:14px 0;border-bottom:1px solid rgba(255,255,255,.08);text-decoration:none;color:#fff;text-transform:uppercase;letter-spacing:.1em;font-size:.88rem}
.rb-mobile-close{justify-self:end;width:42px;height:42px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:#fff;cursor:pointer}
.rb-socials{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.rb-socials a{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:999px;border:1px solid rgba(195,156,51,.22);text-decoration:none;color:var(--text-soft);background:rgba(255,255,255,.04)}
.rb-socials a:hover{color:var(--text);border-color:#c39c33}
.rb-chat-bubble{position:fixed;right:22px;bottom:22px;z-index:80;width:66px;height:66px;border-radius:999px;border:none;background:linear-gradient(180deg,#d8b14e,#c39c33);box-shadow:0 18px 38px rgba(0,0,0,.24), 0 0 0 1px rgba(255,255,255,.12) inset;cursor:pointer;display:grid;place-items:center}
.rb-chat-bars{display:flex;gap:5px;align-items:flex-end;height:28px}
.rb-chat-bars span{display:block;width:6px;border-radius:999px;background:#fff;animation:rbBars 1.25s ease-in-out infinite}
.rb-chat-bars span:nth-child(1){height:12px}.rb-chat-bars span:nth-child(2){height:22px;animation-delay:.12s}.rb-chat-bars span:nth-child(3){height:16px;animation-delay:.24s}
@keyframes rbBars{50%{transform:translateY(-4px);opacity:.74}}
.rb-chat-panel{position:fixed;right:22px;bottom:98px;z-index:90;width:min(400px,calc(100vw - 24px));max-height:min(78vh,760px);display:flex;flex-direction:column;border-radius:26px;overflow:hidden;background:linear-gradient(180deg,rgba(10,10,10,.98),rgba(17,17,17,.98));border:1px solid rgba(195,156,51,.18);box-shadow:0 24px 70px rgba(0,0,0,.34);opacity:0;visibility:hidden;transform:translateY(12px);transition:.28s ease}
.rb-chat-panel.open{opacity:1;visibility:visible;transform:translateY(0)}
.rb-chat-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.08)}
.rb-chat-brand{display:flex;align-items:center;gap:12px}.rb-chat-brand img{width:38px;height:38px;object-fit:contain}.rb-chat-brand strong{display:block;font-size:.96rem;letter-spacing:.12em;text-transform:uppercase;color:#fff}.rb-chat-brand span{font-size:.8rem;color:#cfc8bb}
.rb-chat-close{background:transparent;border:1px solid rgba(255,255,255,.12);color:#fff;border-radius:999px;width:34px;height:34px;cursor:pointer}
.rb-chat-actions{display:flex;gap:8px;padding:12px 18px;border-bottom:1px solid rgba(255,255,255,.08);flex-wrap:wrap}.rb-chat-chip{padding:10px 12px;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);color:#fff;font-size:.82rem;cursor:pointer}
.rb-chat-body{padding:18px;overflow:auto;display:grid;gap:12px;min-height:200px}.rb-msg{max-width:88%;padding:12px 14px;border-radius:18px;line-height:1.7;font-size:.94rem}.rb-msg.bot{background:rgba(255,255,255,.05);color:#f8f3e8}.rb-msg.user{background:rgba(195,156,51,.12);border:1px solid rgba(195,156,51,.22);justify-self:end;color:#fff}
.rb-chat-form{padding:14px 18px;border-top:1px solid rgba(255,255,255,.08);display:flex;gap:10px}.rb-chat-form input{flex:1;padding:13px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:#0e0e0e;color:#fff;font:inherit}.rb-chat-form button{padding:0 16px;border-radius:999px;border:none;background:linear-gradient(180deg,#d8b14e,#c39c33);color:#0a0a0a;font-weight:700;cursor:pointer}
.rb-panel-view{padding:16px 18px;border-top:1px solid rgba(255,255,255,.08)}
.rb-contact-mini{display:grid;gap:10px}.rb-contact-mini input,.rb-contact-mini textarea{width:100%;padding:12px 13px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:#0d0d0d;color:#fff;font:inherit}.rb-contact-mini textarea{min-height:112px;resize:vertical}.rb-contact-mini .rb-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.rb-note{font-size:.82rem;color:#bfb7a7}
.rb-overlay{position:fixed;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(10px);z-index:95;display:grid;place-items:center;opacity:0;visibility:hidden;transition:.25s ease}.rb-overlay.open{opacity:1;visibility:visible}.rb-overlay-card{width:min(460px,calc(100vw - 24px));background:linear-gradient(180deg,#0c0c0c,#161616);border:1px solid rgba(195,156,51,.18);border-radius:24px;padding:24px;color:#fff;box-shadow:0 24px 70px rgba(0,0,0,.34)}
.rb-overlay-card h3{margin:0 0 10px}.rb-overlay-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.rb-team-grid-special{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}.rb-team-feature{grid-column:1/-1;display:grid;grid-template-columns:1.05fr 1fr;gap:22px;align-items:stretch}.rb-team-member{position:relative;overflow:hidden}.rb-team-member .photo{height:340px}.rb-team-feature .photo{height:100%}.rb-team-member .body{display:grid;gap:10px}.rb-team-member .rb-more{display:inline-flex;align-items:center;gap:6px;color:var(--gold-soft);text-decoration:none;font-size:.88rem}.rb-team-hover{position:absolute;inset:0;padding:26px;background:linear-gradient(180deg,rgba(4,4,4,.2),rgba(4,4,4,.94));display:flex;flex-direction:column;justify-content:flex-end;opacity:0;transition:.28s ease}.rb-team-member .photo:hover .rb-team-hover{opacity:1}.rb-team-hover p{margin:0;color:#f8f3e8;line-height:1.8}.rb-team-linkedin{display:inline-flex;align-items:center;gap:6px;color:#fff;text-decoration:none;font-size:.84rem}
.rb-bio-modal{position:fixed;inset:0;z-index:96;background:rgba(0,0,0,.78);backdrop-filter:blur(10px);display:grid;place-items:center;opacity:0;visibility:hidden;transition:.25s ease}.rb-bio-modal.open{opacity:1;visibility:visible}.rb-bio-card{width:min(760px,calc(100vw - 24px));background:linear-gradient(180deg,#0c0c0c,#171717);border-radius:28px;border:1px solid rgba(195,156,51,.18);overflow:hidden;display:grid;grid-template-columns:320px 1fr}.rb-bio-card img{width:100%;height:100%;object-fit:cover}.rb-bio-copy{padding:26px}.rb-bio-copy h3{margin:0 0 8px;font-size:1.5rem}.rb-bio-copy p{line-height:1.85;color:#f3efe8}.rb-bio-close{position:absolute;top:18px;right:18px;width:40px;height:40px;border-radius:999px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#fff;cursor:pointer}
.rb-dynamic-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.rb-dynamic-grid .blog-card .copy{display:grid;gap:8px}.rb-media-dynamic{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.rb-media-dynamic .card{overflow:hidden}.rb-media-dynamic img,.rb-media-dynamic video,.rb-media-dynamic iframe{width:100%;height:240px;border:0;object-fit:cover;border-radius:20px 20px 0 0}.rb-media-dynamic .copy{padding:18px}
.rb-article-layout{display:grid;grid-template-columns:minmax(0,1.35fr) 360px;gap:26px}.rb-article-body{line-height:1.9}.rb-article-body img{max-width:100%;border-radius:18px}.rb-article-body h2,.rb-article-body h3{font-family:var(--font-display);letter-spacing:.06em;text-transform:uppercase}.rb-side-list{display:grid;gap:14px}.rb-side-item{padding:16px;border-radius:18px;border:1px solid var(--line);background:rgba(255,255,255,.04)}
@media (max-width: 980px){.rb-menu-toggle{display:grid;place-items:center}.nav-actions .flag-btn,.nav-actions .theme-icon,.nav-actions .contact-btn{display:none}.rb-team-grid-special{grid-template-columns:1fr}.rb-team-feature{grid-template-columns:1fr}.rb-dynamic-grid,.rb-media-dynamic,.rb-article-layout{grid-template-columns:1fr}.rb-bio-card{grid-template-columns:1fr}.rb-bio-card img{height:280px}.rb-chat-panel,.rb-chat-bubble{right:14px}.rb-chat-panel{width:calc(100vw - 20px)}.rb-contact-mini .rb-row{grid-template-columns:1fr}}

/* Final RB adjustments */
.rb-footer-slogan{margin:12px 0 0;color:#e6d080;font-family:var(--font-display);letter-spacing:.12em;text-transform:uppercase;font-size:.84rem}
.rb-hero-slogan{margin:0 0 16px;color:#e6d080;font-family:var(--font-display);letter-spacing:.14em;text-transform:uppercase;font-size:.92rem}
.site-footer .footer-grid{align-items:start}
.site-footer .footer-menu a{display:block;margin:6px 0}
.site-footer .footer-bottom{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;padding-top:18px;margin-top:18px;border-top:1px solid rgba(255,255,255,.08);color:var(--text-soft)}
.rb-socials a{font-weight:700;letter-spacing:.04em}
.rb-menu-toggle{display:none;grid-template-columns:1fr;gap:4px;padding:0 11px}
.rb-menu-toggle span{display:block;width:18px;height:2px;background:#fff;border-radius:999px}
.rb-mobile-sheet .rb-mobile-links{display:grid;gap:2px}
.rb-chat-bubble{background:linear-gradient(180deg,#d8b14e,#c39c33)!important}
.rb-chat-bubble::before,.rb-chat-bubble::after{display:none!important;content:none!important}
.rb-chat-panel{backdrop-filter:blur(14px)}
.rb-chat-chip{text-decoration:none}
.rb-overlay-card-sm{width:min(430px,calc(100vw - 28px));text-align:center}
.rb-clock{font-size:2rem;margin-bottom:10px}
.rb-form-modal-card{position:relative;width:min(620px,calc(100vw - 24px))}
.rb-modal-close{position:absolute;top:14px;right:14px;width:38px;height:38px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:#fff;cursor:pointer}
.rb-contact-mini .rb-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rb-contact-mini .rb-form-status{min-height:20px}
.rb-team-grid-special{display:grid;gap:24px}
.rb-team-row{display:grid;gap:24px}
.rb-team-row-top{grid-template-columns:1.2fr 1fr 1fr}
.rb-team-row-bottom{grid-template-columns:1fr 1fr;max-width:860px;margin:0 auto}
.rb-team-member{position:relative;overflow:hidden;height:100%}
.rb-team-member .photo{height:360px}
.rb-team-lead .photo{height:420px}
.rb-team-member .body{display:grid;gap:10px;padding:24px}
.rb-team-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:2px}
.rb-team-member .rb-more,.rb-team-linkedin{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border-radius:999px;border:1px solid rgba(195,156,51,.26);text-decoration:none;font-size:.84rem;letter-spacing:.08em;text-transform:uppercase;transition:.25s ease}
.rb-team-member .rb-more{background:rgba(195,156,51,.12);color:#f2dc9e}
.rb-team-member .rb-more:hover{background:linear-gradient(180deg,#d8b14e,#c39c33);color:#0a0a0a}
.rb-team-linkedin{background:rgba(255,255,255,.04);color:#fff}
.rb-team-linkedin:hover{border-color:#fff;color:#fff;transform:translateY(-1px)}
.rb-team-hover{padding:24px}
.rb-team-hover p{font-size:.95rem}
.rb-dynamic-grid,.rb-media-dynamic{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.rb-dynamic-grid .card,.rb-media-dynamic .card{overflow:hidden}
.rb-empty-card .copy{padding:24px}
.rb-side-item{text-decoration:none;color:inherit}
.rb-side-item strong{display:block;margin-bottom:6px}
@media (max-width: 1080px){
  .rb-team-row-top{grid-template-columns:1fr 1fr}
  .rb-team-row-top .rb-team-lead{grid-column:1/-1}
}
@media (max-width: 980px){
  .rb-menu-toggle{display:grid;place-items:center}
  .rb-team-row-top,.rb-team-row-bottom,.rb-dynamic-grid,.rb-media-dynamic{grid-template-columns:1fr}
  .rb-team-row-bottom{max-width:none}
}
@media (max-width: 720px){
  .rb-footer-slogan,.rb-hero-slogan{font-size:.78rem;letter-spacing:.1em}
  .rb-contact-mini .rb-row{grid-template-columns:1fr}
  .site-footer .footer-bottom{flex-direction:column}
}
.rb-chat-bubble{padding:0!important;line-height:0!important;border-radius:50%!important;overflow:hidden!important;}.rb-chat-bubble *{pointer-events:none;}.rb-chat-bars{width:28px;justify-content:center;}


.rb-team-grid-special{max-width:1320px;margin:0 auto}
.rb-team-row-top{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.rb-team-row-bottom{grid-template-columns:repeat(2,minmax(0,1fr));max-width:920px;margin:0 auto;align-items:stretch}
.rb-team-member{display:flex;flex-direction:column;border-radius:26px}
.rb-team-member .photo{height:360px;background:#111}
.rb-team-lead{border-color:rgba(195,156,51,.34);box-shadow:0 18px 42px rgba(0,0,0,.18), inset 0 0 0 1px rgba(195,156,51,.06)}
.rb-team-lead .photo{height:360px}
.rb-team-member .body{display:grid;grid-template-rows:auto auto 1fr auto;min-height:244px}
.rb-team-member h3{font-size:1.2rem;margin:0}
.rb-team-member p{margin:0;color:var(--text-soft);line-height:1.75}
.rb-team-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:10px}
.rb-team-member .rb-more,.rb-team-linkedin{min-height:44px;padding:0 16px;font-size:.8rem;letter-spacing:.12em;font-weight:700}
.rb-team-member .rb-more{position:relative;overflow:hidden;background:linear-gradient(180deg,rgba(195,156,51,.18),rgba(195,156,51,.08));border-color:rgba(195,156,51,.34);color:#f3dfab}
.rb-team-member .rb-more::after{content:"→";margin-left:8px;transition:transform .2s ease}
.rb-team-member .rb-more:hover::after{transform:translateX(3px)}
.rb-team-linkedin{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.14)}
.rb-team-linkedin::before{content:"in";display:inline-grid;place-items:center;width:18px;height:18px;border-radius:999px;background:#0a66c2;color:#fff;font-size:.72rem;font-weight:800;text-transform:none;letter-spacing:0}
.rb-team-hover{padding:26px;background:linear-gradient(180deg,rgba(0,0,0,.18),rgba(6,6,6,.94) 55%,rgba(6,6,6,.98));justify-content:flex-end}
.rb-team-hover p{font-size:.95rem;line-height:1.9}
.rb-team-member .meta{margin-bottom:4px}
.rb-privacy a{color:var(--gold-soft);text-decoration:none}
.rb-privacy a:hover{text-decoration:underline}
.footer-bottom{align-items:center}
.footer-bottom .rb-dev-credit{opacity:.92}
.footer-bottom a{color:var(--gold-soft);text-decoration:none}
.footer-bottom a:hover{text-decoration:underline}
@media (max-width:1080px){.rb-team-row-top{grid-template-columns:1fr 1fr}.rb-team-row-top .rb-team-lead{grid-column:1/-1}}
@media (max-width:980px){.rb-team-row-top,.rb-team-row-bottom{grid-template-columns:1fr}.rb-team-row-bottom{max-width:none}.rb-team-member .photo,.rb-team-lead .photo{height:380px}}
@media (max-width:720px){.rb-team-member .photo,.rb-team-lead .photo{height:340px}.rb-team-actions{flex-direction:column;align-items:stretch}.rb-team-member .rb-more,.rb-team-linkedin{width:100%}}

/* Team page last adjustment */
.rb-team-row{display:grid;gap:26px}
.rb-team-row-top{grid-template-columns:repeat(2,minmax(0,1fr))}
.rb-team-row-bottom{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none;margin:0}
@media (max-width:1080px){.rb-team-row-top{grid-template-columns:repeat(2,minmax(0,1fr))}.rb-team-row-bottom{max-width:none}}
@media (max-width:760px){.rb-team-row-top,.rb-team-row-bottom{grid-template-columns:1fr}}


/* General visual review */
.page-hero h1,
html[data-theme="light"] .page-hero h1,
.page-hero .eyebrow,
.page-hero .eyebrow span,
.page-hero .intro,
html[data-theme="light"] .page-hero .intro,
.page-hero .intro *{
  color:#fff !important;
  text-shadow:0 6px 24px rgba(0,0,0,.25);
}
.page-hero{position:relative;isolation:isolate}
.page-hero::before{opacity:.78 !important}
.page-hero::after{opacity:.24 !important}
html[data-theme="light"] .page-hero::after{opacity:.18 !important}
html[data-theme="light"] .section-head .title,
html[data-theme="light"] .card h3,
html[data-theme="light"] .panel h3,
html[data-theme="light"] .panel h2,
html[data-theme="light"] .title{color:#171717}
html[data-theme="dark"] .section-head .title,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .panel h3,
html[data-theme="dark"] .panel h2,
html[data-theme="dark"] .title{color:#fff}

/* Mobile menu polish */
.rb-mobile-sheet{display:grid;grid-template-rows:auto auto 1fr auto;gap:18px;padding:24px 24px 22px}
.rb-mobile-brand{display:grid;justify-items:center;gap:12px;padding-top:8px}
.rb-mobile-brand img{width:66px;height:66px;object-fit:contain;filter:drop-shadow(0 0 18px rgba(195,156,51,.22))}
.rb-mobile-brand strong{display:block;color:#fff;letter-spacing:.24em;text-transform:uppercase;font-size:.92rem;text-align:center}
.rb-mobile-brand span{display:block;color:#d3c7aa;letter-spacing:.34em;text-transform:uppercase;font-size:.66rem;text-align:center}
.rb-mobile-links{display:grid;gap:2px}
.rb-mobile-links a{position:relative;padding:14px 0 14px 2px}
.rb-mobile-links a.active{color:#fff}
.rb-mobile-links a.active::after{content:"";position:absolute;left:0;bottom:6px;width:54px;height:2px;border-radius:999px;background:linear-gradient(90deg,#d8b14e,#c39c33)}
.rb-mobile-socials{display:flex;justify-content:center;gap:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.08)}
.rb-mobile-socials a{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:999px;border:1px solid rgba(195,156,51,.24);text-decoration:none;background:rgba(255,255,255,.05);color:#fff;font-weight:700}
.rb-mobile-socials a:hover{border-color:#d8b14e;color:#f2dc9e}

/* Socials */
.rb-socials{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.rb-socials a{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:999px;border:1px solid rgba(195,156,51,.22);text-decoration:none;color:#fff;background:rgba(255,255,255,.04);font-weight:700}
.rb-socials a:hover{color:#f2dc9e;border-color:#c39c33;transform:translateY(-1px)}

/* Random CTA and gallery image freshness */
.rb-random-cta{padding:0 0 84px}
.rb-random-cta .rb-cta-shell{display:grid;grid-template-columns:1fr 1.02fr;gap:24px;align-items:stretch;border-radius:30px;overflow:hidden;border:1px solid var(--line);background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));box-shadow:var(--shadow)}
html[data-theme="light"] .rb-random-cta .rb-cta-shell{background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(255,255,255,.72))}
.rb-random-cta .copy{padding:34px;display:grid;align-content:center;gap:14px;position:relative}
.rb-random-cta .copy::before{content:"";position:absolute;inset:18px auto 18px 18px;width:4px;border-radius:999px;background:linear-gradient(180deg,#d8b14e,#c39c33)}
.rb-random-cta h3{margin:0;font-family:var(--font-display);text-transform:uppercase;letter-spacing:.08em;font-size:clamp(1.5rem,2.4vw,2.35rem)}
.rb-random-cta p{margin:0;color:var(--text-soft);line-height:1.85}
.rb-random-cta .media{min-height:320px;background:#101010}
.rb-random-cta .media img{width:100%;height:100%;object-fit:cover;display:block}

/* Service cards */
.rb-services-enhanced{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.rb-service-card{padding:24px;display:grid;gap:14px;align-content:start;min-height:100%;position:relative;overflow:hidden}
.rb-service-icon{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;border:1px solid rgba(195,156,51,.28);background:linear-gradient(180deg,rgba(195,156,51,.14),rgba(195,156,51,.05));font-size:1.32rem;color:#f2dc9e}
.rb-service-card h3{margin:0;font-size:1.06rem;line-height:1.45;text-transform:uppercase;letter-spacing:.06em}
.rb-service-card p{margin:0;color:var(--text-soft);line-height:1.78}
.rb-service-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
.rb-service-more{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 15px;border-radius:999px;border:1px solid rgba(195,156,51,.28);background:rgba(195,156,51,.10);color:#f2dc9e;text-decoration:none;font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;cursor:pointer}
.rb-service-more:hover{background:linear-gradient(180deg,#d8b14e,#c39c33);color:#0a0a0a}
.rb-service-modal .rb-overlay-card{width:min(760px,calc(100vw - 28px));position:relative}
.rb-service-modal .rb-service-modal-icon{width:60px;height:60px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(180deg,rgba(216,177,78,.18),rgba(195,156,51,.08));border:1px solid rgba(195,156,51,.26);color:#f2dc9e;font-size:1.5rem;margin-bottom:14px}
.rb-service-modal h3{margin:0 0 10px;font-family:var(--font-display);letter-spacing:.08em;text-transform:uppercase}
.rb-service-cases{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.rb-service-cases div{padding:14px 16px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);line-height:1.7;color:#efe8db}
.rb-service-close{position:absolute;top:16px;right:16px;width:38px;height:38px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);color:#fff;cursor:pointer}

/* Gallery and image freshness */
.rb-randomized-media img{transition:transform .4s ease, filter .4s ease}
.rb-randomized-media:hover img{transform:scale(1.03);filter:saturate(1.06)}

/* Footer */
.site-footer .footer-address strong{color:#fff}
.site-footer .footer-bottom{align-items:center}
.site-footer .footer-bottom span{display:inline-flex;align-items:center;gap:8px}

@media (max-width:1080px){
  .rb-services-enhanced{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rb-random-cta .rb-cta-shell{grid-template-columns:1fr}
}
@media (max-width:720px){
  .rb-services-enhanced,.rb-service-cases{grid-template-columns:1fr}
  .rb-random-cta{padding:0 0 70px}
  .rb-random-cta .copy{padding:26px 24px 28px}
}


/* === April 2026 targeted public-site refinements === */
.rb-footer-slogan{display:none !important}
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .kicker,
html[data-theme="light"] .team-card .meta,
html[data-theme="light"] .type,
html[data-theme="light"] .quote strong,
html[data-theme="light"] .rb-mini,
html[data-theme="light"] .rb-hero-slogan,
html[data-theme="light"] .stat strong,
html[data-theme="light"] .carousel-tag{color:#8c6110 !important}
html[data-theme="light"] .eyebrow::before,
html[data-theme="light"] .line-gold,
html[data-theme="light"] .line-gold::after{filter:saturate(1.08) contrast(1.08)}
html[data-theme="light"] .rb-team-member .rb-more,
html[data-theme="light"] .rb-service-more{color:#7a540c;border-color:rgba(140,97,16,.32);background:rgba(195,156,51,.12)}
html[data-theme="light"] .rb-team-linkedin{color:#1e1e1e}
html[data-theme="light"] .rb-team-linkedin.is-placeholder{opacity:.78;border-style:dashed}
html[data-theme="light"] .rb-team-linkedin.is-placeholder:hover{transform:none}

/* Contact maps */
.rb-office-map-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.rb-office-map-card{display:grid;gap:14px;align-content:start}
.rb-office-map-card h3{margin:0;font-size:1.35rem}
.rb-office-map-card p{margin:0;color:var(--text-soft);line-height:1.8}
.rb-office-map-embed{border-radius:22px;overflow:hidden;border:1px solid var(--line);background:#111;min-height:300px}
.rb-office-map-embed iframe{display:block;width:100%;height:300px;border:0}

/* Chat help bubble */
.rb-chat-bubble{width:auto !important;min-width:70px !important;height:70px !important;padding:0 14px 0 14px !important;border-radius:999px !important;display:flex !important;align-items:center;gap:10px;overflow:visible !important}
.rb-chat-icon{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:999px;background:rgba(10,10,10,.12);font-size:1.1rem;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.rb-chat-hint{position:absolute;right:82px;top:50%;transform:translateY(-50%);white-space:nowrap;padding:10px 14px;border-radius:999px;background:rgba(10,10,10,.94);color:#fff;font-size:.82rem;letter-spacing:.02em;line-height:1.2;box-shadow:0 16px 36px rgba(0,0,0,.24);border:1px solid rgba(195,156,51,.22);animation:rbHintFade 8s ease forwards}
.rb-chat-hint::after{content:"";position:absolute;right:-7px;top:50%;width:12px;height:12px;transform:translateY(-50%) rotate(45deg);background:rgba(10,10,10,.94);border-right:1px solid rgba(195,156,51,.22);border-top:1px solid rgba(195,156,51,.22)}
@keyframes rbHintFade{0%,62%{opacity:1;visibility:visible}100%{opacity:0;visibility:hidden}}

/* Team modal and placeholders */
.rb-bio-copy .rb-bio-html p{margin:0 0 14px;line-height:1.85;color:#f4efe4}
.rb-bio-copy .rb-bio-html strong{color:#f2dc9e}
.rb-team-linkedin.is-placeholder{pointer-events:none;cursor:default;opacity:.74;border-style:dashed}

/* Service detail modal with image */
.rb-service-modal .rb-overlay-card{max-width:min(880px,calc(100vw - 28px));display:grid;grid-template-columns:1.05fr .95fr;gap:22px;align-items:stretch}
.rb-service-modal-copy{padding-right:8px}
.rb-service-modal-media{border-radius:22px;overflow:hidden;border:1px solid rgba(255,255,255,.08);background:#101010;min-height:260px}
.rb-service-modal-media img{width:100%;height:100%;object-fit:cover;display:block}

/* Smooth reveal */
body.rb-motion-ready .page-hero .container,
body.rb-motion-ready .hero-content > *,
body.rb-motion-ready .section .panel,
body.rb-motion-ready .section .card,
body.rb-motion-ready .section .media-frame,
body.rb-motion-ready .rb-office-map-card,
body.rb-motion-ready .carousel-section,
body.rb-motion-ready .site-footer{opacity:0;transform:translateY(22px);transition:opacity .72s ease, transform .72s cubic-bezier(.2,.7,.2,1);will-change:opacity,transform}
body.rb-motion-ready .rb-in-view{opacity:1 !important;transform:none !important}
@media (prefers-reduced-motion: reduce){
  body.rb-motion-ready .page-hero .container,
  body.rb-motion-ready .hero-content > *,
  body.rb-motion-ready .section .panel,
  body.rb-motion-ready .section .card,
  body.rb-motion-ready .section .media-frame,
  body.rb-motion-ready .rb-office-map-card,
  body.rb-motion-ready .carousel-section,
  body.rb-motion-ready .site-footer{opacity:1 !important;transform:none !important;transition:none !important}
}
@media (max-width:1080px){
  .rb-service-modal .rb-overlay-card,.rb-office-map-grid{grid-template-columns:1fr}
}
@media (max-width:760px){
  .rb-chat-bubble{right:12px !important;bottom:14px !important;min-width:62px !important;height:62px !important;padding:0 12px !important}
  .rb-chat-icon{width:38px;height:38px;font-size:1rem}
  .rb-chat-hint{right:70px;font-size:.76rem;padding:9px 12px;max-width:min(70vw,250px);white-space:normal}
  .rb-office-map-embed,.rb-office-map-embed iframe{min-height:250px;height:250px}
}


/* === April 2026 corrective refinement pass === */
:root{--rb-soft-shadow:0 20px 50px rgba(0,0,0,.18);--rb-soft-shadow-light:0 18px 40px rgba(30,22,10,.08)}
.flag-btn{position:relative !important;font-size:0 !important;color:transparent !important;overflow:hidden;display:inline-grid !important;place-items:center !important}
.flag-btn::before{content:"";display:block;width:21px;height:21px;border-radius:999px;box-shadow:0 0 0 1px rgba(255,255,255,.18) inset,0 4px 12px rgba(0,0,0,.18)}
.flag-btn[data-lang="es"]::before{background:linear-gradient(90deg,#006847 0 33.33%,#ffffff 33.33% 66.66%,#ce1126 66.66% 100%)}
.flag-btn[data-lang="en"]::before{background:
linear-gradient(180deg,#b22234 0 7.69%,#fff 7.69% 15.38%,#b22234 15.38% 23.07%,#fff 23.07% 30.76%,#b22234 30.76% 38.45%,#fff 38.45% 46.14%,#b22234 46.14% 53.83%,#fff 53.83% 61.52%,#b22234 61.52% 69.21%,#fff 69.21% 76.9%,#b22234 76.9% 84.59%,#fff 84.59% 92.28%,#b22234 92.28% 100%),
linear-gradient(180deg,#3c3b6e 0 55%,transparent 55% 100%);
background-size:100% 100%,48% 54%;background-repeat:no-repeat;background-position:center,top left}
.flag-btn.active{border-color:rgba(216,177,78,.68) !important;background:rgba(216,177,78,.14) !important;box-shadow:0 0 0 1px rgba(216,177,78,.22) inset,0 12px 20px rgba(0,0,0,.14)}
.theme-icon{color:#fff !important;text-shadow:0 1px 6px rgba(0,0,0,.22)}
.nav-actions{align-items:center}

.page-hero{overflow:hidden}
.page-hero .container{position:relative;z-index:2}
.page-hero::after{background:url('../media/logos/diagonal.png') no-repeat right center/contain !important;opacity:.36 !important;mix-blend-mode:screen !important;right:-2% !important;width:min(45vw,660px) !important}
html[data-theme="light"] .page-hero::after{opacity:.24 !important}
.page-hero::before{background:linear-gradient(108deg,rgba(0,0,0,.22) 0 56%,rgba(216,177,78,.09) 56% 56.8%,rgba(255,255,255,.03) 56.8% 100%) !important}

.card,.panel,.office-card,.map-card,.site-footer,.image-carousel,.rb-team-member,.rb-service-card,.rb-bio-card,.rb-service-modal .rb-overlay-card{box-shadow:var(--rb-soft-shadow)}
html[data-theme="light"] .card,
html[data-theme="light"] .panel,
html[data-theme="light"] .office-card,
html[data-theme="light"] .map-card,
html[data-theme="light"] .site-footer,
html[data-theme="light"] .image-carousel,
html[data-theme="light"] .rb-team-member,
html[data-theme="light"] .rb-service-card,
html[data-theme="light"] .rb-bio-card,
html[data-theme="light"] .rb-service-modal .rb-overlay-card{box-shadow:var(--rb-soft-shadow-light);border-color:rgba(141,110,38,.18) !important}
html[data-theme="light"] .card,
html[data-theme="light"] .panel,
html[data-theme="light"] .office-card,
html[data-theme="light"] .team-card,
html[data-theme="light"] .rb-team-member,
html[data-theme="light"] .rb-service-card{background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(247,242,233,.94)) !important}
html[data-theme="light"] .site-footer{background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(244,237,225,.98)) !important}
html[data-theme="light"] .site-footer,
html[data-theme="light"] .site-footer *:not(.btn):not(.contact-btn){color:#27231b}
html[data-theme="light"] .site-footer .footer-bottom,
html[data-theme="light"] .site-footer .footer-address,
html[data-theme="light"] .site-footer p{color:#5b5347 !important}

.image-carousel{padding:8px;border-radius:30px;overflow:hidden;background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));border:1px solid var(--line);position:relative}
.carousel-track{display:flex;gap:18px;transition:transform .95s cubic-bezier(.2,.7,.2,1);will-change:transform;align-items:stretch}
.carousel-slide{position:relative;flex:0 0 clamp(240px,28vw,340px);aspect-ratio:4/3;border-radius:24px;overflow:hidden;background:#111;border:1px solid rgba(255,255,255,.08)}
.carousel-slide img{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.01);transition:transform .85s ease,filter .85s ease;opacity:1 !important}
.carousel-slide:hover img{transform:scale(1.05);filter:saturate(1.06)}
.carousel-tag{position:absolute;left:14px;bottom:14px;padding:8px 12px;border-radius:999px;background:rgba(0,0,0,.42);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.12);font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:#fff}

.rb-randomized-media,.rb-diagonal-frame{overflow:hidden;position:relative}
.rb-diagonal-frame::before{content:"";position:absolute;inset:16px;border:1px solid rgba(216,177,78,.28);border-radius:22px;z-index:2;pointer-events:none}
.rb-diagonal-frame img{object-fit:contain !important;background:radial-gradient(circle at center,rgba(195,156,51,.06),transparent 58%),linear-gradient(180deg,#0f0f0f,#151515)}
html[data-theme="light"] .rb-diagonal-frame img{background:radial-gradient(circle at center,rgba(195,156,51,.08),transparent 58%),linear-gradient(180deg,#fcfbf7,#f4ede1)}

.rb-service-card{display:grid !important;grid-template-rows:auto auto 1fr auto;align-items:start;min-height:100%;border-radius:24px}
.rb-service-icon{width:58px;height:58px;border-radius:18px;padding:14px}
.rb-service-icon svg,.rb-service-modal-icon svg,.rb-chat-icon svg{width:100%;height:100%;display:block;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.rb-service-icon,.rb-service-modal-icon{color:#efcb73}
.rb-service-card h3{min-height:3.2em}
.rb-service-card p{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.rb-service-actions{margin-top:8px}

.rb-service-modal .rb-overlay-card{max-width:min(920px,calc(100vw - 28px));grid-template-columns:1.06fr .9fr;gap:20px;padding:22px 22px 22px 24px}
.rb-service-modal-media{position:relative;min-height:300px;background:#111;border-radius:24px;overflow:hidden;border:1px solid rgba(255,255,255,.08)}
.rb-service-slider{position:relative;width:100%;height:100%}
.rb-service-slide{position:absolute;inset:0;opacity:0;transition:opacity .65s ease}
.rb-service-slide.is-active{opacity:1}
.rb-service-slide img{width:100%;height:100%;object-fit:cover;display:block}
.rb-service-cases-wrap{margin-top:18px}
.rb-service-minihead{margin-bottom:10px;font-size:.76rem;letter-spacing:.18em;text-transform:uppercase;color:#c9b480}
.rb-service-cases{grid-template-columns:1fr !important;gap:10px !important}
.rb-service-cases div{padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
html[data-theme="light"] .rb-service-cases div{background:rgba(90,67,22,.03);border-color:rgba(141,110,38,.16);color:#42392c}

.rb-team-member{border-radius:28px;overflow:hidden}
.rb-team-member .photo{height:380px !important;border-bottom:1px solid rgba(255,255,255,.08)}
.rb-team-member .photo img{transition:transform .9s ease,filter .7s ease}
.rb-team-member:hover .photo img{transform:scale(1.04);filter:saturate(1.04)}
.rb-team-hover{opacity:0;transform:translateY(16px);transition:opacity .45s ease,transform .45s ease}
.rb-team-member .photo:hover .rb-team-hover,.rb-team-member:hover .rb-team-hover{opacity:1;transform:none}
.rb-team-member .body{padding:24px 24px 22px !important;display:grid;grid-template-rows:auto auto 1fr auto;gap:10px}
.rb-bio-card{width:min(980px,calc(100vw - 30px));grid-template-columns:minmax(280px,340px) 1fr;max-height:min(88vh,820px)}
.rb-bio-card img{height:100%;min-height:100%;object-fit:cover}
.rb-bio-copy{padding:34px 32px 28px;overflow:auto}
.rb-bio-copy h3{font-size:clamp(1.5rem,2vw,2rem);margin-bottom:10px}
.rb-bio-copy .rb-mini{margin-bottom:16px;display:block}
.rb-bio-copy p{margin:0 0 14px;line-height:1.82}
.rb-bio-close{background:rgba(10,10,10,.42)}
html[data-theme="light"] .rb-bio-card{background:linear-gradient(180deg,#fff,#f6efe4)}
html[data-theme="light"] .rb-bio-copy p,
html[data-theme="light"] .rb-bio-card h3,
html[data-theme="light"] .rb-bio-card .rb-mini{color:#242019}

.rb-chat-bubble{width:68px !important;height:68px !important}
.rb-chat-icon{width:30px;height:30px;display:grid;place-items:center;color:#fff}
.rb-chat-hint{position:absolute;right:78px;bottom:50%;transform:translateY(50%);white-space:nowrap;background:rgba(12,12,12,.9);color:#fff;border:1px solid rgba(255,255,255,.1);border-radius:999px;padding:10px 14px;font-size:.78rem;line-height:1.1;opacity:0;pointer-events:none;transition:opacity .25s ease,transform .25s ease}
.rb-chat-bubble:hover .rb-chat-hint{opacity:1;transform:translateY(50%) translateX(-2px)}

.rb-loader{transition:opacity .35s ease,visibility .35s ease}
.rb-loader-inner{padding:26px 34px}
.rb-loader-logo{width:86px;height:86px}

.footer-bottom .rb-dev-credit{opacity:.88}
html[data-theme="light"] .footer-bottom .rb-dev-credit{color:#6c6254 !important}

@media (max-width:1080px){
  .rb-service-modal .rb-overlay-card,.rb-bio-card{grid-template-columns:1fr}
  .rb-bio-card img{max-height:300px}
}
@media (max-width:760px){
  .carousel-slide{flex-basis:82vw}
  .rb-team-member .photo{height:340px !important}
  .rb-service-modal .rb-overlay-card{padding:18px}
  .rb-chat-hint{display:none}
}

/* === final touch overrides === */
.arch-bg::after{background-image:url('../media/logos/arquitectura-rb.png') !important;background-size:cover !important;background-position:center right !important;opacity:.14 !important}
html[data-theme="light"] .arch-bg::after{opacity:.08 !important}
.rb-team-row-top{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
.rb-team-row-bottom{grid-template-columns:repeat(2,minmax(0,1fr)) !important;max-width:none !important}


@media (max-width:1080px){.rb-team-row-top,.rb-team-row-bottom{grid-template-columns:1fr 1fr !important}}
@media (max-width:760px){.rb-team-row-top,.rb-team-row-bottom{grid-template-columns:1fr !important}}


/* 2026 final smooth pass */
.flag-btn{display:none !important}
.rb-lang-toggle{width:auto;min-width:62px;height:36px;padding:0 10px;border-radius:999px;border:1px solid var(--line-strong);background:rgba(255,255,255,.05);color:var(--text);display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:.28s ease;box-shadow:0 8px 20px rgba(0,0,0,.12)}
.rb-lang-toggle:hover{transform:translateY(-2px);border-color:var(--gold);background:rgba(195,156,51,.12)}
.rb-lang-flag{width:21px;height:21px;display:block;flex:0 0 21px}
.rb-lang-flag svg{display:block;width:100%;height:100%}
.rb-lang-code{font-size:.64rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;line-height:1}
.theme-icon{font-size:0 !important;color:var(--text) !important}
.rb-theme-icon{display:inline-grid;place-items:center;width:18px;height:18px;color:currentColor}
.rb-theme-icon svg{width:100%;height:100%;display:block;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

.page-shell::before{background-image:url('media/logos/isotipo-rb-correcto.png') !important;background-repeat:repeat !important;background-size:92px auto !important;background-position:22px 28px !important;opacity:.02 !important;filter:grayscale(1) brightness(1.02) !important}
html[data-theme="light"] .page-shell::before{opacity:.012 !important;filter:grayscale(1) sepia(.26) brightness(.78) !important}
.page-hero::after{background:url('media/logos/diagonal.png') no-repeat center/contain !important;right:-1.5% !important;top:-3% !important;width:min(46vw,620px) !important;height:126% !important;opacity:.28 !important;transform:none !important;mix-blend-mode:normal !important}
html[data-theme="light"] .page-hero::after{opacity:.2 !important}

.rb-loader{transition:opacity .78s ease,visibility .78s ease !important}
.rb-loader-inner{transition:transform .6s ease,opacity .6s ease}
.rb-loader.hidden .rb-loader-inner{opacity:0;transform:translateY(-8px) scale(.98)}
.rb-loader-logo{width:86px !important;height:86px !important}
.rb-loader-line{width:142px !important}

.hero-bg{opacity:0;transition:opacity .9s ease,transform 7s ease !important}
.hero-bg.rb-bg-ready{opacity:1}
.media-frame img,.carousel-slide img,.rb-service-slide img,.rb-random-cta .media img,.rb-bio-card img,.rb-team-member .photo img{opacity:0;transition:opacity .75s ease,transform .9s ease,filter .9s ease}
.media-frame img.rb-img-ready,.carousel-slide img.rb-img-ready,.rb-service-slide img.rb-img-ready,.rb-random-cta .media img.rb-img-ready,.rb-bio-card img.rb-img-ready,.rb-team-member .photo img.rb-img-ready{opacity:1}
.media-frame{background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));overflow:hidden}
.rb-diagonal-frame{display:grid;place-items:center;background:radial-gradient(circle at center,rgba(195,156,51,.12),rgba(255,255,255,.02) 62%) !important}
.rb-diagonal-frame img{object-fit:contain !important;padding:22px !important;opacity:1 !important}

.image-carousel{padding:0 !important;min-height:clamp(290px,38vw,470px);border-radius:28px !important;overflow:hidden}
.carousel-track{display:block !important;position:relative !important;min-height:clamp(290px,38vw,470px)}
.carousel-slide{position:absolute !important;inset:0 !important;flex:none !important;min-width:0 !important;width:100% !important;aspect-ratio:auto !important;opacity:0;transform:scale(1.025);transition:opacity 1.08s ease,transform 6s ease;border-radius:28px !important;overflow:hidden;pointer-events:none}
.carousel-slide.is-active{opacity:1;transform:scale(1);pointer-events:auto}
.carousel-slide img{width:100%;height:100%;object-fit:cover;display:block}
.carousel-slide.is-active img{transform:scale(1.01)}
.carousel-tag{left:18px !important;bottom:18px !important;padding:8px 13px !important}

.rb-service-modal .rb-overlay-card{max-width:min(860px,calc(100vw - 28px)) !important;grid-template-columns:1fr .9fr !important;gap:18px !important;padding:22px 22px 22px 24px !important}
.rb-service-modal-media{min-height:250px !important;max-height:350px;align-self:start}
.rb-service-close{z-index:6 !important;top:14px !important;right:14px !important;background:rgba(10,10,10,.62) !important}
.rb-service-slide{transition:opacity .85s ease !important}

.rb-team-member{border-radius:28px !important;overflow:hidden}
.rb-team-member .photo{background:#0f0f0f;overflow:hidden}
.rb-team-member .photo img{object-position:center top}
.rb-team-member .body{min-height:300px !important}
.rb-bio-card{max-height:min(92vh,860px) !important;overflow:hidden}
.rb-bio-copy{overflow:auto !important}
.rb-bio-copy-body{padding-right:2px}

.rb-chat-bubble{width:68px !important;height:68px !important;display:grid !important;place-items:center !important;padding:0 !important}
.rb-chat-icon{width:34px !important;height:34px !important;display:grid !important;place-items:center !important;margin:auto !important;background:transparent !important;box-shadow:none !important}
.rb-chat-icon svg{width:24px !important;height:24px !important}
.rb-chat-hint{right:82px !important;top:50% !important;bottom:auto !important;transform:translateY(-50%) !important;opacity:0;transition:opacity .24s ease,transform .24s ease !important}
.rb-chat-bubble:hover .rb-chat-hint{opacity:1;transform:translateY(-50%) translateX(-2px) !important}

body.rb-motion-ready .page-hero .container,
body.rb-motion-ready .hero-content > *,
body.rb-motion-ready .section .section-head,
body.rb-motion-ready .section .panel,
body.rb-motion-ready .section .card,
body.rb-motion-ready .section .media-frame,
body.rb-motion-ready .rb-office-map-card,
body.rb-motion-ready .carousel-section,
body.rb-motion-ready .site-footer{opacity:0;transform:translateY(16px);transition:opacity .66s ease,transform .66s cubic-bezier(.2,.7,.2,1);will-change:opacity,transform}
body.rb-motion-ready .rb-in-view{opacity:1 !important;transform:none !important}

.card,.panel,.office-card,.site-footer,.image-carousel,.rb-team-member,.rb-service-card,.rb-bio-card,.rb-service-modal .rb-overlay-card{border-color:rgba(195,156,51,.16) !important}
html[data-theme="light"] .card,
html[data-theme="light"] .panel,
html[data-theme="light"] .office-card,
html[data-theme="light"] .site-footer,
html[data-theme="light"] .image-carousel,
html[data-theme="light"] .rb-team-member,
html[data-theme="light"] .rb-service-card,
html[data-theme="light"] .rb-bio-card,
html[data-theme="light"] .rb-service-modal .rb-overlay-card{background:linear-gradient(180deg,rgba(255,255,255,.985),rgba(246,240,229,.955)) !important;border-color:rgba(141,110,38,.22) !important}

@media (max-width:980px){
  .rb-service-modal .rb-overlay-card,.rb-bio-card{grid-template-columns:1fr !important}
  .rb-service-modal-media{max-height:none}
}
@media (max-width:760px){
  .rb-lang-code{display:none}
  .page-shell::before{background-size:78px auto !important}
  .image-carousel,.carousel-track{min-height:280px}
  .rb-team-member .body{min-height:auto !important}
}


/* === 2026 refined final override === */
:root{--rb-logo-pattern-url:url("media/logos/isotipo-rb-correcto.png");--rb-diagonal-url:url("media/logos/diagonal.png");--rb-arch-url:url("media/logos/arquitectura-rb.png")}
.rb-lang-toggle{min-width:50px !important;width:50px !important;padding:0 !important;gap:0 !important}
.rb-lang-flag{width:28px !important;height:20px !important;flex:0 0 28px !important;border-radius:4px;overflow:hidden;box-shadow:0 0 0 1px rgba(255,255,255,.16) inset,0 6px 14px rgba(0,0,0,.16)}
.rb-lang-flag svg{width:100% !important;height:100% !important}
.rb-lang-code{display:none !important}
.theme-icon{color:var(--text) !important}
html[data-theme="dark"] .theme-icon{color:#fff !important}
html[data-theme="light"] .theme-icon{color:#111 !important}

.page-shell::before{background-image:var(--rb-logo-pattern-url) !important;background-repeat:repeat !important;background-size:74px auto !important;background-position:0 0 !important;opacity:.015 !important;filter:grayscale(1) brightness(1.02) !important}
html[data-theme="light"] .page-shell::before{opacity:.0105 !important;filter:grayscale(1) sepia(.24) brightness(.82) !important}
.arch-bg::after{background-image:var(--rb-arch-url) !important;background-repeat:no-repeat !important;background-size:cover !important;background-position:center right !important;opacity:var(--arch-intensity) !important}
.page-hero::after{background-image:var(--rb-diagonal-url) !important;background-repeat:no-repeat !important;background-position:right center !important;background-size:contain !important;right:-2% !important;top:-4% !important;width:min(44vw,600px) !important;height:124% !important;opacity:.21 !important;transform:skewX(-14deg) !important;mix-blend-mode:screen !important}
html[data-theme="light"] .page-hero::after{opacity:.12 !important;mix-blend-mode:screen !important}
.rb-diagonal-frame img{padding:14px !important;object-fit:contain !important;background:transparent !important}

.rb-loader{transition:opacity .56s ease,visibility .56s ease !important;background:radial-gradient(circle at 50% 32%, rgba(195,156,51,.08), transparent 34%),linear-gradient(180deg,#060606,#0d0d0d 48%,#080808) !important}
.rb-loader::after{opacity:.12 !important;animation:rbGoldStripes 10s linear infinite !important}
.rb-loader-inner{padding:24px 30px !important}
.rb-loader-logo{width:82px !important;height:82px !important;animation:rbPulseZoom 2.6s ease-in-out infinite !important}
.rb-loader-line{width:126px !important}

.hero-bg{opacity:0;transition:opacity .88s ease,transform 8s ease !important}
.hero-bg.rb-bg-ready{opacity:1}
.media-frame img,.carousel-slide img,.rb-service-slide img,.rb-random-cta .media img,.rb-bio-card img,.rb-team-member .photo img{opacity:0;transition:opacity .68s ease,transform .9s ease,filter .9s ease !important}
.media-frame img.rb-img-ready,.carousel-slide img.rb-img-ready,.rb-service-slide img.rb-img-ready,.rb-random-cta .media img.rb-img-ready,.rb-bio-card img.rb-img-ready,.rb-team-member .photo img.rb-img-ready{opacity:1 !important}

.image-carousel{padding:18px !important;min-height:0 !important;border-radius:26px !important;overflow:hidden;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02)) !important}
.carousel-track{display:flex !important;position:relative !important;min-height:0 !important;gap:18px !important;transition:transform .85s cubic-bezier(.22,.61,.36,1) !important;will-change:transform;align-items:stretch}
.carousel-track.rb-carousel-ready{opacity:1}
.carousel-slide{position:relative !important;inset:auto !important;flex:0 0 calc(25% - 14px) !important;min-width:calc(25% - 14px) !important;width:auto !important;aspect-ratio:4/3 !important;opacity:1 !important;transform:none !important;pointer-events:auto !important;border-radius:18px !important;overflow:hidden;background:#111;border:1px solid rgba(255,255,255,.08) !important}
.carousel-slide img{width:100% !important;height:100% !important;object-fit:cover !important;display:block}
.carousel-slide:hover img{transform:scale(1.04)}
.carousel-tag{left:14px !important;bottom:14px !important;padding:7px 12px !important}
@media (max-width:980px){.carousel-slide{flex-basis:calc(50% - 9px) !important;min-width:calc(50% - 9px) !important}}
@media (max-width:760px){.carousel-slide{flex-basis:100% !important;min-width:100% !important}.image-carousel{padding:12px !important}}

.rb-team-member .body{min-height:unset !important;grid-template-rows:auto auto auto auto !important}
.rb-bio-modal{padding:20px 14px !important;overflow:auto !important;place-items:flex-start center !important}
.rb-bio-card{width:min(980px,calc(100vw - 28px)) !important;grid-template-columns:minmax(260px,320px) minmax(0,1fr) !important;max-height:none !important;overflow:visible !important}
.rb-bio-card img{height:100% !important;min-height:100% !important}
.rb-bio-copy{max-height:none !important;overflow:visible !important;padding:30px 30px 28px !important}
.rb-bio-copy-body,.rb-bio-copy .rb-bio-html{overflow:visible !important}
@media (max-width:980px){.rb-bio-card{grid-template-columns:1fr !important}.rb-bio-card img{max-height:290px !important}.rb-bio-copy{padding:24px 22px 22px !important}}

.rb-chat-bubble{width:68px !important;height:68px !important;display:grid !important;place-items:center !important;padding:0 !important;border-radius:999px !important}
.rb-chat-icon{width:32px !important;height:32px !important;display:grid !important;place-items:center !important;margin:0 auto !important}
.rb-chat-icon svg{width:22px !important;height:22px !important;display:block}
.rb-chat-hint{right:82px !important;top:50% !important;transform:translateY(-50%) !important;bottom:auto !important}

.rb-service-modal .rb-overlay-card{max-width:min(860px,calc(100vw - 28px)) !important;grid-template-columns:1.02fr .98fr !important;gap:18px !important;padding:22px 22px 22px 24px !important}
.rb-service-modal-media{position:relative;min-height:260px !important;max-height:350px !important;overflow:hidden !important}
.rb-service-close{z-index:9 !important;top:14px !important;right:14px !important;background:rgba(8,8,8,.7) !important}
html[data-theme="light"] .rb-service-modal .rb-overlay-card h3,
html[data-theme="light"] .rb-service-modal .rb-overlay-card p,
html[data-theme="light"] .rb-service-modal .rb-overlay-card .rb-service-minihead,
html[data-theme="light"] .rb-service-modal .rb-overlay-card #rbServiceCases div{color:#241f17 !important}

body.rb-motion-ready .page-hero .container,
body.rb-motion-ready .hero-content > *,
body.rb-motion-ready .section .section-head,
body.rb-motion-ready .section .panel,
body.rb-motion-ready .section .card,
body.rb-motion-ready .section .media-frame,
body.rb-motion-ready .rb-office-map-card,
body.rb-motion-ready .carousel-section,
body.rb-motion-ready .site-footer{opacity:0;transform:translateY(18px);transition:opacity .62s ease,transform .62s cubic-bezier(.2,.7,.2,1) !important;will-change:opacity,transform}
body.rb-motion-ready .rb-in-view{opacity:1 !important;transform:none !important}

.card,.panel,.office-card,.site-footer,.image-carousel,.rb-team-member,.rb-service-card,.rb-bio-card,.rb-service-modal .rb-overlay-card{border-color:rgba(195,156,51,.16) !important}
.card:hover,.panel:hover,.rb-team-member:hover,.rb-service-card:hover{box-shadow:0 18px 38px rgba(0,0,0,.2),0 0 0 1px rgba(195,156,51,.12) inset,0 -2px 0 rgba(195,156,51,.22) inset !important}
html[data-theme="light"] .card,html[data-theme="light"] .panel,html[data-theme="light"] .office-card,html[data-theme="light"] .site-footer,html[data-theme="light"] .image-carousel,html[data-theme="light"] .rb-team-member,html[data-theme="light"] .rb-service-card,html[data-theme="light"] .rb-bio-card,html[data-theme="light"] .rb-service-modal .rb-overlay-card{background:linear-gradient(180deg,rgba(255,255,255,.985),rgba(246,240,229,.955)) !important;border-color:rgba(141,110,38,.22) !important}

/* === final performance + polish pass === */
.nav-actions .flag-btn{display:none !important}
.rb-lang-toggle{min-width:54px !important;width:54px !important;height:36px !important;padding:0 !important;background:rgba(255,255,255,.06) !important}
.rb-lang-flag{width:30px !important;height:20px !important;border-radius:5px !important;box-shadow:0 0 0 1px rgba(255,255,255,.18) inset, 0 8px 16px rgba(0,0,0,.18) !important}
.page-shell::before{background-size:56px auto !important;background-position:0 0 !important;opacity:.0105 !important}
html[data-theme="light"] .page-shell::before{opacity:.008 !important}
.page-hero{overflow:hidden !important}
.page-hero::after{content:"" !important;background-image:var(--rb-diagonal-url) !important;background-repeat:no-repeat !important;background-position:right center !important;background-size:contain !important;opacity:.20 !important}
html[data-theme="light"] .page-hero::after{opacity:.16 !important}
.rb-loader{transition:opacity .26s ease,visibility .26s ease !important;will-change:opacity !important}
.rb-loader-inner{transform:translateZ(0)}
.image-carousel{padding:14px !important;overflow:hidden !important}
.carousel-track.rb-marquee-track{width:max-content !important;display:flex !important;gap:18px !important;animation:rbMarquee var(--rb-marquee-duration, 36s) linear infinite !important;will-change:transform !important}
.image-carousel:hover .carousel-track.rb-marquee-track{animation-play-state:paused}
@keyframes rbMarquee{from{transform:translate3d(0,0,0)}to{transform:translate3d(calc(var(--rb-marquee-shift, 0px) * -1),0,0)}}
.carousel-slide{flex:0 0 clamp(220px, 24vw, 320px) !important;min-width:clamp(220px, 24vw, 320px) !important}
@media (max-width:980px){.carousel-slide{flex-basis:min(46vw,320px) !important;min-width:min(46vw,320px) !important}}
@media (max-width:760px){.carousel-slide{flex-basis:78vw !important;min-width:78vw !important}}
.media-frame img,.carousel-slide img,.rb-service-slide img,.rb-random-cta .media img,.rb-bio-card img,.rb-team-member .photo img{backface-visibility:hidden;transform:translateZ(0)}
.value-media,.index-value-media{min-height:300px !important;align-self:stretch !important}
.value-media img,.index-value-media img{object-position:center center !important}
.rb-service-modal .rb-overlay-card{align-items:stretch !important}
.rb-service-modal-media{min-height:300px !important;height:100% !important;border-radius:22px !important;border:1px solid rgba(195,156,51,.18) !important;background:#111 !important}
.rb-service-slider,.rb-service-slide{width:100% !important;height:100% !important}
.rb-service-slide img{width:100% !important;height:100% !important;object-fit:cover !important}
html[data-theme="light"] .rb-service-modal .rb-overlay-card,html[data-theme="light"] .rb-service-modal-media{background:linear-gradient(180deg,#fff,#f7efe2) !important}
html[data-theme="light"] .rb-service-modal-media{background:#eee6d8 !important}
.rb-team-member .body{min-height:unset !important}
.rb-bio-card,.rb-bio-copy,.rb-bio-copy-body,.rb-bio-copy .rb-bio-html{overflow:visible !important;max-height:none !important}
.rb-chat-bubble{box-shadow:0 16px 36px rgba(0,0,0,.22), 0 0 0 1px rgba(255,255,255,.12) inset !important}
.rb-chat-hint{white-space:nowrap !important}
.footer-address{gap:10px !important}
.rb-office-accordion{border:1px solid rgba(195,156,51,.18);border-radius:16px;background:rgba(255,255,255,.04);overflow:hidden}
html[data-theme="light"] .rb-office-accordion{background:rgba(255,255,255,.78);border-color:rgba(141,110,38,.18)}
.rb-office-accordion summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;font-weight:700;color:var(--text)}
.rb-office-accordion summary::-webkit-details-marker{display:none}
.rb-office-arrow{transition:transform .24s ease;color:var(--gold-soft)}
.rb-office-accordion[open] .rb-office-arrow{transform:rotate(180deg)}
.rb-office-panel{padding:0 16px 15px;color:var(--text-soft);line-height:1.75}
.footer-bottom{margin-top:14px !important;padding-top:14px !important}
body.rb-motion-ready .page-hero .container,body.rb-motion-ready .hero-content > *,body.rb-motion-ready .section .section-head,body.rb-motion-ready .section .panel,body.rb-motion-ready .section .card,body.rb-motion-ready .section .media-frame,body.rb-motion-ready .rb-office-map-card,body.rb-motion-ready .carousel-section,body.rb-motion-ready .site-footer{transition:opacity .52s ease, transform .52s cubic-bezier(.2,.7,.2,1) !important}

/* === Final refinements April 2026 === */
:root{
  --rb-logo-pattern-small:url("../media/logos/isotipo-rb-correcto.png");
  --rb-diagonal-final:url("../media/logos/diagonal.png");
}
.page-shell::before{
  content:"" !important;
  background-image:
    var(--rb-logo-pattern-small),
    var(--rb-logo-pattern-small),
    var(--rb-logo-pattern-small),
    var(--rb-logo-pattern-small),
    var(--rb-logo-pattern-small),
    var(--rb-logo-pattern-small),
    var(--rb-logo-pattern-small),
    var(--rb-logo-pattern-small) !important;
  background-repeat:no-repeat,no-repeat,no-repeat,no-repeat,no-repeat,no-repeat,no-repeat,no-repeat !important;
  background-size:
    48px auto, 56px auto, 42px auto, 50px auto,
    44px auto, 58px auto, 40px auto, 52px auto !important;
  background-position:
    4% 12%, 91% 9%, 16% 34%, 79% 28%,
    10% 72%, 89% 66%, 34% 88%, 66% 84% !important;
  opacity:.028 !important;
  filter:grayscale(1) brightness(1.02) !important;
}
html[data-theme="light"] .page-shell::before{
  opacity:.018 !important;
  filter:grayscale(1) sepia(.18) brightness(.76) !important;
}
.page-hero::after{
  content:"" !important;
  background-image:var(--rb-diagonal-final) !important;
  background-repeat:no-repeat !important;
  background-position:right center !important;
  background-size:contain !important;
  right:-1.5% !important;
  top:-3% !important;
  width:min(46vw,620px) !important;
  height:126% !important;
  opacity:.24 !important;
  transform:none !important;
  mix-blend-mode:normal !important;
}
html[data-theme="light"] .page-hero::after{
  opacity:.18 !important;
}
.rb-service-modal .rb-overlay-card{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  align-items:stretch !important;
}
.rb-service-modal-copy{
  display:grid !important;
  align-content:start !important;
  min-height:100% !important;
}
.rb-service-modal-media{
  min-height:100% !important;
  height:auto !important;
  max-height:none !important;
  align-self:stretch !important;
}
.rb-service-slider,.rb-service-slide,.rb-service-slide img{
  height:100% !important;
}
.rb-service-slide img{
  min-height:100% !important;
  object-fit:cover !important;
}
@media (max-width: 900px){
  .rb-service-modal .rb-overlay-card{
    grid-template-columns:1fr !important;
  }
}

/* Final perf + value proposition tuning */
.index-value-media{min-height:0 !important;height:auto;align-self:start !important}
.index-value-media img{object-position:center center !important}
@media (min-width:901px){
  .index-value-media{height:100%}
}
.image-carousel{contain:layout paint}
.carousel-track.rb-marquee-track,.carousel-slide img{transform:translateZ(0);backface-visibility:hidden}

/* Final micro-fixes v4 */
.index-value-media{min-height:0 !important;height:auto !important;display:flex !important;align-self:start !important;overflow:hidden !important}
.index-value-media img{width:100% !important;height:100% !important;max-height:none !important;object-fit:cover !important;display:block !important}
@media (min-width:901px){
  .split-media:has(.index-value-media){align-items:start !important}
  .split-media:has(.index-value-media) > .panel{align-self:start !important}
}
.carousel-slide img.rb-img-ready{opacity:1 !important;filter:none !important}


/* final equal-height and team standardization */
.split-media{align-items:stretch !important}
.split-media > .panel,.split-media > .media-frame{align-self:stretch}
.value-media,.index-value-media{display:flex !important;align-items:stretch !important;overflow:hidden !important}
.value-media img,.index-value-media img{width:100% !important;height:100% !important;object-fit:cover !important;display:block !important}
@media (min-width:901px){
  .split-media:has(.value-media),.split-media:has(.index-value-media){align-items:stretch !important}
}
.rb-team-member h3{font-size:1.15rem !important;line-height:1.26 !important;min-height:2.6em;display:flex;align-items:flex-start}
.rb-team-member p{line-height:1.72 !important;min-height:6.9em;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.rb-team-actions{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch;margin-top:auto}
.rb-team-actions > *{min-width:0}
.rb-team-actions > *:only-child{grid-column:1/-1}
.rb-team-member .rb-more,.rb-team-member .rb-team-linkedin{width:100%;min-height:46px;display:inline-flex;justify-content:center;align-items:center;text-align:center;padding:12px 14px;border-radius:14px}
@media (max-width:760px){
  .rb-team-member h3{min-height:0}
  .rb-team-member p{min-height:0;-webkit-line-clamp:unset;display:block}
}


/* final v6 targeted fixes */
@media (min-width:901px){
  .split-media:has(.index-value-media){align-items:start !important}
  .split-media:has(.index-value-media) > .panel{align-self:start !important}
  .index-value-media{align-self:start !important;min-height:0 !important;height:auto !important;max-height:none !important;overflow:hidden !important}
  .index-value-media img{width:100% !important;height:100% !important;max-height:none !important;object-fit:cover !important;display:block !important}
}
.image-carousel,.carousel-slide{background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.018)) !important}
html[data-theme="light"] .image-carousel,html[data-theme="light"] .carousel-slide{background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(244,237,225,.92)) !important}
.carousel-slide{border-color:rgba(195,156,51,.14) !important}
.carousel-slide img{opacity:1 !important;filter:none !important}
.carousel-slide img.rb-img-ready{opacity:1 !important;filter:none !important}

/* Final media sync fix for index and firm sections */
.split-media.rb-equal-split{align-items:start !important}
.split-media.rb-equal-split > .panel{align-self:start !important;height:auto !important}
.split-media.rb-equal-split > .media-frame,.split-media.rb-equal-split .index-value-media,.split-media.rb-equal-split .rb-equal-media{min-height:0 !important;max-height:none !important;align-self:start !important}
.index-value-media,.rb-equal-media{background:#111 !important}


/* v10 speed optimization overrides */
.rb-loader{transition:opacity .18s ease,visibility .18s ease !important;pointer-events:none !important}
.rb-loader-inner{transition:transform .18s ease,opacity .18s ease !important}
.rb-loader.hidden .rb-loader-inner{opacity:0 !important;transform:translateY(-4px) scale(.992) !important}
.carousel-section{content-visibility:auto;contain-intrinsic-size:780px}
.image-carousel{contain:layout paint style}
.carousel-slide img{will-change:opacity;backface-visibility:hidden;transform:translateZ(0)}
.section,.site-footer{content-visibility:auto;contain-intrinsic-size:900px}
.page-hero{content-visibility:visible;contain-intrinsic-size:auto}


.rb-gaceta-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.rb-gaceta-card{display:grid;gap:16px;align-content:start}
.rb-gaceta-thumb{border-radius:20px;overflow:hidden;border:1px solid var(--line);aspect-ratio:16/10;background:#111}
.rb-gaceta-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.rb-gaceta-date{margin:-2px 0 2px;opacity:.88}
.rb-office-mini-map{border-radius:18px;overflow:hidden;border:1px solid var(--line);background:#111;min-height:170px;margin:10px 0 14px}
.rb-office-mini-map iframe{display:block;width:100%;height:170px;border:0}
.rb-office-panel .cta-row{margin-top:12px}
.rb-theme-svg-moon path{fill:currentColor !important;stroke:none !important}
.rb-theme-svg-sun circle,.rb-theme-svg-sun path{stroke:currentColor !important;fill:none !important}
@media (max-width:980px){.rb-gaceta-grid{grid-template-columns:1fr 1fr}}
@media (max-width:760px){.rb-gaceta-grid{grid-template-columns:1fr}.rb-office-mini-map,.rb-office-mini-map iframe{min-height:150px;height:150px}}

.rb-mobile-theme-wrap{display:flex;justify-content:center;padding-top:2px}
.rb-mobile-theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:999px;border:1px solid rgba(195,156,51,.28);background:rgba(255,255,255,.05);box-shadow:0 10px 28px rgba(0,0,0,.18)}
.rb-mobile-theme-toggle:hover{border-color:#d8b14e;transform:translateY(-1px)}
.rb-mobile-theme-toggle .rb-theme-svg{width:20px;height:20px}
html[data-theme="light"] .rb-mobile-theme-toggle{background:rgba(255,255,255,.78);border-color:rgba(141,110,38,.2)}
html[data-theme="light"] .rb-mobile-socials a{background:rgba(255,255,255,.72);color:#1b1b1b}

/* team grid final 2x2 */
.rb-team-layout{max-width:1100px;margin:0 auto;display:grid;gap:26px}
.rb-team-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:26px}
@media (max-width:760px){.rb-team-row{grid-template-columns:1fr !important}}

/* Final refinements */
.rb-attract-section .rb-attract-shell{display:grid;grid-template-columns:1.08fr .92fr;gap:22px;align-items:stretch;padding:26px}
.rb-attract-media{height:100%;min-height:320px}
.rb-attract-media img{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width:980px){.rb-attract-section .rb-attract-shell{grid-template-columns:1fr}.rb-attract-media{min-height:260px}}

.rb-team-row-top,.rb-team-row-bottom{grid-template-columns:repeat(2,minmax(0,1fr)) !important;max-width:none !important;margin:0 !important}
.rb-team-row-top,.rb-team-row-bottom{align-items:stretch}
.rb-team-member,.rb-team-member .body{height:100%}
.rb-team-member .photo,.rb-team-lead .photo{height:360px !important}
.rb-team-member h3{min-height:56px;display:flex;align-items:flex-end}
.rb-team-member p{min-height:84px}
@media (max-width:760px){.rb-team-row-top,.rb-team-row-bottom{grid-template-columns:1fr !important}.rb-team-member h3,.rb-team-member p{min-height:0}}

.rb-mobile-theme-wrap{display:flex !important;justify-content:center;align-items:center;gap:10px;padding:10px 0 2px}
.rb-mobile-theme-label{font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:#d7ccb0}
html[data-theme="light"] .rb-mobile-sheet{background:linear-gradient(180deg,#fff,#f6efe2) !important;border-left-color:rgba(141,110,38,.22) !important}
html[data-theme="light"] .rb-mobile-sheet a,html[data-theme="light"] .rb-mobile-brand strong,html[data-theme="light"] .rb-mobile-brand span,html[data-theme="light"] .rb-mobile-close,html[data-theme="light"] .rb-mobile-theme-label{color:#16120d !important}
html[data-theme="light"] .rb-mobile-socials a{background:rgba(255,255,255,.86) !important;color:#16120d !important;border-color:rgba(141,110,38,.2) !important}
html[data-theme="light"] .rb-mobile-links a{border-bottom-color:rgba(24,18,13,.08) !important}

html[data-theme="light"] .title,html[data-theme="light"] h1,html[data-theme="light"] h2,html[data-theme="light"] h3,html[data-theme="light"] h4,html[data-theme="light"] p,html[data-theme="light"] li,html[data-theme="light"] .subtitle,html[data-theme="light"] .intro,html[data-theme="light"] .hero-card p,html[data-theme="light"] .panel p,html[data-theme="light"] .card p{color:#1a1713 !important}
html[data-theme="light"] .badge,html[data-theme="light"] .kicker,html[data-theme="light"] .meta,html[data-theme="light"] .type{color:#7e6322 !important}
html[data-theme="light"] .btn{color:#16120d !important}
html[data-theme="light"] .btn.gold{color:#111 !important}

.rb-gaceta-pdf{display:grid;gap:14px;margin-top:10px}
.rb-gaceta-pdf > summary{list-style:none;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;width:max-content}
.rb-gaceta-pdf > summary::-webkit-details-marker{display:none}
.rb-gaceta-viewer{display:grid;gap:12px;margin-top:6px}
.rb-gaceta-viewer iframe{width:100%;height:420px;border:1px solid var(--line);border-radius:18px;background:#fff}
.rb-gaceta-actions{display:flex;gap:10px;flex-wrap:wrap}
@media (max-width:760px){.rb-gaceta-viewer iframe{height:320px}}

.image-carousel{overflow:hidden !important}
.carousel-track.rb-marquee-track{animation-timing-function:linear !important;animation-iteration-count:infinite !important}

html[data-theme="light"] .theme-icon,html[data-theme="light"] .rb-mobile-theme-toggle{color:#111 !important;-webkit-text-fill-color:#111 !important}
html[data-theme="dark"] .theme-icon,html[data-theme="dark"] .rb-mobile-theme-toggle{color:#fff !important;-webkit-text-fill-color:#fff !important}


/* Team portraits balanced */
.rb-team-member .photo{display:block;padding:0 !important;height:430px !important;background:linear-gradient(180deg,rgba(12,12,12,.96),rgba(22,22,22,.98)) !important}
.rb-team-member .photo img{width:100% !important;height:100% !important;object-fit:cover !important;object-position:center top !important;display:block !important;background:transparent !important}
.rb-team-member .body{padding:18px 18px 20px !important;min-height:186px !important;grid-template-rows:auto auto 1fr auto !important;gap:8px !important}
.rb-team-member h3{font-size:1.08rem !important;line-height:1.2 !important}
.rb-team-member .meta{font-size:.68rem !important;letter-spacing:.14em !important;margin-bottom:2px !important}
.rb-team-member p{font-size:.94rem !important;line-height:1.58 !important}
.rb-team-actions{margin-top:6px !important}
html[data-theme="light"] .rb-team-member .photo{background:linear-gradient(180deg,#f8f5ee,#efe6d8) !important}
@media (max-width:980px){.rb-team-member .photo,.rb-team-lead .photo{height:400px !important}.rb-team-member .body{min-height:unset !important}}
@media (max-width:720px){.rb-team-member .photo,.rb-team-lead .photo{height:360px !important}}


/* FINAL PERFORMANCE + PROPORTION OVERRIDES */
.page-shell::before{
  background-image:
    url('../media/logos/isotipo-rb-correcto.png'),
    url('../media/logos/isotipo-rb-correcto.png'),
    url('../media/logos/isotipo-rb-correcto.png'),
    url('../media/logos/isotipo-rb-correcto.png');
  background-repeat:no-repeat,no-repeat,no-repeat,no-repeat;
  background-size:56px auto,42px auto,64px auto,48px auto;
  background-position:4% 12%, 88% 18%, 12% 78%, 82% 72%;
  opacity:.032 !important;
}
html[data-theme="light"] .page-shell::before{opacity:.018 !important}

.rb-attract-section .rb-attract-shell{
  grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr) !important;
  align-items:stretch !important;
}
.rb-attract-media{
  min-height:260px !important;
  max-height:300px !important;
  aspect-ratio:16 / 10;
  align-self:stretch !important;
}
.rb-attract-media img,
.index-value-media img,
.rb-equal-media img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
}
.index-value-media,
.rb-equal-media{
  min-height:0 !important;
  max-height:320px !important;
  aspect-ratio:16 / 10;
  align-self:stretch !important;
}
.split-media.rb-equal-split{
  align-items:stretch !important;
}
.split-media.rb-equal-split > .panel,
.split-media.rb-equal-split > .media-frame{
  align-self:stretch !important;
}

.rb-team-layout{max-width:1280px !important}
.rb-team-row{gap:20px !important}
.rb-team-member.card.team-card{
  min-height:430px !important;
  border-radius:24px !important;
}
.rb-team-member .photo{
  height:100% !important;
}
.rb-team-member .photo img{
  object-fit:cover !important;
  object-position:center 18% !important;
}
.rb-team-member .body{
  padding:14px 16px 16px !important;
  gap:8px !important;
}
.rb-team-member .meta{
  padding:6px 10px !important;
  font-size:.64rem !important;
}
.rb-team-member h3{
  font-size:1rem !important;
  line-height:1.15 !important;
}
.rb-team-member p{
  font-size:.88rem !important;
  line-height:1.55 !important;
}
.rb-team-member .rb-more,
.rb-team-member .rb-team-linkedin{
  min-height:40px !important;
  font-size:.72rem !important;
}

.image-carousel{
  min-height:0 !important;
}
.carousel-track.rb-marquee-track{
  width:max-content !important;
  gap:14px !important;
  animation-duration:var(--rb-marquee-duration, 26s) !important;
}
.carousel-slide{
  flex:0 0 clamp(210px, 23vw, 290px) !important;
  min-width:clamp(210px, 23vw, 290px) !important;
  aspect-ratio:16 / 10 !important;
}
.carousel-slide img{
  opacity:1 !important;
  will-change:auto !important;
}

@media (max-width:980px){
  .rb-attract-section .rb-attract-shell{grid-template-columns:1fr !important}
  .rb-attract-media,.index-value-media,.rb-equal-media{max-height:none !important;aspect-ratio:16 / 10}
  .rb-team-member.card.team-card{min-height:400px !important}
  .carousel-slide{flex-basis:calc(50vw - 24px) !important;min-width:calc(50vw - 24px) !important}
}
@media (max-width:760px){
  .rb-team-member.card.team-card{min-height:380px !important}
  .rb-team-member .body{padding:14px 14px 14px !important}
  .carousel-slide{flex-basis:78vw !important;min-width:78vw !important}
}


/* Final robustness fix: keep gallery and section images visible even if JS loads late */
.media-frame img,
.carousel-slide img,
.rb-service-slide img,
.rb-random-cta .media img,
.rb-bio-card img,
.rb-team-member .photo img{
  opacity:1 !important;
}
.carousel-slide img,
.rb-service-slide img{
  display:block;
  width:100%;
  height:100%;
}
