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

/*
  Paleta derivada del logo de Wheatstone Industries LLC:
  • Azul marca     #2B78B5  — arco principal + "STONE"
  • Azul-gris      #6B8499  — arco secundario + "WHEAT" / "INDUSTRIES LLC"
  • Fondo navy     #080D16  — profundidad coherente con el azul de marca
*/
:root {
  --bg-primary:    #080D16;   /* navy profundo */
  --bg-secondary:  #0C1420;   /* navy medio */
  --bg-card:       #0F1C2E;   /* card azul-navy */
  --bg-card-hover: #142438;   /* card hover */
  --accent:        #2B78B5;   /* azul marca — principal */
  --accent-light:  #4292CC;   /* hover / foco */
  --accent-dark:   #1B5C90;   /* presionado / énfasis fuerte */
  --accent-gray:   #6B8499;   /* azul-gris secundario del logo */
  --text-primary:  #E8EEF5;   /* blanco con tinte frío */
  --text-secondary:#8BA4BA;   /* texto secundario azul-gris */
  --text-muted:    #506478;   /* texto apagado */
  --border:        rgba(43, 120, 181, 0.12);
  --border-hover:  rgba(43, 120, 181, 0.45);
  --nav-height:    80px;
  --max-width:     1240px;
  --radius-sm:     3px;
  --radius:        6px;
  --radius-lg:     14px;
  --shadow:        0 8px 32px rgba(0, 0, 0, 0.50);
  --shadow-accent: 0 8px 28px rgba(43, 120, 181, 0.30);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; }

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section         { padding: 100px 0; }
.section-sm      { padding: 64px 0; }
.section-alt     { background: var(--bg-secondary); }

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title  { margin-bottom: 18px; }
.section-desc   { max-width: 600px; margin-bottom: 52px; font-size: 1.05rem; }

.accent { color: var(--accent); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline-replace{
  
  color:  #0F1C2E;
  border: 1.5px solid #0F1C2E

}


.btn-outline-replace:hover{
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);

}

.btn-sm { padding: 10px 22px; font-size: 0.75rem; }

/* ── Navigation ────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: #E8EEF5;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  transition: transform 0.35s var(--ease-out),
              background 0.3s ease,
              box-shadow 0.3s ease;
}

#navbar.nav-transparent {
  background: rgba(232, 238, 245, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: none;
}

#navbar.nav-hidden {
  transform: translateY(-100%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-secondary);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 9px 22px !important;
  border-radius: var(--radius-sm) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent-light) !important; color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ── Hero — Full Screen ────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(8, 13, 22, 0.90) 0%,
    rgba(8, 13, 22, 0.55) 55%,
    rgba(8, 13, 22, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  padding-top: var(--nav-height);
}

/* Hero entrance animations */
.hero-label {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s 0.3s var(--ease-out) forwards;
}

.hero-title {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.8s 0.5s var(--ease-out) forwards;
  max-width: 820px;
  margin-bottom: 20px;
}

.hero-sub {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s 0.7s var(--ease-out) forwards;
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.9s var(--ease-out) forwards;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.6s 1.2s ease forwards;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(241, 245, 249, 0.45);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s 1.5s ease-in-out infinite;
}

/* Hero — inner page variant */
.hero-page {
  height: 46vh;
  min-height: 360px;
}

.hero-page .hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: 56px;
}

.hero-page .hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.hero-breadcrumb {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.6s 0.2s var(--ease-out) forwards;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(241, 245, 249, 0.4);
  margin-bottom: 12px;
}

.hero-breadcrumb a { color: var(--accent); transition: color 0.2s; }
.hero-breadcrumb a:hover { color: var(--accent-light); }
.hero-breadcrumb span { color: rgba(241, 245, 249, 0.4); }

/* ── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max-width);
  margin: 0 auto;
}

.stat-item {
  padding: 40px 28px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--bg-card-hover); }

.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── About Grid ────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.about-img-accent {
  position: absolute;
  top: -12px; right: -12px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.4;
}

.checklist {
  margin-top: 28px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.checklist li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: rgba(43, 120, 181, 0.12);
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%232B78B5' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Cards Grid ────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--border-hover);
  box-shadow: 0 24px 48px rgba(0,0,0,0.32), 0 0 0 1px rgba(43,120,181,0.18);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.card:hover .card-img { transform: scale(1.04); }

.card-img-wrap { overflow: hidden; }

.card-body { padding: 28px 28px 32px; }

.card-icon {
  width: 46px; height: 46px;
  background: rgba(43,120,181,0.12);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.card-body h3 { margin-bottom: 10px; font-size: 1.5rem; }

.card-body p { font-size: 0.9rem; line-height: 1.7; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.2s ease, color 0.2s ease;
}

.card-link:hover { gap: 12px; color: var(--accent-light); }

.card-link svg { transition: transform 0.2s; }
.card-link:hover svg { transform: translateX(3px); }

/* ── Markets Mosaic ────────────────────────────────────────── */
.markets-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.market-tile {
  position: relative;
  height: 300px;
  overflow: hidden;
  cursor: pointer;
}


.market-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-in-out);
}

.market-tile:hover img { transform: scale(1.08); }

.market-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,13,22,0.93) 0%, rgba(8,13,22,0.15) 65%, transparent 100%);
  transition: background 0.4s ease;
}

.market-tile:hover .market-tile-overlay {
  background: linear-gradient(to top, rgba(8,13,22,0.96) 0%, rgba(8,13,22,0.45) 60%, rgba(43,120,181,0.10) 100%);
}

.market-tile-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 26px;
}

.market-tile-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0;
  transition: color 0.3s;
}

.market-tile:hover .market-tile-body h3 { color: var(--accent); }

.market-tile-body p {
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}

.market-tile:hover .market-tile-body p {
  opacity: 1;
  transform: translateY(0);
}

.market-tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 600;
}

/* ── CTA Banner ────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  text-align: center;
}

.cta-banner-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.22) saturate(0.8);
}

.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(43,120,181,0.10) 0%, transparent 50%);
  z-index: 1;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.cta-banner-content h2 { margin-bottom: 16px; }
.cta-banner-content p  { font-size: 1.1rem; margin-bottom: 40px; }

/* ── Service Blocks ────────────────────────────────────────── */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 84px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-of-type { border-bottom: none; }

.service-block.flip { direction: rtl; }
.service-block.flip > * { direction: ltr; }

.service-block-img {
  border-radius: var(--radius);
  overflow: hidden;
  height: 420px;
}

.service-block-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.service-block:hover .service-block-img img { transform: scale(1.04); }

.service-block h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 16px; }

.feature-list { margin-top: 24px; }

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.feature-item:last-child { border-bottom: none; }

.feature-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

.feature-item p { font-size: 0.9rem; margin: 0; }

/* ── Market Full Sections ──────────────────────────────────── */
.market-section {
  padding: 84px 0;
  border-bottom: 1px solid var(--border);
}

.market-section:last-of-type { border-bottom: none; }

.market-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.market-section-inner.flip { direction: rtl; }
.market-section-inner.flip > * { direction: ltr; }

.market-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.market-img-grid img {
  width: 100%; height: 190px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.4s ease;
}

.market-img-grid img:first-child {
  grid-column: 1 / -1;
  height: 230px;
}

/* Una sola imagen — ocupa todo el ancho y más altura */
.market-img-grid img:only-child {
  grid-column: 1 / -1;
  height: 460px;
}

.market-img-grid img:hover { transform: scale(1.03); }

/* ── About Page ─────────────────────────────────────────────── */
.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.mv-card {
  background: var(--bg-card);
  padding: 56px 48px;
}

.mv-card h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.mv-card .large-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 7rem;
  font-weight: 700;
  color: rgba(43,120,181,0.18);
  line-height: 0.9;
  display: block;
  margin-bottom: 20px;
}

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

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  transition: border-color 0.3s, transform 0.3s;
}

.value-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.value-index {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(43,120,181,0.20);
  line-height: 1;
  margin-bottom: 14px;
}

.value-card h4 { font-size: 1.25rem; margin-bottom: 10px; }

/* ── Contact Page ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.contact-info-block {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 36px;
}

.contact-icon {
  width: 46px; height: 46px;
  background: rgba(43,120,181,0.12);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-icon svg { color: var(--accent); }

.contact-info-block h4 {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-info-block p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43,120,181,0.15);
}

.form-group textarea  { resize: vertical; min-height: 150px; }
.form-group select option { background: #0F1C2E; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border);
}

.footer-brand-logo {
  height: 62px;
  width: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.footer-brand p {
  font-size: 0.88rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h5 {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Divider ────────────────────────────────────────────────── */
.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── Light Section System ───────────────────────────────────── */

/* Blanco puro */
.section-white { background: #FFFFFF; }

/* Gris-azul muy suave — "off-white" con tinte de marca */
.section-light { background: #F2F7FD; }

/* Headings oscuros sobre fondo claro */
.section-white h1, .section-white h2,
.section-white h3, .section-white h4,
.section-light  h1, .section-light  h2,
.section-light  h4 {
  color: #09182E;

}

.section-light  h3{
  color: #E8EEF5;
}

/* Cuerpo de texto oscuro */
.section-white p, .section-light p {
  color: #3D576B;
}

/* Checklist items */
.section-white .checklist li,
.section-light  .checklist li { color: #3D576B; }

/* Section label — se mantiene el azul de marca */
.section-white .section-label,
.section-light  .section-label { color: var(--accent-dark); }

/* Cards sobre fondo claro */
.section-white .card,
.section-light  .card {
  background: #FFFFFF;
  border-color: rgba(43, 120, 181, 0.14);
  box-shadow: 0 2px 16px rgba(8, 13, 22, 0.06);
}

.section-white .card:hover,
.section-light  .card:hover {
  border-color: rgba(43, 120, 181, 0.38);
  box-shadow: 0 18px 40px rgba(8, 13, 22, 0.11),
              0 0 0 1px rgba(43, 120, 181, 0.20);
}

.section-white .card-body p,
.section-light  .card-body p { color: #3D576B; }

.section-white .card-body h3,
.section-light  .card-body h3 { color: #09182E; }

/* Feature items */
.section-white .feature-item,
.section-light  .feature-item {
  border-color: rgba(43, 120, 181, 0.10);
}

.section-white .feature-item p,
.section-light  .feature-item p { color: #3D576B; }

.section-white .feature-item strong,
.section-light  .feature-item strong { color: #09182E !important; }

/* Value cards */
.section-white .value-card,
.section-light  .value-card {
  background: #FFFFFF;
  border-color: rgba(43, 120, 181, 0.13);
  box-shadow: 0 2px 12px rgba(8, 13, 22, 0.05);
}

.section-white .value-card:hover,
.section-light  .value-card:hover {
  border-color: rgba(43, 120, 181, 0.35);
}

.section-white .value-card h4,
.section-light  .value-card h4 { color: #09182E; }

.section-white .value-card p,
.section-light  .value-card p  { color: #3D576B; }

/* Mission-Vision cards */
.section-white .mv-card,
.section-light  .mv-card {
  background: #F2F7FD;
}

/* About image accent */
.section-white .about-img-accent,
.section-light  .about-img-accent { opacity: 0.25; }

/* Service blocks border */
.section-white .service-block,
.section-light  .service-block {
  border-color: rgba(43, 120, 181, 0.10);
}

/* Contact info */
.section-white .contact-info-block h4,
.section-light  .contact-info-block h4 { color: #3D576B; }

.section-white .contact-info-block p,
.section-light  .contact-info-block p  { color: #3D576B; }

/* Form inputs on white */
.section-white .form-group input,
.section-white .form-group textarea,
.section-white .form-group select,
.section-light  .form-group input,
.section-light  .form-group textarea,
.section-light  .form-group select {
  background: #FFFFFF;
  border-color: rgba(43, 120, 181, 0.20);
  color: #09182E;
}

.section-white .form-group label,
.section-light  .form-group label { color: #506478; }

/* Stats bar — variante blanca */
.stats-bar.stats-white {
  background: #FFFFFF;
  border-color: rgba(43, 120, 181, 0.10);
}

.stats-bar.stats-white .stat-item {
  border-color: rgba(43, 120, 181, 0.10);
}

.stats-bar.stats-white .stat-item:hover {
  background: #F2F7FD;
}

.stats-bar.stats-white .stat-label {
  color: #506478;
}

/* Divider en sección clara */
.section-white + .divider-line,
.section-light  + .divider-line {
  background: linear-gradient(90deg, transparent, rgba(43,120,181,0.15), transparent);
}

/* ── Scroll Animations ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.reveal-right {
  opacity: 0;
  transform: translateX(44px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* Stagger */
.d1 { transition-delay: 0.05s; }
.d2 { transition-delay: 0.12s; }
.d3 { transition-delay: 0.19s; }
.d4 { transition-delay: 0.26s; }
.d5 { transition-delay: 0.33s; }
.d6 { transition-delay: 0.40s; }

/* ── Keyframes ──────────────────────────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.3); }
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid,
  .service-block,
  .market-section-inner,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .service-block.flip,
  .market-section-inner.flip { direction: ltr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 68px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: rgba(8,13,22,0.97);
    backdrop-filter: blur(24px);
    padding: 28px 24px;
    border-top: 1px solid var(--border);
  }

  .cards-grid         { grid-template-columns: 1fr; }
  .markets-mosaic     { grid-template-columns: 1fr; }
  .stats-grid         { grid-template-columns: repeat(2, 1fr); }
  .stat-item          { padding: 28px 16px; }
  .stat-item:nth-child(2)          { border-right: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2)          { border-bottom: 1px solid var(--border); }
  .values-grid        { grid-template-columns: 1fr; }
  .mission-vision-grid{ grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr; }
  .footer-bottom      { flex-direction: column; gap: 8px; text-align: center; }
  .form-row           { grid-template-columns: 1fr; }
  .about-img-wrap img { height: 300px; }
  .service-block-img  { height: 280px; }
  .hero-page          { height: 38vh; min-height: 280px; }
  .market-tile        { height: 260px !important; }
  .section            { padding: 72px 0; }
  .mv-card            { padding: 40px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { opacity:1; transform:none; transition:none; }
  .hero-bg { background-attachment: scroll; }
  .scroll-line { animation: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
  .cards-grid { grid-template-columns: 1fr; }
}
