/* ==========================================================
   RUPTLINE_PUBLIC_CLEAN_SHELL_R4
   ========================================================== */

:root{
  --rl-r4-header-h:58px;
}

.rl-r4-header,
.rl-r4-header *,
.rl-r4-footer,
.rl-r4-footer *{
  box-sizing:border-box;
}

.rl-r4-header{
  position:fixed;
  z-index:2147482000;
  top:12px;
  left:18px;
  right:18px;
  height:var(--rl-r4-header-h);
  color:#f3f3f6;
  font-family:Poppins,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  pointer-events:none;
}

.rl-r4-header__inner{
  position:relative;
  width:min(1240px,100%);
  height:100%;
  margin:0 auto;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:22px;
  padding:0 11px 0 15px;
  border-radius:16px;
  background:#090a0e;
  box-shadow:none;
  pointer-events:auto;
}

.rl-r4-header.is-home:not(.is-scrolled) .rl-r4-header__inner{
  background:transparent;
}

html[data-theme="light"] .rl-r4-header{
  color:#171920;
}

html[data-theme="light"] .rl-r4-header__inner{
  background:#fff;
}

html[data-theme="light"] .rl-r4-header.is-home:not(.is-scrolled) .rl-r4-header__inner{
  background:transparent;
}

.rl-r4-brand{
  width:106px;
  display:flex;
  align-items:center;
  text-decoration:none;
}

.rl-r4-logo{
  display:block;
  width:100%;
  height:auto;
}

.rl-r4-logo--light{
  display:none;
}

html[data-theme="light"] .rl-r4-logo--dark{
  display:none;
}

html[data-theme="light"] .rl-r4-logo--light{
  display:block;
}

.rl-r4-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-width:0;
}

.rl-r4-nav > a,
.rl-r4-tools__trigger{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 12px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:rgba(255,255,255,.72);
  text-decoration:none;
  font:500 12px/1 Poppins,system-ui,sans-serif;
  cursor:pointer;
}

.rl-r4-nav > a:hover,
.rl-r4-tools__trigger:hover,
.rl-r4-tools.is-open .rl-r4-tools__trigger{
  background:rgba(255,255,255,.06);
  color:#fff;
}

html[data-theme="light"] .rl-r4-nav > a,
html[data-theme="light"] .rl-r4-tools__trigger{
  color:rgba(20,22,28,.68);
}

html[data-theme="light"] .rl-r4-nav > a:hover,
html[data-theme="light"] .rl-r4-tools__trigger:hover,
html[data-theme="light"] .rl-r4-tools.is-open .rl-r4-tools__trigger{
  background:rgba(20,22,28,.055);
  color:#111318;
}

.rl-r4-tools{
  position:relative;
}

.rl-r4-tools__trigger > span{
  width:6px;
  height:6px;
  border-right:1.4px solid currentColor;
  border-bottom:1.4px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
  opacity:.75;
}

.rl-r4-tools.is-open .rl-r4-tools__trigger > span{
  transform:rotate(225deg) translate(-1px,-1px);
}

/*
 * El mega menú es FIXED al viewport.
 * No depende del overflow, ancho o transform de ningún ancestro.
 */
.rl-r4-mega{
  position:fixed;
  z-index:2147482100;
  top:80px;
  left:50%;
  width:min(1040px,calc(100vw - 40px));
  max-height:calc(100dvh - 100px);
  overflow:auto;
  padding:0;
  border:1px solid rgba(255,255,255,.10);
  border-radius:20px;
  background:#000;
  color:#f3f3f6;
  box-shadow:0 28px 86px rgba(0,0,0,.52);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translate(-50%,-8px);
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
}

.rl-r4-tools.is-open .rl-r4-mega{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translate(-50%,0);
}

.rl-r4-mega__head{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:18px 24px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.rl-r4-mega__head small{
  display:block;
  margin-bottom:5px;
  color:#805be8;
  font-size:9px;
  line-height:1;
  font-weight:700;
  letter-spacing:.14em;
}

.rl-r4-mega__head strong{
  display:block;
  color:#f3f3f6;
  font-size:16px;
  line-height:1.25;
  font-weight:560;
  letter-spacing:-.02em;
}

.rl-r4-mega__head > a{
  flex:0 0 auto;
  color:#b79fff;
  font-size:10px;
  font-weight:600;
  text-decoration:none;
}

.rl-r4-mega__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  padding:24px;
}

.rl-r4-mega__col{
  min-width:0;
}

.rl-r4-mega__col > span{
  display:block;
  margin-bottom:10px;
  color:#6e7480;
  font-size:9px;
  line-height:1;
  font-weight:700;
  letter-spacing:.11em;
}

.rl-r4-mega__col > a{
  display:block;
  margin:0 -9px;
  padding:10px 9px;
  border-radius:11px;
  color:inherit;
  text-decoration:none;
}

.rl-r4-mega__col > a:hover{
  background:rgba(255,255,255,.065);
}

.rl-r4-mega__col strong{
  display:block;
  color:#f0f0f3;
  font-size:11.5px;
  line-height:1.35;
  font-weight:580;
}

.rl-r4-mega__col small{
  display:block;
  margin-top:3px;
  color:#737985;
  font-size:9px;
  line-height:1.45;
}

.rl-r4-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
}

.rl-r4-login,
.rl-r4-register{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  border-radius:999px;
  text-decoration:none;
  font:600 11px/1 Poppins,system-ui,sans-serif;
}

.rl-r4-login{
  color:#d8d9df;
}

.rl-r4-register{
  background:#fff;
  color:#111318;
}

html[data-theme="light"] .rl-r4-login{
  color:#3d414b;
}

html[data-theme="light"] .rl-r4-register{
  background:#111318;
  color:#fff;
}

.rl-r4-theme{
  position:relative;
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:block;
  border-radius:50%;
  background:rgba(255,255,255,.075);
  color:#f3f3f6;
  cursor:pointer;
}

html[data-theme="light"] .rl-r4-theme{
  background:rgba(17,19,26,.055);
  color:#171920;
}

.rl-r4-header.is-home:not(.is-scrolled) .rl-r4-theme{
  background:transparent;
}

.rl-r4-theme input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.rl-r4-theme__moon,
.rl-r4-theme__sun{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  transition:opacity .14s ease,transform .14s ease;
}

.rl-r4-theme svg{
  width:17px;
  height:17px;
}

.rl-r4-theme__sun{
  opacity:0;
  transform:scale(.65);
}

html[data-theme="light"] .rl-r4-theme__moon{
  opacity:0;
  transform:scale(.65);
}

html[data-theme="light"] .rl-r4-theme__sun{
  opacity:1;
  transform:scale(1);
}

.rl-r4-mobile-trigger{
  display:none;
  width:38px;
  height:38px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:50%;
  background:transparent;
  color:inherit;
}

.rl-r4-mobile-trigger i{
  display:block;
  width:14px;
  height:1px;
  margin:4px auto;
  background:currentColor;
}

.rl-r4-mobile{
  position:fixed;
  z-index:2147482050;
  top:80px;
  left:14px;
  right:14px;
  max-height:calc(100dvh - 96px);
  overflow:auto;
  display:none;
  padding:8px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:18px;
  background:#090a0e;
  color:#f3f3f6;
  box-shadow:0 24px 70px rgba(0,0,0,.34);
  pointer-events:auto;
}

.rl-r4-header.is-mobile-open .rl-r4-mobile{
  display:block;
}

.rl-r4-mobile nav{
  display:grid;
  gap:2px;
}

.rl-r4-mobile nav > a,
.rl-r4-mobile summary{
  min-height:46px;
  display:flex;
  align-items:center;
  padding:0 13px;
  border-radius:11px;
  color:#e5e6ea;
  text-decoration:none;
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  list-style:none;
}

.rl-r4-mobile summary::-webkit-details-marker{
  display:none;
}

.rl-r4-mobile details > div{
  display:grid;
  padding:2px 10px 8px 20px;
}

.rl-r4-mobile details > div a{
  padding:8px 0;
  color:#7e8490;
  text-decoration:none;
  font-size:11px;
}

.rl-r4-mobile__auth{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:6px;
  padding:12px 6px 6px;
  border-top:1px solid rgba(255,255,255,.07);
}

.rl-r4-mobile__auth a{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  color:#fff;
  text-decoration:none;
  font-size:11px;
  font-weight:600;
}

.rl-r4-mobile__auth a:last-child{
  border-color:transparent;
  background:#fff;
  color:#111318;
}

html[data-theme="light"] .rl-r4-mobile{
  border-color:rgba(20,22,28,.09);
  background:#fff;
  color:#171920;
  box-shadow:0 24px 70px rgba(30,34,44,.14);
}

html[data-theme="light"] .rl-r4-mobile nav > a,
html[data-theme="light"] .rl-r4-mobile summary{
  color:#1d2028;
}

html[data-theme="light"] .rl-r4-mobile__auth a{
  border-color:rgba(20,22,28,.10);
  color:#1d2028;
}

html[data-theme="light"] .rl-r4-mobile__auth a:last-child{
  background:#111318;
  color:#fff;
}

/* Footer R4 aislado */
.rl-r4-footer{
  width:100%;
  background:#000;
  color:#fff;
  font-family:Poppins,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.rl-r4-footer__inner{
  width:min(calc(100% - 48px),1240px);
  margin:0 auto;
  padding:52px 0 22px;
}

.rl-r4-footer__brand{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:30px;
  padding-bottom:34px;
  border-bottom:1px solid rgba(255,255,255,.07);
}

.rl-r4-footer__brand img{
  display:block;
  width:112px;
  height:auto;
}

.rl-r4-footer__brand p{
  max-width:320px;
  margin:0;
  color:#6f7580;
  text-align:right;
  font-size:11px;
  line-height:1.55;
}

.rl-r4-footer__grid{
  display:grid;
  grid-template-columns:1.05fr 1.55fr 1fr;
  gap:42px;
  padding:36px 0 42px;
}

.rl-r4-footer nav{
  display:grid;
  align-content:start;
  gap:8px;
}

.rl-r4-footer nav strong{
  margin-bottom:5px;
  color:#f1f1f4;
  font-size:11px;
  font-weight:650;
}

.rl-r4-footer nav a{
  color:#777d89;
  text-decoration:none;
  font-size:11.5px;
  line-height:1.45;
  transition:color .14s ease,transform .14s ease;
}

.rl-r4-footer nav a:hover{
  color:#fff;
  transform:translateX(2px);
}

.rl-r4-footer__bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.07);
  color:#555b66;
  font-size:10px;
}

/* Legal / confianza: light y dark bajo UNA sola autoridad data-theme */
html[data-theme="dark"] body.rl-public-web-page{
  background:#05060a!important;
  color:#ececf0!important;
}

html[data-theme="dark"] body.rl-public-web-page .rl-trust-page{
  color:#dfe0e5!important;
}

html[data-theme="dark"] body.rl-public-web-page .rl-trust-page h1,
html[data-theme="dark"] body.rl-public-web-page .rl-trust-section h2,
html[data-theme="dark"] body.rl-public-web-page .rl-trust-section h3{
  color:#f0f0f3!important;
}

html[data-theme="dark"] body.rl-public-web-page .rl-trust-page__lead,
html[data-theme="dark"] body.rl-public-web-page .rl-trust-page__meta,
html[data-theme="dark"] body.rl-public-web-page .rl-trust-section p,
html[data-theme="dark"] body.rl-public-web-page .rl-trust-section li{
  color:#858b96!important;
}

html[data-theme="dark"] body.rl-public-web-page .rl-trust-card{
  background:#0d0e13!important;
  border-color:rgba(255,255,255,.09)!important;
}

html[data-theme="dark"] body.rl-public-web-page .rl-trust-page__nav a{
  color:#b8bdc7!important;
  background:rgba(255,255,255,.025)!important;
  border-color:rgba(255,255,255,.10)!important;
}

html[data-theme="dark"] body.rl-public-web-page .rl-trust-note{
  color:#a7acb5!important;
  background:rgba(255,255,255,.035)!important;
  border-color:rgba(255,255,255,.10)!important;
}

html[data-theme="light"] body.rl-public-web-page{
  background:#f7f7f4!important;
  color:#171920!important;
}

html[data-theme="light"] body.rl-public-web-page .rl-trust-page{
  color:#2a2d34!important;
}

html[data-theme="light"] body.rl-public-web-page .rl-trust-page h1,
html[data-theme="light"] body.rl-public-web-page .rl-trust-section h2,
html[data-theme="light"] body.rl-public-web-page .rl-trust-section h3{
  color:#171920!important;
}

html[data-theme="light"] body.rl-public-web-page .rl-trust-page__lead,
html[data-theme="light"] body.rl-public-web-page .rl-trust-page__meta,
html[data-theme="light"] body.rl-public-web-page .rl-trust-section p,
html[data-theme="light"] body.rl-public-web-page .rl-trust-section li{
  color:#666e7b!important;
}

html[data-theme="light"] body.rl-public-web-page .rl-trust-card,
html[data-theme="light"] body.rl-public-web-page .rl-trust-page__nav a{
  background:#fff!important;
  border-color:rgba(20,23,35,.10)!important;
}

html[data-theme="light"] body.rl-public-web-page .rl-trust-page__nav a{
  color:#626a78!important;
}

@media(max-width:980px){
  .rl-r4-nav,
  .rl-r4-login,
  .rl-r4-register{
    display:none;
  }

  .rl-r4-mobile-trigger{
    display:block;
  }

  .rl-r4-header__inner{
    grid-template-columns:auto 1fr auto;
  }

  .rl-r4-actions{
    grid-column:3;
  }
}

@media(max-width:720px){
  .rl-r4-header{
    top:7px;
    left:7px;
    right:7px;
    height:52px;
  }

  .rl-r4-header__inner{
    padding:0 7px 0 11px;
    border-radius:13px;
  }

  .rl-r4-brand{
    width:94px;
  }

  .rl-r4-theme,
  .rl-r4-mobile-trigger{
    width:36px;
    height:36px;
    flex-basis:36px;
  }

  .rl-r4-mobile{
    top:66px;
    left:7px;
    right:7px;
    max-height:calc(100dvh - 74px);
  }

  .rl-r4-mega{
    display:none!important;
  }

  .rl-r4-footer__inner{
    width:min(calc(100% - 28px),1240px);
    padding-top:42px;
  }

  .rl-r4-footer__brand{
    align-items:flex-start;
    flex-direction:column;
  }

  .rl-r4-footer__brand p{
    text-align:left;
  }

  .rl-r4-footer__grid{
    grid-template-columns:1fr 1fr;
    gap:28px;
  }

  .rl-r4-footer__bottom{
    align-items:flex-start;
    flex-direction:column;
  }
}

@media(max-width:430px){
  .rl-r4-footer__grid{
    grid-template-columns:1fr;
  }
}

/* ==========================================================
   RUPTLINE_PUBLIC_HEADER_COMPLETE_R12
   Navegación pública completa y consistente.
   ========================================================== */

@media (min-width: 980px){
  .rl-r4-header__inner{
    width:min(1320px, calc(100% - 32px));
    max-width:1320px;
  }

  .rl-r4-nav{
    gap:4px;
    flex:1 1 auto;
    min-width:0;
  }

  .rl-r4-nav > a,
  .rl-r4-tools__trigger{
    padding-left:9px;
    padding-right:9px;
    white-space:nowrap;
  }

  .rl-r4-actions{
    flex:0 0 auto;
    gap:7px;
  }
}

@media (min-width: 980px) and (max-width: 1180px){
  .rl-r4-nav > a,
  .rl-r4-tools__trigger{
    padding-left:7px;
    padding-right:7px;
    font-size:12px;
  }

  .rl-r4-login,
  .rl-r4-register{
    padding-left:11px;
    padding-right:11px;
  }
}

/* ==========================================================
   RUPTLINE_PUBLIC_AUTH_PRICING_R12_1
   El HOME conserva las mismas acciones de cuenta
   que el resto de la web pública.
   ========================================================== */

@media (min-width: 980px){
  .rl-r4-header.is-home .rl-r4-login,
  .rl-r4-header.is-home .rl-r4-register{
    display:inline-flex !important;
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
  }

  .rl-r4-header.is-home .rl-r4-actions{
    display:flex !important;
    align-items:center;
  }
}

/* ==========================================================
   RUPTLINE_PUBLIC_SHELL_SIMPLIFIED_R18
   Nueva arquitectura pública:
   Qué puedes hacer / Herramientas / Para negocios / Planes
   ========================================================== */

@media (min-width: 981px){
  .rl-r18-header .rl-r4-header__inner{
    width:min(1120px,calc(100% - 32px));
    max-width:1120px;
    gap:24px;
  }

  .rl-r18-header .rl-r4-nav{
    gap:6px;
  }

  .rl-r18-header .rl-r4-nav > a{
    padding-left:12px;
    padding-right:12px;
    white-space:nowrap;
  }

  .rl-r18-header .rl-r4-actions{
    gap:7px;
  }
}

/* El mega menú R4 queda fuera del DOM en R18. */
.rl-r18-header .rl-r4-mega,
.rl-r18-header .rl-r4-tools{
  display:none!important;
}

/* Footer más corto, útil y respirable. */
.rl-r18-footer .rl-r4-footer__inner{
  width:min(calc(100% - 48px),1120px);
  padding-top:46px;
}

.rl-r18-footer .rl-r4-footer__brand{
  padding-bottom:28px;
}

.rl-r18-footer .rl-r4-footer__grid{
  grid-template-columns:1.15fr 1.35fr 1.2fr .8fr;
  gap:38px;
  padding:32px 0 38px;
}

.rl-r18-footer .rl-r4-footer nav{
  gap:7px;
}

.rl-r18-footer .rl-r4-footer nav strong{
  margin-bottom:7px;
}

@media(max-width:900px){
  .rl-r18-footer .rl-r4-footer__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:30px 38px;
  }
}

@media(max-width:430px){
  .rl-r18-footer .rl-r4-footer__inner{
    width:min(calc(100% - 28px),1120px);
  }

  .rl-r18-footer .rl-r4-footer__grid{
    grid-template-columns:1fr;
    gap:26px;
  }
}

/* RUPTLINE_WAVES_LINK_R24 */
.rl-r4-nav > a[href="/waves/"]{
  white-space:nowrap;
}
.rl-r4-mobile nav > a[href="/waves/"]{
  white-space:nowrap;
}
