:root {
  --rtp-black: #050812;
  --rtp-night: #071a36;
  --rtp-blue: #3693f4;
  --rtp-blue-dark: #126bd1;
  --rtp-cyan: #8bdcff;
  --rtp-white: #ffffff;
  --rtp-soft: #f4f8fd;
  --rtp-muted: #aab7c7;
  --rtp-ink: #101824;
  --rtp-line: rgba(255, 255, 255, 0.16);
  --rtp-radius: 8px;
  --rtp-shadow: 0 24px 70px rgba(3, 7, 16, 0.18);
  --rtp-glow: 0 0 42px rgba(54, 147, 244, 0.28);
  --rtp-max: 1240px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--rtp-black);
}

.wp-site-blocks {
  overflow-x: clip;
}

.rtp-container,
.rtp-woo .rtp-container {
  width: min(100% - 32px, var(--rtp-max));
  margin-inline: auto;
}

.rtp-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(5, 8, 18, 0.48);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.rtp-header.is-scrolled {
  background: rgba(5, 8, 18, 0.88);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.rtp-header .wp-block-navigation a {
  color: var(--rtp-white);
}

.rtp-header .wp-block-navigation a:hover {
  color: var(--rtp-cyan);
}

.rtp-header-cta .wp-block-button__link,
.rtp-btn .wp-block-button__link,
.rtp-hero .wp-block-button__link {
  min-height: 46px;
  border-radius: var(--rtp-radius);
  box-shadow: 0 12px 30px rgba(54, 147, 244, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.rtp-header-cta .wp-block-button__link:hover,
.rtp-btn .wp-block-button__link:hover,
.rtp-hero .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(54, 147, 244, 0.32);
}

.rtp-hero {
  position: relative;
  isolation: isolate;
  min-height: 92vh;
  display: grid;
  align-items: center;
  color: var(--rtp-white);
  background:
    linear-gradient(90deg, rgba(5, 8, 18, 0.96) 0%, rgba(5, 8, 18, 0.82) 42%, rgba(5, 8, 18, 0.18) 100%),
    url("../img/hero-devices-bg.png") center right / cover no-repeat;
}

.rtp-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.36;
  background-image:
    linear-gradient(90deg, transparent 0 54px, rgba(139, 220, 255, 0.16) 55px 56px, transparent 57px),
    radial-gradient(circle at 72% 24%, rgba(54, 147, 244, 0.34), transparent 28%);
  background-size: 108px 108px, auto;
}

.rtp-hero__content {
  width: min(100% - 32px, var(--rtp-max));
  margin-inline: auto;
  padding: 120px 0 88px;
}

.rtp-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: 0;
}

.rtp-hero p {
  max-width: 620px;
  color: #e7f4ff;
  font-size: clamp(18px, 2vw, 22px);
}

.rtp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--rtp-cyan);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.rtp-kicker::before {
  width: 36px;
  height: 2px;
  background: var(--rtp-blue);
  content: "";
}

.rtp-section {
  padding: clamp(72px, 8vw, 118px) 0;
  background: var(--rtp-white);
}

.rtp-section--dark {
  color: var(--rtp-white);
  background:
    radial-gradient(circle at 88% 10%, rgba(54, 147, 244, 0.22), transparent 32%),
    linear-gradient(135deg, var(--rtp-black), var(--rtp-night));
}

.rtp-section--soft {
  background: var(--rtp-soft);
}

.rtp-section-head {
  width: min(100% - 32px, var(--rtp-max));
  margin: 0 auto 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.rtp-section-head h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

.rtp-section-head p {
  max-width: 540px;
  margin: 0;
  color: #5f6d7c;
}

.rtp-section--dark .rtp-section-head p {
  color: #c7d6e8;
}

.rtp-grid {
  width: min(100% - 32px, var(--rtp-max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rtp-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rtp-card {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  padding: 26px;
  color: var(--rtp-ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(12, 34, 64, 0.1);
  border-radius: var(--rtp-radius);
  box-shadow: 0 12px 34px rgba(16, 24, 36, 0.08);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 540ms ease, transform 540ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.rtp-card.is-visible,
.rtp-reveal.is-visible,
.rtp-stat.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rtp-card:hover {
  border-color: rgba(54, 147, 244, 0.42);
  box-shadow: var(--rtp-shadow), var(--rtp-glow);
  transform: translateY(-4px);
}

.rtp-card--glass {
  color: var(--rtp-white);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border-color: var(--rtp-line);
  backdrop-filter: blur(16px);
}

.rtp-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.rtp-card p {
  margin: 0;
  color: inherit;
  opacity: 0.78;
}

.rtp-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  color: var(--rtp-white);
  background: linear-gradient(135deg, var(--rtp-blue), var(--rtp-blue-dark));
  border-radius: var(--rtp-radius);
  box-shadow: 0 12px 32px rgba(54, 147, 244, 0.32);
  font-weight: 900;
}

.rtp-lab {
  width: min(100% - 32px, var(--rtp-max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 26px;
  align-items: stretch;
}

.rtp-lab__visual {
  min-height: 420px;
  border-radius: var(--rtp-radius);
  background:
    linear-gradient(145deg, rgba(5, 8, 18, 0.84), rgba(7, 26, 54, 0.7)),
    url("../img/renuevatel-logo.jpg") center / contain no-repeat,
    #081426;
  box-shadow: var(--rtp-shadow);
}

.rtp-repairs {
  display: grid;
  gap: 12px;
}

.rtp-repair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  color: var(--rtp-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--rtp-line);
  border-radius: var(--rtp-radius);
}

.rtp-gaming {
  position: relative;
  overflow: hidden;
  color: var(--rtp-white);
  background:
    radial-gradient(circle at 78% 40%, rgba(54, 147, 244, 0.36), transparent 34%),
    linear-gradient(135deg, #050812, #0b1430 46%, #14214a);
}

.rtp-gaming::after {
  position: absolute;
  inset: auto -10% -28% 40%;
  height: 280px;
  background: rgba(139, 220, 255, 0.18);
  filter: blur(70px);
  content: "";
}

.rtp-stat-grid {
  width: min(100% - 32px, var(--rtp-max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.rtp-stat {
  padding: 26px;
  color: var(--rtp-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--rtp-line);
  border-radius: var(--rtp-radius);
  opacity: 0;
  transform: translateY(22px);
}

.rtp-stat strong {
  display: block;
  color: var(--rtp-cyan);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
}

.rtp-testimonials {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.rtp-testimonials .rtp-card {
  scroll-snap-align: start;
}

.rtp-final {
  color: var(--rtp-white);
  background:
    linear-gradient(100deg, rgba(5, 8, 18, 0.95), rgba(7, 26, 54, 0.82)),
    url("../img/hero-devices-bg.png") center right / cover no-repeat;
}

.rtp-final-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 10px;
  width: min(100% - 32px, var(--rtp-max));
  margin-inline: auto;
}

.rtp-final-form input,
.rtp-final-form select {
  min-height: 48px;
  padding: 12px 14px;
  color: var(--rtp-white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--rtp-line);
  border-radius: var(--rtp-radius);
}

.rtp-final-form button {
  min-height: 48px;
  padding: 12px 18px;
  color: var(--rtp-white);
  background: var(--rtp-blue);
  border: 0;
  border-radius: var(--rtp-radius);
  font-weight: 900;
}

.rtp-whatsapp {
  position: fixed;
  z-index: 120;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--rtp-white);
  background: #12a85f;
  border-radius: 50%;
  box-shadow: 0 16px 38px rgba(18, 168, 95, 0.38);
  transition: transform 180ms ease, background 180ms ease;
}

.rtp-whatsapp:hover {
  background: #0f8f52;
  transform: translateY(-2px);
}

.rtp-whatsapp svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.rtp-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 540ms ease, transform 540ms ease;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.woocommerce ul.products li.product,
.woocommerce div.product {
  padding: 18px;
  background: var(--rtp-white);
  border: 1px solid rgba(12, 34, 64, 0.12);
  border-radius: var(--rtp-radius);
  box-shadow: 0 12px 34px rgba(16, 24, 36, 0.08);
}

.woocommerce ul.products li.product .button,
.woocommerce div.product form.cart .button,
.woocommerce button.button,
.woocommerce a.button {
  color: var(--rtp-white);
  background: var(--rtp-blue);
  border-radius: var(--rtp-radius);
  font-weight: 900;
}

.woocommerce span.onsale {
  min-height: auto;
  padding: 6px 10px;
  background: var(--rtp-blue);
  border-radius: var(--rtp-radius);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .rtp-card,
  .rtp-reveal,
  .rtp-stat {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .rtp-section-head,
  .rtp-lab {
    grid-template-columns: 1fr;
  }

  .rtp-section-head {
    display: grid;
  }

  .rtp-grid,
  .rtp-grid--4,
  .rtp-stat-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rtp-final-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .rtp-hero {
    min-height: 760px;
    background-position: center right 32%;
  }

  .rtp-grid,
  .rtp-grid--4,
  .rtp-stat-grid,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .rtp-header .wp-block-buttons {
    display: none;
  }
}
