/* ================================================================
   Pintura Robotizada & Customización — WP Template CSS
   Scoped to .rp (robot paint)
   ================================================================ */

/* ================================================================
   WORDPRESS THEME OVERRIDES
   ================================================================ */
body:has(.rp) {
  overflow-x: hidden !important;
}
/* header bg — unified in style.css via body:has(.twl-service) */

body:has(.rp) .page_title_wrap,
body:has(.rp) .sc_layouts_title,
body:has(.rp) .sc_layouts_title_wrap {
  display: none !important;
}

body:has(.rp) .top_panel,
body:has(.rp) .top_panel_navi {
  margin-bottom: 0 !important;
}

body:has(.rp) .page_content_wrap {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.rp {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body:has(.rp) .page_wrap,
body:has(.rp) .page_content_wrap,
body:has(.rp) #page,
body:has(.rp) #content,
body:has(.rp) .content_wrap,
body:has(.rp) .content {
  overflow: visible !important;
  transform: none !important;
  will-change: auto !important;
  contain: none !important;
  perspective: none !important;
  filter: none !important;
}

body:has(.rp) .page_footer_wrap,
body:has(.rp) .footer_wrap,
body:has(.rp) footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Force colors in dark sections (parent theme overrides with scheme_default) */
.rp-hero, .rp-hero *,
.rp-cta, .rp-cta * {
  color: var(--rp-text-white);
}
.rp .rp-btn--primary { color: var(--rp-dark-1) !important; }
.rp .rp-hero__tag { color: var(--rp-accent) !important; }
.rp .rp-cta__hours, .rp .rp-cta__copy { color: var(--rp-text-muted-light) !important; }
.rp .rp-label--muted { color: var(--rp-text-muted-light) !important; }
.rp .rp-cta__card-detail { color: var(--rp-text-muted-light) !important; }
.rp .rp-cta__card-icon { color: var(--rp-accent) !important; }
.rp .rp-cta__social-link { color: var(--rp-text-muted-light) !important; }

/* ---- Fonts ---- */
@font-face {
  font-family: 'Conthrax';
  src: url('../../css/fonts/conthrax_light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Conthrax';
  src: url('../../css/fonts/conthraxsemibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Conthrax';
  src: url('../../css/fonts/conthraxsemibold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Variables ---- */
.rp {
  --rp-dark-1: #0a0a0a;
  --rp-dark-2: #161616;
  --rp-dark-3: #1a1a1a;
  --rp-light-1: #f2f1ed;
  --rp-light-2: #e8e7e3;
  --rp-light-3: #fafaf8;
  --rp-accent: #e76301;
  --rp-accent-rgb: 212, 135, 74;
  --rp-text-white: #ffffff;
  --rp-text-light: #e0e0e0;
  --rp-text-muted-light: rgba(224,221,216,0.6);
  --rp-text-muted: #8a8a8a;
  --rp-text-dark: #1a1a1a;
  --rp-text-muted-dark: #666;
  --rp-text-secondary: #444444;
  --rp-font-display: 'Conthrax', 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --rp-font-body: 'Inter', sans-serif;
  --rp-font-mono: 'JetBrains Mono', monospace;
  --rp-container-max: 1240px;
  --rp-section-pad: clamp(60px, 10vh, 140px);
}

/* ---- Scoped Base ---- */
.rp {
  font-family: var(--rp-font-body);
  font-weight: 400;
  color: var(--rp-text-light);
  background: var(--rp-dark-1);
  overflow: visible !important;  /* Override .twl { overflow: clip } — needed for ScrollTrigger pin */
  line-height: 1.6;
}

.rp img, .rp svg { display: block; max-width: 100%; }
.rp a { color: inherit; text-decoration: none; }

/* ---- Utilities ---- */
.rp-container {
  width: 100%;
  max-width: var(--rp-container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.rp-mono {
  font-family: var(--rp-font-mono);
  font-size: clamp(0.65rem, 1vw, 0.75rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rp-section {
  position: relative;
  padding: var(--rp-section-pad) 0;
}

.rp-section-title {
  font-family: var(--rp-font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--rp-text-light);
  line-height: 1.2;
  margin-bottom: 30px;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 2;
}

.rp-section-title--dark {
  color: var(--rp-text-dark);
}

/* Process header pattern */
.rp-process-header {
  text-align: center;
  margin-bottom: 60px;
}

.rp-process-header--left {
  text-align: left;
}

.rp-process-subtitle {
  font-size: 14px;
  color: var(--rp-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.rp-process-header--left .rp-process-subtitle {
  justify-content: flex-start;
}

.rp-process-subtitle::before,
.rp-process-subtitle::after {
  content: '—';
  color: var(--rp-accent);
  font-size: 16px;
}

/* Green-box / first-letter-box */
.rp-section-title .first-letter-box {
  position: relative;
  display: inline-block;
  z-index: 2;
}

.rp-section-title .green-box {
  position: absolute;
  inset: -7px 2px -6px -8px;
  background: #FF6B00;
  transform: skewX(-15deg);
  border-radius: 2px;
  z-index: -1;
  overflow: hidden;
  width: 40px;
  height: 60px;
  top: -47px;
  left: 1px;
}

.rp-why .rp-section-title .green-box {
  top: -46px;
  left: -20px;
}

.rp-section-title .green-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-25deg);
  animation: rpShineBox 4s ease-in-out infinite;
  filter: blur(3px);
  pointer-events: none;
}

@keyframes rpShineBox {
  0%, 100% { left: -100%; opacity: 0; }
  50% { left: 150%; opacity: 1; }
}

/* ---- Scroll Progress ---- */
.rp-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 9999;
  background: rgba(255,255,255,0.05);
}

.rp-progress__bar {
  width: 100%;
  height: 100%;
  background: var(--rp-accent);
  transform-origin: left;
  transform: scaleX(0);
}

/* ================================================================
   1. HERO
   ================================================================ */
.rp-hero-wrapper {
  position: relative;
  z-index: 2;
  height: 100vh;
  height: 100dvh;
  clip-path: inset(0);
}

.rp-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rp-dark-1);
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
}

.rp-section:not(.rp-hero):not(.rp-cta) {
  position: relative;
  z-index: 5;
}

.rp-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rp-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rp-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.rp-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1310px;
}

.rp-hero__tag {
  color: var(--rp-accent);
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.rp-hero__title {
  font-family: var(--rp-font-display);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 9rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.5rem;
  opacity: 0;
  perspective: 600px;
  text-transform: uppercase;
}

.rp-hero__sub {
  font-weight: 300;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--rp-text-light);
  max-width: 800px;
  margin: 0 auto 2rem;
}

.rp-hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.rp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--rp-font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  will-change: transform;
}

.rp-btn--primary {
  background: var(--rp-accent);
  color: var(--rp-dark-1);
  padding: 0.9rem 2.4rem;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
}

.rp-btn--primary:hover {
  background: #e09a5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,135,74,0.4);
}

.rp-btn--ghost {
  background: transparent;
  color: var(--rp-text-light);
  border: 1px solid rgba(255,255,255,0.2);
}

.rp-btn--ghost:hover {
  border-color: var(--rp-accent);
  color: var(--rp-accent);
}

/* Scroll hint */
.rp-hero__scroll-hint {
  position: absolute;
  bottom: clamp(1rem, 3vh, 2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--rp-text-muted-light);
}

.rp-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--rp-accent);
  animation: scrollPulse 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollPulse {
  0%, 100% { scaleY: 0.3; opacity: 0.3; }
  50% { scaleY: 1; opacity: 1; }
}

/* ================================================================
   2. SYSTEM (light)
   ================================================================ */
.rp-system {
  background: var(--rp-light-1);
  color: var(--rp-text-dark);
  position: relative;
  z-index: 5;
}

.rp-system::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/fondo.jpg');
  background-repeat: repeat;
  background-size: auto;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.rp-system > * {
  position: relative;
  z-index: 1;
}

.rp-system__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: -50px;
}

@media (min-width: 768px) {
  .rp-system__layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.rp-system .rp-process-header {
  margin-bottom: 30px;
}

.rp-system__text {
  display: flex;
  flex-direction: column;
}

.rp-system__points {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 4.5rem;
}

.rp-system__text .rp-section-title .green-box{
  inset: -8px 32px 5px -24px !important;
}
.rp-quality .rp-section-title .green-box{
  inset: -7px 2px -6px -8px;
  width: 40px;
  height: 60px;
  left: -17px;
  z-index: 1;
  top: -47px;
}

span.test {
  z-index: 10000;
  display: inline;
  position: relative;
  font-weight: bold;
}

.rp-proceso .rp-section-title .green-box{
  top: -47px;
  left: -17px;
}
.rp-quality span.test{
  color: black;
}
.rp-custom span.test{
  color: var(--rp-text-dark);
}
.rp-why span.test{
  color: #fff;
}
.rp-why .rp-section-title{
  color: var(--rp-text-light);
}
.rp-system__point h3 {
  font-family: var(--rp-font-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--rp-text-dark);
  margin-bottom: 0.4rem;
}

.rp-system__point p {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  color: var(--rp-text-muted-dark);
  line-height: 1.6;
}

/* Counters */
.rp-system__counters {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 2.5rem;
  padding-top: 0;
  justify-content: space-around;
  flex-wrap: wrap;
}

.rp-system__counter {
  flex: 1 1 140px;
  max-width: 200px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rp-system__counter:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.rp-system__counter-label {
  font-size: 0.7rem;
  color: var(--rp-text-muted-dark);
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.rp-system__counter-num {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.rp-system__counter-value {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--rp-accent);
  line-height: 1;
}

.rp-system__counter-unit {
  color: var(--rp-accent);
  opacity: 0.5;
  font-size: 0.65rem;
}

.rp-system__counter-bar {
  width: 100%;
  height: 3px;
  background: rgba(0,0,0,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: auto;
}

.rp-system__counter-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--rp-accent);
  border-radius: 2px;
  transition: width 0.8s ease-out;
  box-shadow: 0 0 8px rgba(var(--rp-accent-rgb), 0.4);
}

/* Visual video */
.rp-system__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.rp-system__video-wrap {
  width: 100%;
  max-width: 700px;
  max-height: 525px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.rp-system__video-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ================================================================
   3. PROCESO — Timeline vertical (replaces storytelling)
   ================================================================ */
.rp-proceso {
  background: var(--rp-dark-1);
  color: var(--rp-text-light);
  position: relative;
  z-index: 5;
  overflow: visible;
}

.rp-proceso::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.rp-proceso > * {
  position: relative;
  z-index: 1;
}

.rp-proceso span.test { color: #fff; }
.rp-proceso .rp-section-title { color: var(--rp-text-light); }

.rp-proceso__timeline {
  position: relative;
  padding: 2rem 0;
}

/* Central line */
.rp-proceso__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.08);
  transform: translateX(-50%);
  z-index: 1;
}

.rp-proceso__line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--rp-accent), rgba(231,99,1,0.3));
  transition: height 0.1s linear;
}

/* Step row */
.rp-proceso__step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  z-index: 2;
}

/* Flip layout for step 2 */
.rp-proceso__step--flip .rp-proceso__card--left { order: 1; }
.rp-proceso__step--flip .rp-proceso__card--right { order: 2; }

/* Dot on timeline */
.rp-proceso__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rp-dark-1);
  border: 2px solid var(--rp-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 4px 20px rgba(231,99,1,0.15), 0 0 0 6px rgba(231,99,1,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.rp-proceso__dot span {
  font-family: var(--rp-font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--rp-accent);
  letter-spacing: 0.05em;
}

.rp-proceso__step.is-visible .rp-proceso__dot {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 4px 24px rgba(231,99,1,0.3), 0 0 0 8px rgba(231,99,1,0.1);
}

/* Cards */
.rp-proceso__card {
  position: relative;
}

.rp-proceso__card-media {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 3/4;
  max-height: 525px;
  background: transparent;
}

.rp-proceso__card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rp-proceso__card-media iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.rp-proceso__card-body {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.rp-proceso__card-body:hover {
  transform: translateY(-3px);
  border-color: rgba(231,99,1,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.rp-proceso__tag {
  display: inline-block;
  color: var(--rp-accent) !important;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: rgba(231,99,1,0.08);
  border-radius: 4px;
}

.rp-proceso__title {
  font-family: var(--rp-font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  color: var(--rp-text-light) !important;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.rp-proceso__desc {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  color: var(--rp-text-muted-light) !important;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Metrics row */
.rp-proceso__metrics {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.rp-proceso__metric {
  display: flex;
  flex-direction: column;
}

.rp-proceso__metric-val {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--rp-accent) !important;
  line-height: 1;
}

.rp-proceso__metric-label {
  font-size: 0.7rem;
  color: var(--rp-text-muted-light) !important;
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

/* ---- Proceso responsive ---- */
@media (max-width: 900px) {
  .rp-proceso__step {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-left: 3rem;
  }

  .rp-proceso__line {
    left: 1rem;
  }

  .rp-proceso__dot {
    left: 1rem;
    top: 1.5rem;
    transform: translate(-50%, 0);
    width: 36px;
    height: 36px;
  }

  .rp-proceso__step.is-visible .rp-proceso__dot {
    transform: translate(-50%, 0) scale(1.1);
  }

  .rp-proceso__step--flip .rp-proceso__card--left { order: 2; }
  .rp-proceso__step--flip .rp-proceso__card--right { order: 1; }
}

.rp-process-subtitle{
  font-family: Conthrax;
  font-size: 10px;
  margin-bottom: 10px;
}

/* ================================================================
   3b. FAQ (light)
   ================================================================ */
.rp-faq {
  background: var(--rp-light-1);
  position: relative;
  z-index: 5;
}

.rp-faq::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/fondo.jpg');
  background-repeat: repeat;
  background-size: auto;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.rp-faq > * {
  position: relative;
  z-index: 1;
}

.rp-faq,
.rp-faq .rp-process-header,
.rp-faq .rp-faq__list {
  color: var(--rp-text-dark);
}

.rp-faq .rp-section-title {
  color: var(--rp-text-dark) !important;
}

.rp-faq span.test {
  color: var(--rp-text-dark) !important;
}

.rp-faq .rp-process-subtitle {
  color: var(--rp-accent);
}

.rp-faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rp-faq__item {
  background: none !important;
  border: none !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  border-radius: 0 !important;
  overflow: hidden;
  transition: border-color 0.3s;
  padding: 0 !important;
  margin: 0 !important;
}

.rp-faq__item.is-open {
  border-color: rgba(var(--rp-accent-rgb), 0.3);
}

button.rp-faq__header,
.rp-faq__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 0;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  color: var(--rp-text-dark) !important;
  font-family: var(--rp-font-body) !important;
  font-size: clamp(0.9rem, 1.4vw, 1rem) !important;
  font-weight: 500 !important;
  text-align: left !important;
  transition: color 0.3s;
  margin: 0 !important;
  line-height: 1.5 !important;
}

button.rp-faq__header:hover,
button.rp-faq__header:focus {
  color: var(--rp-accent);
  background: none;
  background-color: transparent;
  box-shadow: none;
  outline: none;
}

.rp-faq__num {
  color: var(--rp-text-muted-dark) !important;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.rp-faq__q {
  flex: 1;
  font-weight: 500;
  color: var(--rp-text-dark) !important;
}

.rp-faq__toggle {
  color: var(--rp-accent) !important;
  font-size: 1.2rem;
  transition: transform 0.3s;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
}

.rp-faq__item.is-open .rp-faq__toggle {
  transform: rotate(45deg);
}

.rp-faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.rp-faq__item.is-open .rp-faq__body {
  grid-template-rows: 1fr;
}

.rp-faq__body > p {
  overflow: hidden;
  padding: 0;
  margin: 0;
  color: var(--rp-text-secondary) !important;
  line-height: 1.7;
  font-size: 0.95rem;
  background: none !important;
}

.rp-faq__item.is-open .rp-faq__body > p {
  padding-bottom: 1.25rem;
}

/* ================================================================
   3c. Dark overrides for .twl-related
   ================================================================ */
.rp .twl-related{background:#0a0a0a;color:#fff}
.rp .twl-related::before{background-image:radial-gradient(circle,rgba(255,255,255,0.03) 1px,transparent 1px);background-size:24px 24px;opacity:1}
.rp .twl-related__title{color:#fff}
.rp .twl-related__card{background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.08);border-radius:16px}
.rp .twl-related__card::before{height:3px;background:linear-gradient(90deg,var(--rp-accent),rgba(231,99,1,0.3))}
.rp .twl-related__card:hover{border-color:rgba(231,99,1,0.3);box-shadow:0 16px 48px rgba(0,0,0,0.3),0 4px 12px rgba(231,99,1,0.08)}
.rp .twl-related__card-icon-wrap{background:rgba(231,99,1,0.08);border-color:rgba(231,99,1,0.15)}
.rp .twl-related__card:hover .twl-related__card-icon-wrap{background:rgba(231,99,1,0.15)}
.rp .twl-related__card-title{color:#fff}
.rp .twl-related__card-desc{color:rgba(255,255,255,0.6)}

/* ================================================================
   4. WHY ROBOT (dark)
   ================================================================ */
.rp-why {
  background: var(--rp-dark-1);
  color: var(--rp-text-light);
  position: relative;
  z-index: 5;
}

.rp-why::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.rp-why > * {
  position: relative;
  z-index: 1;
}

.rp-why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 600px) {
  .rp-why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .rp-why__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rp-why__card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--rp-accent);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  transform-style: preserve-3d;
}

.rp-why__card:hover {
  transform: translateY(-4px);
  border-color: rgba(231,99,1,0.3);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 4px 12px rgba(231,99,1,0.08);
}

.rp-why__card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.2rem;
  color: var(--rp-accent);
}

.rp-why__card-title {
  font-family: var(--rp-font-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: #fff !important;
  margin-bottom: 0.5rem;
}

.rp-why__card-desc {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.rp-why__card-tag {
  color: var(--rp-accent);
  opacity: 0.5;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}

/* ================================================================
   5. CUSTOMIZATION (light gray with texture)
   ================================================================ */
.rp-custom {
  background: var(--rp-light-1);
  color: var(--rp-text-dark);
  position: relative;
  z-index: 5;
}

.rp-custom::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/fondo.jpg');
  background-repeat: repeat;
  background-size: auto;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.rp-custom > * {
  position: relative;
  z-index: 1;
}

.rp-custom__intro {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--rp-text-muted-dark);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.rp-custom__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .rp-custom__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .rp-custom__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.rp-custom__card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.rp-custom__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border-color: rgba(0,0,0,0.1);
}

.rp-custom__card-swatch {
  height: 120px;
  width: 100%;
}

.rp-custom__card-title {
  font-family: var(--rp-font-display);
  font-weight: 600;
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: var(--rp-text-dark);
  padding: 1.2rem 1.2rem 0.4rem;
}

.rp-custom__card-desc {
  font-size: clamp(0.82rem, 1.1vw, 0.9rem);
  color: var(--rp-text-muted-dark);
  line-height: 1.6;
  padding: 0 1.2rem 1.2rem;
}

/* ================================================================
   6. QUALITY (dark)
   ================================================================ */
.rp-quality {
  background: var(--rp-light-1);
  position: relative;
  z-index: 5;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.rp-quality::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/fondo.jpg');
  background-repeat: repeat;
  background-size: auto;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.rp-quality > * {
  position: relative;
  z-index: 1;
}

.rp-quality__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .rp-quality__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rp-quality__item {
  border: 1px solid rgba(0,0,0,0.08);
  padding: 2rem;
  position: relative;
}

.rp-quality__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--rp-accent);
  opacity: 0.5;
}

.rp-quality__item-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rp-quality__item-num {
  color: var(--rp-accent);
  font-size: 0.7rem;
  opacity: 0.6;
}

.rp-quality__item-title {
  font-family: var(--rp-font-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--rp-text-dark);
}

.rp-quality__item-desc {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  color: var(--rp-text-muted-dark);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.rp-quality__item-data {
  display: flex;
  gap: 1.5rem;
  font-size: 0.6rem;
  color: var(--rp-accent);
  opacity: 0.4;
  letter-spacing: 0.1em;
  flex-wrap: wrap;
}

/* ================================================================
   7. CTA (dark)
   ================================================================ */
.rp-cta-spacer {
  position: relative;
  pointer-events: none;
}

.rp-cta {
  background: var(--rp-dark-1);
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  overflow: hidden;
}

.rp-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.rp-cta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rp-cta__wheel-svg {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  opacity: 0.5;
  animation: rp-spin 180s linear infinite;
}

@keyframes rp-spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.rp-cta__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 0 2rem;
}

.rp-label {
  font-family: var(--rp-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.5rem;
}

.rp-label--muted {
  color: var(--rp-text-muted-light);
}

.rp-cta .rp-section-title,
.rp-cta .rp-section-title .test {
  color: var(--rp-text-light);
}

.rp-cta__sub {
  font-family: var(--rp-font-mono);
  font-size: clamp(0.75rem, 1.1vw, 0.85rem);
  color: var(--rp-text-muted-light);
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

.rp-cta__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.rp-cta__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(var(--rp-accent-rgb), 0.2);
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.rp-cta__card:hover {
  border-color: var(--rp-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.rp-cta__card-icon {
  width: 40px;
  height: 40px;
  color: var(--rp-accent);
}

.rp-cta__card-label {
  font-family: var(--rp-font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--rp-text-light);
}

.rp-cta__card-detail {
  font-family: var(--rp-font-mono);
  font-size: 0.65rem;
  color: var(--rp-text-muted-light);
}

.rp-cta__hours {
  font-size: 0.65rem;
  color: var(--rp-text-muted-light);
  margin-bottom: 2.5rem;
}

.rp-cta__footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--rp-accent-rgb), 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.rp-cta__copy {
  font-size: 0.65rem;
  color: var(--rp-text-muted-light);
}

.rp-cta__social {
  display: flex;
  gap: 1rem;
}

.rp-cta__social-link {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--rp-font-mono);
  font-size: 0.65rem;
  color: var(--rp-text-muted-light);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.rp-cta__social-link:hover {
  border-color: var(--rp-accent);
  color: var(--rp-accent);
}

@media (min-width: 600px) {
  .rp-cta__cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .rp-cta__footer {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ================================================================
   GREEN-BOX RESPONSIVE
   ================================================================ */
@media (max-width: 767px) {
  .rp-section-title .green-box {
    width: 28px !important;
    height: 42px !important;
    inset: -6px -0.35em -30px -10px !important;
    top: unset !important;
    left: unset !important;
  }
}

/* ================================================================
   REVEAL (GSAP initial state)
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(50px);
}

/* ================================================================
   PREFERS-REDUCED-MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .rp-hero__scroll-line {
    animation: none;
  }
  .rp-hero__title {
    opacity: 1 !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .rp-system__counter-bar-fill {
    transition: none !important;
  }
}

/* ================================================================
   RESPONSIVE TWEAKS
   ================================================================ */
@media (max-width: 480px) {
  .rp-hero__ctas {
    flex-direction: column;
    align-items: center;
  }
  .rp-btn {
    width: 100%;
    max-width: 280px;
  }
  .rp-system__counters {
    justify-content: center;
  }
  .rp-system__counter {
    max-width: none;
    flex: 1 1 100%;
  }
  .rp-cta__cards {
    flex-direction: column;
    align-items: center;
  }
  .rp-cta__card {
    width: 100%;
    max-width: 280px;
  }
}

@media (min-width: 1024px) {
  .rp-why__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .rp-why__card:nth-child(4) {
    grid-column: 1 / 2;
    margin-left: auto;
  }
}

/* ================================================================
   JS FALLBACK — show content if animations fail to initialize
   body.rp-js-ready is added by JS on successful init.
   Without it, elements fade in after 3s via CSS animation.
   ================================================================ */
@keyframes rpFallbackReveal {
  to { opacity: 1; transform: none; }
}
body:not(.rp-js-ready) .rp-hero__title {
  animation: rpFallbackReveal 0.6s ease 3s both;
}
body:not(.rp-js-ready) .rp-hero__sub,
body:not(.rp-js-ready) .rp-hero__tag,
body:not(.rp-js-ready) .rp-hero__ctas,
body:not(.rp-js-ready) .rp-hero__scroll-hint {
  animation: rpFallbackReveal 0.4s ease 3.3s both;
}
body:not(.rp-js-ready) .reveal {
  animation: rpFallbackReveal 0.5s ease 3.5s both;
}
