:root {
    --primary: #0284c7;
    --primary-light: #38bdf8;
    --accent: #10b981;
    --text: #1e293b;
    --muted: #64748b;
    --bg: #f9fafb;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 6px 20px rgba(0,0,0,0.08);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Roboto, sans-serif; }
  body { background: var(--bg); color: var(--text); line-height: 1.6; }

  /* Header/Nav */
  .main-header { position: sticky; top: 0; background: #fff; border-bottom: 1px solid #e5e7eb; box-shadow: 0 2px 6px rgba(0,0,0,0.05); z-index: 1000; }
  .navbar { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
  .brand { display: flex; align-items: center; gap: 8px; }
  .brand-link { display: flex; align-items: center; text-decoration: none; }
  .brand-logo { height: 54px; width: auto; display: block; }
  .brand-name { font-weight: 700; color: #0369a1; font-size: 18px; }
  .nav-links { display: flex; gap: 24px; }
  .nav-links a { color: #0f172a; font-weight: 500; text-decoration: none; }
  .nav-links a:hover { color: #0284c7; }
  .nav-actions { display: flex; gap: 10px; align-items: center; }

  /* Buttons */
  .btn { padding: 8px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; display: inline-block; }
  .btn.primary { background: linear-gradient(90deg, #0284c7, #0ea5e9); color: white; }
  .btn.ghost { background: #f8fafc; border: 1px solid #e2e8f0; color: #0f172a; }
  .btn.danger { background: #ef4444; color: #fff; }
  .btn.full { width: 100%; display: block; text-align: center; margin-top: 8px; }
  .btn:hover { filter: brightness(1.05); }
  .btn.alt { background: var(--accent); color: #fff; }
  .btn.alt:hover { background: #059669; }

  /* Hamburger */
  .hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; }
  .hamburger span { width: 25px; height: 3px; background: #0f172a; border-radius: 2px; }
  .mobile-menu { display: none; flex-direction: column; gap: 10px; background: #fff; padding: 16px; border-top: 1px solid #e5e7eb; }
  .mobile-menu.open { display: flex; }

  /* Hero */
  .hero { display: grid; grid-template-columns: 1fr 1fr; max-width: 1200px; margin: 80px auto; gap: 50px; align-items: center; padding: 0 24px; }
  .hero img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
  .hero h1 { font-size: 40px; color: var(--primary); margin-bottom: 16px; line-height: 1.2; }
  .hero p { font-size: 18px; color: var(--muted); margin-bottom: 28px; }
  .hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }

  /* Sections */
  section { max-width: 1200px; margin: 100px auto; padding: 0 24px; }
  section h2 { text-align: center; font-size: 32px; color: var(--primary); margin-bottom: 40px; }

  /* Steps */
  .steps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .step { background: var(--white); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
  .step img { width: 70px; margin-bottom: 12px; }
  .step h3 { color: var(--primary); margin-bottom: 8px; }

  /* Plans */
  .plans { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .plan { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 24px; text-align: center; transition: transform .3s ease; }
  .plan:hover { transform: translateY(-6px); }
  .plan.featured { border: 3px solid var(--accent); transform: scale(1.03); }
  .plan h3 { font-size: 22px; color: var(--primary); font-weight: 700; }
  .price { font-size: 38px; font-weight: 800; color: var(--primary); margin: 10px 0 16px; }
  .price span { font-size: 16px; color: var(--muted); font-weight: 400; }
  .plan ul { list-style: none; text-align: left; margin: 20px 0; padding-left: 16px; }
  .plan ul li { margin-bottom: 10px; position: relative; padding-left: 20px; }
  .plan ul li::before { content: "✔"; color: var(--accent); position: absolute; left: 0; top: 0; }
  .plan .btn { width: 85%; margin-top: 20px; }

  /* Testimonials */
  .testimonials { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .testimonial { background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); font-style: italic; }
  .testimonial strong { display: block; margin-top: 12px; font-style: normal; color: var(--primary); }

  /* Footer */
  footer {
    background: var(--primary);
     color: white;
      padding: 60px 24px;
     /* margin-top: 120px;  */
}
  .footer-content { max-width: 1200px; margin: auto; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .footer-column h4 { margin-bottom: 16px; font-size: 18px; font-weight: 700; }
  .footer-column a { display: block; color: #e0f2fe; margin-bottom: 8px; font-size: 15px; text-decoration: none; }
  .footer-column a:hover { color: white; }
  .footer-bottom { text-align: center; margin-top: 40px; font-size: 14px; color: #bae6fd; }

  /* Responsive */
  @media (max-width: 800px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero img { order: -1; }
    .hero .cta { justify-content: center; }
  }
  @media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .hamburger { display: flex; }
    .brand-logo { height: 38px; }
  }


















/* --- User menu pro --- */
.userbox { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 10px;
  background: #ffffff; border: 1px solid #e5e7eb; padding: 6px 10px;
  border-radius: 10px; cursor: pointer;
}
.user-btn:focus-visible { outline: 3px solid #bae6fd; outline-offset: 2px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9); color: #fff;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.user-name { font-size: 13px; font-weight: 700; color: #0f172a; }
.user-role { font-size: 11px; color: #64748b; }
.chev { opacity: .7; }

.user-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(2,8,23,0.12); padding: 8px; display: none; z-index: 30;
}
.user-menu.open { display: block; animation: pop .12s ease-out; }
.user-menu a, .user-menu button {
  width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px;
  font-size: 14px; color: #0f172a; text-decoration: none; border: none; background: transparent;
}
.user-menu a:hover { background: #f1f5f9; }
.user-menu .menu-danger { color: #b91c1c; }
.user-menu .menu-danger:hover { background: #fee2e2; }
.menu-sep { height: 1px; background: #e5e7eb; margin: 6px 0; }

@keyframes pop { from { transform: translateY(-4px); opacity: .5; } to { transform: translateY(0); opacity: 1; } }

/* Mejoras de botones */
.btn:focus-visible { outline: 3px solid #bae6fd; outline-offset: 2px; }

/* Header más consistente en scroll */
.main-header { backdrop-filter: saturate(1.2) blur(2px); }
