/* ======================================================
   LAYOUT GLOBAL
====================================================== */
:root{
  --container: 1280px;
  --gutter: 24px;
}

@media (max-width: 980px){
  :root{
    --gutter: 16px;
  }
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}


/* ======================================================
   NAVBAR
====================================================== */
:root{
  --bg: #060B1A;
  --glass: rgba(255,255,255,0.10);
  --glass-strong: rgba(255,255,255,0.14);
  --stroke: rgba(255,255,255,0.18);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --shadow: 0 18px 50px rgba(0,0,0,0.35);
}

*{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(31,107,255,0.35), transparent 60%),
    radial-gradient(800px 500px at 80% 0%, rgba(42,167,255,0.25), transparent 60%),
    radial-gradient(900px 700px at 50% 100%, rgba(255,255,255,0.06), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

.nav-wrap{
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 16px;
}

.navbar{
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 170px;
}

.brand-logo-img{
  height: 38px;
  width: auto;
  display: block;
}

.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  cursor: pointer;
}

.nav-toggle-lines{
  width: 18px;
  height: 2px;
  background: var(--text);
  display: inline-block;
  position: relative;
  border-radius: 999px;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after{
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.nav-toggle-lines::before{ top: -6px; }
.nav-toggle-lines::after{ top: 6px; }

.nav-menu{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.nav-link{
  text-decoration: none;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: var(--text);
}

/* ======================================================
   SUBMENU
====================================================== */
.has-submenu{
  position: relative;
}

.submenu{
  list-style: none;
  position: absolute;
  top: 100%;
  margin-top: 6px;
  left: 0;
  min-width: 190px;
  background: rgba(20,30,60,0.96);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 8px;
  display: none;
  flex-direction: column;
  box-shadow: var(--shadow);
  z-index: 100;
}

.submenu a{
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  display: block;
}

.submenu a:hover{
  background: rgba(255,255,255,0.12);
}

.has-submenu::after{
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
}

@media (min-width: 981px){
  .has-submenu:hover .submenu{
    display: flex;
    animation: fadeIn 0.15s ease;
  }
}

@keyframes fadeIn{
  from{
    opacity: 0;
    transform: translateY(-4px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================================
   FLECHA SUBMENU
====================================================== */
.arrow{
  font-size: 12px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

@media (min-width: 981px){
  .has-submenu:hover .arrow{
    transform: rotate(180deg);
  }
}

/* ======================================================
   NAVBAR (CELULAR)
====================================================== */
@media (max-width: 980px){
  .navbar{
    padding: 12px;
  }

  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu{
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: var(--glass-strong);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .nav-menu.open{
    display: flex;
  }

  .nav-link{
    width: 100%;
    justify-content: space-between;
    padding: 12px 12px;
    border-radius: 14px;
  }

  .submenu{
    position: static;
    margin-top: 0;
    display: none;
    background: transparent;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 10px;
    min-width: auto;
  }

  .submenu a{
    padding: 10px 12px;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.85);
  }


  .has-submenu.open .submenu{
    display: flex;
  }

  .has-submenu.open .arrow{
    transform: rotate(180deg);
  }
}

/* ======================================================
   NAV MENU (MÓVIL) - MÁS LEGIBLE
====================================================== */
@media (max-width: 980px){
  .nav-menu{
    background: rgba(10,16,36,0.92);
    border-color: rgba(255,255,255,0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .nav-link{
    color: rgba(255,255,255,0.92);
  }

  .nav-link:hover{
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.98);
  }

  .submenu a{
    color: rgba(255,255,255,0.90);
  }
}


/* ======================================================
   LEGAL PAGE - BASE
====================================================== */
:root{
  --bg: #060B1A;
  --glass: rgba(255,255,255,0.10);
  --glass-strong: rgba(255,255,255,0.14);
  --stroke: rgba(255,255,255,0.18);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --shadow: 0 18px 50px rgba(0,0,0,0.35);
  --grad: linear-gradient(135deg, rgba(31,107,255,1), rgba(42,167,255,1));
}

*{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(31,107,255,0.35), transparent 60%),
    radial-gradient(800px 500px at 80% 0%, rgba(42,167,255,0.25), transparent 60%),
    radial-gradient(900px 700px at 50% 100%, rgba(255,255,255,0.06), transparent 60%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before{
  content: "";
  position: fixed;
  inset: -18%;
  z-index: -2;
  background:
    radial-gradient(520px 420px at 20% 20%, rgba(31,107,255,0.32), transparent 62%),
    radial-gradient(520px 420px at 85% 18%, rgba(42,167,255,0.24), transparent 62%),
    radial-gradient(650px 520px at 60% 85%, rgba(31,107,255,0.14), transparent 66%),
    radial-gradient(520px 520px at 12% 75%, rgba(255,255,255,0.06), transparent 62%),
    linear-gradient(180deg, rgba(6,11,26,1), rgba(6,11,26,1));
  filter: blur(6px) saturate(112%);
  transform: translate3d(0,0,0);
  animation: bgFloatLite 28s ease-in-out infinite alternate;
}

body::after{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.018) 0px,
      rgba(255,255,255,0.018) 1px,
      transparent 2px,
      transparent 5px
    );
  opacity: 0.12;
  mix-blend-mode: overlay;
  animation: grainMoveLite 10s steps(10) infinite;
}

@keyframes bgFloatLite{
  0%{ transform: translate3d(-8px, -6px, 0) scale(1.01); }
  50%{ transform: translate3d(6px, 8px, 0) scale(1.02); }
  100%{ transform: translate3d(8px, -4px, 0) scale(1.01); }
}

@keyframes grainMoveLite{
  0%{ transform: translate3d(0,0,0); }
  25%{ transform: translate3d(-3px, 2px, 0); }
  50%{ transform: translate3d(2px, -2px, 0); }
  75%{ transform: translate3d(-2px, -3px, 0); }
  100%{ transform: translate3d(0,0,0); }
}

@media (max-width: 980px){
  body::before{
    animation: none;
    filter: blur(2px) saturate(106%);
    inset: -10%;
  }

  body::after{
    animation: none;
    opacity: 0.08;
  }
}

@media (prefers-reduced-motion: reduce){
  body::before,
  body::after{
    animation: none;
  }
}

/* ======================================================
   LEGAL HERO
====================================================== */
.legal-hero{
  padding: 44px 16px 18px;
}

.legal-hero-inner{
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 28px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 22px;
  overflow: hidden;
  position: relative;
}

.legal-hero-inner::before{
  content: "";
  position: absolute;
  inset: -60px;
  background:
    radial-gradient(520px 360px at 70% 40%, rgba(31,107,255,0.28), transparent 60%),
    radial-gradient(460px 340px at 30% 70%, rgba(42,167,255,0.18), transparent 60%);
  filter: blur(18px);
  z-index: -1;
}

.legal-hero-badge{
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  font-weight: 900;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
}

.legal-hero-title{
  margin: 12px 0 10px;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.6px;
}

.legal-hero-subtitle{
  margin: 0;
  max-width: 860px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.76);
  font-weight: 650;
}

.legal-hero-meta{
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-meta-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 800;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
}

.legal-meta-pill i{
  color: rgba(255,255,255,0.92);
}

/* ======================================================
   LEGAL LAYOUT
====================================================== */
.legal-wrap{
  padding: 18px 16px 56px;
}

.legal-inner{
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: start;
}

.legal-toc{
  position: sticky;
  top: 14px;
  display: grid;
  gap: 12px;
}

.legal-content{
  display: grid;
  gap: 12px;
}

@media (max-width: 980px){
  .legal-inner{
    grid-template-columns: 1fr;
  }

  .legal-toc{
    position: static;
  }

  .legal-hero-title{
    font-size: 30px;
  }
}

/* ======================================================
   LEGAL CARDS
====================================================== */
.legal-card{
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}

.legal-card-title{
  font-weight: 950;
  font-size: 13px;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.90);
  padding: 16px 16px 0;
}

.legal-toc-links{
  display: grid;
  gap: 8px;
  padding: 12px 10px 14px;
}

.legal-toc-links a{
  text-decoration: none;
  color: rgba(255,255,255,0.78);
  font-weight: 850;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.legal-toc-links a:hover{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
}

.legal-section{
  padding: 18px;
}

.legal-section-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-section h2{
  margin: 0;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.2px;
}

.legal-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 900;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
}

.legal-p{
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.76);
  font-weight: 650;
}

.legal-list{
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.legal-list li{
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.76);
  font-weight: 650;
}

.legal-list strong{
  color: rgba(255,255,255,0.92);
}

/* ======================================================
   LEGAL NOTE
====================================================== */
.legal-note{
  padding: 14px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
}

.legal-note-ico{
  width: 38px;
  height: 38px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(42,167,255,1);
}

.legal-note-txt{
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.74);
  font-weight: 650;
}

/* ======================================================
   TABLE
====================================================== */
.legal-table-wrap{
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}

.legal-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.legal-table th,
.legal-table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  vertical-align: top;
  text-align: left;
}

.legal-table th{
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.84);
  background: rgba(255,255,255,0.06);
}

.legal-table td{
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.74);
}

.legal-table td strong{
  color: rgba(255,255,255,0.92);
}

@media (max-width: 980px){
  .legal-table-wrap{
    overflow-x: auto;
  }
}

/* ======================================================
   SPLIT BOXES
====================================================== */
.legal-split{
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.legal-mini{
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 14px;
}

.legal-mini-title{
  font-weight: 950;
  font-size: 13px;
  color: rgba(255,255,255,0.90);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.legal-mini-title i{
  color: rgba(42,167,255,1);
}

.legal-mini-list{
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.legal-mini-list li{
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.74);
  font-weight: 650;
}

@media (max-width: 980px){
  .legal-split{
    grid-template-columns: 1fr;
  }
}

/* ======================================================
   CONTACT
====================================================== */
.legal-contact{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-contact-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.legal-contact-pill:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 12px 28px rgba(31,107,255,0.16);
}

.legal-contact-pill:active{
  transform: translateY(1px);
}




/* ======================================================
   FOOTER
====================================================== */
.site-footer{
  padding: 54px 0 26px;
}

.site-footer-inner{
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.site-footer-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.9fr;
  gap: 18px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-footer-brand{
  display: grid;
  gap: 12px;
  align-content: start;
}

.site-footer-logo{
  height: 36px;
  width: auto;
  display: block;
}

.site-footer-tagline{
  margin: 0;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.74);
  font-weight: 650;
}

.site-footer-social{
  display: flex;
  gap: 10px;
  align-items: center;
}

.site-footer-social-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255,255,255,0.92);
  font-size: 22px;
  line-height: 1;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.site-footer-social-link:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.16);
  opacity: 0.92;
}

.site-footer-social-link:active{
  transform: translateY(1px);
}

.site-footer-col{
  display: grid;
  align-content: start;
  gap: 10px;
}

.site-footer-title{
  font-weight: 950;
  font-size: 13px;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.90);
}

.site-footer-link{
  width: fit-content;
  text-decoration: none;
  font-weight: 750;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  transition: color 160ms ease, transform 160ms ease;
}

.site-footer-link:hover{
  color: rgba(255,255,255,0.92);
}

.site-footer-link:active{
  transform: translateY(1px);
}

.site-footer-note{
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.62);
  font-weight: 650;
}

.site-footer-bottom{
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 6px 0;
}

.site-footer-copy{
  font-weight: 750;
  font-size: 13px;
  color: rgba(255,255,255,0.68);
}

.site-footer-legal{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer-legal-link{
  text-decoration: none;
  font-weight: 850;
  font-size: 13px;
  color: rgba(255,255,255,0.70);
  transition: color 160ms ease;
}

.site-footer-legal-link:hover{
  color: rgba(255,255,255,0.92);
}

.site-footer-legal-sep{
  opacity: 0.5;
}

/* ======================================================
   FOOTER (CELULAR)
====================================================== */
@media (max-width: 980px){
  .site-footer{
    padding: 40px 0 22px;
  }

  .site-footer-grid{
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 14px;
  }

  .site-footer-bottom{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* =========================================
   TABLA (MÓVIL) - FIX OVERFLOW
========================================= */
@media (max-width: 980px){

  .legal-content,
  .legal-card,
  .legal-section{
    min-width: 0;
    max-width: 100%;
  }

  .legal-table-wrap{
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
  }

  .legal-table{
    display: block;
    width: max-content;
    min-width: 860px;
  }

  .legal-table th,
  .legal-table td{
    white-space: nowrap;
  }
}
