/* ============================================================
   CloudTech360 - Estilos Principales
   ============================================================ */

:root {
  --primary:       #0f2d5e;
  --primary-light: #1a4a8a;
  --accent:        #00b4d8;
  --accent-dark:   #0096c7;
  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --purple:        #7c3aed;
  --bg:            #f0f4f8;
  --surface:       #ffffff;
  --surface-2:     #f8fafc;
  --border:        #e2e8f0;
  --text:          #1a202c;
  --text-muted:    #64748b;
  --text-light:    #94a3b8;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.07);
  --shadow-lg:     0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.08);
  --radius:        12px;
  --radius-lg:     20px;
  --transition:    0.25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

/* ── Navigation ───────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 45, 94, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #48cae4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}

.navbar-nav a {
  color: rgba(255,255,255,.78);
  padding: .45rem .9rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.navbar-nav a.active {
  background: rgba(0, 180, 216, .22);
  color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f2d5e 0%, #1a4a8a 40%, #0096c7 100%);
}

.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='%23ffffff' fill-opacity='0.04'%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");
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #e0f7ff;
  padding: .4rem 1.1rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
  backdrop-filter: blur(8px);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero h1 span { color: var(--accent); }

.hero-subtitle {
  color: rgba(255,255,255,.78);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 180, 216, .35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.8);
  color: #fff;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
  color: rgba(255,255,255,.9);
}

.hero-stat .stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-stat .stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  margin-top: .3rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-sm { padding: 3rem 2rem; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  background: rgba(0, 180, 216, .1);
  color: var(--accent-dark);
  padding: .3rem .9rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .9rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: .9rem;
  color: var(--primary);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

/* ── Unit Cards (Home) ────────────────────────────────────── */
.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

.unit-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.unit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.unit-card-header {
  padding: 2rem 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.unit-card-header::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .07;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='1'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3C/g%3E%3C/svg%3E") center/cover;
}

.unit-card-header.u1 { background: linear-gradient(135deg, #1e3a5f, #2e6da4); }
.unit-card-header.u2 { background: linear-gradient(135deg, #0d5a7a, #00b4d8); }
.unit-card-header.u3 { background: linear-gradient(135deg, #4a1060, #7c3aed); }

.unit-number {
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .5rem;
}

.unit-card-header h3 {
  color: #fff;
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
}

.unit-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}

.unit-card-body {
  padding: 1.75rem 2rem;
  flex: 1;
}

.unit-card-body p {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.topic-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.topic-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  color: var(--text-muted);
}

.topic-list li::before {
  content: '▸';
  color: var(--accent);
  font-size: .75rem;
  flex-shrink: 0;
}

.unit-card-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
}

.unit-card-footer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: .9rem;
  color: var(--primary-light);
  padding: .6rem .9rem;
  border-radius: 8px;
  transition: all var(--transition);
}

.unit-card-footer a:hover {
  background: rgba(0, 180, 216, .08);
  color: var(--accent-dark);
}

/* ── Feature Strips ───────────────────────────────────────── */
.features-strip {
  background: linear-gradient(135deg, var(--primary) 0%, #1a4a8a 100%);
  padding: 4rem 0;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  color: #fff;
}

.feature-item .fi-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1rem;
  border: 1px solid rgba(255,255,255,.15);
}

.feature-item h4 {
  color: #fff;
  margin-bottom: .45rem;
  font-size: 1rem;
}

.feature-item p {
  color: rgba(255,255,255,.65);
  font-size: .87rem;
}

/* ── Page Hero (unit pages) ───────────────────────────────── */
.page-hero {
  padding: 4rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero.u1 { background: linear-gradient(135deg, #1e3a5f 0%, #2e6da4 100%); }
.page-hero.u2 { background: linear-gradient(135deg, #0d5a7a 0%, #00b4d8 100%); }
.page-hero.u3 { background: linear-gradient(135deg, #4a1060 0%, #7c3aed 100%); }

.page-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='%23ffffff' fill-opacity='0.04'%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");
}

.page-hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero .unit-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  padding: .35rem 1rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
}

/* ── Content Layout ───────────────────────────────────────── */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-nav {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.sidebar-nav-title {
  padding: 1rem 1.25rem;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-light);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.25rem;
  font-size: .87rem;
  color: var(--text-muted);
  border-left: 3px solid transparent;
  transition: all var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(0, 180, 216, .06);
  color: var(--accent-dark);
  border-left-color: var(--accent);
}

/* ── Cards / Concepts ─────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 2rem;
}

.card-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .9rem;
}

.card-header .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.card-icon.blue   { background: rgba(0, 180, 216, .12); }
.card-icon.green  { background: rgba(16, 185, 129, .12); }
.card-icon.amber  { background: rgba(245, 158, 11, .12); }
.card-icon.purple { background: rgba(124, 58, 237, .12); }
.card-icon.red    { background: rgba(239, 68, 68, .12); }

.card-header h3 {
  font-size: 1.15rem;
  color: var(--primary);
}

.card-body {
  padding: 1.75rem 2rem;
}

.card-body p { color: var(--text-muted); margin-bottom: 1rem; }
.card-body p:last-child { margin-bottom: 0; }

/* ── Formula Box ──────────────────────────────────────────── */
.formula-box {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 1.5rem 0;
  text-align: center;
}

.formula-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-dark);
  margin-bottom: .75rem;
}

.formula {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .75rem;
}

.formula-note {
  font-size: .85rem;
  color: var(--text-muted);
}

/* ── Tables ───────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: .9rem;
}

thead {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

thead th {
  padding: 1rem 1.25rem;
  color: #fff;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(0, 180, 216, .04); }

tbody td {
  padding: 1rem 1.25rem;
  color: var(--text-muted);
  vertical-align: top;
}

tbody td:first-child { font-weight: 600; color: var(--text); }

.badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
}
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-amber  { background: #fef3c7; color: #92400e; }
.badge-purple { background: #ede9fe; color: #4c1d95; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-teal   { background: #ccfbf1; color: #134e4a; }

/* ── Callout / Info boxes ─────────────────────────────────── */
.callout {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.callout-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }
.callout-content { flex: 1; }
.callout-content strong { display: block; font-size: .95rem; margin-bottom: .3rem; }
.callout-content p { font-size: .88rem; margin: 0; }

.callout.info    { background: #f0f9ff; border-left: 4px solid #38bdf8; }
.callout.success { background: #f0fdf4; border-left: 4px solid #4ade80; }
.callout.warning { background: #fffbeb; border-left: 4px solid #fbbf24; }
.callout.danger  { background: #fef2f2; border-left: 4px solid #f87171; }
.callout.purple  { background: #faf5ff; border-left: 4px solid #a78bfa; }

.callout.info    strong { color: #0369a1; }
.callout.success strong { color: #166534; }
.callout.warning strong { color: #92400e; }
.callout.danger  strong { color: #991b1b; }
.callout.purple  strong { color: #4c1d95; }

.callout.info    p { color: #0c4a6e; }
.callout.success p { color: #14532d; }
.callout.warning p { color: #78350f; }
.callout.danger  p { color: #7f1d1d; }
.callout.purple  p { color: #3b0764; }

/* ── Characteristics Grid ─────────────────────────────────── */
.chars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.char-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all var(--transition);
}

.char-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--accent);
}

.char-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}

.char-item h4 {
  font-size: .95rem;
  color: var(--primary);
  margin-bottom: .4rem;
}

.char-item p {
  font-size: .82rem;
  color: var(--text-muted);
}

/* ── Pill Tabs ────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  background: var(--surface);
  padding: .5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.tab-btn {
  padding: .55rem 1.2rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover:not(.active) {
  background: var(--surface-2);
  color: var(--text);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Progress / Step items ────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}

.step-content h4 { font-size: 1rem; margin-bottom: .3rem; }
.step-content p  { font-size: .88rem; color: var(--text-muted); }

/* ── Service Model Cards ──────────────────────────────────── */
.spi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.spi-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.spi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.spi-header {
  padding: 1.5rem;
  text-align: center;
  color: #fff;
}

.spi-header.saas { background: linear-gradient(135deg, #0d5a7a, #00b4d8); }
.spi-header.paas { background: linear-gradient(135deg, #1e3a5f, #2e6da4); }
.spi-header.iaas { background: linear-gradient(135deg, #4a1060, #7c3aed); }

.spi-acronym {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: .25rem;
}

.spi-full {
  font-size: .8rem;
  opacity: .8;
  font-weight: 500;
}

.spi-body {
  padding: 1.5rem;
}

.spi-body p {
  color: var(--text-muted);
  font-size: .88rem;
  margin-bottom: 1rem;
}

.spi-manages {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 1rem;
}

.spi-manages-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-light);
  margin-bottom: .6rem;
}

.spi-tag {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
  margin: .2rem .2rem .2rem 0;
}

.spi-tag.user     { background: #f1f5f9; color: #475569; }
.spi-tag.provider { background: #dbeafe; color: #1d4ed8; }

/* ── Deployment Models ────────────────────────────────────── */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.deploy-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--surface);
  transition: all var(--transition);
}

.deploy-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.deploy-icon { font-size: 2rem; margin-bottom: .75rem; }
.deploy-card h4 { font-size: 1rem; margin-bottom: .4rem; color: var(--primary); }
.deploy-card p  { font-size: .85rem; color: var(--text-muted); }

/* ── Shared Responsibility ────────────────────────────────── */
.responsibility-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.responsibility-table th {
  padding: .85rem 1.1rem;
  text-align: center;
  font-weight: 700;
}

.responsibility-table td {
  padding: .75rem 1.1rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.responsibility-table td:first-child { text-align: left; font-weight: 600; }

.resp-badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
}
.resp-customer { background: #fef3c7; color: #92400e; }
.resp-shared   { background: #dbeafe; color: #1d4ed8; }
.resp-provider { background: #d1fae5; color: #065f46; }

/* ── Ethics Principles ────────────────────────────────────── */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.principle-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.principle-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.principle-icon { font-size: 2.2rem; margin-bottom: .75rem; }
.principle-card h4 { font-size: .95rem; margin-bottom: .4rem; color: var(--primary); }
.principle-card p  { font-size: .83rem; color: var(--text-muted); }

/* ── Environmental Metrics ────────────────────────────────── */
.env-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.metric-value {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: .3rem;
  line-height: 1;
}

.metric-label {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

.metric-note {
  font-size: .78rem;
  color: var(--text-light);
}

/* ── Activity Box ─────────────────────────────────────────── */
.activity-box {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #86efac;
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 1.5rem 0;
}

.activity-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  color: #166534;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.activity-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.activity-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .88rem;
  color: #14532d;
}

.activity-list li::before {
  content: '✓';
  color: #16a34a;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05rem;
}

/* ── Key Terms ────────────────────────────────────────────── */
.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.term-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  border-left: 4px solid var(--accent);
}

.term-name {
  font-weight: 700;
  font-size: .92rem;
  color: var(--primary);
  margin-bottom: .3rem;
}

.term-def {
  font-size: .85rem;
  color: var(--text-muted);
}

/* ── Quote Block ──────────────────────────────────────────── */
.quote-block {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.quote-block::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 1.5rem;
  font-size: 10rem;
  opacity: .08;
  font-family: Georgia, serif;
  line-height: 1;
}

.quote-text {
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255,255,255,.92);
  position: relative;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.quote-source {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--primary);
  color: rgba(255,255,255,.7);
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1.5rem;
}

.footer-brand h4 { color: #fff; font-size: 1.1rem; margin-bottom: .6rem; }
.footer-brand p  { font-size: .87rem; max-width: 300px; line-height: 1.6; }

.footer-col h5 {
  color: rgba(255,255,255,.9);
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .9rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }

.footer-col ul li a {
  color: rgba(255,255,255,.55);
  font-size: .87rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .83rem;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .content-wrapper { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar-nav { display: flex; overflow-x: auto; border-radius: var(--radius); }
  .sidebar-nav-title { display: none; }
  .sidebar-nav a { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
  .sidebar-nav a:hover, .sidebar-nav a.active { border-bottom-color: var(--accent); border-left-color: transparent; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar-nav { display: none; position: fixed; top: 68px; left: 0; right: 0; background: var(--primary); flex-direction: column; gap: 0; padding: 1rem; border-top: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow-lg); }
  .navbar-nav.open { display: flex; }
  .hamburger { display: flex; }
  .hero-stats { gap: 1.5rem; }
  .units-grid { grid-template-columns: 1fr; }
  .spi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .section, .section-sm { padding-left: 1rem; padding-right: 1rem; }
  .card-body { padding: 1.25rem 1rem; }
  .card-header { padding: 1rem; }
}

/* ── Utility ──────────────────────────────────────────────── */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }

.highlight {
  background: linear-gradient(135deg, rgba(0,180,216,.1), rgba(0,180,216,.05));
  border: 1px solid rgba(0,180,216,.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1rem 0;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-up {
  opacity: 0;
  animation: fadeUp .6s ease forwards;
}

.animate-up:nth-child(1) { animation-delay: .1s; }
.animate-up:nth-child(2) { animation-delay: .2s; }
.animate-up:nth-child(3) { animation-delay: .3s; }
