﻿/* ═══════════════════════════════════════════════════════════════════════════
   B2B RECURSOS HUMANOS — STYLESHEET
   Brand: #76ba00  |  Font: DM Sans
═══════════════════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  --brand:       #76ba00;
  --brand-dk:    #5f9600;
  --brand-lt:    #f2f8e6;
  --brand-mid:   #d4edaa;

  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-300:    #d1d5db;
  --gray-400:    #9ca3af;
  --gray-500:    #6b7280;
  --gray-700:    #374151;
  --gray-900:    #111827;

  --blue:        #2563eb;
  --blue-lt:     #dbeafe;
  --amber:       #d97706;
  --amber-lt:    #fef3c7;
  --red:         #dc2626;
  --red-lt:      #fee2e2;
  --green-lt:    #dcfce7;
  --green-dk:    #15803d;

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   14px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:      0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 32px rgba(0,0,0,.12);
}

/* ── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--gray-900); background: #fff;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── LAYOUT ──────────────────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ── TYPOGRAPHY HELPERS ──────────────────────────────────────────────────── */
.accent { color: var(--brand); }

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .55rem 1.1rem; font-size: .875rem; font-weight: 600;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  white-space: nowrap; line-height: 1.4;
}
.btn-primary   { background: var(--brand);  color: #fff; border-color: var(--brand); }
.btn-primary:hover   { background: var(--brand-dk); border-color: var(--brand-dk); }
.btn-outline   { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover   { background: var(--brand-lt); }
.btn-ghost     { background: transparent; color: var(--gray-700); border-color: var(--gray-200); }
.btn-ghost:hover     { background: var(--gray-100); }
.btn-danger    { background: transparent; color: var(--red); border-color: #fca5a5; }
.btn-danger:hover    { background: var(--red-lt); }
.btn-white     { background: #fff; color: var(--brand); border-color: #fff; }
.btn-white:hover     { background: var(--brand-lt); border-color: var(--brand-lt); }
.btn-sm  { padding: .35rem .75rem; font-size: .8rem; }
.btn-lg  { padding: .8rem 2rem; font-size: 1rem; border-radius: var(--radius); letter-spacing: .01em; }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ── SPINNER ─────────────────────────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 1em; height: 1em;
  border: 2px solid rgba(255,255,255,.35); border-top-color: currentColor;
  border-radius: 50%; animation: spin .65s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .2s;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; gap: 2rem; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.nav-logo img { height: 36px; object-fit: contain; }
.nav-logo-text { font-size: .95rem; font-weight: 800; color: var(--brand); line-height: 1.15; }
.nav-logo-sub  { font-size: .65rem; color: var(--gray-400); font-weight: 500; letter-spacing: .02em; }
.nav-links { display: flex; gap: 1.75rem; flex: 1; justify-content: flex-end; padding-right: 1.5rem; }
.nav-links a { font-size: .875rem; font-weight: 500; color: var(--gray-500); transition: color .15s; }
.nav-links a:hover { color: var(--brand); }
.nav-actions { display: flex; gap: .65rem; align-items: center; flex-shrink: 0; }

.nav-mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-mobile-toggle span { display: block; width: 20px; height: 1.5px; background: var(--gray-700); border-radius: 2px; transition: all .25s; }
.nav-mobile { display: none; flex-direction: column; border-top: 1px solid var(--gray-200); padding: 1rem 2rem 1.5rem; gap: .1rem; background: #fff; }
.nav-mobile a { padding: .7rem 0; font-size: .9rem; font-weight: 500; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: flex; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; margin-left: auto; }
}
@media (max-width: 560px) { .nav-actions .btn:first-child { display: none; } }

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS (landing)
═══════════════════════════════════════════════════════════════════════════ */
.section     { padding: 5rem 0; }
.section-alt { background: var(--gray-50); }

.section-header { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.section-tag {
  display: inline-block; background: var(--brand-lt); color: var(--brand-dk);
  font-size: .72rem; font-weight: 700; padding: .35rem 1rem; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: .875rem;
  border: 1px solid var(--brand-mid);
}
.section-title { font-size: 2rem; font-weight: 800; line-height: 1.22; margin-bottom: .875rem; color: var(--gray-900); }
.section-desc  { color: var(--gray-500); font-size: .9rem; line-height: 1.75; }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(150deg, #0c1a05 0%, #172b00 55%, #091200 100%);
  min-height: 86vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 5rem 0;
}
.hero::before {
  content: '';
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(118,186,0,.08) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}
.hero-grid {
  display: none;
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.hero-container {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr 420px; gap: 5rem; align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(118,186,0,.12); border: 1px solid rgba(118,186,0,.25);
  color: var(--brand); font-size: .78rem; font-weight: 600;
  padding: .35rem .9rem; border-radius: 20px; margin-bottom: 1.5rem;
}
.hero-badge span { width: 6px; height: 6px; background: var(--brand); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero-title {
  font-size: clamp(2.1rem, 3.8vw, 3.1rem); font-weight: 900;
  line-height: 1.13; color: #fff; margin-bottom: 1.25rem;
}
.hero-subtitle { color: rgba(255,255,255,.6); font-size: 1rem; line-height: 1.75; margin-bottom: 2.25rem; max-width: 520px; }
.hero-actions  { display: flex; gap: .875rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats    { display: flex; gap: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); flex-wrap: wrap; }
.hero-stat-num   { font-size: 1.75rem; font-weight: 900; color: var(--brand); line-height: 1; }
.hero-stat-label { font-size: .75rem; color: rgba(255,255,255,.45); margin-top: .25rem; }

.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,.06); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 1.5rem;
}
.hero-card-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); margin-bottom: 1rem; }
.hero-service-item { display: flex; align-items: center; gap: .875rem; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.hero-service-item:last-child { border-bottom: none; }
.hero-service-icon { width: 32px; height: 32px; background: rgba(118,186,0,.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: .85rem; flex-shrink: 0; }
.hero-service-text { color: rgba(255,255,255,.8); font-size: .875rem; font-weight: 500; }

.hero-floating {
  position: absolute; background: rgba(255,255,255,.96); border-radius: var(--radius);
  padding: .7rem 1rem; display: flex; align-items: center; gap: .75rem;
  box-shadow: var(--shadow-lg);
}
.hero-floating-1 { bottom: -8px; left: -16px; }
.hero-floating-2 { top: 12px; right: -12px; }
.hero-floating-icon { width: 34px; height: 34px; background: var(--brand-lt); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: .9rem; flex-shrink: 0; }

@media (max-width: 960px) {
  .hero-container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STATS BAR (landing)
═══════════════════════════════════════════════════════════════════════════ */
.stats-bar { background: linear-gradient(135deg, #4e7d00 0%, #5f9600 40%, #76ba00 70%, #5f9600 100%); padding: 3.5rem 2rem; }
.stats-grid { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; text-align: center; }
.stat-number { font-size: 2.25rem; font-weight: 900; color: #fff; line-height: 1; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.stat-label  { font-size: .78rem; color: rgba(255,255,255,.8); margin-top: .4rem; font-weight: 500; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICES (landing)
═══════════════════════════════════════════════════════════════════════════ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 1.25rem; }
.service-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 1.75rem; transition: border-color .25s, box-shadow .25s, transform .25s;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.service-desc { flex: 1; }
.service-card:hover { border-color: var(--brand); box-shadow: 0 10px 30px rgba(0,0,0,.1); transform: translateY(-4px); }
.service-icon {
  width: 48px; height: 48px; background: var(--brand-lt); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
  color: var(--brand-dk); font-size: 1.15rem; flex-shrink: 0;
  transition: background .25s, color .25s, transform .25s;
}
.service-title { font-size: 1rem; font-weight: 700; margin-bottom: .6rem; color: var(--gray-900); }
.service-desc  { color: var(--gray-500); font-size: .85rem; line-height: 1.7; margin-bottom: 1.25rem; }
.service-link  { color: var(--brand); font-size: .82rem; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; transition: gap .15s; }
.service-link:hover { gap: .6rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   PROCESS STEPS (landing)
═══════════════════════════════════════════════════════════════════════════ */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.process-step  { text-align: center; padding: 1.5rem 1rem; }
.step-circle   { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-lt); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--brand); margin-bottom: 1rem; }
.step-title    { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.step-desc     { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════════════════
   OFERTAS (landing public)
═══════════════════════════════════════════════════════════════════════════ */
.ofertas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
@media (max-width: 900px) { .ofertas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ofertas-grid { grid-template-columns: 1fr; } }
.ofertas-pagination { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: 2rem; }
.ofertas-pagination button { background: #fff; border: 1px solid var(--gray-200); color: #4a5568; padding: .5rem 1.1rem; border-radius: var(--radius); font-size: .9rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.ofertas-pagination button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.ofertas-pagination button:disabled { opacity: .35; cursor: not-allowed; }
.ofertas-pagination .pag-info { font-size: .88rem; color: #718096; font-weight: 500; }
.oferta-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer; transition: border-color .25s, box-shadow .25s, transform .25s;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.oferta-card:hover { border-color: var(--brand); box-shadow: 0 12px 32px rgba(0,0,0,.11); transform: translateY(-4px); }
.oferta-destacada { border-color: var(--brand); box-shadow: 0 4px 20px rgba(118,186,0,.15); }
.oferta-cerrada { opacity: .72; }
.oferta-cerrada:hover { transform: none; box-shadow: 0 2px 8px rgba(0,0,0,.05); border-color: var(--border); }
.oferta-cerrada .oferta-img { filter: grayscale(.6); }
.oferta-badge-cerrada { background: #64748b !important; }
.oferta-badge {
  position: absolute; top: 0; left: 0; z-index: 2;
  background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700;
  padding: .3rem .75rem; letter-spacing: .04em;
}
.oferta-img   {
  aspect-ratio: 4 / 3; background: var(--brand-lt) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.oferta-img-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; color: var(--brand); opacity: .45; pointer-events: none;
}
.oferta-img-placeholder i  { font-size: 2rem; }
.oferta-img-placeholder span { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.oferta-body  { padding: 1.25rem; flex: 1; }
.oferta-cat   { font-size: .7rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.oferta-title {
  font-size: .975rem; font-weight: 700; margin-bottom: .35rem; color: var(--gray-900);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.oferta-empresa { font-size: .82rem; color: var(--gray-500); margin-bottom: .75rem; min-height: 1.2em; }
.oferta-meta  { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .85rem; }
.oferta-meta span { font-size: .75rem; color: var(--gray-500); display: flex; align-items: center; gap: .3rem; }
.oferta-desc  {
  font-size: .82rem; color: var(--gray-500); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.oferta-footer { padding: .875rem 1.25rem; border-top: 1px solid var(--gray-100); }

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT SECTION (landing)
═══════════════════════════════════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.75rem; }
.contact-info-icon { width: 40px; height: 40px; background: var(--brand-lt); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: .95rem; flex-shrink: 0; }
.contact-info-label { font-size: .72rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .2rem; }
.contact-info-value { font-size: .9rem; font-weight: 600; color: var(--gray-900); line-height: 1.5; }
.contact-form { background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--gray-200); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ═══════════════════════════════════════════════════════════════════════════
   FORMS (shared)
═══════════════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-label {
  display: block; font-size: .8rem; font-weight: 600;
  color: var(--gray-700); margin-bottom: .35rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: .6rem .875rem; font-size: .875rem;
  color: var(--gray-900); background: #fff;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(118,186,0,.12);
}
.form-input:disabled { background: var(--gray-50); color: var(--gray-400); cursor: not-allowed; }
.form-textarea { min-height: 120px; resize: vertical; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER (landing)
═══════════════════════════════════════════════════════════════════════════ */
.footer { background: #0c1a05; color: rgba(255,255,255,.65); }
.footer-main {
  max-width: 1280px; margin: 0 auto; padding: 4rem 2rem 3rem;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-brand p { font-size: .83rem; line-height: 1.75; margin-top: 1rem; color: rgba(255,255,255,.4); }
.footer-social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social-link {
  width: 34px; height: 34px; background: rgba(255,255,255,.07); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: .8rem; transition: background .15s, color .15s;
}
.social-link:hover { background: var(--brand); color: #fff; }
.footer-title { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.3); margin-bottom: 1rem; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { font-size: .83rem; color: rgba(255,255,255,.45); transition: color .15s; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07); max-width: 1280px; margin: 0 auto;
  padding: 1.25rem 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom a { font-size: .75rem; color: rgba(255,255,255,.28); transition: color .15s; }
.footer-bottom a:hover { color: var(--brand); }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
  padding: 1rem; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.modal-overlay.open { display: block; }
body.modal-locked { overflow: hidden; }
.modal {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 520px;
  margin: 3vh auto; box-shadow: var(--shadow-lg);
  animation: modal-in .18s ease;
}
.modal-lg { max-width: 680px; }
@keyframes modal-in { from { transform: scale(.97) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.modal-title  { font-size: .975rem; font-weight: 700; color: var(--gray-900); }
.modal-close  { background: none; border: none; cursor: pointer; color: var(--gray-400); font-size: 1rem; padding: .25rem; border-radius: var(--radius-sm); transition: color .15s, background .15s; }
.modal-close:hover { color: var(--gray-700); background: var(--gray-100); }
.modal-body   { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-200); display: flex; gap: .75rem; justify-content: flex-end; }

/* Contenido de descripción/requisitos en modal de ofertas */
.oferta-modal-content { font-size: .9rem; color: #4a5568; line-height: 1.75; }
.oferta-modal-content p  { margin: 0 0 .65rem; }
.oferta-modal-content p:last-child { margin-bottom: 0; }
.oferta-modal-content h2, .oferta-modal-content h3 { font-size: 1rem; font-weight: 700; color: #1a202c; margin: 1.25rem 0 .4rem; }
.oferta-modal-content h4, .oferta-modal-content h5 { font-size: .9rem; font-weight: 700; color: #1a202c; margin: 1rem 0 .35rem; }
.oferta-modal-content h2:first-child, .oferta-modal-content h3:first-child, .oferta-modal-content h4:first-child { margin-top: 0; }
.oferta-modal-content hr { border: none; border-top: 1px solid var(--gray-200); margin: .875rem 0; }
.oferta-modal-content strong, .oferta-modal-content b { font-weight: 700; color: #2d3748; }
.oferta-modal-content ul, .oferta-modal-content ol { padding-left: 1.25rem; margin: 0 0 .65rem; }
.oferta-modal-content li { margin-bottom: .25rem; }
.oferta-modal-content figure { margin: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   AUTH PAGES
═══════════════════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--gray-50); padding: 2rem;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: #fff; border-radius: var(--radius-lg); padding: 2.5rem;
  box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200);
}
.auth-logo     { text-align: center; margin-bottom: 2rem; }
.auth-logo img { height: 44px; margin: 0 auto; }
.auth-title    { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); text-align: center; margin-bottom: .4rem; }
.auth-subtitle { color: var(--gray-500); font-size: .875rem; text-align: center; margin-bottom: 1.75rem; }
.auth-footer   { text-align: center; margin-top: 1.5rem; font-size: .875rem; color: var(--gray-500); }
.auth-footer a { color: var(--brand); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════════
   APP LAYOUT  (dashboard / admin)
═══════════════════════════════════════════════════════════════════════════ */
.app-layout { display: flex; min-height: 100vh; background: var(--gray-50); }

/* ── SIDEBAR ── */
.sidebar {
  width: 248px; min-height: 100vh; background: #111a07;
  display: flex; flex-direction: column; flex-shrink: 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-logo {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.25rem 1.1rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.06);
}
.sidebar-logo img { flex-shrink: 0; }
.sidebar-logo-text { font-size: .9rem; font-weight: 800; color: var(--brand); line-height: 1.2; }
.sidebar-logo-sub  { font-size: .65rem; color: rgba(255,255,255,.3); margin-top: .1rem; }

.sidebar-nav { flex: 1; padding: .875rem .75rem; }
.sidebar-section-title {
  font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.22); padding: .875rem .5rem .35rem;
}
.sidebar-link {
  display: flex; align-items: center; gap: .7rem; width: 100%;
  padding: .55rem .75rem; border-radius: var(--radius-sm); border: none;
  background: none; font-size: .845rem; font-weight: 500;
  color: rgba(255,255,255,.5); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s; text-align: left; margin-bottom: 1px;
}
.sidebar-link:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); }
.sidebar-link.active { background: rgba(118,186,0,.12); color: var(--brand); font-weight: 600; }

.sidebar-icon { width: 18px; text-align: center; flex-shrink: 0; font-size: .875rem; }

/* ── BADGE (sidebar + topbar) — perfectly centered ── */
.sidebar-badge {
  margin-left: auto; min-width: 20px; height: 20px;
  background: var(--brand); color: #fff;
  font-size: .65rem; font-weight: 700; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px; line-height: 1; flex-shrink: 0;
}
.sidebar-badge.badge-green { background: var(--brand); }

.sidebar-user {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.1rem; border-top: 1px solid rgba(255,255,255,.06);
}
.sidebar-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: #fff; flex-shrink: 0; line-height: 1;
}
.sidebar-user-name { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.85); }
.sidebar-user-role { font-size: .68rem; color: rgba(255,255,255,.3); margin-top: .1rem; }

/* ── TOPBAR ── */
.main-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  background: #fff; border-bottom: 1px solid var(--gray-200);
  padding: .875rem 1.75rem; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.topbar-title   { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); }
.topbar-actions { display: flex; align-items: center; gap: .75rem; }
.page-content   { padding: 1.75rem; flex: 1; }

/* ── NOTIFICATION BUTTON + DOT ── */
.notif-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--gray-200); background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: var(--gray-500); cursor: pointer; position: relative;
  transition: border-color .15s, color .15s;
}
.notif-btn:hover { border-color: var(--brand); color: var(--brand); }
.notif-dot {
  width: 8px; height: 8px; background: #ef4444; border-radius: 50%;
  position: absolute; top: 1px; right: 1px; border: 2px solid #fff;
  display: none;
}

/* ── NOTIFICATION PANEL ── */
.notif-panel {
  display: none; position: absolute; top: calc(100% + .5rem); right: 0;
  width: 320px; background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 300;
}
.notif-panel.open { display: block; }
.notif-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .875rem 1rem; border-bottom: 1px solid var(--gray-100);
}
.notif-panel-title { font-size: .875rem; font-weight: 700; }
.notif-item {
  display: flex; gap: .75rem; padding: .875rem 1rem; border-bottom: 1px solid var(--gray-100);
  cursor: pointer; transition: background .15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--gray-50); }
.notif-item.unread { background: var(--brand-lt); }
.notif-item.unread:hover { background: #e8f5cc; }
.notif-title { font-size: .82rem; font-weight: 600; color: var(--gray-900); margin-bottom: .15rem; }
.notif-msg   { font-size: .77rem; color: var(--gray-500); line-height: 1.45; }
.notif-time  { font-size: .7rem; color: var(--gray-400); margin-top: .3rem; }

/* ── CARDS ── */
.card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); }
.card-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.card-title  { font-size: .875rem; font-weight: 700; color: var(--gray-900); }

/* ── STAT CARDS ── */
.stats-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card   { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.25rem; display: flex; align-items: center; gap: 1rem; }
.stat-card-icon {
  width: 42px; height: 42px; border-radius: var(--radius); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.stat-card-icon.green  { background: var(--brand-lt); color: var(--brand); }
.stat-card-icon.blue   { background: var(--blue-lt);  color: var(--blue); }
.stat-card-icon.orange { background: var(--amber-lt); color: var(--amber); }
.stat-card-icon.red    { background: var(--red-lt);   color: var(--red); }
.stat-card-value { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); line-height: 1; }
.stat-card-label { font-size: .74rem; color: var(--gray-500); margin-top: .25rem; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .2rem .6rem; border-radius: 20px; font-size: .72rem; font-weight: 700; line-height: 1;
}
.badge-green { background: var(--green-lt); color: var(--green-dk); }
.badge-blue  { background: var(--blue-lt);  color: var(--blue); }
.badge-gray  { background: var(--gray-100); color: var(--gray-500); }
.badge-amber { background: var(--amber-lt); color: var(--amber); }
.badge-red   { background: var(--red-lt);   color: var(--red); }

/* ── COLOR UTILS ── */
.green  { color: var(--green-dk); }
.blue   { color: var(--blue); }
.orange { color: var(--amber); }
.red    { color: var(--red); }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
thead th {
  background: var(--gray-50); padding: .7rem 1rem;
  text-align: left; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--gray-400); border-bottom: 1px solid var(--gray-200); white-space: nowrap;
}
tbody td { padding: .875rem 1rem; border-bottom: 1px solid var(--gray-100); color: var(--gray-900); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--gray-50); }

/* ── DOCUMENT ITEM ── */
.doc-item {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem; border: 1px solid var(--gray-200); border-radius: var(--radius);
  background: #fff; transition: border-color .15s; margin-bottom: .65rem;
}
.doc-item:last-child { margin-bottom: 0; }
.doc-item:hover { border-color: var(--brand); }
.doc-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--brand-lt); display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: .9rem; flex-shrink: 0; }
.doc-name { font-size: .875rem; font-weight: 600; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta { font-size: .75rem; color: var(--gray-500); margin-top: .15rem; }

/* ── UPLOAD ZONE ── */
.upload-zone {
  border: 2px dashed var(--gray-200); border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
  background: var(--gray-50);
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--brand); background: var(--brand-lt); }
.upload-zone-icon  { font-size: 2rem; color: var(--brand); margin-bottom: .875rem; }
.upload-zone-title { font-size: .875rem; font-weight: 700; color: var(--gray-900); margin-bottom: .3rem; }
.upload-zone-sub   { font-size: .78rem; color: var(--gray-400); }

/* ── TOAST ── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: .6rem; }
.toast {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: .875rem 1.1rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: flex-start; gap: .75rem; min-width: 260px; max-width: 360px;
  animation: toast-in .25s ease;
}
@keyframes toast-in { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.success { border-left: 3px solid var(--brand); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--blue); }
.toast.warning { border-left: 3px solid var(--amber); }
.toast-icon  { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.toast-body  { flex: 1; min-width: 0; }
.toast-title { font-size: .85rem; font-weight: 700; color: var(--gray-900); }
.toast-msg   { font-size: .78rem; color: var(--gray-500); margin-top: .15rem; line-height: 1.45; }

/* ── SIDEBAR RESPONSIVE ── */
@media (max-width: 900px) {
  .sidebar {
    position: fixed; left: -248px; top: 0; z-index: 400; height: 100%; transition: left .25s;
  }
  .sidebar.open { left: 0; }
  #sidebar-toggle { display: block !important; }
  .page-content { padding: 1.1rem; }
}

/* ── MISC PAGE HELPERS ── */
.page-heading { margin-bottom: 1.5rem; }
.page-heading h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: .25rem; }
.page-heading p  { font-size: .875rem; color: var(--gray-500); }

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIALS (landing)
═══════════════════════════════════════════════════════════════════════════ */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.25rem;
}
.testimonial-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 1.75rem; transition: box-shadow .25s, transform .25s, border-color .25s;
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--brand-mid); }
.testimonial-stars  { color: #f59e0b; font-size: 1rem; margin-bottom: .875rem; letter-spacing: .1em; }
.testimonial-text   { font-size: .875rem; color: var(--gray-500); line-height: 1.8; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .875rem; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand-lt);
  color: var(--brand); display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800; flex-shrink: 0; line-height: 1;
}
.testimonial-name { font-size: .875rem; font-weight: 700; color: var(--gray-900); }
.testimonial-role { font-size: .74rem; color: var(--gray-400); margin-top: .1rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════════════════════ */

/* ── Keyframes ── */
@keyframes fadeUp    { from { opacity:0; transform:translateY(32px); } to { opacity:1; transform:none; } }
@keyframes fadeLeft  { from { opacity:0; transform:translateX(-32px); } to { opacity:1; transform:none; } }
@keyframes fadeRight { from { opacity:0; transform:translateX(32px);  } to { opacity:1; transform:none; } }
@keyframes scaleIn   { from { opacity:0; transform:scale(.92); } to { opacity:1; transform:none; } }
@keyframes floatY    { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes particleRise {
  0%   { opacity:.6; transform:translateY(0) scale(1); }
  100% { opacity:0;  transform:translateY(-100px) scale(.4); }
}
@keyframes shimmer   { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
@keyframes heroIn    { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:none} }
@keyframes badgePop  { 0%{transform:scale(.8);opacity:0} 70%{transform:scale(1.05)} 100%{transform:scale(1);opacity:1} }

/* ── Scroll-reveal base ── */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
}
.reveal.is-visible       { animation: fadeUp    .65s cubic-bezier(.16,1,.3,1) forwards; }
.reveal-left.is-visible  { animation: fadeLeft  .65s cubic-bezier(.16,1,.3,1) forwards; }
.reveal-right.is-visible { animation: fadeRight .65s cubic-bezier(.16,1,.3,1) forwards; }
.reveal-scale.is-visible { animation: scaleIn   .5s  cubic-bezier(.16,1,.3,1) forwards; }

/* ── Stagger delays ── */
.d1 { animation-delay:.07s !important; }
.d2 { animation-delay:.14s !important; }
.d3 { animation-delay:.21s !important; }
.d4 { animation-delay:.28s !important; }
.d5 { animation-delay:.35s !important; }
.d6 { animation-delay:.42s !important; }
.d7 { animation-delay:.49s !important; }
.d8 { animation-delay:.56s !important; }

/* ── Hero entrance ── */
.hero-content > * { animation: heroIn .8s cubic-bezier(.16,1,.3,1) both; }
.hero-content > *:nth-child(1) { animation-delay:.1s; }
.hero-content > *:nth-child(2) { animation-delay:.2s; }
.hero-content > *:nth-child(3) { animation-delay:.3s; }
.hero-content > *:nth-child(4) { animation-delay:.4s; }
.hero-content > *:nth-child(5) { animation-delay:.5s; }

.hero-badge   { animation: badgePop .6s cubic-bezier(.16,1,.3,1) .05s both; }
.hero-visual  { animation: fadeRight .9s cubic-bezier(.16,1,.3,1) .35s both; }

/* ── Floating cards ── */
.hero-floating-1 { animation: floatY 5s ease-in-out infinite; }
.hero-floating-2 { animation: floatY 5s ease-in-out 1.8s infinite; }

/* ── Particles ── */
.hero-particle {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(118,186,0,.25);
  animation: particleRise linear infinite;
}

/* ── Stats bar counter ── */
.stat-number, .hero-stat-num {
  transition: transform .2s;
}
.stat-bump { animation: badgePop .35s ease; }

/* ── Process steps — animated connector ── */
.process-steps {
  position: relative;
  counter-reset: step;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 32px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-mid) 20%, var(--brand-mid) 80%, transparent);
  z-index: 0;
}
.process-step { position: relative; z-index: 1; }

.step-circle {
  position: relative; z-index: 1;
  transition: background .4s, color .4s, box-shadow .4s, transform .3s;
}
.step-circle:hover {
  background: var(--brand); color: #fff;
  box-shadow: 0 0 0 6px rgba(118,186,0,.15);
  transform: scale(1.1);
}

/* Fix step-title / step-desc tokens */
.step-title { color: var(--gray-900); }
.step-desc  { color: var(--gray-500); }

/* ── Section headers — reveal on scroll ── */
.section-header { opacity: 0; }
.section-header.is-visible { animation: fadeUp .7s cubic-bezier(.16,1,.3,1) forwards; }

/* ── Service cards — hover lift ── */
.service-card {
  transition: border-color .2s, box-shadow .25s, transform .25s;
}
.service-card:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 28px rgba(118,186,0,.12);
  transform: translateY(-5px);
}
.service-icon { transition: background .3s, transform .3s; }
.service-card:hover .service-icon {
  background: var(--brand); color: #fff; transform: scale(1.1) rotate(-5deg);
}

/* ── Offer cards ── */
.oferta-card:hover {
  border-color: var(--brand); box-shadow: 0 10px 32px rgba(118,186,0,.12); transform: translateY(-4px);
}

/* ── Stats bar items ── */
.stats-grid > div { opacity: 0; }
.stats-grid > div.is-visible { animation: fadeUp .6s cubic-bezier(.16,1,.3,1) forwards; }

/* ── CTA section ── */
.cta-icon { animation: floatY 3s ease-in-out infinite; }

/* ═══════════════════════════════════════════════════════════════════════════
   TEAM SECTION
═══════════════════════════════════════════════════════════════════════════ */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem;
}
.team-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: var(--brand-mid); }
.team-photo {
  background: var(--brand-lt); position: relative; overflow: hidden; min-height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.team-photo img { width: 100%; height: auto; display: block; }
.team-card.team-extra { display: none; }
.team-load-more { display: flex; justify-content: center; margin-top: 2.5rem; }
.team-initials {
  display: flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 1.75rem; font-weight: 900;
  position: absolute; inset: 0; margin: auto;
}
.team-photo img + .team-initials { display: none; }
.team-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.team-name  { font-size: .975rem; font-weight: 800; color: var(--gray-900); margin-bottom: .2rem; }
.team-role  { font-size: .8rem; font-weight: 600; color: var(--brand); margin-bottom: .5rem; }
.team-degree { font-size: .75rem; color: var(--gray-400); margin-bottom: .75rem; display: flex; align-items: center; gap: .35rem; }
.team-bio   { font-size: .82rem; color: var(--gray-500); line-height: 1.65; flex: 1; margin-bottom: .875rem; }
.team-tags  { display: flex; flex-wrap: wrap; gap: .35rem; }
.team-tags span {
  font-size: .68rem; font-weight: 700; padding: .2rem .55rem; border-radius: 20px;
  background: var(--brand-lt); color: var(--brand); text-transform: uppercase; letter-spacing: .03em;
}

/* ── Secciones con grid en línea (móvil) ── */
@media (max-width: 768px) {
  .intranet-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .intranet-section { padding: 3rem 1.25rem !important; }
}
@media (max-width: 480px) {
  .about-stats-grid { grid-template-columns: 1fr !important; }
  .intranet-features-grid { grid-template-columns: 1fr !important; }
}

/* ── Reduce motion ── */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale,
  .section-header, .stats-grid > div, .hero-content > *,
  .hero-badge, .hero-visual { animation: none !important; opacity: 1 !important; }
  .hero-floating-1, .hero-floating-2 { animation: none; }
  .hero-particle { display: none; }
  .service-card:hover, .oferta-card:hover { transform: none; }
  .step-circle:hover { transform: none; }
}
