/* ==========================================================================
   BACKGROUND UNIVERSE — Titanium & High-Reliability Enterprise Command Center
   Dedicated Stylesheet for mrclo.dev / background /
   Scientifically Calibrated for Optical Ergonomics & High WCAG Contrast
   ========================================================================== */

:root {
  --bg-carbon-base: #06182c;
  --bg-carbon-card: linear-gradient(165deg, rgba(16, 44, 80, 0.58) 0%, rgba(8, 26, 50, 0.68) 100%);
  --bg-carbon-border: rgba(56, 189, 248, 0.20);
  --bg-carbon-border-hover: rgba(56, 189, 248, 0.65);
  --bg-steel-text: #f1f5f9;
  --bg-steel-muted: #94a3b8;

  /* Official Company Palette: Rootly */
  --rootly-primary: #7748f6;
  --rootly-accent: #9d74ff;
  --rootly-light: #e9e2ff;
  --rootly-dark-bg: #130f24;

  /* Official Company Palette: PagerDuty */
  --pd-primary: #06ac38;
  --pd-accent: #00d084;
  --pd-light: #a7f3d0;
  --pd-dark-bg: #051a13;

  /* Official Company Palette: EVO Payments / Pago Fácil */
  --evo-primary: #0140be;
  --evo-accent: #00aeef;
  --evo-light: #bae6fd;
  --evo-dark-bg: #07152b;

  /* Official Company Palette: ICBC */
  --icbc-navy: #00247d;
  --icbc-red: #cf142b;
  --icbc-accent: #f87171;
  --icbc-light: #fecaca;
  --icbc-dark-bg: #050d24;
}

body.background-universe {
  background-color: #06182c;
  background-image: linear-gradient(135deg, #06182c 0%, #0d345a 50%, #154977 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--bg-steel-text);
  position: relative;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  max-width: 1080px;
  margin: auto;
  padding: 25px;
  line-height: 1.6;
}

body.background-universe .ambient-glow-mesh {
  display: none !important;
}

/* ==========================================================================
   NAVIGATION BAR & BREADCRUMB
   ========================================================================== */
.background-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 18px;
  margin-bottom: 40px;
  gap: 16px;
}

.background-brand-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(16, 44, 82, 0.85) 0%, rgba(20, 56, 100, 0.95) 100%);
  border: 1.5px solid rgba(17, 194, 103, 0.55);
  color: #ffffff !important;
  padding: 6px 16px 6px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 0.90rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(16, 44, 82, 0.4), 0 0 15px rgba(17, 194, 103, 0.20);
}

.background-brand-breadcrumb:hover {
  background: linear-gradient(135deg, rgba(16, 44, 82, 0.95) 0%, rgba(17, 194, 103, 0.25) 100%);
  border-color: #11c267;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(17, 194, 103, 0.35);
  color: #ffffff !important;
}

.background-brand-breadcrumb:hover .breadcrumb-back-icon {
  transform: translateX(-3px);
  background: #11c267;
  color: #030712;
}

.background-brand-breadcrumb .breadcrumb-back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #11c267;
  font-size: 0.85rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.background-brand-breadcrumb .breadcrumb-brand {
  color: #94a3b8;
  font-weight: 500;
}

.background-brand-breadcrumb .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
}

.background-brand-breadcrumb .breadcrumb-current {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.background-nav-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bg-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 20px;
}

.bg-status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 10px #3b82f6;
  animation: bgPulse 2s infinite;
}

@keyframes bgPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(59, 130, 246, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.background-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   PAGE HERO HEADER & BIO
   ========================================================================== */
.background-header {
  text-align: center;
  margin-bottom: 35px;
}

.background-header .profile {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.2);
  margin-bottom: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.background-header .profile:hover {
  transform: scale(1.04);
  border-color: #38bdf8;
}

.background-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 8px 0;
  color: #ffffff;
}

.background-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #38bdf8;
  margin: 0 0 16px 0;
  border: none;
  padding: 0;
}

.background-header p {
  line-height: 1.65;
}

/* ==========================================================================
   EXPERIENCE SECTION & 2-COLUMN GRID
   ========================================================================== */
.experience-intro {
  margin-bottom: 30px;
}

.experience-intro h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.experience-intro p {
  color: #94a3b8;
  font-size: 1.02rem;
  max-width: 820px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Base Experience Card */
.experience-card {
  position: relative;
  background: var(--bg-carbon-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-carbon-border);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.experience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-4px);
}

/* Card Header & Badge Row */
.company-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}

.company-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 6px;
}

.company-tenure {
  font-family: monospace;
  font-size: 0.75rem;
  color: #94a3b8;
}

.company-name {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.job-title {
  color: #f1f5f9;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.job-meta {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 16px;
}

/* Accordion Details */
.experience-details {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.experience-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  outline: none;
  transition: color 0.2s ease;
}

.experience-details summary::-webkit-details-marker {
  display: none;
}

.experience-details summary::after {
  content: "▾";
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.experience-details[open] summary::after {
  transform: rotate(180deg);
}

.details-content {
  color: #cbd5e1;
  font-size: 0.94rem;
  margin-top: 14px;
  line-height: 1.6;
}

.details-content ul {
  padding-left: 20px;
  margin: 10px 0 0;
}

.details-content li {
  margin-bottom: 8px;
}

/* Footer Technologies */
.experience-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 20px;
  padding-top: 16px;
}

.experience-footer span {
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   COMPANY SPECIFIC THEMES (OFFICIAL BRAND COLORS — DEEP SOLID MINERAL DENSITY)
   ========================================================================== */

/* 1. ROOTLY (rootly.com) — Obsidian Violet & Radiant Amethyst Aura */
.experience-card[data-company="rootly"] {
  background: linear-gradient(165deg, rgba(20, 38, 76, 0.58) 0%, rgba(10, 22, 48, 0.68) 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.30);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.32), 0 0 12px rgba(168, 85, 247, 0.10);
}
.experience-card[data-company="rootly"]::before {
  background: linear-gradient(90deg, #9333ea, #c084fc, #f472b6);
  height: 3px;
}
.experience-card[data-company="rootly"]:hover {
  border-color: rgba(216, 180, 254, 0.65);
  box-shadow: 0 14px 35px -10px rgba(0, 0, 0, 0.50), 0 0 22px rgba(168, 85, 247, 0.22);
}
.experience-card[data-company="rootly"] .company-name {
  color: #d8b4fe;
}
.experience-card[data-company="rootly"] .company-badge {
  background: rgba(168, 85, 247, 0.18);
  color: #f3e8ff;
  border: 1px solid rgba(192, 132, 252, 0.35);
}
.experience-card[data-company="rootly"] summary {
  color: #c084fc;
}
.experience-card[data-company="rootly"] summary:hover {
  color: #f3e8ff;
}
.experience-card[data-company="rootly"] .experience-footer span {
  background: rgba(168, 85, 247, 0.15);
  color: #f5d0fe;
  border: 1px solid rgba(192, 132, 252, 0.30);
}

/* 2. PAGERDUTY (pagerduty.com) — Deep Forest Jade & Electric Emerald Aura */
.experience-card[data-company="pagerduty"] {
  background: linear-gradient(165deg, rgba(14, 46, 75, 0.58) 0%, rgba(8, 28, 48, 0.68) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.30);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.32), 0 0 12px rgba(16, 185, 129, 0.10);
}
.experience-card[data-company="pagerduty"]::before {
  background: linear-gradient(90deg, #059669, #10b981, #34d399);
  height: 3px;
}
.experience-card[data-company="pagerduty"]:hover {
  border-color: rgba(110, 231, 183, 0.65);
  box-shadow: 0 14px 35px -10px rgba(0, 0, 0, 0.50), 0 0 22px rgba(16, 185, 129, 0.22);
}
.experience-card[data-company="pagerduty"] .company-name {
  color: #6ee7b7;
}
.experience-card[data-company="pagerduty"] .company-badge {
  background: rgba(16, 185, 129, 0.18);
  color: #d1fae5;
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.experience-card[data-company="pagerduty"] summary {
  color: #34d399;
}
.experience-card[data-company="pagerduty"] summary:hover {
  color: #d1fae5;
}
.experience-card[data-company="pagerduty"] .experience-footer span {
  background: rgba(16, 185, 129, 0.15);
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.30);
}

/* 3. EVO PAYMENTS (evopayments.com) — High-Velocity Cobalt & Ocean Cyan Aura */
.experience-card[data-company="evopayments"] {
  background: linear-gradient(165deg, rgba(16, 44, 82, 0.58) 0%, rgba(8, 26, 52, 0.68) 100%);
  border: 1.5px solid rgba(14, 165, 233, 0.30);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.32), 0 0 12px rgba(14, 165, 233, 0.10);
}
.experience-card[data-company="evopayments"]::before {
  background: linear-gradient(90deg, #0284c7, #38bdf8, #7dd3fc);
  height: 3px;
}
.experience-card[data-company="evopayments"]:hover {
  border-color: rgba(125, 211, 252, 0.65);
  box-shadow: 0 14px 35px -10px rgba(0, 0, 0, 0.50), 0 0 22px rgba(14, 165, 233, 0.22);
}
.experience-card[data-company="evopayments"] .company-name {
  color: #7dd3fc;
}
.experience-card[data-company="evopayments"] .company-badge {
  background: rgba(14, 165, 233, 0.18);
  color: #e0f2fe;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.experience-card[data-company="evopayments"] summary {
  color: #38bdf8;
}
.experience-card[data-company="evopayments"] summary:hover {
  color: #e0f2fe;
}
.experience-card[data-company="evopayments"] .experience-footer span {
  background: rgba(14, 165, 233, 0.15);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.30);
}

/* 4. INSTITUTO CHILENO BRITANICO DE CULTURA (ICBC) — Imperial Navy & Bold Carmine Aura */
.experience-card[data-company="icbc"] {
  background: linear-gradient(165deg, rgba(25, 36, 70, 0.58) 0%, rgba(14, 22, 45, 0.68) 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.30);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.32), 0 0 12px rgba(225, 29, 72, 0.10);
}
.experience-card[data-company="icbc"]::before {
  background: linear-gradient(90deg, #00247d 0%, #cf142b 60%, #ffffff 100%);
  height: 3px;
}
.experience-card[data-company="icbc"]:hover {
  border-color: rgba(252, 165, 165, 0.65);
  box-shadow: 0 14px 35px -10px rgba(0, 0, 0, 0.50), 0 0 22px rgba(225, 29, 72, 0.22);
}
.experience-card[data-company="icbc"] .company-name {
  color: #ffffff;
}
.experience-card[data-company="icbc"] .company-badge {
  background: rgba(207, 20, 43, 0.18);
  color: #fee2e2;
  border: 1px solid rgba(248, 113, 113, 0.35);
}
.experience-card[data-company="icbc"] summary {
  color: #f87171;
}
.experience-card[data-company="icbc"] summary:hover {
  color: #fee2e2;
}
.experience-card[data-company="icbc"] .experience-footer span {
  background: rgba(0, 36, 125, 0.20);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.30);
}

/* ==========================================================================
   LAPISLÁZULI & PYRITE GOLD FOR HIGHLIGHTS, SKILLS & MOBILITY CARD
   ========================================================================== */
body.background-universe #highlights .card {
  background: linear-gradient(165deg, rgba(16, 44, 80, 0.58) 0%, rgba(8, 26, 50, 0.68) 100%) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.22) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.32) !important;
}

body.background-universe #highlights .card:hover {
  border-color: rgba(56, 189, 248, 0.65) !important;
  box-shadow: 0 14px 35px -10px rgba(0, 0, 0, 0.50), 0 0 22px rgba(56, 189, 248, 0.20) !important;
}

body.background-universe #highlights .card h3 {
  color: #38bdf8;
}

body.background-universe .mobility-contact-card {
  background: linear-gradient(165deg, rgba(16, 44, 80, 0.58) 0%, rgba(8, 26, 50, 0.68) 100%) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.25) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.32) !important;
}

body.background-universe .skill {
  background: rgba(30, 44, 76, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #f1f5f9;
  font-weight: 500;
  transition: all 0.2s ease;
}

body.background-universe .skill:hover {
  border-color: rgba(245, 158, 11, 0.75);
  background: linear-gradient(165deg, rgba(35, 52, 92, 0.8) 0%, rgba(20, 32, 60, 0.9) 100%);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

/* ==========================================================================
   RESPONSIVE LAYOUT
   ========================================================================== */
@media (max-width: 860px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }
  .background-navbar {
    flex-wrap: wrap;
  }
  .background-nav-center {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
}
