/* ==========================================================
   Elevare Consulting — Landing Page
   Fine-tuning styles layered on top of Tailwind utilities
   ========================================================== */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #C5A059;
  color: #0B1826;
}

/* ---------- Navbar ---------- */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(11, 24, 38, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px -12px rgba(0, 0, 0, 0.5);
}

.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #C5A059;
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-link {
  display: block;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
  color: #C5A059;
  padding-left: 0.5rem;
}

/* Logo blends into any dark background by dropping the navy square backdrop */
.logo-blend {
  mix-blend-mode: screen;
}

/* ---------- Hero background ---------- */
.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 100%);
}

#networkCanvas {
  z-index: 0;
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Squad cards (Suite Operativa) ---------- */
.squad-card {
  background: #F8F9FB;
  border: 1px solid #E7EAEF;
  border-radius: 1.25rem;
  padding: 2rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.squad-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(11, 24, 38, 0.25);
  border-color: #D4B579;
}

.squad-icon {
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: rgba(197, 160, 89, 0.12);
  color: #A87F3B;
  margin-bottom: 1.5rem;
}

.squad-impact {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #A87F3B;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.squad-impact span {
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: #0F2438;
}

.squad-card.\!bg-navy-900 .squad-impact span {
  color: #ffffff;
}

/* ---------- Suite mind map ---------- */
.mindmap-wrap {
  background: radial-gradient(ellipse 70% 90% at 50% 50%, rgba(197, 160, 89, 0.05), transparent 70%);
  border: 1px solid #E7EAEF;
  border-radius: 1.5rem;
  padding: 1.5rem 1rem 0.5rem;
}

.mindmap-svg {
  width: 100%;
  height: auto;
  display: block;
}

.mindmap-link {
  stroke-opacity: 0.35;
  stroke-dasharray: 4 5;
  animation: mindmap-flow 3.5s linear infinite;
}

@keyframes mindmap-flow {
  to { stroke-dashoffset: -90; }
}

.mindmap-hub-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 15px;
  fill: #F0E4C8;
  letter-spacing: 0.04em;
}

.mindmap-node {
  cursor: pointer;
  outline: none;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mindmap-node-circle {
  fill: #F8F9FB;
  stroke: #D4B579;
  stroke-width: 1.5;
  transition: fill 0.3s ease, stroke 0.3s ease;
}

.mindmap-node-icon {
  color: #A87F3B;
  pointer-events: none;
  transition: color 0.3s ease;
}

.mindmap-node-label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  fill: #0F2438;
  pointer-events: none;
}

.mindmap-node:hover,
.mindmap-node:focus-visible {
  transform: scale(1.08);
}

.mindmap-node:hover .mindmap-node-circle,
.mindmap-node:focus-visible .mindmap-node-circle {
  fill: #0F2438;
  stroke: #E4CE9E;
}

.mindmap-node:hover .mindmap-node-icon,
.mindmap-node:focus-visible .mindmap-node-icon {
  color: #E4CE9E;
}

/* ---------- Squad card click affordance ---------- */
.squad-card-clickable {
  cursor: pointer;
}

.squad-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #A87F3B;
  margin-top: 1rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.squad-card-clickable:hover .squad-more,
.squad-card-clickable:focus-visible .squad-more {
  opacity: 1;
  transform: translateX(0);
}

.squad-card.\!bg-navy-900 .squad-more {
  color: #D4B579;
}

/* ---------- Architecture pillars ---------- */
.pillar-card {
  background: #ffffff;
  border: 1px solid #E7EAEF;
  border-radius: 1.25rem;
  padding: 2.25rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(11, 24, 38, 0.18);
}

.pillar-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, #0F2438, #153350);
  color: #D4B579;
  margin-bottom: 1.5rem;
}

/* ---------- Flow steps (Modo Sombra) ---------- */
.flow-step {
  position: relative;
  padding-top: 0.5rem;
}

.flow-number {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(212, 181, 121, 0.35);
  line-height: 1;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.6rem;
    right: -1.5rem;
    width: 1.5rem;
    height: 1px;
    background: repeating-linear-gradient(90deg, rgba(212, 181, 121, 0.5) 0 6px, transparent 6px 12px);
  }
}

/* ---------- CORFO benefits ---------- */
.corfo-benefit {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.75rem;
  color: #D4B579;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.corfo-benefit:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 181, 121, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- CORFO timeline ---------- */
.timeline-step {
  position: relative;
  text-align: left;
}

.timeline-dot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #C5A059, #E4CE9E);
  color: #0B1826;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .timeline-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.25rem;
    left: 2.75rem;
    width: calc(100% - 1.75rem);
    height: 1px;
    background: repeating-linear-gradient(90deg, rgba(212, 181, 121, 0.4) 0 6px, transparent 6px 12px);
  }
}

/* ---------- Contact ---------- */
.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: rgba(197, 160, 89, 0.15);
  color: #D4B579;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #153350;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  border: 1px solid #DDE2E9;
  background: #F8F9FB;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.925rem;
  color: #0B1826;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-input::placeholder {
  color: #9AA4B2;
}

.form-input:focus {
  outline: none;
  border-color: #C5A059;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.15);
}

/* ---------- Footer ---------- */
.footer-link {
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #D4B579;
}

/* ---------- Agent detail modal ---------- */
.agent-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 1rem;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.agent-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.agent-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 15, 26, 0.75);
  backdrop-filter: blur(6px);
}

.agent-modal-panel {
  position: relative;
  width: 100%;
  max-width: 700px;
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2.25rem 2rem 2.5rem;
  box-shadow: 0 40px 80px -20px rgba(7, 15, 26, 0.5);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.agent-modal.is-open .agent-modal-panel {
  transform: translateY(0) scale(1);
}

.agent-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #F1F3F6;
  color: #0F2438;
  transition: background 0.2s ease, transform 0.2s ease;
}

.agent-modal-close:hover {
  background: #E7EAEF;
  transform: rotate(90deg);
}

.agent-modal-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}

.agent-modal-icon {
  flex-shrink: 0;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0F2438, #153350);
  color: #D4B579;
}

.agent-modal-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #A87F3B;
  margin-bottom: 0.25rem;
}

.agent-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0B1826;
  line-height: 1.2;
}

.agent-modal-summary {
  color: rgba(15, 36, 56, 0.7);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.agent-modal-section {
  margin-bottom: 1.75rem;
}

.agent-modal-heading {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #153350;
  margin-bottom: 1rem;
}

.agent-modal-flow {
  display: grid;
  gap: 0.75rem;
}

.agent-modal-flow-step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: #F8F9FB;
  border: 1px solid #E7EAEF;
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
}

.agent-modal-flow-number {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #C5A059, #E4CE9E);
  color: #0B1826;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-modal-flow-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #0F2438;
}

.agent-modal-mindmap {
  width: 100%;
  height: auto;
  display: block;
  background: #0B1826;
  border-radius: 1rem;
}

.agent-modal-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.agent-modal-kpi {
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0F2438;
  line-height: 1.4;
}

.agent-modal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: #C5A059;
  color: #0B1826;
  font-weight: 700;
  padding: 1rem;
  border-radius: 9999px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.agent-modal-cta:hover {
  background: #D4B579;
  transform: translateY(-2px);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .agent-modal-panel {
    padding: 1.75rem 1.25rem 2rem;
    border-radius: 1.25rem;
  }
}

/* ---------- Scrollbar (webkit) ---------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0B1826;
}

::-webkit-scrollbar-thumb {
  background: #26567F;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C5A059;
}

/* ---------- Brochure slide deck carousel ---------- */
.brochure-section {
  background: radial-gradient(circle at 50% 50%, #0c1c2e, #070e17);
  color: #ffffff;
  padding: 5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brochure-slider-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 1.25rem;
  border: 1px solid rgba(197, 160, 89, 0.25);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 40px rgba(197, 160, 89, 0.05);
  overflow: hidden;
}
.brochure-slider-container {
  overflow: hidden;
  width: 100%;
}
.brochure-slides {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.brochure-slide {
  flex-shrink: 0;
  width: 100%;
  padding: 3.5rem 5rem;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #0B1826;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  position: relative;
}
.brochure-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: #C5A059;
}
.brochure-control-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(11, 24, 38, 0.7);
  border: 1px solid rgba(197, 160, 89, 0.3);
  color: #D4B579;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}
.brochure-control-btn:hover {
  background: #C5A059;
  color: #0B1826;
  border-color: #C5A059;
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
}
.brochure-control-btn.prev {
  left: 1rem;
}
.brochure-control-btn.next {
  right: 1rem;
}
.brochure-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.brochure-indicator {
  width: 1.75rem;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
.brochure-indicator.active {
  background: #C5A059;
  width: 2.5rem;
  box-shadow: 0 0 8px rgba(197, 160, 89, 0.5);
}
/* Slide-specific elements */
.brochure-slide-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1.5rem;
}
.brochure-slide-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}
@media (max-width: 768px) {
  .brochure-slide {
    padding: 2.5rem 1.5rem;
    min-height: 480px;
  }
  .brochure-slide::before {
    width: 6px;
  }
  .brochure-slide-title {
    font-size: 1.75rem;
  }
  .brochure-slide-desc {
    font-size: 1rem;
  }
  .brochure-control-btn {
    display: none;
  }
}
