:root {
  --bg: #050509;
  --bg-soft: #0b0b12;
  --bg-elevated: #10101a;
  --border-soft: #252536;
  --accent-gold: #d4af37;
  --accent-purple: #a855f7;
  --accent-cyan: #57b9ff;
  --text-main: #ffffff;
  --text-muted: rgba(255,255,255,0.92);
  --text-soft: rgba(255,255,255,0.88);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.6);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.25s ease-out;
  --max-width: 1180px;
  /* Contact-specific palette for calmer visuals */
  --contact-bg: #0b0f12; /* very deep desaturated charcoal */
  --contact-surface: #0f1316; /* slightly lighter card surface */
  --contact-border: rgba(255,255,255,0.04);
  --contact-muted: #9aa3a8; /* softer copy color */
  --contact-cta-start: #efdeae; /* soft gold */
  --contact-cta-end: #d6bde9; /* muted lavender */
  --contact-shadow: 0 12px 36px rgba(0,0,0,0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: radial-gradient(circle at 10% 0%, #111827 0, #050509 55%);
  color: var(--text-main);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

/* All headings use Orbitron for visual consistency */
h1, h2, h3, h4, h5, h6 {
  font-family: "Orbitron", system-ui;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
  color: var(--text-main);
  /* Use the hero image as the page background for a single parallax */
  background-image: url("../img/Hero Section.webp");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed; /* parallax effect on desktop */
}

/* subtle overlay on the page background to keep content readable */
.page-shell::before {
  /* Global overlay to extend the hero shadow across the whole page.
     Keeps readability for text over the background image. */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,7,18,0.45), rgba(3,7,18,0.55));
  pointer-events: none;
  z-index: 0;
}

/* Stronger overlay for the home page so hero text contrasts more against the background image */
.home-page .page-shell::before{
  /* Stronger global overlay for home — darken background image more */
  background: linear-gradient(180deg, rgba(3,7,18,0.78), rgba(3,7,18,0.92));
}

/* Local hero overlay to further darken the hero area only (keeps header and panels readable) */
.home-page .hero { position: relative; }
.home-page .hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,7,18,0.48), rgba(3,7,18,0.72));
  pointer-events: none;
  z-index: 1;
}

/* Bring hero content above the overlays */
.home-page .hero .container { position: relative; z-index: 2; }

/* Add subtle dark panel behind hero text and stronger text-shadow for better contrast */
.home-page .hero .hero-copy{
  background: rgba(2,6,10,0.22);
  padding: 1rem 1.2rem;
  border-radius: 12px;
}

.home-page .hero .hero-copy h1,
.home-page .hero .hero-copy .lead,
.home-page .hero .hero-copy .hero-kicker{
  color: #ffffff;
  text-shadow: 0 10px 28px rgba(2,6,10,0.6);
}

/* Slightly lift CTA buttons foreground to keep contrast */
.home-page .hero .btn-primary, .home-page .hero .btn-ghost { z-index: 3; }

/* Ensure page content sits above the overlay while keeping header on top */
.page-shell > * { position: relative; z-index: 2 }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  background: radial-gradient(
      circle at top left,
      rgba(168, 85, 247, 0.12),
      transparent 55%
    ),
    rgba(5, 5, 9, 0.94);
  border-bottom: 1px solid rgba(39, 39, 55, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  gap: 1.5rem;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: transparent; /* show the logo as-is, no decorative egg */
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.brand-logo-fallback {
  font-family: "Orbitron", system-ui;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-family: "Orbitron", system-ui;
  font-size: 0.98rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--text-soft);
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-primary a {
  font-size: 0.86rem;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 0.1rem;
  transition: color var(--transition-fast);
}

.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent-gold),
    var(--accent-purple)
  );
  transition: width var(--transition-fast);
}

.nav-primary a:hover {
  color: #e5e7eb;
}

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

/* Lightweight megamenu (grouped / cascading) */
.nav-primary .has-mega {
  position: relative;
}
.nav-primary .has-mega > button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.86rem;
  cursor: pointer;
  padding: 0;
}
.nav-primary .has-mega > button:focus { outline: none; color: #e5e7eb }
.mega-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 360px;
  background: rgba(6,8,12,0.98);
  border: 1px solid rgba(39,39,55,0.9);
  border-radius: 12px;
  padding: 0.8rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: flex;
  gap: 0.6rem;
  z-index: 60;
}
.mega-column { min-width: 140px }
.mega-column h4 { font-size: 0.78rem; color: var(--text-main); margin-bottom: 0.35rem }
.mega-column a { display: block; color: var(--text-soft); padding: 0.18rem 0; font-size: 0.88rem }
.mega-column a:hover { color: #e5e7eb }
.nav-primary .has-mega:hover .mega-panel,
.nav-primary .has-mega:focus-within .mega-panel { display: none }

/* Show mega panel only when JS toggles .open on the parent */
.nav-primary .has-mega.open .mega-panel { display: flex }

/* Cascading sublist inside mega-panel (simple vertical cascade) */
.mega-sublist { display: none; margin-left: 0.4rem; border-left: 1px dashed rgba(255,255,255,0.03); padding-left: 0.6rem }
.mega-item-has-children:hover > .mega-sublist { display: block }

@media (max-width:720px){
  .mega-panel { position: static; display: block; padding: 0; box-shadow: none; border: none }
  .nav-primary { display:none }
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-pill {
  border-radius: 999px;
  border: 1px solid rgba(75, 85, 99, 0.8);
  font-size: 0.7rem;
  padding: 0.3rem 0.7rem;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(12, 10, 20, 0.9);
}

.lang-pill span.code {
  color: #e5e7eb;
  font-weight: 500;
}

.btn-primary {
  border-radius: 999px;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.6);
  background: radial-gradient(
      circle at 0% 0%,
      rgba(244, 244, 245, 0.18),
      transparent 55%
    ),
    linear-gradient(135deg, #d4af37, #a855f7);
  color: #050509;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
  cursor: pointer;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.9);
}

.btn-ghost {
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: rgba(15, 23, 42, 0.88);
  color: #e5e7eb;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: background var(--transition-fast), border var(--transition-fast);
}

.btn-ghost:hover {
  background: rgba(30, 64, 175, 0.9);
  border-color: rgba(129, 140, 248, 0.9);
}

/* Mobile nav */

.nav-toggle {
  display: none;
  border: 1px solid rgba(75, 85, 99, 0.8);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: rgba(15, 23, 42, 0.95);
  cursor: pointer;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
  margin: 3px 0;
}

.nav-mobile {
  display: none;
  border-top: 1px solid rgba(39, 39, 55, 0.9);
  background: rgba(5, 5, 9, 0.98);
}

.nav-mobile-inner {
  padding: 0.75rem 1.3rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.nav-mobile-inner a {
  color: var(--text-muted);
}

.nav-mobile-inner a:hover {
  color: #e5e7eb;
}

/* Hero */

.hero {
  padding: 3.5rem 0 2.8rem;
  position: relative;
}

/* overlay to keep text readable over the background */
.hero::before { display: none; }

/* Ensure hero inner content floats above the background overlay */
.hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 2fr);
  gap: 2.2rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(12, 10, 20, 0.92);
  font-size: 0.7rem;
  color: var(--text-soft);
  margin-bottom: 0.9rem;
}

.dot-gold {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fefce8, #d4af37);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.7);
}

.hero-title {
  font-family: "Orbitron", system-ui;
  font-size: clamp(2rem, 2.7vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.hero-title span.accent {
  background: linear-gradient(
    120deg,
    var(--accent-gold),
    var(--accent-purple),
    var(--accent-cyan)
  );
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.5;
  margin-bottom: 1.6rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.7rem;
}

.hero-badge {
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-soft);
}

.hero-note {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 0.4rem;
}

.hero-visual-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hero-image-slot {
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at 10% 0%, #111827, #020617 70%);
  padding: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
}

.hero-image-slot img {
  border-radius: 14px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-image-placeholder-text {
  font-size: 0.75rem;
  color: var(--text-soft);
  text-align: center;
}

.hero-visual-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(55, 65, 81, 0.9);
  background:
    radial-gradient(circle at 15% 0%, rgba(91, 33, 182, 0.42), transparent 60%),
    radial-gradient(circle at 90% 80%, rgba(8, 47, 73, 0.45), transparent 65%),
    rgba(9, 9, 15, 0.98);
  box-shadow: var(--shadow-soft);
  padding: 1.3rem 1.3rem 1.2rem;
  position: relative;
  overflow: hidden;
}

.hero-visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.hero-chip {
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.65);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

.hero-visual-meta {
  text-align: right;
  font-size: 0.68rem;
  color: var(--text-soft);
}

.hero-visual-main {
  border-radius: 16px;
  background: radial-gradient(circle at 10% 0%, #111827, #020617 70%);
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 0.9rem;
}

.hero-visual-chart {
  border-radius: 14px;
  background: radial-gradient(circle at 0% 0%, #0f172a, #020617 55%);
  border: 1px solid rgba(75, 85, 99, 0.95);
  padding: 0.7rem 0.8rem 0.8rem;
  position: relative;
  overflow: hidden;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.67rem;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

.chart-lines {
  height: 90px;
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.chart-column {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(87, 185, 255, 0.9),
    rgba(15, 23, 42, 0)
  );
}

.chart-column.gold {
  background: linear-gradient(
    180deg,
    rgba(212, 175, 55, 0.95),
    rgba(15, 23, 42, 0)
  );
}

.chart-column.purple {
  background: linear-gradient(
    180deg,
    rgba(168, 85, 247, 0.95),
    rgba(15, 23, 42, 0)
  );
}

.chart-col-1 {
  height: 55%;
}
.chart-col-2 {
  height: 78%;
}
.chart-col-3 {
  height: 65%;
}
.chart-col-4 {
  height: 92%;
}

.chart-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-size: 0.65rem;
  color: var(--text-soft);
}

.hero-visual-side {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.72rem;
}

.pill-metric {
  border-radius: 999px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: rgba(15, 23, 42, 0.96);
  padding: 0.35rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pill-metric strong {
  font-weight: 500;
  color: #e5e7eb;
}

.pill-metric span.value {
  color: var(--accent-gold);
  font-weight: 600;
}

.pill-metric span.value.sub {
  color: var(--accent-purple);
}

.hero-visual-footer {
  margin-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: var(--text-soft);
}

.hero-visual-footer span.label {
  color: var(--text-muted);
}

.hero-visual-footer span.tag {
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: rgba(15, 23, 42, 0.96);
}

/* Section: Propósito y valores */

section.section {
  padding: 2.2rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.3rem;
  margin-bottom: 1.5rem;
}

.section-kicker {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.section-description {
  font-size: 0.86rem;
  color: var(--text-soft);
  max-width: 480px;
  line-height: 1.55;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

/* QUÉ HACEMOS — layout and visual styling to match reference image */
.que-hacemos-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
}

.que-hacemos-content .tag {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.que-hacemos-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.02;
  margin: 0 0 1rem 0;
  color: var(--text-main);
}

.que-hacemos-content .lead {
  color: var(--text-soft);
  font-size: 1rem;
  margin-bottom: 1rem;
  max-width: 56ch;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0 0;
  display: grid;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-soft);
}

.feature-list .icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.feature-list strong {
  color: var(--text-main);
  font-weight: 700;
  margin-right: 6px;
}

.que-hacemos-image .image-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 1rem;
  background: radial-gradient(circle at 10% 0%, rgba(129,140,248,0.06), rgba(0,0,0,0.6));
  border: 1px solid rgba(55,65,81,0.9);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.que-hacemos-image .image-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

@media (max-width: 1024px) {
  .que-hacemos-grid { grid-template-columns: 1fr; }
  .que-hacemos-image { order: 2; }
  .que-hacemos-content { order: 1; }
}

.value-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(55, 65, 81, 0.95);
  background: radial-gradient(circle at 0% 0%, #111827, #020617 70%);
  padding: 0.9rem 0.85rem;
  font-size: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

.value-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 10% -10%,
    rgba(212, 175, 55, 0.18),
    transparent 52%
  );
  opacity: 0;
  transition: opacity var(--transition-med);
  pointer-events: none;
}

.value-card:hover::before {
  opacity: 1;
}

.value-title {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e5e7eb;
  margin-bottom: 0.45rem;
}

.value-body {
  color: var(--text-soft);
  line-height: 1.55;
}

/* Ecosistema (unidades) */

.units-group-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
  margin: 0.2rem 0 0.4rem;
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

/* Helper: spacing to separate grouped units when needed (moved from inline styles) */
.units-grid--spaced {
  margin-bottom: 1.5rem;
}

.unit-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(55, 65, 81, 0.95);
  background:
    radial-gradient(circle at 10% 0%, rgba(129,140,248,0.03), transparent 40%),
    rgba(8, 10, 14, 0.95);
  padding: 1rem 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

.unit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(0,0,0,0.85);
  border-color: rgba(212,175,55,0.95);
}

.unit-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.unit-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(75, 85, 99, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.unit-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.unit-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  opacity: 0.95;
}

.unit-name {
  font-family: "Orbitron", system-ui;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-main);
  margin-top: 2px;
}

.unit-desc {
  font-size: 0.86rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-top: 0.25rem;
}

.unit-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.4rem;
}

.unit-pill {
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  border: 1px solid rgba(75,85,99,0.9);
  color: var(--text-soft);
  background: rgba(12, 14, 20, 0.6);
}


.unit-footer {
  margin-top: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.unit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.84rem;
  color: var(--accent-cyan);
}

.unit-link span.arrow {
  font-size: 0.9rem;
}

/* Casos / Aplicaciones */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.case-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(55, 65, 81, 0.95);
  background: rgba(10, 10, 19, 0.98);
  padding: 0.9rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

.case-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-purple);
}

.case-title {
  font-weight: 500;
}

.case-body {
  color: var(--text-soft);
  margin-top: 0.2rem;
  line-height: 1.55;
}

.case-meta {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Ensure list markers (bullets / numbers) stay inside card bounds
   and do not overflow to the left of cards. Target common card types. */
.case-card ul,
.case-card ol,
.unit-card ul,
.unit-card ol,
.value-card ul,
.value-card ol,
.impact-card ul,
.impact-card ol,
.cta-card ul,
.cta-card ol,
.project-card ul,
.project-card ol,
.card ul,
.card ol {
  list-style-position: inside;
  padding-left: 0.9rem; /* ensure some left padding for the marker */
  margin: 0.45rem 0 0.45rem 0; /* consistent vertical spacing */
}

/* Tighten list items so long lines wrap and don't create horizontal overflow */
.case-card li,
.unit-card li,
.value-card li,
.impact-card li,
.cta-card li,
.project-card li,
.card li {
  word-break: break-word;
  white-space: normal;
}

/* Impacto */

.impact-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr);
  gap: 1.4rem;
}

.impact-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.impact-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(55, 65, 81, 0.95);
  background: radial-gradient(circle at 0% 0%, #111827, #020617 65%);
  padding: 0.85rem;
  font-size: 0.8rem;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

/* Hover highlight for cards */
.value-card:hover,
.case-card:hover,
.impact-card:hover,
.unit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(0,0,0,0.85);
  border-color: rgba(212,175,55,0.95);
}

.impact-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 0.2rem;
}

.impact-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.impact-note {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 0.4rem;
  line-height: 1.5;
}

.impact-quote {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(55, 65, 81, 0.95);
  background: rgba(10, 10, 21, 0.97);
  padding: 1rem;
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
}

.impact-quote::before {
  content: "“";
  position: absolute;
  top: -10px;
  left: 14px;
  font-size: 3rem;
  color: rgba(148, 163, 184, 0.35);
}

.impact-quote-text {
  color: var(--text-muted);
  line-height: 1.6;
  margin-left: 0.6rem;
}

.impact-quote-author {
  margin-top: 0.75rem;
  margin-left: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* CTA contacto */

.cta {
  padding: 2.4rem 0 2.6rem;
}


/* Contact card: revert to dark surface for visual consistency */
.cta-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(55, 65, 81, 0.95);
  background:
    radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.36), transparent 55%),
    radial-gradient(circle at 120% 0%, rgba(168, 85, 247, 0.28), transparent 55%),
    rgba(10, 10, 21, 0.96);
  padding: 1.6rem 1.4rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
  gap: 1.5rem;
}

.cta-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.cta-text {
  font-size: 0.86rem;
  color: var(--text-soft);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cta-mini {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.form-label {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.form-input,
.form-textarea,
.form-select {
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.95);
  background: rgba(5, 5, 15, 0.96);
  padding: 0.42rem 0.75rem;
  color: #f9fafb;
  font-size: 0.8rem;
  outline: none;
}

.form-textarea {
  border-radius: 16px;
  min-height: 75px;
  resize: vertical;
  padding-top: 0.5rem;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: rgba(212, 175, 55, 0.85);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.4);
}

/* Contact-specific badge and buttons (dark) */
.cta .hero-badge {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
  color: var(--contact-muted);
}

.cta .btn-primary {
  border-radius: 999px;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.6);
  background: radial-gradient(
      circle at 0% 0%,
      rgba(244, 244, 245, 0.18),
      transparent 55%
    ),
    linear-gradient(135deg, #d4af37, #a855f7);
  color: #050509;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
  cursor: pointer;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.cta .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.9);
}

.cta .btn-ghost {
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: rgba(15, 23, 42, 0.88);
  color: #e5e7eb;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: background var(--transition-fast), border var(--transition-fast);
}

.cta .btn-ghost:hover {
  background: rgba(30, 64, 175, 0.9);
  border-color: rgba(129, 140, 248, 0.9);
}

/* Neutral light buttons for hero and primary contact action
   — keep other .btn-primary instances intact (header, etc.) */
.hero .btn-primary,
.cta .btn-primary {
  background: linear-gradient(180deg, #f3f4f6, #e9ecef);
  color: #071018;
  border: 1px solid rgba(16,24,32,0.06);
  box-shadow: 0 6px 18px rgba(16,24,32,0.06);
  border-radius: 999px;
  padding: 0.5rem 1rem;
}

.hero .btn-primary:hover,
.cta .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(16,24,32,0.08);
}

.form-row-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

/* Footer */

/* Footer (contacto) — styles to match original design */
#contacto {
  border-top: 1px solid rgba(31, 41, 55, 0.95);
  background: rgba(3, 7, 18, 0.98);
  padding: 1.6rem 0 1.4rem;
  color: var(--text-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

#contacto h3,
#contacto h4 {
  font-family: "Orbitron", system-ui;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

#contacto .mini {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 0.35rem 0;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.whatsapp {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.18);
  color: #e6fff2;
  font-weight: 700;
}

.whatsapp.linkedin {
  background: rgba(31, 109, 255, 0.08);
  border-color: rgba(31, 109, 255, 0.18);
  color: #e6f0ff;
}

.list.mini {
  display: grid;
  gap: 0.5rem;
}

.list.mini a {
  color: var(--text-soft);
  text-decoration: none;
}

.list.mini a:hover {
  color: var(--text-main);
}

.mt-22 { margin-top: 22px !important; }

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* On mobile, show the textual group first, then the live panel (hero-visual) */
  .hero-visual-wrapper {
    order: 0; /* keep after the main text (which is the DOM first child) */
  }

  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .units-grid,
  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .impact-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding-inline: 1rem;
  }

  .nav-primary,
  .nav-cta .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero {
    padding-top: 2.2rem;
  }

  /* disable fixed background on small screens for performance and correctness */
  .page-shell { background-attachment: scroll; }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .values-grid,
  .units-grid,
  .cases-grid,
  .impact-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-card {
    padding: 1.25rem 1rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Imported merged rules from assets/css/style.min.css (desminified)
   - This file (`indexnew-merged.css`) is a readable copy of the project's
     original `style.min.css` for review and safe testing. Keep the
     original `style.min.css` intact as a backup.
*/
/* Modal overlay: hidden by default, fixed overlay above all content */
.modal {
  display: none; /* shown by adding .open */
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(2,6,10,0.62);
  z-index: 9999;
  padding: 1.25rem;
}
.modal.open { display: flex; }
.modal-content {
  width: 100%;
  max-width: 820px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(9,9,15,0.98), rgba(10,10,19,0.99));
  border: 1px solid rgba(55,65,81,0.9);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  padding: 1.1rem 1.25rem;
  position: relative;
  overflow: auto;
  max-height: calc(100vh - 56px);
}
.modal .close-btn {
  position: absolute;
  right: 12px;
  top: 10px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Form submit wrapper used in modals (replaces inline margins) */
.modal-submit {
  margin-top: 0.6rem;
}

/* Project card small helper classes (used by JS renderers) */
.project-behalf {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.project-tags {
  margin-top: 8px;
}

/* Ensure list markers (bullets / numbers) stay inside card bounds
   and do not overflow to the left of cards. Target common card types. */
.case-card ul,
.case-card ol,
.unit-card ul,
.unit-card ol,
.value-card ul,
.value-card ol,
.impact-card ul,
.impact-card ol,
.cta-card ul,
.cta-card ol,
.project-card ul,
.project-card ol,
.card ul,
.card ol {
  list-style-position: inside;
  padding-left: 0.9rem; /* ensure some left padding for the marker */
  margin: 0.45rem 0 0.45rem 0; /* consistent vertical spacing */
}

/* Tighten list items so long lines wrap and don't create horizontal overflow */
.case-card li,
.unit-card li,
.value-card li,
.impact-card li,
.cta-card li,
.project-card li,
.card li {
  word-break: break-word;
  white-space: normal;
}

@import url("indexnew-merged.css");
