/* ============================================================
   SysFacil - SYSFacil   |   Global Stylesheet
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --green-main:   #00A651;
  --green-dark:   #007A3D;
  --green-light:  #6BCB77;
  --bg-main:      #F5F7F6;
  --bg-card:      #FFFFFF;
  --text-main:    #333333;
  --text-sec:     #666666;
  --border:       #E5E5E5;
  --btn-primary:  #00A651;
  --btn-hover:    #008F45;
  --success:      #28A745;
  --warning:      #F5A623;
  --danger:       #D32F2F;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.06);
  --shadow-md:    0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.14);
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --transition:   .25s ease;
}

/* ── Reset / Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--text-main); line-height: 1.25; }
a { color: var(--green-main); transition: color var(--transition); }
a:hover { color: var(--green-dark); }
img { max-width: 100%; height: auto; }

/* ── Bootstrap overrides ────────────────────────────────────── */
.btn-primary {
  background: var(--btn-primary);
  border-color: var(--btn-primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: .55rem 1.4rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,166,81,.35);
}
.btn-outline-primary {
  color: var(--green-main);
  border-color: var(--green-main);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.btn-outline-primary:hover {
  background: var(--green-main);
  border-color: var(--green-main);
}
.btn-success  { background: var(--success); border-color: var(--success); }
.btn-warning  { background: var(--warning); border-color: var(--warning); }
.btn-danger   { background: var(--danger);  border-color: var(--danger); }

.form-control, .form-select {
  border-color: var(--border);
  border-radius: var(--radius-sm);
  padding: .6rem .9rem;
  font-size: .925rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(0,166,81,.18);
}
.form-label { font-weight: 600; font-size: .875rem; color: var(--text-main); margin-bottom: .35rem; }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }

.badge-green  { background: rgba(0,166,81,.12); color: var(--green-dark); }
.badge-warn   { background: rgba(245,166,35,.12); color: #b07700; }
.badge-danger { background: rgba(211,47,47,.12);  color: var(--danger); }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar-chillaca {
  background: #fff;
  border-bottom: 2px solid var(--border);
  padding: .8rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: var(--shadow-sm);
}
.navbar-chillaca .navbar-brand {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--green-main) !important;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.navbar-chillaca .navbar-brand span { color: var(--text-main); font-weight: 700; }
.navbar-chillaca .nav-link {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-sec) !important;
  padding: .4rem .85rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.navbar-chillaca .nav-link:hover,
.navbar-chillaca .nav-link.active { color: var(--green-main) !important; background: rgba(0,166,81,.07); }
.btn-login {
  background: transparent;
  border: 2px solid var(--green-main);
  color: var(--green-main);
  font-weight: 700;
  border-radius: 8px;
  padding: .4rem 1.1rem;
  font-size: .9rem;
  transition: all var(--transition);
}
.btn-login:hover { background: var(--green-main); color: #fff; }

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #111;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: .35;
  transition: opacity 1s;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,122,61,.85) 0%, rgba(0,0,0,.7) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; }
.hero-badge {
  display: inline-block;
  background: rgba(107,203,119,.2);
  border: 1px solid rgba(107,203,119,.5);
  color: #6BCB77;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero h1 .highlight { color: var(--green-light); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--green-main);
  color: #fff;
  font-weight: 700;
  padding: .85rem 2rem;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 1rem;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-hero-primary:hover { background: var(--btn-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,166,81,.45); }
.btn-hero-outline {
  background: transparent;
  color: #fff;
  font-weight: 700;
  padding: .85rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,.5);
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-hero-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat-num { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat-txt { font-size: .78rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .06em; }

.hero-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}
.hero-card .invoice-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--green-main), var(--green-dark));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.transform-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--green-main);
  margin: .5rem 0;
  animation: bounce-right 1.5s infinite;
}
@keyframes bounce-right {
  0%,100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}

/* ── Section titles ─────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green-main);
  margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: .7rem; }
.section-sub { color: var(--text-sec); font-size: 1.05rem; max-width: 580px; }

/* ── Plans ───────────────────────────────────────────────────── */
.plans-section { background: var(--bg-main); padding: 5rem 0; }

.plan-toggle-wrap { display: flex; align-items: center; gap: 1rem; }
.plan-toggle-wrap label { font-weight: 600; cursor: pointer; font-size: .9rem; }
.form-check-input:checked { background-color: var(--green-main); border-color: var(--green-main); }
.plan-badge-save {
  background: var(--warning);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.plan-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.plan-card:hover { border-color: var(--green-main); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan-card.popular {
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(0,166,81,.2), var(--shadow-lg);
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--green-main), var(--green-dark));
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem 1.1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(0,166,81,.35);
}
.plan-name  { font-size: 1.2rem; font-weight: 700; color: var(--text-main); margin-bottom: .25rem; }
.plan-desc  { font-size: .82rem; color: var(--text-sec); margin-bottom: 1.2rem; }
.plan-price { display: flex; align-items: flex-end; gap: .35rem; margin-bottom: .25rem; }
.plan-price-amount { font-size: 2.4rem; font-weight: 800; color: var(--green-dark); line-height: 1; }
.plan-price-period { font-size: .85rem; color: var(--text-sec); padding-bottom: .2rem; }
.plan-price-alt { font-size: .8rem; color: var(--text-sec); margin-bottom: 1.25rem; text-decoration: line-through; }
.plan-features { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .87rem;
  color: var(--text-sec);
  padding: .35rem 0;
  border-bottom: 1px solid var(--border);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li .check { color: var(--green-main); font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }
.plan-btn { margin-top: auto; }

/* ── How it works ───────────────────────────────────────────── */
.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.step-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, rgba(0,166,81,.12), rgba(0,122,61,.06));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.2rem;
  border: 2px solid rgba(0,166,81,.15);
}
.step-num {
  position: absolute;
  top: -10px; right: -10px;
  background: var(--green-main);
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Stats bar ───────────────────────────────────────────────── */
.stats-section { background: linear-gradient(135deg, var(--green-dark), var(--green-main)); padding: 4rem 0; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.8rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-label  { font-size: .85rem; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .06em; margin-top: .4rem; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item:hover { border-color: var(--green-main); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  font-weight: 600;
  font-size: .92rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question .icon { font-size: 1.1rem; color: var(--green-main); flex-shrink: 0; transition: transform var(--transition); }
.faq-answer { padding: 0 1.4rem 1.1rem; font-size: .88rem; color: var(--text-sec); display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .icon { transform: rotate(45deg); }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-card { background: #fff; border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-md); border: 1px solid var(--border); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: #1a1a2e; color: #aaa; padding: 3.5rem 0 1.5rem; }
.footer-brand { font-size: 1.5rem; font-weight: 800; color: var(--green-light); }
.footer-tagline { font-size: .82rem; color: #888; margin-top: .25rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #aaa; text-decoration: none; font-size: .88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--green-light); }
.footer-heading { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #ccc; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid #333; margin-top: 2.5rem; padding-top: 1.25rem; font-size: .8rem; }

/* ── WhatsApp Float ─────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: all var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 8px 30px rgba(37,211,102,.6); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
.whatsapp-pulse {
  position: absolute;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  opacity: .4;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: .4; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

/* ── Auth pages ─────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 100%);
  padding: 2rem 0;
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.auth-logo { text-align: center; margin-bottom: 1.75rem; }
.auth-logo .brand { font-size: 1.8rem; font-weight: 800; color: var(--green-main); }
.auth-logo p { font-size: .82rem; color: var(--text-sec); margin-top: .2rem; }
.auth-card h2 { font-size: 1.4rem; text-align: center; margin-bottom: 1.5rem; }

/* ── Panel Layout ───────────────────────────────────────────── */
.panel-wrapper { display: flex; min-height: 100vh; background: var(--bg-main); }

.sidebar {
  width: 260px;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: transform var(--transition);
  box-shadow: var(--shadow-sm);
}
.sidebar-brand {
  padding: 1.4rem 1.4rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .65rem;
}
.sidebar-brand .brand-text { font-size: 1.2rem; font-weight: 800; color: var(--green-main); }
.sidebar-brand .brand-sub  { font-size: .72rem; color: var(--text-sec); }
.sidebar-nav { padding: 1rem 0; flex: 1; overflow-y: auto; }
.sidebar-section-title { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #bbb; padding: .6rem 1.4rem .3rem; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.4rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-sec);
  text-decoration: none;
  border-radius: 0;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-link i { font-size: 1.1rem; width: 20px; flex-shrink: 0; }
.sidebar-link:hover  { background: rgba(0,166,81,.07); color: var(--green-main); border-left-color: var(--green-main); }
.sidebar-link.active { background: rgba(0,166,81,.10); color: var(--green-main); font-weight: 700; border-left-color: var(--green-main); }
.sidebar-link .badge { margin-left: auto; }
.sidebar-footer { padding: 1rem 1.4rem; border-top: 1px solid var(--border); }
.sidebar-user { display: flex; align-items: center; gap: .75rem; }
.sidebar-user img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.sidebar-user-name { font-size: .85rem; font-weight: 700; color: var(--text-main); }
.sidebar-user-role { font-size: .72rem; color: var(--text-sec); }

.panel-main { margin-left: 260px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.panel-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: .9rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.panel-topbar .page-title { font-size: 1.1rem; font-weight: 700; color: var(--text-main); margin: 0; }
.panel-content { padding: 2rem 1.8rem; flex: 1; }

.sidebar-toggler {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-main);
  cursor: pointer;
  padding: .2rem .5rem;
}

/* ── Stat Cards (panel) ──────────────────────────────────────── */
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-card-icon.green  { background: rgba(0,166,81,.12); color: var(--green-main); }
.stat-card-icon.blue   { background: rgba(66,133,244,.12); color: #4285f4; }
.stat-card-icon.orange { background: rgba(245,166,35,.12); color: var(--warning); }
.stat-card-icon.red    { background: rgba(211,47,47,.12);  color: var(--danger); }
.stat-card-body { flex: 1; }
.stat-card-num { font-size: 1.75rem; font-weight: 800; color: var(--text-main); line-height: 1; }
.stat-card-label { font-size: .78rem; color: var(--text-sec); margin-top: .2rem; }

/* ── Plan status card ────────────────────────────────────────── */
.plan-status-card {
  background: linear-gradient(135deg, var(--green-main), var(--green-dark));
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.plan-status-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.plan-status-card .days-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.18);
  border-radius: 50px;
  padding: .3rem .85rem;
  font-size: .82rem;
  font-weight: 700;
  margin-top: .75rem;
}
.plan-status-card .days-badge.expiring { background: rgba(245,166,35,.35); color: #fff9e6; }
.plan-status-card .days-badge.expired  { background: rgba(211,47,47,.35); color: #ffe6e6; }

/* ── Modals (modern) ─────────────────────────────────────────── */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-header {
  background: linear-gradient(135deg, var(--green-main), var(--green-dark));
  color: #fff;
  border-bottom: none;
  padding: 1.3rem 1.6rem;
}
.modal-header .modal-title { font-weight: 700; font-size: 1.05rem; }
.modal-header .btn-close { filter: brightness(0) invert(1); opacity: .8; }
.modal-body { padding: 1.8rem; }
.modal-footer { border-top: 1px solid var(--border); padding: 1rem 1.8rem; gap: .75rem; }

/* ── Payment options ─────────────────────────────────────────── */
.pay-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .75rem;
}
.pay-option:hover { border-color: var(--green-main); background: rgba(0,166,81,.04); }
.pay-option.selected { border-color: var(--green-main); background: rgba(0,166,81,.08); }
.pay-option input[type="radio"] { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--green-main); }
.pay-option-icon { font-size: 1.6rem; width: 42px; text-align: center; flex-shrink: 0; }
.pay-option-text strong { display: block; font-size: .9rem; }
.pay-option-text span { font-size: .8rem; color: var(--text-sec); }
.pay-details { display: none; background: #f9f9f9; border-radius: var(--radius-sm); padding: 1.25rem; margin-top: .5rem; border: 1px solid var(--border); }
.pay-details.show { display: block; }

/* ── Order received ──────────────────────────────────────────── */
.order-success-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 540px;
  margin: 0 auto;
}
.order-success-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--green-main), var(--green-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  margin: 0 auto 1.5rem;
  animation: pop .4s ease;
}
@keyframes pop {
  0%   { transform: scale(.5); opacity: 0; }
  80%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.order-code { font-size: 1.3rem; font-weight: 800; color: var(--green-dark); font-family: monospace; }

/* ── Tables ─────────────────────────────────────────────────── */
.table-custom { width: 100%; border-collapse: separate; border-spacing: 0; }
.table-custom thead th {
  background: var(--bg-main);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-sec);
  padding: .8rem 1rem;
  border-bottom: 2px solid var(--border);
}
.table-custom tbody tr { transition: background var(--transition); }
.table-custom tbody tr:hover { background: rgba(0,166,81,.04); }
.table-custom tbody td { padding: .85rem 1rem; font-size: .88rem; border-bottom: 1px solid var(--border); vertical-align: middle; }

/* ── Status badges ────────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: 50px;
  text-transform: capitalize;
}
.status-pendiente { background: rgba(245,166,35,.15); color: #b07700; }
.status-aprobado  { background: rgba(40,167,69,.15);  color: #1a6e30; }
.status-rechazado { background: rgba(211,47,47,.15);  color: var(--danger); }
.status-activo    { background: rgba(40,167,69,.15);  color: #1a6e30; }
.status-inactivo  { background: rgba(102,102,102,.12); color: #555; }

/* ── Upload area ─────────────────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.upload-area:hover, .upload-area.drag-over { border-color: var(--green-main); background: rgba(0,166,81,.04); }
.upload-area i { font-size: 2.5rem; color: var(--green-main); margin-bottom: .75rem; }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert { border-radius: var(--radius-sm); border: none; font-size: .88rem; }
.alert-success { background: rgba(40,167,69,.1); color: #1a6e30; }
.alert-danger  { background: rgba(211,47,47,.1); color: var(--danger); }
.alert-warning { background: rgba(245,166,35,.1); color: #8a5c00; }
.alert-info    { background: rgba(66,133,244,.1); color: #1a4e8a; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .panel-main { margin-left: 0; }
  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggler { display: block; }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 199;
    display: none;
  }
  .sidebar-overlay.show { display: block; }
  .hero { min-height: auto; padding: 5rem 0 4rem; }
  .hero-card { margin-top: 2.5rem; }
}

@media (max-width: 767.98px) {
  .panel-content { padding: 1.25rem 1rem; }
  .panel-topbar  { padding: .75rem 1rem; }
  .auth-card     { border-radius: var(--radius); padding: 2rem 1.25rem; }
  .section-title { font-size: 1.6rem; }
  .hero h1       { font-size: 1.9rem; }
  .hero-stats    { gap: 1.5rem; }
  .hero-stat-num { font-size: 1.5rem; }
  .contact-card  { padding: 1.75rem 1.25rem; }
  .plan-card     { padding: 1.75rem 1.35rem; }
}

/* ── Print ───────────────────────────────────────────────────── */
@media print {
  .sidebar, .panel-topbar, .whatsapp-float, .btn { display: none !important; }
  .panel-main { margin: 0 !important; }
}
