/* ============================================================
   SISTEMA DE CONTRATACIÓN — ESTILOS GLOBALES
   Fuentes: Outfit (headings) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --primary:        #0077B6;
  --primary-light:  #00B4D8;
  --primary-dark:   #023E8A;
  --accent:         #F4A261;
  --accent-dark:    #E76F51;
  --success:        #2D9D78;
  --danger:         #E63946;
  --warning:        #F4A261;
  --info:           #00B4D8;

  --bg:             #F0F6FB;
  --bg-white:       #FFFFFF;
  --card-bg:        #FFFFFF;
  --border:         #DDE6EF;
  --border-focus:   #00B4D8;

  --text:           #1A2332;
  --text-muted:     #6B7A90;
  --text-light:     #A8B8CC;

  --shadow-sm:      0 2px 8px rgba(0,119,182,.08);
  --shadow-md:      0 6px 24px rgba(0,119,182,.13);
  --shadow-lg:      0 16px 48px rgba(0,119,182,.18);
  --shadow-card:    0 4px 20px rgba(26,35,50,.09);

  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      22px;
  --radius-xl:      32px;

  --transition:     .25s cubic-bezier(.4,0,.2,1);
  --transition-slow:.45s cubic-bezier(.4,0,.2,1);

  --font-head: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
p  { font-size: .97rem; color: var(--text-muted); }

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 820px; }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 32px;
  max-width: 1180px;
  margin: 0 auto;
}
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary-dark);
  letter-spacing: -.5px;
}
.navbar__brand span {
  color: var(--primary-light);
}
.navbar__logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.navbar__logo-icon svg { width: 22px; height: 22px; fill: #fff; }
.navbar__actions { display: flex; align-items: center; gap: 12px; }
.navbar__link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.navbar__link:hover { color: var(--primary); background: rgba(0,119,182,.07); }
.btn-nav {
  background: var(--primary);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn-nav:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(0,119,182,.3);
  transform: translateY(-1px);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #023E8A 0%, #0077B6 40%, #00B4D8 80%, #90E0EF 100%);
  z-index: 0;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/hero-pattern.svg') repeat center/300px;
  opacity: .05;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(2,62,138,.55) 0%, rgba(2,62,138,.35) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 760px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeInDown .6s ease both;
}
.hero__badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
.hero__title {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
  animation: fadeInUp .7s .1s ease both;
}
.hero__title em {
  font-style: normal;
  color: #90E0EF;
}
.hero__subtitle {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 40px;
  animation: fadeInUp .7s .2s ease both;
}
.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp .7s .3s ease both;
}
.btn-hero-primary {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 6px 24px rgba(244,162,97,.4);
}
.btn-hero-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(244,162,97,.5);
}
.btn-hero-secondary {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,.5);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,.28);
  border-color: #fff;
}
.hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  animation: fadeIn 1s .8s ease both;
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: scrollLine 1.8s infinite;
}

/* ── STATS BAR ──────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.stats-bar__inner {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
}
.stat-item__value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-item__label {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 4px;
}

/* ── SECTION ────────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}
.section--gray { background: var(--bg); }
.section--white { background: var(--bg-white); }
.section__head {
  text-align: center;
  margin-bottom: 56px;
}
.section__pretitle {
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary-light);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section__title { margin-bottom: 14px; }
.section__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ── STEPS ──────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.step-card__num {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 6px 20px rgba(0,119,182,.3);
}
.step-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-card__desc { font-size: .875rem; }

/* ── AREA CARDS GRID ────────────────────────────────────────── */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(0,119,182,.35);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 20px rgba(244,162,97,.35);
  transform: translateY(-1px);
}
.btn-lg { padding: 14px 36px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-sm { padding: 7px 16px; font-size: .8rem; }

/* ── BADGE ──────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: .04em;
}
.badge-info    { background: rgba(0,180,216,.15); color: #00869A; }
.badge-warning { background: rgba(244,162,97,.18); color: #B56B18; }
.badge-primary { background: rgba(0,119,182,.15); color: var(--primary-dark); }
.badge-success { background: rgba(45,157,120,.15); color: #1B7A5C; }
.badge-danger  { background: rgba(230,57,70,.12); color: #C02030; }
.badge-secondary { background: rgba(107,122,144,.12); color: var(--text-muted); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  padding: 40px 0;
  text-align: center;
}
.footer__brand {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer__info {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--text-light); }

/* ── TOAST NOTIFICATION ─────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 88px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  min-width: 280px; max-width: 380px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px 18px 14px 16px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideInRight .35s ease both;
}
.toast--success { border-left-color: var(--success); }
.toast--error   { border-left-color: var(--danger); }
.toast__icon    { font-size: 1.2rem; line-height: 1; margin-top: 2px; }
.toast__msg     { font-size: .875rem; font-weight: 500; color: var(--text); flex: 1; }
.toast__close   { background: none; border: none; cursor: pointer; color: var(--text-light); font-size: 1rem; padding: 0; margin-left: 4px; transition: color var(--transition); }
.toast__close:hover { color: var(--text); }

/* ── PAGE HEADER ────────────────────────────────────────────── */
.page-header {
  padding: 100px 0 48px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/hero-pattern.svg') repeat center/250px;
  opacity: .04;
}
.page-header__content { position: relative; z-index: 1; }
.page-header__icon {
  width: 72px; height: 72px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,.35);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.page-header__icon svg { width: 40px; height: 40px; fill: #fff; }
.page-header h1 { color: #fff; }
.page-header p  { color: rgba(255,255,255,.8); font-size: 1rem; margin-top: 10px; }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeIn       { from { opacity:0 } to { opacity:1 } }
@keyframes fadeInUp     { from { opacity:0; transform:translateY(24px) } to { opacity:1; transform:translateY(0) } }
@keyframes fadeInDown   { from { opacity:0; transform:translateY(-16px) } to { opacity:1; transform:translateY(0) } }
@keyframes slideInRight { from { opacity:0; transform:translateX(20px) } to { opacity:1; transform:translateX(0) } }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.85)} }
@keyframes scrollLine { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }
@keyframes spin { to { transform: rotate(360deg) } }

.fade-in-up { animation: fadeInUp .6s ease both; }
.animate-on-scroll { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar__inner { padding: 0 18px; }
  .stats-bar__inner { gap: 30px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 100px 16px 60px; }
}
@media (max-width: 500px) {
  .steps { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: center; }
}
