*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #F8FAFC;
  --bg-warm: #F1F5F9;
  --bg-dark: #0F172A;
  --ink: #0F172A;
  --ink-muted: #475569;
  --ink-faint: #94A3B8;
  --gold: #B8860B;
  --gold-light: #FEF9C3;
  --gold-mid: #D4A835;
  --navy: #142B4D;
  --navy-light: #D6E2F0;
  --white: #FFFFFF;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --radius: 10px;
  --radius-lg: 20px;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(242,239,232,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--ink) !important; }
.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ── HERO ── */
.hero {
  min-height: 70vh;
  padding: 9rem 2rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: var(--gold-light);
  opacity: 0.6;
  filter: blur(70px);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: var(--navy-light);
  opacity: 0.35;
  filter: blur(60px);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}
.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 880px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
  position: relative;
  z-index: 1;
}
.hero h1 em {
  font-style: normal;
  font-weight: 800;
  color: var(--gold);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s 0.2s ease both;
  position: relative;
  z-index: 1;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.6s 0.3s ease both;
  position: relative;
  z-index: 1;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: 99px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover { background: var(--gold); color: var(--ink); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  padding: 0.875rem 2rem;
  border-radius: 99px;
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover { background: var(--white); border-color: var(--navy); }

/* ── SECTIONS ── */
section { padding: 6rem 2rem; }
.container { max-width: 1080px; margin: 0 auto; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-tag::before { content: ''; display: block; width: 18px; height: 1.5px; background: var(--gold); }
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.section-title em { font-style: normal; font-weight: 800; color: var(--gold); }
.section-sub { font-size: 1rem; color: var(--ink-muted); max-width: 500px; line-height: 1.75; }

/* ── ROLES ── */
.roles { background: var(--white); }
.roles-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 4rem;
}
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.role-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.22s, box-shadow 0.22s;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.role-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.role-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(28,26,20,0.09); }
.role-card:hover::after { transform: scaleX(1); }
.role-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: var(--gold-light);
}
.role-icon svg { width: 22px; height: 22px; color: var(--gold); }
.role-icon.navy-icon { background: var(--navy-light); }
.role-icon.navy-icon svg { color: var(--navy); }
.role-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink); }
.role-card p { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.65; }

/* ── FUNCIONALIDADES ── */
.funciones { background: var(--bg); }
.funciones .container { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.pasos { display: flex; flex-direction: column; gap: 0; margin-top: 2rem; }
.paso {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.paso:last-child { border-bottom: none; }
.paso:hover .paso-num { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.paso.activo .paso-num { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.paso.activo .paso-titulo { color: var(--gold); }
.paso-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  flex-shrink: 0;
  transition: all 0.2s;
}
.paso-info { flex: 1; }
.paso-titulo { font-weight: 500; font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--ink); transition: color 0.2s; }
.paso-desc { font-size: 0.845rem; color: var(--ink-muted); line-height: 1.6; }
.funciones-visual {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 22px 56px rgba(20,18,14,0.22);
}

/* ── ROLES USUARIOS ── */
.usuarios { background: var(--navy); }
.usuarios .section-title { color: var(--white); }
.usuarios .section-sub { color: rgba(255,255,255,0.5); }
.usuarios .section-tag { color: #F5D78A; }
.usuarios .section-tag::before { background: #F5D78A; }
.usuarios-header { margin-bottom: 3rem; }
.usuarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.usuario-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: background 0.2s;
}
.usuario-card:hover { background: rgba(255,255,255,0.09); }
.usuario-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.avatar-gold { background: rgba(184,134,11,0.25); color: #F5D78A; }
.avatar-blue { background: rgba(55,138,221,0.2); color: #85B7EB; }
.avatar-green { background: rgba(46,102,72,0.2); color: #5DC891; }
.usuario-rol { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 0.5rem; }
.usuario-nombre { font-size: 1.05rem; font-weight: 500; color: rgba(255,255,255,0.88); margin-bottom: 0.75rem; }
.usuario-desc { font-size: 0.875rem; color: rgba(255,255,255,0.52); line-height: 1.7; }
.usuario-permisos { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.permiso { display: flex; align-items: center; gap: 0.55rem; font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.permiso::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23F5D78A' stroke-width='1.5' d='M3 8l3.5 3.5L13 5'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(184,134,11,0.15);
}

/* ── CTA ── */
.cta-section {
  background: var(--bg);
  padding: 7rem 2rem;
}
.cta-inner {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}
.cta-section .section-title { font-size: clamp(2.2rem, 5.5vw, 4rem); }
.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* ── FOOTER ── */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.45);
  padding: 4rem 2rem 2rem;
}
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2rem;
}
.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}
.footer-logo span { color: var(--gold-mid); }
.footer-desc { font-size: 0.875rem; line-height: 1.65; max-width: 280px; }
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul a { font-size: 0.875rem; color: rgba(255,255,255,0.38); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; }

/* ── PRICING ── */
.pricing { background: var(--white); }
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 2.5rem 0 3rem;
}
.toggle-label { font-size: 0.875rem; color: var(--ink-muted); font-weight: 400; }
.toggle-label.activo { color: var(--ink); font-weight: 600; }
.toggle-pill {
  position: relative;
  width: 52px; height: 28px;
  background: var(--navy);
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.25s;
  border: none;
  flex-shrink: 0;
}
.toggle-pill::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.25s;
}
.toggle-pill.anual::after { transform: translateX(24px); }
.descuento-badge {
  background: var(--gold-light);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  border: 1px solid rgba(184,134,11,0.25);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.plan-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(28,26,20,0.09); }
.plan-card.destacado {
  background: var(--navy);
  border-color: transparent;
}
.plan-badge-top {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.875rem;
  border-radius: 99px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.plan-nombre { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 0.6rem; }
.plan-card.destacado .plan-nombre { color: rgba(255,255,255,0.5); }
.plan-limite { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 1rem; }
.plan-card.destacado .plan-limite { color: rgba(255,255,255,0.38); }
.plan-precio {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.plan-card.destacado .plan-precio { color: var(--white); }
.plan-precio sup { font-size: 1.1rem; vertical-align: top; margin-top: 0.5rem; display: inline-block; font-family: 'Inter', sans-serif; font-weight: 400; }
.plan-periodo { font-size: 0.78rem; color: var(--ink-muted); margin-bottom: 1.5rem; min-height: 1.2rem; }
.plan-card.destacado .plan-periodo { color: rgba(255,255,255,0.4); }
.plan-divider { height: 1px; background: var(--border); margin-bottom: 1.5rem; }
.plan-card.destacado .plan-divider { background: rgba(255,255,255,0.1); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 2rem; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
.plan-card.destacado .plan-features li { color: rgba(255,255,255,0.65); }
.plan-features li::before {
  content: '';
  width: 17px; height: 17px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  background-color: var(--gold-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23B8860B' stroke-width='1.5' d='M3 8l3.5 3.5L13 5'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.plan-card.destacado .plan-features li::before {
  background-color: rgba(184,134,11,0.25);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23F5D78A' stroke-width='1.5' d='M3 8l3.5 3.5L13 5'/%3E%3C/svg%3E");
}
.plan-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.875rem;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: 1.5px solid var(--border-strong);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.plan-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.plan-card.destacado .plan-btn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 600;
}
.plan-card.destacado .plan-btn:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .roles-header { grid-template-columns: 1fr; gap: 1rem; }
  .roles-grid { grid-template-columns: 1fr 1fr; }
  .funciones .container { grid-template-columns: 1fr; gap: 3rem; }
  .funciones-visual { display: none; }
  .usuarios-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .panel-body { grid-template-columns: 1fr; }
  .panel-sidebar { display: none; }
  .panel-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  .roles-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 62px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  z-index: 99;
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1rem; color: var(--ink-muted); text-decoration: none; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border-bottom: none; }
