/* ═══ CHECK REFORMA — Main Stylesheet ═══ */
:root {
  --primary: #1B5E3B;
  --primary-dark: #0F2E1E;
  --primary-light: #E8F5E9;
  --green: #4CAF50;
  --yellow: #FFC107;
  --red: #F44336;
  --orange: #FF6F00;
  --gray: #263238;
  --light-gray: #f8f9fa;
  --border: #e0e0e0;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 8px;
  --font-main: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--gray); background: #fff; line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── NAV ── */
.nav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav-logo { font-family: var(--font-main); font-weight: 700; font-size: 1.2rem; color: var(--primary); display: flex; align-items: center; gap: 6px; }
.nav-logo-check { background: var(--primary); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-link { color: var(--gray); font-size: 0.9rem; font-weight: 500; }
.nav-link:hover { color: var(--primary); text-decoration: none; }

/* ── BUTTONS ── */
.btn { display: inline-block; padding: 11px 24px; border-radius: var(--radius); font-family: var(--font-main); font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; transition: all 0.2s; text-align: center; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-primary-sm { background: var(--primary); color: #fff; padding: 7px 16px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; }
.btn-primary-sm:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }
.btn-outline-sm { background: transparent; color: var(--gray); border: 1px solid var(--border); padding: 7px 14px; border-radius: 6px; font-size: 0.85rem; cursor: pointer; }
.btn-outline-sm:hover { border-color: var(--primary); color: var(--primary); }
.token-badge { background: var(--primary-light); color: var(--primary); padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.page-header { background: var(--primary-light); padding: 40px 0; border-bottom: 1px solid #c8e6c9; }
.page-header h1 { font-family: var(--font-main); color: var(--primary); font-size: 1.8rem; }

/* ── HERO ── */
.hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: #fff; padding: 80px 0; text-align: center; }
.hero h1 { font-family: var(--font-main); font-size: 2.6rem; font-weight: 700; margin-bottom: 18px; line-height: 1.2; }
.hero p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 32px; max-width: 580px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-hero { background: #fff; color: var(--primary); padding: 14px 32px; border-radius: 8px; font-size: 1.05rem; font-weight: 700; }
.btn-hero:hover { background: var(--primary-light); color: var(--primary); text-decoration: none; }
.btn-hero-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); padding: 14px 30px; border-radius: 8px; font-size: 1.05rem; font-weight: 600; }
.btn-hero-outline:hover { border-color: #fff; color: #fff; text-decoration: none; }

/* ── SEMAPHORE DEMO ── */
.semaphore-demo { display: flex; gap: 12px; justify-content: center; margin: 32px 0; flex-wrap: wrap; }
.sema-item { background: rgba(255,255,255,0.12); border-radius: 8px; padding: 14px 20px; text-align: left; min-width: 200px; }
.sema-label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.sema-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.sema-dot.green { background: var(--green); }
.sema-dot.yellow { background: var(--yellow); }
.sema-dot.red { background: var(--red); }
.sema-desc { font-size: 0.8rem; opacity: 0.8; }

/* ── STEPS ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { text-align: center; padding: 32px 20px; }
.step-num { width: 52px; height: 52px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-main); font-size: 1.3rem; font-weight: 700; margin: 0 auto 16px; }
.step h3 { font-family: var(--font-main); font-size: 1.05rem; margin-bottom: 8px; color: var(--primary); }
.step p { font-size: 0.9rem; color: #555; }

/* ── CARDS / PRICING ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 32px 28px; position: relative; }
.card-featured { border: 2px solid var(--primary); }
.card-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: 3px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.card h3 { font-family: var(--font-main); font-size: 1.1rem; margin-bottom: 8px; }
.card-price { font-family: var(--font-main); font-size: 2.2rem; font-weight: 700; color: var(--primary); margin: 12px 0; }
.card-price span { font-size: 1rem; font-weight: 400; color: #777; }
.card ul { list-style: none; margin: 16px 0 24px; }
.card ul li { padding: 6px 0; font-size: 0.9rem; display: flex; align-items: flex-start; gap: 8px; }
.card ul li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.card ul li.no::before { content: '✗'; color: #ccc; }

/* ── ANALYSIS RESULTS ── */
.signal-green  { background: #E8F5E9; color: #1B5E20; border: 1px solid #A5D6A7; }
.signal-yellow { background: #FFFDE7; color: #F57F17; border: 1px solid #FFF176; }
.signal-red    { background: #FFEBEE; color: #B71C1C; border: 1px solid #EF9A9A; }
.signal-unknown{ background: #FAFAFA; color: #777; border: 1px solid #ddd; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.badge-green  { background: var(--green); color: #fff; }
.badge-yellow { background: var(--yellow); color: #333; }
.badge-red    { background: var(--red); color: #fff; }
.badge-unknown{ background: #ccc; color: #555; }

.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.summary-box { border-radius: 8px; padding: 20px; text-align: center; }
.summary-box .value { font-family: var(--font-main); font-size: 1.8rem; font-weight: 700; }
.summary-box .label { font-size: 0.8rem; margin-top: 4px; opacity: 0.85; }
.summary-box.total  { background: var(--primary); color: #fff; }
.summary-box.green  { background: #E8F5E9; color: #1B5E20; }
.summary-box.yellow { background: #FFFDE7; color: #E65100; }
.summary-box.red    { background: #FFEBEE; color: #B71C1C; }

.items-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.items-table th { background: var(--primary); color: #fff; padding: 10px 12px; text-align: left; font-weight: 600; }
.items-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.items-table tr:hover td { background: var(--primary-light); }
.items-table .cat-row td { background: #f0f7f0; font-weight: 600; color: var(--primary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── FORMS ── */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 40px; max-width: 480px; margin: 0 auto; box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--gray); }
.form-control { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.95rem; font-family: var(--font-body); transition: border-color 0.2s; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,94,59,0.1); }
.form-hint { font-size: 0.8rem; color: #777; margin-top: 4px; }
.form-divider { text-align: center; margin: 18px 0; color: #aaa; font-size: 0.85rem; position: relative; }
.form-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.form-divider span { background: #fff; padding: 0 12px; position: relative; }

/* ── DROPZONE ── */
.dropzone { display: block; border: 2px dashed var(--border); border-radius: 12px; padding: 48px 24px; text-align: center; cursor: pointer; transition: all 0.2s; box-sizing: border-box; width: 100%; }
.dropzone:hover, .dropzone.drag-over { border-color: var(--primary); background: var(--primary-light); }
.dropzone-icon { font-size: 3rem; margin-bottom: 12px; }
.dropzone h3 { font-family: var(--font-main); margin-bottom: 6px; }
.dropzone p { color: #777; font-size: 0.9rem; }

/* ── ALERTS ── */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; font-size: 0.9rem; }
.alert-error   { background: #FFEBEE; border: 1px solid #EF9A9A; color: #B71C1C; }
.alert-success { background: #E8F5E9; border: 1px solid #A5D6A7; color: #1B5E20; }
.alert-warning { background: #FFFDE7; border: 1px solid #FFF176; color: #F57F17; }
.alert-info    { background: #E3F2FD; border: 1px solid #90CAF9; color: #0D47A1; }

/* ── DASHBOARD ── */
.dashboard-grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.sidebar { background: var(--primary-light); border-radius: 12px; padding: 24px; }
.sidebar-nav a { display: block; padding: 10px 14px; border-radius: 6px; color: var(--gray); font-weight: 500; margin-bottom: 4px; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--primary); color: #fff; text-decoration: none; }

/* ── CHECKLIST ── */
.checklist { counter-reset: checklist-counter; list-style: none; }
.checklist li { counter-increment: checklist-counter; display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: none; }
.checklist-num { background: var(--primary); color: #fff; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-main); font-size: 0.85rem; font-weight: 700; flex-shrink: 0; }
.checklist li p { font-size: 0.95rem; padding-top: 4px; }

/* ── SECTION TITLES ── */
.section-title { font-family: var(--font-main); font-size: 1.9rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.section-subtitle { color: #666; font-size: 1.05rem; max-width: 580px; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }

/* ── SAVINGS ALERT ── */
.savings-banner { background: linear-gradient(90deg, #FFF3E0, #FFF8E1); border: 1px solid #FFE082; border-radius: 8px; padding: 16px 20px; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.savings-banner .savings-icon { font-size: 1.5rem; }
.savings-banner strong { color: var(--orange); }

/* ── PROCESSING ── */
.processing-wrapper { text-align: center; padding: 80px 20px; }
.spinner { width: 56px; height: 56px; border: 4px solid var(--primary-light); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 24px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FOOTER ── */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 48px 0 24px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { color: #fff; font-family: var(--font-main); font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.footer-tagline { font-size: 0.85rem; opacity: 0.7; }
.footer h4 { color: #fff; font-size: 0.85rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer a { color: rgba(255,255,255,0.65); font-size: 0.88rem; display: block; margin-bottom: 6px; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.8rem; text-align: center; }

/* ── HAMBURGER MENU ── */
.nav-hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; border-radius: 6px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--gray); border-radius: 2px; transition: all 0.25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile { display: none; background: #fff; border-top: 1px solid var(--border); padding: 12px 20px 20px; }
.nav-mobile.open { display: block; }
.nav-mobile-link { display: block; padding: 12px 0; color: var(--gray); font-size: 1rem; font-weight: 500; border-bottom: 1px solid var(--border); }
.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-link:hover { color: var(--primary); text-decoration: none; }
.nav-mobile-logout { background: none; border: none; cursor: pointer; font-family: var(--font-body); width: 100%; text-align: left; }
.nav-mobile-cta { display: block; margin-top: 14px; background: var(--primary); color: #fff; padding: 13px 20px; border-radius: 8px; text-align: center; font-weight: 700; font-size: 1rem; }
.nav-mobile-cta:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }

/* ── FOCUS / ACCESIBILIDAD ── */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.btn:focus-visible, .btn-hero:focus-visible, .btn-primary-sm:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* ── RESPONSIVE — Tablet ── */
@media (max-width: 1024px) {
  .cards { grid-template-columns: 1fr; gap: 20px; max-width: 480px; margin-left: auto; margin-right: auto; }
  .card-featured { grid-column: auto; }
  .steps { gap: 20px; }
}

/* ── RESPONSIVE — Mobile ── */
@media (max-width: 768px) {
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 1.9rem; line-height: 1.15; }
  .hero p { font-size: 1rem; }
  .btn-hero, .btn-hero-outline { padding: 13px 24px; font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: center; gap: 10px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 1.6rem; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .step { padding: 20px 16px; }
  .cards { grid-template-columns: 1fr; }
  .card-featured { grid-column: auto; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .summary-box .value { font-size: 1.4rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .form-card { padding: 28px 20px; }
  .items-table th, .items-table td { padding: 8px 8px; font-size: 0.8rem; }
}

/* ── COOKIE CONSENT BANNER ── */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #1a1a1a; color: #f0f0f0; z-index: 9999; padding: 16px 20px; box-shadow: 0 -4px 20px rgba(0,0,0,0.25); }
.cookie-banner-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-banner-text { flex: 1; font-size: 0.88rem; line-height: 1.5; min-width: 240px; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn-reject, .cookie-btn-config { background: transparent; border-color: #666; color: #ccc; font-size: 0.83rem; padding: 8px 14px; }
.cookie-btn-reject:hover, .cookie-btn-config:hover { border-color: #aaa; color: #fff; background: transparent; }
.cookie-btn-accept { font-size: 0.83rem; padding: 8px 18px; }
@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cookie-banner-actions { width: 100%; justify-content: flex-end; }
}

/* ── RESPONSIVE — Small mobile ── */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .container { padding: 0 16px; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .summary-box { padding: 14px 10px; }
  .summary-box .value { font-size: 1.2rem; }
  .semaphore-demo { flex-direction: column; align-items: stretch; }
  .sema-item { min-width: unset; }
  .dropzone { padding: 32px 16px; }
}
