
/* ==============================================
   Sulcos SaaS — Design System
   Fuente: Sora (headings) + DM Sans (body)
   ============================================== */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --verde-oscuro:  #1B4332;
  --verde-medio:   #2D6A4F;
  --verde-claro:   #40916C;
  --verde-light:   #52B788;
  --verde-pastel:  #D8F3DC;
  --dorado:        #C9A84C;
  --dorado-light:  #F0D9A0;
  --bg:            #F0F5F1;
  --bg-alt:        #E8F0EB;
  --white:         #FFFFFF;
  --sidebar-w:     260px;
  --texto:         #1A2B22;
  --texto-s:       #4A6358;
  --muted:         #7A9488;
  --borde:         #D4E4DA;
  --danger:        #D62828;
  --warning:       #E07C24;
  --info:          #1D7EAA;
  --shadow-s:      0 1px 4px rgba(27,67,50,.08);
  --shadow:        0 4px 16px rgba(27,67,50,.10);
  --shadow-l:      0 8px 32px rgba(27,67,50,.14);
  --radius:        12px;
  --radius-s:      8px;
  --transition:    .2s ease;
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }

html { font-size:16px; scroll-behavior:smooth; }

body {
  font-family:'DM Sans',sans-serif;
  color:var(--texto);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4,h5 { font-family:'Sora',sans-serif; line-height:1.2; }
a { color:var(--verde-medio); text-decoration:none; }
a:hover { color:var(--verde-claro); }
img { max-width:100%; display:block; }
input,select,textarea,button { font-family:inherit; }

/* ============================================
   LANDING PAGE
   ============================================ */
.land-nav {
  position:fixed; top:0; left:0; right:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 5%; height:68px;
  background:rgba(27,67,50,.95);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.land-logo { display:flex; align-items:center; gap:10px; }
.land-logo-icon {
  width:36px; height:36px; background:var(--verde-light);
  border-radius:9px; display:flex; align-items:center; justify-content:center;
  font-size:20px;
}
.land-logo-text { font-family:'Sora',sans-serif; font-size:1.3rem; font-weight:700; color:#fff; }
.land-logo-text span { color:var(--verde-light); }
.land-nav-links { display:flex; align-items:center; gap:28px; }
.land-nav-links a { color:rgba(255,255,255,.8); font-size:.92rem; font-weight:500; transition:var(--transition); }
.land-nav-links a:hover { color:#fff; }
.land-nav-cta { display:flex; gap:10px; }

.land-hero {
  min-height:100vh;
  background:linear-gradient(135deg, #0d2b1e 0%, #1B4332 40%, #2D6A4F 70%, #145a38 100%);
  display:flex; align-items:center; justify-content:center;
  padding:100px 5% 60px;
  position:relative; overflow:hidden;
}
.land-hero::before {
  content:'';
  position:absolute; inset:0;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2340916C' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.land-hero-inner { max-width:720px; text-align:center; position:relative; z-index:1; }
.land-hero-badge {
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(82,183,136,.2); border:1px solid rgba(82,183,136,.4);
  color:var(--verde-light); padding:5px 14px; border-radius:30px;
  font-size:.82rem; font-weight:600; margin-bottom:24px; letter-spacing:.5px;
}
.land-hero h1 { font-size:clamp(2.4rem,5vw,3.8rem); font-weight:800; color:#fff; margin-bottom:20px; }
.land-hero h1 em { color:var(--verde-light); font-style:normal; }
.land-hero p { font-size:1.15rem; color:rgba(255,255,255,.75); max-width:580px; margin:0 auto 36px; }
.land-hero-btns { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

.land-stats {
  display:flex; gap:40px; justify-content:center; flex-wrap:wrap;
  padding:32px 5%; background:rgba(27,67,50,.6); backdrop-filter:blur(8px);
  border-top:1px solid rgba(82,183,136,.2); position:relative; z-index:1;
}
.land-stat { text-align:center; }
.land-stat-num { font-family:'Sora',sans-serif; font-size:2rem; font-weight:800; color:#fff; }
.land-stat-label { font-size:.82rem; color:rgba(255,255,255,.6); margin-top:2px; }

.land-section { padding:80px 5%; }
.land-section-title { text-align:center; margin-bottom:60px; }
.land-section-title h2 { font-size:2.2rem; font-weight:800; color:var(--verde-oscuro); margin-bottom:12px; }
.land-section-title p { color:var(--texto-s); font-size:1.05rem; max-width:560px; margin:0 auto; }

.land-features-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:24px; max-width:1100px; margin:0 auto; }
.land-feature-card {
  background:var(--white); border-radius:var(--radius); padding:32px 28px;
  border:1px solid var(--borde); transition:var(--transition);
  box-shadow:var(--shadow-s);
}
.land-feature-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-l); border-color:var(--verde-light); }
.land-feature-icon {
  width:52px; height:52px; border-radius:14px;
  background:linear-gradient(135deg,var(--verde-pastel),var(--verde-light));
  display:flex; align-items:center; justify-content:center;
  font-size:24px; margin-bottom:20px;
}
.land-feature-card h3 { font-size:1.1rem; font-weight:700; color:var(--verde-oscuro); margin-bottom:8px; }
.land-feature-card p { color:var(--texto-s); font-size:.93rem; line-height:1.65; }

/* PRICING */
.land-pricing-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:24px; max-width:960px; margin:0 auto; }
.land-plan-card {
  background:var(--white); border-radius:16px; padding:36px 28px;
  border:2px solid var(--borde); position:relative; transition:var(--transition);
  display:flex; flex-direction:column;
}
.land-plan-card.featured {
  border-color:var(--verde-medio);
  box-shadow:0 8px 40px rgba(45,106,79,.18);
  transform:scale(1.03);
}
.land-plan-badge {
  position:absolute; top:-13px; left:50%; transform:translateX(-50%);
  background:var(--verde-medio); color:#fff;
  padding:4px 18px; border-radius:20px; font-size:.78rem; font-weight:700;
  letter-spacing:.5px; white-space:nowrap;
}
.land-plan-name { font-size:1.1rem; font-weight:700; color:var(--texto-s); margin-bottom:8px; }
.land-plan-price { display:flex; align-items:baseline; gap:4px; margin-bottom:8px; }
.land-plan-price .amount { font-family:'Sora',sans-serif; font-size:2.8rem; font-weight:800; color:var(--verde-oscuro); }
.land-plan-price .period { color:var(--muted); font-size:.9rem; }
.land-plan-desc { color:var(--texto-s); font-size:.9rem; margin-bottom:24px; min-height:44px; }
.land-plan-features { list-style:none; margin-bottom:32px; flex:1; }
.land-plan-features li { display:flex; align-items:center; gap:10px; padding:7px 0; border-bottom:1px solid var(--bg); font-size:.92rem; color:var(--texto); }
.land-plan-features li::before { content:'✓'; color:var(--verde-light); font-weight:700; flex-shrink:0; }
.land-plan-features li.disabled { color:var(--muted); }
.land-plan-features li.disabled::before { content:'—'; color:var(--borde); }

.land-how { background:var(--verde-oscuro); }
.land-how .land-section-title h2 { color:#fff; }
.land-how .land-section-title p { color:rgba(255,255,255,.7); }
.land-steps { display:flex; gap:0; max-width:860px; margin:0 auto; }
.land-step { flex:1; text-align:center; padding:0 24px; position:relative; }
.land-step:not(:last-child)::after {
  content:''; position:absolute; top:28px; right:0;
  width:100%; height:2px;
  background:linear-gradient(90deg,var(--verde-claro),transparent);
  transform:translateX(50%); opacity:.4;
}
.land-step-num {
  width:56px; height:56px; background:var(--verde-medio); border-radius:50%;
  display:flex; align-items:center; justify-content:center; margin:0 auto 20px;
  font-family:'Sora',sans-serif; font-size:1.4rem; font-weight:800; color:#fff;
  border:3px solid var(--verde-claro);
}
.land-step h3 { color:#fff; font-size:1.05rem; margin-bottom:8px; }
.land-step p { color:rgba(255,255,255,.65); font-size:.9rem; }

.land-cta-section {
  background:linear-gradient(135deg,var(--verde-claro),var(--verde-medio));
  padding:80px 5%; text-align:center;
}
.land-cta-section h2 { font-size:2.2rem; font-weight:800; color:#fff; margin-bottom:14px; }
.land-cta-section p { color:rgba(255,255,255,.85); font-size:1.1rem; margin-bottom:32px; }

.land-footer {
  background:var(--verde-oscuro); color:rgba(255,255,255,.6);
  padding:40px 5%; text-align:center; font-size:.88rem;
}
.land-footer strong { color:#fff; }

/* ============================================
   BOTONES
   ============================================ */
.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 22px; border-radius:var(--radius-s);
  font-weight:600; font-size:.9rem; cursor:pointer;
  border:2px solid transparent; transition:var(--transition);
  text-decoration:none; white-space:nowrap;
}
.btn-sm { padding:6px 14px; font-size:.82rem; }
.btn-lg { padding:14px 32px; font-size:1rem; }
.btn-block { display:flex; width:100%; justify-content:center; }

.btn-primary { background:var(--verde-medio); color:#fff; border-color:var(--verde-medio); }
.btn-primary:hover { background:var(--verde-claro); border-color:var(--verde-claro); color:#fff; }
.btn-dark { background:var(--verde-oscuro); color:#fff; border-color:var(--verde-oscuro); }
.btn-dark:hover { background:#0d2b1e; color:#fff; }
.btn-white { background:#fff; color:var(--verde-oscuro); border-color:#fff; }
.btn-white:hover { background:var(--verde-pastel); color:var(--verde-oscuro); }
.btn-outline { background:transparent; color:var(--verde-medio); border-color:var(--verde-medio); }
.btn-outline:hover { background:var(--verde-medio); color:#fff; }
.btn-outline-white { background:transparent; color:#fff; border-color:rgba(255,255,255,.5); }
.btn-outline-white:hover { background:rgba(255,255,255,.1); border-color:#fff; }
.btn-danger { background:var(--danger); color:#fff; border-color:var(--danger); }
.btn-danger:hover { background:#b01f1f; color:#fff; }
.btn-ghost { background:transparent; color:var(--muted); border-color:transparent; }
.btn-ghost:hover { background:var(--bg-alt); color:var(--texto); }
.btn-warning { background:var(--warning); color:#fff; border-color:var(--warning); }

/* ============================================
   AUTH PAGES (login/register)
   ============================================ */
.auth-page {
  min-height:100vh; display:flex;
  background:linear-gradient(135deg,#0d2b1e,#1B4332 50%,#2D6A4F);
}
.auth-left {
  flex:1; display:flex; flex-direction:column; justify-content:center;
  padding:60px 5%; max-width:480px;
  background:rgba(0,0,0,.15); backdrop-filter:blur(4px);
}
.auth-right { flex:1; display:flex; align-items:center; justify-content:center; padding:40px 5%; }
.auth-card {
  background:#fff; border-radius:20px; padding:44px;
  width:100%; max-width:460px; box-shadow:var(--shadow-l);
}
.auth-logo-big { font-family:'Sora',sans-serif; font-size:2.5rem; font-weight:800; color:#fff; margin-bottom:8px; }
.auth-logo-big span { color:var(--verde-light); }
.auth-tagline { color:rgba(255,255,255,.7); font-size:1.05rem; line-height:1.6; }
.auth-feature-list { margin-top:32px; display:flex; flex-direction:column; gap:14px; }
.auth-feature-item { display:flex; align-items:center; gap:12px; color:rgba(255,255,255,.85); font-size:.92rem; }
.auth-feature-item i { color:var(--verde-light); font-size:1rem; width:20px; }
.auth-card h2 { font-size:1.6rem; font-weight:800; color:var(--verde-oscuro); margin-bottom:4px; }
.auth-card .subtitle { color:var(--muted); font-size:.9rem; margin-bottom:28px; }
.auth-footer-link { text-align:center; margin-top:20px; font-size:.88rem; color:var(--texto-s); }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom:18px; }
.form-label { display:block; font-weight:600; font-size:.85rem; color:var(--texto); margin-bottom:6px; letter-spacing:.2px; }
.form-label .req { color:var(--danger); margin-left:2px; }
.form-input {
  width:100%; padding:11px 14px; border:2px solid var(--borde);
  border-radius:var(--radius-s); font-size:.93rem; color:var(--texto);
  background:var(--white); transition:var(--transition);
}
.form-input:focus { outline:none; border-color:var(--verde-medio); box-shadow:0 0 0 3px rgba(45,106,79,.12); }
.form-input::placeholder { color:var(--muted); }
.form-input.error { border-color:var(--danger); }
.form-hint { font-size:.79rem; color:var(--muted); margin-top:4px; }
.form-error { font-size:.82rem; color:var(--danger); margin-top:4px; display:none; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-row-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; }

/* Plan selector */
.plan-selector { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; }
.plan-option { display:none; }
.plan-option-label {
  display:block; padding:16px; border-radius:10px;
  border:2px solid var(--borde); cursor:pointer;
  text-align:center; transition:var(--transition);
}
.plan-option:checked + .plan-option-label {
  border-color:var(--verde-medio); background:var(--verde-pastel);
}
.plan-option-label .plan-opt-name { font-weight:700; color:var(--verde-oscuro); font-size:.95rem; margin-bottom:4px; }
.plan-option-label .plan-opt-price { color:var(--verde-medio); font-size:1.1rem; font-weight:700; }
.plan-option-label .plan-opt-sub { font-size:.75rem; color:var(--muted); margin-top:2px; }

/* ============================================
   APP LAYOUT
   ============================================ */
.app-wrapper { display:flex; min-height:100vh; }

.sidebar {
  width:var(--sidebar-w); background:var(--verde-oscuro);
  display:flex; flex-direction:column;
  position:fixed; top:0; left:0; bottom:0; z-index:200;
  transition:transform var(--transition);
}
.sidebar-brand {
  display:flex; align-items:center; gap:10px;
  padding:22px 20px 18px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.sidebar-brand-icon {
  width:34px; height:34px; background:var(--verde-light); border-radius:9px;
  display:flex; align-items:center; justify-content:center; font-size:18px;
}
.sidebar-brand-name { font-family:'Sora',sans-serif; font-size:1.2rem; font-weight:700; color:#fff; }
.sidebar-brand-name span { color:var(--verde-light); }

.sidebar-section-label {
  padding:16px 20px 6px;
  font-size:.7rem; font-weight:700; letter-spacing:1.2px;
  color:rgba(255,255,255,.35); text-transform:uppercase;
}
.sidebar-nav { padding:8px 12px; flex:1; overflow-y:auto; }
.sidebar-nav a {
  display:flex; align-items:center; gap:12px;
  padding:10px 12px; border-radius:9px; margin-bottom:2px;
  color:rgba(255,255,255,.72); font-size:.9rem; font-weight:500;
  transition:var(--transition); text-decoration:none;
}
.sidebar-nav a:hover { background:rgba(255,255,255,.08); color:#fff; }
.sidebar-nav a.active { background:var(--verde-medio); color:#fff; }
.sidebar-nav a .nav-icon { width:20px; text-align:center; font-size:1rem; flex-shrink:0; }
.sidebar-nav a .badge-count {
  margin-left:auto; background:var(--danger); color:#fff;
  font-size:.7rem; padding:1px 7px; border-radius:10px; font-weight:700;
}
.sidebar-nav .nav-divider { height:1px; background:rgba(255,255,255,.08); margin:10px 0; }

.sidebar-user {
  padding:14px 16px;
  border-top:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.15);
}
.sidebar-user-info { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.sidebar-avatar {
  width:36px; height:36px; border-radius:50%;
  background:var(--verde-medio); display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:700; font-size:.95rem; flex-shrink:0;
}
.sidebar-user-name { font-weight:600; color:#fff; font-size:.88rem; }
.sidebar-user-plan { font-size:.75rem; color:rgba(255,255,255,.5); }
.sidebar-plan-badge {
  display:inline-block; font-size:.7rem; font-weight:700;
  padding:2px 8px; border-radius:10px; margin-bottom:8px;
}
.sidebar-logout {
  display:flex; align-items:center; gap:8px;
  color:rgba(255,255,255,.5); font-size:.82rem; text-decoration:none;
  padding:6px 8px; border-radius:6px; transition:var(--transition);
}
.sidebar-logout:hover { color:#fff; background:rgba(var(--danger-rgb,214,40,40),.2); }

.main-content {
  margin-left:var(--sidebar-w); flex:1;
  display:flex; flex-direction:column; min-height:100vh;
}

.topbar {
  background:var(--white); border-bottom:1px solid var(--borde);
  padding:0 28px; height:64px;
  display:flex; align-items:center; justify-content:space-between;
  position:sticky; top:0; z-index:100;
}
.topbar-left { display:flex; align-items:center; gap:16px; }
.topbar-title { font-family:'Sora',sans-serif; font-weight:700; font-size:1.2rem; color:var(--verde-oscuro); }
.topbar-breadcrumb { font-size:.82rem; color:var(--muted); margin-top:1px; }
.topbar-actions { display:flex; align-items:center; gap:10px; }
.hamburger {
  display:none; flex-direction:column; gap:4px; cursor:pointer;
  background:none; border:none; padding:4px;
}
.hamburger span { width:22px; height:2px; background:var(--verde-oscuro); border-radius:2px; transition:var(--transition); }

.page-body { padding:28px; flex:1; }

/* ============================================
   COMPONENTS: Cards, Tables, Badges
   ============================================ */
.card {
  background:var(--white); border-radius:var(--radius);
  border:1px solid var(--borde); box-shadow:var(--shadow-s);
  overflow:hidden;
}
.card-header {
  padding:18px 22px; border-bottom:1px solid var(--borde);
  display:flex; align-items:center; justify-content:space-between;
}
.card-header h3 { font-size:1rem; font-weight:700; color:var(--verde-oscuro); }
.card-body { padding:22px; }

.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:18px; margin-bottom:24px; }
.stat-card {
  background:var(--white); border-radius:var(--radius);
  border:1px solid var(--borde); padding:22px;
  box-shadow:var(--shadow-s); display:flex; align-items:flex-start; gap:16px;
}
.stat-icon {
  width:48px; height:48px; border-radius:12px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:1.4rem;
}
.stat-icon.green { background:var(--verde-pastel); color:var(--verde-medio); }
.stat-icon.gold { background:var(--dorado-light); color:#8a6000; }
.stat-icon.blue { background:#dbeafe; color:#1d4ed8; }
.stat-icon.red { background:#fde8e8; color:var(--danger); }
.stat-icon.orange { background:#fef3c7; color:#b45309; }
.stat-value { font-family:'Sora',sans-serif; font-size:1.8rem; font-weight:800; color:var(--texto); line-height:1; }
.stat-label { font-size:.82rem; color:var(--muted); margin-top:4px; }
.stat-sub { font-size:.78rem; color:var(--verde-medio); margin-top:6px; font-weight:500; }

.data-table { width:100%; border-collapse:collapse; }
.data-table th {
  text-align:left; padding:11px 16px;
  font-size:.78rem; font-weight:700; letter-spacing:.5px; text-transform:uppercase;
  color:var(--texto-s); background:var(--bg); border-bottom:2px solid var(--borde);
}
.data-table td { padding:13px 16px; border-bottom:1px solid var(--bg-alt); font-size:.9rem; vertical-align:middle; }
.data-table tbody tr:hover { background:#f7fbf8; }
.data-table tbody tr:last-child td { border-bottom:none; }
.data-table .actions { display:flex; gap:6px; }

.badge { display:inline-flex; align-items:center; padding:3px 10px; border-radius:20px; font-size:.74rem; font-weight:700; letter-spacing:.3px; }
.badge-success { background:rgba(82,183,136,.15); color:#1a6b40; }
.badge-warning { background:rgba(224,124,36,.15); color:#884600; }
.badge-danger  { background:rgba(214,40,40,.12); color:#9b1515; }
.badge-info    { background:rgba(29,126,170,.12); color:#0d5580; }
.badge-dark    { background:rgba(60,60,60,.1); color:#333; }

/* Search + filter bar */
.filter-bar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:18px; }
.search-input-wrap { position:relative; flex:1; min-width:200px; max-width:320px; }
.search-input-wrap i { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--muted); }
.search-input { padding-left:36px !important; }

/* Empty state */
.empty-state { text-align:center; padding:60px 20px; }
.empty-icon { font-size:3.5rem; margin-bottom:16px; opacity:.4; }
.empty-state h3 { color:var(--texto-s); font-size:1.05rem; margin-bottom:6px; }
.empty-state p { color:var(--muted); font-size:.88rem; }

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  position:fixed; inset:0; z-index:900;
  background:rgba(15,30,22,.55); backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center;
  padding:20px; opacity:0; pointer-events:none; transition:opacity .25s;
}
.modal-overlay.active { opacity:1; pointer-events:all; }
.modal-box {
  background:#fff; border-radius:16px; width:100%; max-width:540px;
  max-height:90vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,.25);
  transform:scale(.95) translateY(10px); transition:transform .25s;
}
.modal-overlay.active .modal-box { transform:scale(1) translateY(0); }
.modal-box.modal-lg { max-width:700px; }
.modal-head {
  padding:22px 26px 18px; border-bottom:1px solid var(--borde);
  display:flex; align-items:center; justify-content:space-between; position:sticky; top:0; background:#fff; z-index:1;
}
.modal-head h3 { font-size:1.1rem; font-weight:700; color:var(--verde-oscuro); }
.modal-close { background:none; border:none; font-size:1.3rem; cursor:pointer; color:var(--muted); padding:4px 8px; border-radius:6px; transition:var(--transition); }
.modal-close:hover { background:var(--bg); color:var(--texto); }
.modal-body { padding:26px; }
.modal-foot { padding:18px 26px; border-top:1px solid var(--borde); display:flex; gap:10px; justify-content:flex-end; background:#fff; position:sticky; bottom:0; }

/* Toast notifications */
.toast-container { position:fixed; bottom:24px; right:24px; z-index:9999; display:flex; flex-direction:column; gap:10px; }
.toast {
  background:#fff; border-radius:10px; padding:14px 18px;
  box-shadow:0 4px 20px rgba(0,0,0,.15); display:flex; align-items:center; gap:12px;
  min-width:280px; max-width:360px; animation:toastIn .3s ease;
  border-left:4px solid var(--verde-medio);
}
.toast.error { border-left-color:var(--danger); }
.toast.warning { border-left-color:var(--warning); }
.toast-msg { flex:1; font-size:.9rem; font-weight:500; }
@keyframes toastIn { from { transform:translateX(100%); opacity:0; } to { transform:translateX(0); opacity:1; } }

/* Alert boxes */
.alert { padding:14px 18px; border-radius:var(--radius-s); margin-bottom:18px; display:flex; align-items:flex-start; gap:10px; font-size:.9rem; }
.alert-info { background:#dbeafe; color:#1d4ed8; border-left:4px solid #3b82f6; }
.alert-warning { background:#fef9c3; color:#854d0e; border-left:4px solid #eab308; }
.alert-danger { background:#fee2e2; color:#991b1b; border-left:4px solid var(--danger); }
.alert-success { background:var(--verde-pastel); color:var(--verde-oscuro); border-left:4px solid var(--verde-light); }

/* Suscripcion / Plan */
.plan-current-card {
  background:linear-gradient(135deg,var(--verde-oscuro),var(--verde-medio));
  color:#fff; border-radius:16px; padding:32px; margin-bottom:24px;
}
.plan-days-bar { background:rgba(255,255,255,.15); border-radius:20px; height:8px; margin:10px 0; overflow:hidden; }
.plan-days-fill { background:var(--verde-light); height:100%; border-radius:20px; transition:width .6s; }

/* Responsive */
@media (max-width:900px) {
  .sidebar { transform:translateX(-100%); }
  .sidebar.open { transform:translateX(0); }
  .main-content { margin-left:0; }
  .hamburger { display:flex; }
  .land-steps { flex-direction:column; gap:32px; }
  .land-step::after { display:none; }
  .form-row,.form-row-3 { grid-template-columns:1fr; }
  .auth-left { display:none; }
  .auth-right { padding:20px; }
  .auth-card { padding:28px; }
  .land-nav-links { display:none; }
}
@media (max-width:600px) {
  .stats-grid { grid-template-columns:1fr 1fr; }
  .page-body { padding:16px; }
  .data-table { font-size:.82rem; }
  .data-table th,.data-table td { padding:10px 10px; }
  .land-plan-card.featured { transform:none; }
  .topbar { padding:0 16px; }
}

/* Maquinaria cards */
.maq-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:18px; }
.maq-card { background:var(--white); border-radius:var(--radius); border:1px solid var(--borde); padding:22px; box-shadow:var(--shadow-s); }
.maq-card-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:16px; }
.maq-name { font-weight:700; color:var(--verde-oscuro); font-size:1.05rem; }
.maq-type { font-size:.8rem; color:var(--muted); }
.maq-hours-bar { background:var(--bg-alt); border-radius:20px; height:8px; overflow:hidden; margin:8px 0; }
.maq-hours-fill { height:100%; border-radius:20px; background:var(--verde-light); transition:width .5s; }
.maq-hours-fill.warn { background:var(--warning); }
.maq-hours-fill.danger { background:var(--danger); }
.maq-meta { display:flex; justify-content:space-between; font-size:.8rem; color:var(--muted); }

/* Cobro inline in table */
.trabajo-cobrado { opacity:.65; }

/* Loading spinner */
.spinner {
  width:20px; height:20px; border:2px solid var(--borde);
  border-top-color:var(--verde-medio); border-radius:50%;
  animation:spin .7s linear infinite; display:inline-block;
}
@keyframes spin { to { transform:rotate(360deg); } }

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display:none; position:fixed; inset:0; z-index:150;
  background:rgba(0,0,0,.5);
}
.sidebar-overlay.active { display:block; }

/* Admin styles */
.admin-tag { font-size:.7rem; background:var(--dorado); color:#fff; padding:2px 7px; border-radius:4px; margin-left:6px; font-weight:700; }


/* ============================================================
   SULCOS v2 — Estilos adicionales
   ============================================================ */

/* AGENDA / CALENDARIO */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-header-day {
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  padding: 8px 4px;
  letter-spacing: .5px;
}
.cal-day {
  min-height: 80px;
  border-radius: 8px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--borde);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.cal-day:hover { border-color: var(--verde-light); background: var(--verde-pastel); }
.cal-day.today { border-color: var(--verde-medio); border-width: 2px; }
.cal-day.other-month { opacity: .4; background: var(--bg); }
.cal-day-num {
  font-size: .8rem;
  font-weight: 700;
  color: var(--texto-s);
  margin-bottom: 4px;
}
.cal-day.today .cal-day-num {
  background: var(--verde-medio);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
}
.cal-event {
  font-size: .7rem;
  padding: 2px 5px;
  border-radius: 4px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  font-weight: 600;
}
.cal-event.trabajo    { background: #d8f3dc; color: #1B4332; }
.cal-event.service    { background: #fff3cd; color: #856404; }
.cal-event.reunion    { background: #cfe2ff; color: #084298; }
.cal-event.vencimiento{ background: #fde8e8; color: #842029; }
.cal-event.otro       { background: #e2e3e5; color: #41464b; }

.cal-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.cal-nav h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--verde-oscuro);
  min-width: 200px;
  text-align: center;
}

/* REMITO IMPRIMIBLE */
.remito-print {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: white;
  font-family: 'DM Sans', sans-serif;
}
.remito-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--verde-oscuro);
}
.remito-logo { font-family: 'Sora', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--verde-oscuro); }
.remito-logo span { color: var(--verde-light); }
.remito-numero { font-size: 1.4rem; font-weight: 700; color: var(--verde-oscuro); }
.remito-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.remito-section-title { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.remito-section-val { font-size: .95rem; color: var(--texto); line-height: 1.6; }
.remito-tabla { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.remito-tabla th { background: var(--verde-oscuro); color: #fff; padding: 10px 14px; text-align: left; font-size: .82rem; }
.remito-tabla td { padding: 10px 14px; border-bottom: 1px solid var(--borde); font-size: .9rem; }
.remito-total-row { background: var(--verde-pastel); font-weight: 700; font-size: 1.05rem; }
.remito-firma-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; }
.remito-firma-line { border-top: 2px solid var(--texto); padding-top: 8px; text-align: center; font-size: .8rem; color: var(--muted); }
@media print {
  body * { visibility: hidden; }
  .remito-print, .remito-print * { visibility: visible; }
  .remito-print { position: absolute; left: 0; top: 0; width: 100%; }
  .no-print { display: none !important; }
}

/* CUENTA CORRIENTE */
.cc-saldo-card {
  border-radius: var(--radius);
  padding: 24px;
  color: #fff;
  margin-bottom: 20px;
}
.cc-saldo-card.positivo { background: linear-gradient(135deg, #1B4332, #2D6A4F); }
.cc-saldo-card.negativo { background: linear-gradient(135deg, #7f1d1d, var(--danger)); }
.cc-saldo-card.neutro   { background: linear-gradient(135deg, #374151, #4b5563); }
.cc-saldo-amount { font-family: 'Sora', sans-serif; font-size: 2.4rem; font-weight: 800; }
.cc-debe  { color: #fca5a5; font-weight: 700; }
.cc-haber { color: #86efac; font-weight: 700; }

/* COMBUSTIBLE */
.comb-resumen-bar { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.comb-stat { background: var(--white); border: 1px solid var(--borde); border-radius: var(--radius-s); padding: 14px 20px; flex: 1; min-width: 140px; }
.comb-stat-val { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--verde-oscuro); }
.comb-stat-lab { font-size: .78rem; color: var(--muted); margin-top: 2px; }

/* CALCULADORA */
.calc-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--borde);
  overflow: hidden;
}
.calc-result {
  background: linear-gradient(135deg, var(--verde-oscuro), var(--verde-medio));
  color: #fff;
  padding: 28px;
  text-align: center;
}
.calc-result-price { font-family: 'Sora', sans-serif; font-size: 3rem; font-weight: 800; }
.calc-result-sub { opacity: .8; font-size: .9rem; margin-top: 4px; }
.calc-breakdown { padding: 20px 24px; }
.calc-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--bg); font-size: .9rem; }
.calc-row:last-child { border-bottom: none; font-weight: 700; color: var(--verde-oscuro); }
.calc-negative { color: var(--danger); }

/* TARIFAS FACMA */
.tarifa-badge { display: inline-block; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: #dbeafe; color: #1d4ed8; }
.tarifa-usd { font-family: 'Sora', sans-serif; font-weight: 800; color: var(--verde-oscuro); font-size: 1.05rem; }

/* EXPORTAR */
.export-section { margin-bottom: 32px; }
.export-section h3 { font-size: 1rem; font-weight: 700; color: var(--verde-oscuro); margin-bottom: 12px; border-left: 4px solid var(--verde-light); padding-left: 12px; }

/* CLIMA */
.clima-icon { font-size: 1.6rem; }
.clima-card { background: var(--white); border: 1px solid var(--borde); border-radius: var(--radius-s); padding: 14px 18px; display: flex; align-items: center; gap: 14px; }

/* WhatsApp button */
.btn-whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.btn-whatsapp:hover { background: #1fb855; color: #fff; }

/* Alertas documentos maquinaria */
.doc-alert { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 6px; font-size: .82rem; margin-bottom: 6px; }
.doc-alert.ok     { background: var(--verde-pastel); color: var(--verde-oscuro); }
.doc-alert.warn   { background: #fef9c3; color: #854d0e; }
.doc-alert.danger { background: #fde8e8; color: #991b1b; }

/* GASTOS */
.gasto-categoria { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .74rem; font-weight: 700; background: var(--bg-alt); color: var(--texto-s); }

/* PWA install banner */
.pwa-banner { background: var(--verde-oscuro); color: #fff; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; animation: slideUp .3s ease; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* Responsive extras */
@media (max-width: 600px) {
  .calendar-grid { grid-template-columns: repeat(7, 1fr); }
  .cal-day { min-height: 50px; padding: 4px; }
  .cal-event { display: none; }
  .cal-day.has-events::after { content: '•'; display: block; text-align: center; color: var(--verde-medio); font-size: 1rem; }
  .remito-body-grid { grid-template-columns: 1fr; }
  .remito-firma-grid { grid-template-columns: 1fr; }
}
