@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --accent: #facc15;
  --dark: #0a0a0a;
  --gray: #1a1a1a;
  --light: #f5f5f5;
}

/* ======================
   HERO BANNER - MODELO APROBADO
   ====================== */
.rb-hero,
.rb-hero-section,
.swiper-container {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden !important;
}

.rb-hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.rb-hero-slide {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

/* Swiper handles transition classes, but we keep active for our custom CSS animations */
.swiper-slide-active.rb-hero-slide {
  z-index: 2;
}

.rb-hero-slide {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  position: relative;
  opacity: 1 !important;
}

/* ======================
   STATIC HERO MODE - Background Animation
   ====================== */
.rb-hero-static {
  position: relative;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroBackgroundFade 20s ease-in-out infinite;
}

.rb-hero-bg, .rb-hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: bgCrossfade 18s ease-in-out infinite;
  z-index: 0;
  display: block !important;
}

.rb-hero-bg-layer:first-of-type {
  opacity: 1;
}

.rb-hero-static .rb-hero-content {
  animation: heroContentFadeIn 1.5s ease-out;
}

@keyframes heroContentFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bgCrossfade {
  0% {
    opacity: 1;
  }

  16.67% {
    opacity: 1;
  }

  33.33% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes heroBackgroundFade {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.85;
  }
}

.rb-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.4),
    rgba(10, 10, 10, 0.85)
  );
  z-index: 1;
}

.rb-hero-bg {
  position: absolute !important;
  inset: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  z-index: 0;
  display: block !important;
  opacity: 1; /* Force visibility for carousel mode slides */
}

.rb-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  width: 100%;
}

/* Animaciones del Hero */
.rb-hero-tag,
.rb-hero-title,
.rb-hero-sub,
.rb-btn {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.rb-hero.animate-in .rb-hero-tag {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.rb-hero.animate-in .rb-hero-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

.rb-hero.animate-in .rb-hero-sub {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.rb-hero.animate-in .rb-btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.rb-hero-tag {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 10px 25px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 40px;
  opacity: 1 !important;
}

/* INTERNAL STYLE - Pill Badge */
.rb-hero-internal .rb-hero-tag {
  background: rgba(250, 204, 21, 0.05);
  border: 1px solid rgba(250, 204, 21, 0.3);
  color: var(--accent);
  border-radius: 50px;
  padding: 8px 24px;
  font-size: 0.7rem;
  margin-bottom: 25px;
  letter-spacing: 2px;
}

.rb-hero-internal .rb-hero-title {
  text-transform: uppercase;
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.rb-hero-internal .rb-hero-title span {
  font-style: normal;
  color: #fff; /* Keep it white by default in internal mode if they want the clean look */
}

.rb-hero-internal .rb-hero-sub {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  opacity: 0.8;
}

/* Eliminamos animaciones que causan parpadeo */
.rb-hero-slide.active .rb-hero-tag,
.swiper-slide-active .rb-hero-tag,
.rb-hero-slide .rb-hero-tag {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.rb-hero-title {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 35px;
  color: #ffffff;
  opacity: 1 !important;
}

/* Eliminamos animaciones que causan parpadeo */
.rb-hero-slide.active .rb-hero-title,
.swiper-slide-active .rb-hero-title,
.rb-hero-slide .rb-hero-title {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.rb-hero-title span {
  color: var(--accent);
  font-style: italic;
}

.rb-hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 550px;
  margin: 0 auto 50px;
  line-height: 1.7;
  opacity: 1 !important;
}

/* Eliminamos animaciones que causan parpadeo */
.rb-hero-slide.active .rb-hero-sub,
.swiper-slide-active .rb-hero-sub,
.rb-hero-slide .rb-hero-sub {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.rb-btn {
  display: inline-block;
  padding: 18px 55px;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 1 !important;
}

/* Eliminamos animaciones que causan parpadeo */
.rb-hero-slide.active .rb-btn,
.swiper-slide-active .rb-btn,
.rb-hero-slide .rb-btn {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.rb-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.rb-btn:hover::before {
  left: 100%;
}

.rb-btn:hover {
  background: #fff;
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(250, 204, 21, 0.3);
}

/* Scroll indicator removed as per user request */

/* Dots Navigation */
.rb-hero-dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.rb-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.rb-dot.active {
  background: var(--accent);
  transform: scale(1.3);
  box-shadow: 0 0 15px var(--accent);
}

.rb-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Asegurar que el header esté siempre visible */
.elementor-widget-eweb_elite_hero_banner {
  position: relative;
  z-index: 1;
}

/* ======================
   ABOUT SECTION - TWO COLUMN LAYOUT
   ====================== */
.rb-about {
  padding: 180px 10%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.rb-about::before {
  content: "EXCELLENCE";
  position: absolute;
  top: 50%;
  left: -5%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  pointer-events: none;
}

/* =============================================
   UNIFIED SECTION HEADERS - All Sections
   ============================================= */

/* Label (e.g., "NOSSOS SERVIÇOS", "NOSSOS PROJETOS") */
.rb-about-label {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  opacity: 1 !important;
  /* Keep for visibility */
  visibility: visible !important;
  /* Keep for visibility */
  transform: translateX(0);
  transition: all 0.5s ease 0.1s;
}

.rb-about-label::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--accent);
  opacity: 1 !important;
  /* Keep for visibility */
  transform: scaleX(1);
  transform-origin: left;
  transition: all 0.4s ease 0.3s;
}

/* Title (e.g., "Serviços com Eficácia", "Trabalhos Recientes") */
.rb-about-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 35px;
  position: relative;
  color: #ffffff;
  /* Default - can be overridden by Elementor */
  opacity: 1 !important;
  /* Keep for visibility */
  visibility: visible !important;
  /* Keep for visibility */
  transform: translateY(0);
  transition: all 0.5s ease 0.2s;
}

/* Override for light background sections (About) */
.rb-about .rb-about-title {
  color: #1a1d23;
}

/* EDITOR SPECIFIC VISIBILITY - Force headers visible in Elementor Editor */
.elementor-editor-active .rb-about-label,
.elementor-editor-active .rb-about-label::before,
.elementor-editor-active .rb-about-title {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
}

.elementor-editor-active .rb-projects-header,
.elementor-editor-active .rb-services-header {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* View All Button - Brutalist Style */
.rb-view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.rb-view-all::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transition: left 0.3s ease;
  z-index: -1;
}

.rb-view-all:hover {
  color: #000;
  border-color: var(--accent);
}

.rb-view-all:hover::before {
  left: 0;
}

.rb-view-all span {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.rb-view-all:hover span {
  transform: translateX(5px);
}

.rb-about-title span {
  color: var(--accent);
  font-style: italic;
}

.rb-about-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  line-height: 1.9;
  position: relative;
  padding-left: 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.4s;
}

.rb-about.animate-in .rb-about-text {
  opacity: 1;
  transform: translateY(0);
}

.rb-about-stats {
  display: flex;
  gap: 50px;
  margin-top: 50px;
}

.rb-stat {
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.rb-about.animate-in .rb-stat {
  opacity: 1;
  transform: translateY(0);
}

.rb-stat:nth-child(1) {
  transition-delay: 0.5s;
}

.rb-stat:nth-child(2) {
  transition-delay: 0.6s;
}

.rb-stat:nth-child(3) {
  transition-delay: 0.7s;
}

.rb-stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.rb-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

.rb-about-img {
  position: relative;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.7s ease 0.3s;
}

.rb-about.animate-in .rb-about-img {
  opacity: 1;
  transform: translateX(0);
}

.rb-about-img img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  filter: grayscale(30%);
  transition: all 0.6s ease;
}

.rb-about-img:hover img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.rb-about-img::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-top: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease 0.8s;
}

.rb-about.animate-in .rb-about-img::before {
  opacity: 1;
}

.rb-about-img::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border-bottom: 3px solid var(--accent);
  border-left: 3px solid var(--accent);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease 0.9s;
}

.rb-about.animate-in .rb-about-img::after {
  opacity: 1;
}

/* Clase para activar animaciones cuando la sección es visible - DESACTIVADO */
/* Las animaciones están desactivadas temporalmente por conflictos con JavaScript
.rb-about.animate-in .rb-about-label {
    opacity: 1;
    transform: translateX(0);
}

.rb-about.animate-in .rb-about-label::before {
    width: 40px;
}

.rb-about.animate-in .rb-about-title {
    opacity: 1;
    transform: translateY(0);
}

.rb-about.animate-in .rb-about-text {
    opacity: 1;
    transform: translateY(0);
}

.rb-about.animate-in .rb-stat {
    opacity: 1;
    transform: translateY(0);
}

.rb-about.animate-in .rb-about-img {
    opacity: 1;
    transform: translateX(0);
}

.rb-about.animate-in .rb-about-img::before,
.rb-about.animate-in .rb-about-img::after {
    opacity: 1;
}
*/

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 768px) {
  .rb-about {
    grid-template-columns: 1fr;
    padding: 100px 5%;
    gap: 50px;
  }

  .rb-about-stats {
    flex-direction: column;
    gap: 30px;
  }
}

/* ======================
   SERVICES SECTION
   ====================== */
.rb-services {
  padding: 120px 10%;
  background: #0f1115;
  position: relative;
  overflow: hidden;
}

.rb-services-header {
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.rb-services.animate-in .rb-services-header {
  opacity: 1;
  transform: translateY(0);
}

/* Services header inherits global styles - no overrides needed */

.rb-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.rb-service {
  position: relative;
  height: 480px;
  background: #1a1d23;
  overflow: hidden;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.rb-services.animate-in .rb-service {
  opacity: 1;
  transform: translateY(0);
}

/* Escalado de animaciones */
.rb-services.animate-in .rb-service:nth-child(1) {
  transition-delay: 0.05s;
}

.rb-services.animate-in .rb-service:nth-child(2) {
  transition-delay: 0.1s;
}

.rb-services.animate-in .rb-service:nth-child(3) {
  transition-delay: 0.15s;
}

.rb-services.animate-in .rb-service:nth-child(4) {
  transition-delay: 0.2s;
}

.rb-services.animate-in .rb-service:nth-child(5) {
  transition-delay: 0.25s;
}

.rb-services.animate-in .rb-service:nth-child(6) {
  transition-delay: 0.3s;
}

.rb-service-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(30%);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.rb-service:hover .rb-service-bg {
  transform: scale(1.1);
  filter: grayscale(0%) brightness(50%);
}

.rb-service::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(15, 17, 21, 0.95) 100%
  );
  z-index: 2;
}

.rb-service-icon {
  position: relative;
  z-index: 3;
  font-size: 2.8rem;
  color: var(--accent);
  margin-bottom: 25px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}

.rb-service-icon i {
  font-size: inherit;
}

.rb-service-icon svg {
  width: 2.8rem;
  height: auto;
  fill: currentColor;
}

.rb-service:hover .rb-service-icon {
  transform: translateY(-10px);
  color: #fff;
}

.rb-service-content {
  position: relative;
  z-index: 3;
}

.rb-service-title {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.rb-service-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.rb-service:hover .rb-service-desc {
  max-height: 150px;
  opacity: 1;
  margin-bottom: 30px;
}

.rb-service-arrow {
  position: relative;
  z-index: 3;
  color: var(--accent);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.rb-service:hover .rb-service-arrow {
  gap: 25px;
  color: #fff;
}

/* Responsive Services */
@media (max-width: 1200px) {
  .rb-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .rb-services {
    padding: 80px 5%;
  }

  .rb-services-grid {
    grid-template-columns: 1fr;
  }

  .rb-service {
    height: 400px;
  }
}

/* =============================================
   PROJECTS SECTION - Modern Flexbox Container
   ============================================= */

.rb-projects {
  padding: 160px 10% !important;
  background: #0a0a0a !important;
  position: relative !important;
  overflow: hidden !important;
  display: block !important;
}

.rb-projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 80px;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.rb-projects.animate-in .rb-projects-header {
  transform: translateY(0) !important;
}

/* Projects header inherits global styles - no overrides needed */

.rb-projects-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-auto-rows: 400px !important;
  gap: 30px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.rb-project {
  position: relative !important;
  overflow: hidden !important;
  background: #1a1d23 !important;
  opacity: 1;
  /* Visible por defecto para debug */
  transform: translateY(0);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: block !important;
}

.rb-projects.animate-in .rb-project {
  opacity: 1 !important;
  transform: translateY(0) !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.rb-project-highlight {
  grid-column: span 2 !important;
  grid-row: span 2 !important;
  height: auto !important;
}

/* Global Hover Effect - Now dynamic for all cards */
/* Global Hover/Display Rules */
.rb-project:hover .rb-project-overlay {
  z-index: 1 !important;
}

.rb-project:hover .rb-project-overlay::after {
  opacity: 0.4;
  /* Default hover tint intensity */
}

.rb-project-bg {
  position: absolute !important;
  inset: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 0 !important;
}

.rb-project:hover .rb-project-bg {
  transform: scale(1.1) !important;
}

.rb-project-overlay {
  position: absolute !important;
  inset: 0 !important;
  /* Layer 1: TEXT PROTECTION (Deep Dark Gradient) */
  /* Starting from pure black at the bottom to ensure white text contrast */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 20%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  ) !important;
  opacity: 1 !important;
  transition: all 0.4s ease !important;
  z-index: 1 !important;
}

/* Second Layer: Highlight/Hover Color (Dynamic from Elementor) */
.rb-project-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  /* Fallback, overridden by Elementor selectors */
  opacity: 0;
  transition: opacity 0.4s ease;
}

.rb-project-highlight .rb-project-overlay::after {
  opacity: 0.2;
  /* Permanent tint for highlight */
}

.rb-project:hover .rb-project-overlay::after {
  opacity: 0.4;
  /* Hover tint */
}

/* Highlight specific overlay behavior - Deep yellow gradient but keeping protection */
.rb-project-highlight .rb-project-overlay::after {
  opacity: 0.2;
  /* Static yellow tint */
}

.rb-project-content {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  padding: 40px !important;
  z-index: 2 !important;
  transition: transform 0.4s ease !important;
}

.rb-project:hover .rb-project-content {
  transform: translateY(-10px) !important;
}

.rb-project-tag {
  display: inline-block !important;
  padding: 6px 15px !important;
  background: #facc15 !important;
  /* Forzado */
  color: #000 !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  margin-bottom: 20px !important;
}

.rb-project-highlight .rb-project-tag {
  background: #000 !important;
  color: #fff !important;
}

/* URGENT FIX: Force White Titles with High Specificity */
body
  .rb-projects
  .rb-projects-grid
  .rb-project
  .rb-project-content
  .rb-project-title,
body section.rb-projects .rb-project .rb-project-title,
.rb-project-title {
  color: #ffffff !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  max-width: 80% !important;
  font-family: "Space Grotesk", sans-serif !important;
}

/* Highlight Project Title - Now white for legibility */
body
  .rb-projects
  .rb-projects-grid
  .rb-project.rb-project-highlight
  .rb-project-content
  .rb-project-title,
.rb-project-highlight .rb-project-title {
  color: #ffffff !important;
  font-size: 2.2rem !important;
}

.rb-project-link {
  position: absolute !important;
  inset: 0 !important;
  z-index: 5 !important;
}

@media (max-width: 1024px) {
  .rb-projects-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .rb-project-highlight {
    grid-column: span 2 !important;
  }
}

@media (max-width: 768px) {
  .rb-projects-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 400px !important;
  }

  .rb-project-highlight {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

.elementor-editor-active .rb-about-label,
.elementor-editor-active .rb-about-title,
.elementor-editor-active .rb-about-text,
.elementor-editor-active .rb-stat,
.elementor-editor-active .rb-about-img,
.elementor-editor-active .rb-about-img::before,
.elementor-editor-active .rb-about-img::after,
.elementor-editor-active .rb-services-header,
.elementor-editor-active .rb-service,
.elementor-editor-active .rb-service-desc,
.elementor-editor-active .rb-hero-tag,
.elementor-editor-active .rb-hero-title,
.elementor-editor-active .rb-hero-sub,
.elementor-editor-active .rb-btn {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  max-height: none !important;
  visibility: visible !important;
}

.elementor-editor-active .rb-about-label::before {
  width: 40px !important;
}

.elementor-editor-active .rb-service-bg {
  filter: grayscale(0%) brightness(50%) !important;
}

/* =============================================
   CLIENTS CAROUSEL - ULTRA MINIMAL (Sin Cajas)
   ============================================= */

.rb-clients {
  padding: 80px 0;
  background: #0a0a0a;
  overflow: hidden;
}

.rb-clients-header {
  margin-bottom: 60px;
}

.rb-clients-track {
  display: flex;
  gap: 120px;
  align-items: center;
  width: max-content;
  animation: scroll-infinite 40s linear infinite;
}

.rb-clients[data-pause="true"]:hover .rb-clients-track {
  animation-play-state: paused;
}

/* LOGO CONTAINER - ABSOLUTAMENTE TRANSPARENTE */
.rb-client-logo {
  flex-shrink: 0;
  display: inline-block;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* IMAGEN - SIN RESTRICCIONES DE TAMAÑO */
.rb-client-logo img {
  display: block;
  width: auto !important;
  height: 80px !important;
  max-width: none !important;
  max-height: 80px !important;
  object-fit: contain !important;
  filter: grayscale(100%) brightness(0.8);
  opacity: 0.6;
  mix-blend-mode: screen;
  /* ELIMINA EL FONDO BLANCO/GRIS DE LOS JPEGS */
  transition: all 0.4s ease;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.rb-client-logo:hover img {
  filter: grayscale(0%) brightness(1.2);
  opacity: 1;
  transform: scale(1.08);
}

/* Infinite scroll animation */
@keyframes scroll-infinite {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .rb-clients {
    padding: 60px 0;
  }

  .rb-client-logo img {
    height: 60px !important;
    max-height: 60px !important;
  }

  .rb-clients-track {
    gap: 60px;
  }
}

/* =============================================
   HERO INTERNAL PAGE - COMPACT & CENTERED 
   Replicando el estilo de la página de Contactos
   ============================================= */

.rb-hero-internal {
    min-height: 500px !important;
    height: 50vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: #0a0a0a !important; /* Fondo Negro Sólido */
    position: relative;
    overflow: hidden;
}

.rb-hero-internal .rb-hero-content {
    max-width: 800px !important; /* Contenido Contenido, no estirado */
    width: 90% !important;
    margin: 0 auto !important;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rb-hero-internal .rb-hero-tag {
    display: inline-block !important; /* Solo ocupa el ancho de su texto */
    background: rgba(250, 204, 21, 0.1) !important;
    color: #FACC15 !important;
    border: 1px solid #FACC15 !important;
    padding: 8px 24px !important;
    border-radius: 50px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    margin-bottom: 25px !important;
}

.rb-hero-internal .rb-hero-title {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    margin-bottom: 20px !important;
}

.rb-hero-internal .rb-hero-title span.highlight {
    color: #FACC15 !important;
}

.rb-hero-internal .rb-hero-sub {
    font-size: 1.1rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    max-width: 600px !important;
}

.rb-hero-internal .rb-hero-bg {
    opacity: 0.3 !important; /* Imagen de fondo muy sutil */
    filter: grayscale(100%) !important;
}
