/* ======================================================
   REGÍSTRATE MX — BASE CSS (FINAL)
====================================================== */

/* =======================
   TOKENS
======================= */
:root{
  --bg:#ffffff;
  --bg-alt:#f3f4f6;
  --text:#0f172a;
  --muted:#475569;
  --border:#e5e7eb;
  --primary:#1d4ed8;
}

html[data-theme="dark"]{
  --bg:#0b1220;
  --bg-alt:#0f172a;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --border:#1e293b;
  --primary:#38bdf8;
}

/* =======================
   BASE
======================= */
*{ box-sizing:border-box; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,sans-serif;
}

/* ======================================================
   HEADER INSTITUCIONAL PRO
====================================================== */

.rmx-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:var(--bg);
  border-bottom:1px solid var(--border);
}

.rmx-header-inner{
  max-width:1280px;
  margin:auto;
  padding:16px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

/* LOGO */
.rmx-logo{
  font-weight:900;
  font-size:20px;
  color:var(--text);
  text-decoration:none;
}

/* NAV */
.rmx-nav ul{
  list-style:none;
  display:flex;
  gap:24px;
  margin:0;
  padding:0;
}

.rmx-nav a{
  text-decoration:none;
  font-weight:600;
  color:var(--text);
}

/* ACTIONS */
.rmx-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

/* ======================================================
   BUTTONS
====================================================== */

.rmx-btn{
  padding:10px 18px;
  border-radius:999px;
  font-weight:700;
  text-decoration:none;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  transition:all .2s ease;
}

.rmx-btn.primary{
  background:var(--primary);
  color:#fff;
  border-color:transparent;
}

.rmx-btn.outline:hover{
  background:var(--bg-alt);
}

.rmx-btn.ghost{
  border-color:transparent;
}

/* ======================================================
   THEME SWITCH — SOULFULSYNC STYLE (FINAL)
====================================================== */

.rmx-theme-switch{
  position:relative;
  width:52px;
  height:28px;
  display:inline-flex;
  align-items:center;
}

.rmx-theme-switch input{
  opacity:0;
  width:0;
  height:0;
}

.rmx-switch-slider{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,#e5e7eb,#d1d5db);
  border-radius:999px;
  cursor:pointer;
  transition:all .3s ease;
}

.rmx-switch-slider::before{
  content:"";
  position:absolute;
  width:22px;
  height:22px;
  left:3px;
  top:3px;
  background:#ffffff;
  border-radius:50%;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
  transition:all .3s ease;
}

/* DARK MODE */
html[data-theme="dark"] .rmx-switch-slider{
  background:linear-gradient(135deg,#7c3aed,#9333ea);
  box-shadow:0 0 0 3px rgba(124,58,237,.25);
}

html[data-theme="dark"] .rmx-switch-slider::before{
  transform:translateX(24px);
  background:#0f172a;
  box-shadow:
    0 0 0 2px rgba(124,58,237,.35),
    0 6px 18px rgba(124,58,237,.45);
}

/* ======================================================
   HAMBURGER
====================================================== */

.rmx-hamburger{
  display:none;
  background:none;
  border:none;
  flex-direction:column;
  gap:4px;
  cursor:pointer;
}

.rmx-hamburger span{
  width:22px;
  height:2px;
  background:var(--text);
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media(max-width:1024px){
  .rmx-desktop-only{ display:none; }
  .rmx-hamburger{ display:flex; }
}

/* ======================================================
   FOOTER INSTITUCIONAL — REGÍSTRATE MX
====================================================== */

.rmx-footer{
  background:var(--bg-alt);
  border-top:1px solid var(--border);
}

.rmx-footer-inner{
  max-width:1280px;
  margin:auto;
  padding:64px 24px 40px;
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:40px;
}

/* BRAND */
.rmx-footer-logo{
  font-size:22px;
  font-weight:900;
  margin:0 0 12px;
}

.rmx-footer-desc{
  color:var(--muted);
  line-height:1.6;
  max-width:360px;
}

/* COLUMNS */
.rmx-footer-col h4{
  margin:0 0 14px;
  font-weight:800;
}

.rmx-footer-col ul{
  list-style:none;
  padding:0;
  margin:0;
}

.rmx-footer-col li{
  margin-bottom:10px;
}

.rmx-footer-col a{
  text-decoration:none;
  color:var(--text);
  font-weight:600;
  opacity:.85;
}

.rmx-footer-col a:hover{
  opacity:1;
  text-decoration:underline;
}

/* BOTTOM */
.rmx-footer-bottom{
  border-top:1px solid var(--border);
  padding:18px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  font-size:14px;
  color:var(--muted);
  max-width:1280px;
  margin:auto;
}

.rmx-footer-note{
  opacity:.75;
}

/* DARK MODE FINE TUNING */
html[data-theme="dark"] .rmx-footer{
  background:#0b1220;
}

/* RESPONSIVE */
@media(max-width:1024px){
  .rmx-footer-inner{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:640px){
  .rmx-footer-inner{
    grid-template-columns:1fr;
  }

  .rmx-footer-bottom{
    flex-direction:column;
    text-align:center;
  }
}

/* ======================================================
   MOBILE MENU — SLIDE PANEL (SOULFULSYNC STYLE)
====================================================== */

.rmx-mobile-menu{
  position:fixed;
  inset:0;
  z-index:2000;
  pointer-events:none;
}

.rmx-mobile-menu.active{
  pointer-events:auto;
}

/* OVERLAY */
.rmx-mobile-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
  opacity:0;
  transition:opacity .3s ease;
}

.rmx-mobile-menu.active .rmx-mobile-overlay{
  opacity:1;
}

/* PANEL */
.rmx-mobile-panel{
  position:absolute;
  top:0;
  right:-100%;
  width:86%;
  max-width:360px;
  height:100%;
  background:var(--bg);
  border-left:1px solid var(--border);
  box-shadow:-20px 0 40px rgba(0,0,0,.25);
  display:flex;
  flex-direction:column;
  transition:right .35s ease;
}

.rmx-mobile-menu.active .rmx-mobile-panel{
  right:0;
}

/* HEADER */
.rmx-mobile-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px;
  border-bottom:1px solid var(--border);
}

.rmx-mobile-logo{
  font-weight:900;
  font-size:18px;
}

.rmx-mobile-close{
  background:none;
  border:none;
  font-size:20px;
  cursor:pointer;
  color:var(--text);
}

/* NAV */
.rmx-mobile-nav{
  padding:24px 20px;
}

.rmx-mobile-nav ul{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.rmx-mobile-nav a{
  font-size:16px;
  font-weight:700;
  color:var(--text);
  text-decoration:none;
}

/* ACTIONS */
.rmx-mobile-actions{
  margin-top:auto;
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:14px;
  border-top:1px solid var(--border);
}

/* THEME SWITCH INSIDE MOBILE */
.rmx-mobile-theme{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:10px;
  font-weight:700;
}

/* DARK MODE TUNING */
html[data-theme="dark"] .rmx-mobile-panel{
  background:#0b1220;
}
