/* ============================================================
   Y.H.V.H. MARKET PLACES — tokens (from brand design system)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  /* Fonts */
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Colors — primaries */
  --navy-900: #0B1D34;
  --navy-800: #142A4A;
  --teal-900: #0F6D6D;
  --teal-500: #1BA3A3;
  --aqua-100: #E6F4F5;

  /* Colors — accents */
  --cta-500: #00B5A6;
  --cta-600: #009C90;
  --cta-700: #008075;

  /* Colors — backgrounds (light sections) */
  --off-white: #F7F9FA;
  --grey-bg: #EEF2F5;

  /* Colors — neutrals / text (light sections) */
  --carbon: #0F1721;
  --grey-900: #334155;
  --grey-600: #64748B;
  --grey-300: #CBD5E1;
  --grey-200: #E2E8F0;
  --border-subtle: var(--grey-200);
  --border-default: var(--grey-300);

  /* Text on dark */
  --text-on-dark: #EAF2F4;

  /* Effects */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(11, 29, 52, 0.06);
  --shadow-sm: 0 2px 6px rgba(11, 29, 52, 0.07);
  --shadow-md: 0 10px 24px -8px rgba(11, 29, 52, 0.14);
  --shadow-lg: 0 22px 48px -16px rgba(11, 29, 52, 0.20);
  --shadow-xl: 0 36px 80px -24px rgba(11, 29, 52, 0.28);
  --shadow-cta: 0 12px 26px -10px rgba(0, 181, 166, 0.45);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 200ms;
  --dur-slow: 380ms;
  --ring: color-mix(in srgb, var(--teal-500) 55%, transparent);

  /* Layout */
  --container-max: 1200px;
  --section-y: 96px;
  --section-y-sm: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-on-dark);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { text-decoration: none; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

@keyframes yhFadeInUp {
  from { transform: translateY(16px); }
  to { transform: translateY(0); }
}

@keyframes yhFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   Buttons (design-system Button component, hero-relevant variants)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.005em;
  transition: all var(--dur) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--sm { gap: 7px; padding: 8px 16px; font-size: 13px; height: 38px; }
.btn--lg { gap: 10px; padding: 15px 28px; font-size: 16px; height: 54px; }

.btn--primary {
  background: var(--cta-500);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(0, 181, 166, 0.5);
}
.btn--primary:hover { background: var(--cta-600); box-shadow: var(--shadow-cta); }
.btn--primary:active { background: var(--cta-700); }

.btn--outline-inverse {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}
.btn--outline-inverse:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--teal-500);
}

/* ============================================================
   Badges (design-system Badge component, tone="teal")
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}
.badge--teal { background: var(--aqua-100); color: var(--teal-900); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--navy-900);
  font-family: var(--font-sans);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
  z-index: 0;
}

.hero-scrim-top,
.hero-scrim-side,
.hero-glow,
.hero-ring,
.hero-line,
.hero-dot {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.hero-scrim-top {
  top: 0; left: 0; right: 0;
  height: 240px;
  background: linear-gradient(to bottom, rgba(11, 29, 52, 0.72), rgba(11, 29, 52, 0));
}

.hero-scrim-side {
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 29, 52, 0.95) 0%, rgba(11, 29, 52, 0.84) 30%, rgba(11, 29, 52, 0.55) 56%, rgba(11, 29, 52, 0.20) 100%);
}

.hero-glow {
  inset: 0;
  background: radial-gradient(circle at 86% 32%, rgba(27, 163, 163, 0.34) 0%, rgba(27, 163, 163, 0) 56%);
}

.hero-ring--1 {
  right: -160px; top: -120px;
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(143, 224, 222, 0.16);
}
.hero-ring--2 {
  right: -40px; top: 50px;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(0, 181, 166, 0.20);
}

.hero-line {
  right: 140px; top: 200px;
  width: 1px; height: 120px;
  background: linear-gradient(to bottom, rgba(127, 227, 218, 0.22), rgba(127, 227, 218, 0));
  transform: rotate(28deg);
}

.hero-dot--1 {
  right: 150px; top: 240px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #7FE3DA;
  box-shadow: 0 0 0 5px rgba(127, 227, 218, 0.16);
}
.hero-dot--2 {
  right: 300px; top: 130px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #1BA3A3;
  box-shadow: 0 0 0 4px rgba(27, 163, 163, 0.18);
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* ---------- Header ---------- */
.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(18px, 3vw, 28px) clamp(20px, 5vw, 64px);
  flex-wrap: wrap;
  animation: yhFadeInUp 700ms var(--ease-out) 100ms both;
}

.hero-logo { display: inline-flex; align-items: center; }
.hero-logo img { height: 76px; width: 275px; display: block; }

.hero-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-nav a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.hero-nav a:hover { color: #fff; border-bottom-color: var(--teal-500); }
.hero-nav-sep { color: rgba(255, 255, 255, 0.3); font-size: 13px; }

/* ---------- Body row ----------
   Desktop: a real 2-column grid (48% copy / 52% visual) so both
   columns sit close together as one integrated composition — no
   floating/absolute offset creating a gap down the middle. */
.hero-body {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 32px;
  padding: 24px clamp(32px, 5vw, 72px) 64px;
}

@media (min-width: 861px) {
  .hero-body {
    grid-template-columns: 48% 52%;
    gap: clamp(32px, 4vw, 72px);
  }
}

/* ---------- Copy column ---------- */
.hero-copy { max-width: 600px; min-width: 0; }

.hero-kicker {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  animation: yhFadeInUp 700ms var(--ease-out) 200ms both;
}
.hero-kicker-line { display: block; width: 56px; height: 2px; background: var(--cta-500); }
.hero-kicker-text {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7FE3DA;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 12vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
  animation: yhFadeInUp 700ms var(--ease-out) 300ms both;
}
@media (min-width: 641px) {
  .hero-title { font-size: clamp(54px, 5.8vw, 92px); line-height: 0.96; }
}
.hero-title-accent {
  background: linear-gradient(120deg, #7FE3DA, #1BA3A3 55%, #00B5A6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.65;
  color: rgba(230, 244, 245, 0.82);
  margin: 24px 0 0;
  max-width: 520px;
  animation: yhFadeInUp 700ms var(--ease-out) 450ms both;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  animation: yhFadeInUp 700ms var(--ease-out) 600ms both;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  animation: yhFadeInUp 700ms var(--ease-out) 650ms both;
}

/* ---------- Cards column ----------
   A single integrated grid item — centers with the copy column via
   the parent's align-items:center, sitting over the photo's
   mid-right/torso area without floating away from the text. */
.hero-cards {
  width: min(100%, 560px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: yhFadeInUp 700ms var(--ease-out) 750ms both;
}

@media (min-width: 861px) {
  .hero-cards { width: clamp(440px, 38vw, 620px); margin: 0; justify-self: start; }
}

.hero-card--flow {
  width: 100%;
  background: rgba(11, 29, 52, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(143, 224, 222, 0.24);
  border-radius: 26px;
  padding: clamp(24px, 2vw, 34px);
  box-shadow: 0 26px 56px -16px rgba(11, 29, 52, 0.55);
  animation: yhFloat 7s ease-in-out infinite;
}

.hero-card-label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7FE3DA;
  margin-bottom: 24px;
}

.hero-steps { position: relative; }
.hero-steps-line {
  position: absolute;
  left: 17px; top: 17px; bottom: 17px;
  width: 1px;
  background: rgba(127, 227, 218, 0.22);
}
.hero-steps-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-steps-list li { display: flex; align-items: center; gap: 16px; }
.hero-step-num {
  position: relative;
  z-index: 1;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 181, 166, 0.55);
  background: rgba(8, 20, 36, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-on-dark);
  flex-shrink: 0;
}
.hero-step-label { font-family: var(--font-sans); font-weight: 600; font-size: 16.5px; color: var(--text-on-dark); }

.hero-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hero-tile {
  background: rgba(11, 29, 52, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(143, 224, 222, 0.2);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 14px 30px -12px rgba(11, 29, 52, 0.45);
  animation: yhFloat 6s ease-in-out infinite;
}
.hero-tile--2 { animation-duration: 6.5s; animation-delay: 0.4s; }
.hero-tile--3 { animation-duration: 7.2s; animation-delay: 0.8s; }
.hero-tile img { width: 100%; height: clamp(72px, 8vw, 84px); object-fit: cover; border-radius: 12px; display: block; }
.hero-tile span { font-family: var(--font-sans); font-weight: 600; font-size: 13.5px; color: var(--text-on-dark); }

@media (max-width: 520px) {
  .hero-tiles { gap: 10px; }
  .hero-tile { padding: 10px; gap: 8px; }
  .hero-tile img { height: 58px; border-radius: 9px; }
  .hero-tile span { font-size: 12px; }
}

/* ============================================================
   Shared section scaffolding (Home, below the hero)
   ============================================================ */
.section {
  position: relative;
  padding: var(--section-y) clamp(20px, 5vw, 64px);
}
@media (max-width: 720px) {
  .section { padding: var(--section-y-sm) 20px; }
}
.section-inner { position: relative; z-index: 2; max-width: var(--container-max); margin: 0 auto; }

.section--light { background: var(--off-white); color: var(--grey-900); }
.section--white { background: #fff; color: var(--grey-900); }
.section--navy { background: var(--navy-900); color: var(--text-on-dark); overflow: hidden; isolation: isolate; }
.section--navy-alt { background: var(--navy-800); color: var(--text-on-dark); overflow: hidden; isolation: isolate; }

.section-head { max-width: 700px; margin: 0 0 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.kicker::before { content: ''; width: 32px; height: 2px; background: var(--cta-500); flex-shrink: 0; }
.section-head--center .kicker { justify-content: center; }
.kicker--dark { color: var(--teal-900); }
.kicker--light { color: #7FE3DA; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.section-title--dark { color: #fff; }
.section-title--light { color: var(--carbon); }

.section-text { font-family: var(--font-sans); font-size: 17px; line-height: 1.7; margin: 0; }
.section-text--muted-dark { color: rgba(230, 244, 245, 0.78); }
.section-text--muted-light { color: var(--grey-600); }

/* Scroll-reveal (progressive enhancement via IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Decorative orbit lines/dots reused across dark sections */
@keyframes yhSpinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.orbit-decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(143, 224, 222, 0.14); }
.orbit-ring--spin { animation: yhSpinSlow 70s linear infinite; }
.orbit-dot { position: absolute; border-radius: 50%; background: #7FE3DA; }

/* ============================================================
   1. Qué hacemos
   ============================================================ */
.quehacemos-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .quehacemos-grid { grid-template-columns: 1fr; gap: 48px; }
}

.quehacemos-copy .section-text { margin-top: 20px; max-width: 520px; }

.quehacemos-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 640px) {
  .quehacemos-cards { grid-template-columns: 1fr; }
}

.mini-card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(27, 163, 163, 0.32); }
.mini-card-bar { display: block; width: 30px; height: 3px; border-radius: 2px; background: var(--cta-500); margin-bottom: 14px; }
.mini-card-title { font-family: var(--font-sans); font-weight: 700; font-size: 16px; color: var(--carbon); margin: 0 0 8px; }
.mini-card-text { font-family: var(--font-sans); font-size: 14px; line-height: 1.6; color: var(--grey-600); margin: 0; }

.quehacemos-bento { position: relative; max-width: 460px; margin: 0 auto; }
.quehacemos-image-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.quehacemos-image { width: 100%; height: 420px; object-fit: cover; display: block; }
.quehacemos-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(11, 29, 52, 0.5) 0%, rgba(11, 29, 52, 0.05) 55%, rgba(15, 109, 109, 0.28) 100%);
}
.quehacemos-chip {
  position: absolute;
  left: -20px; bottom: -24px;
  max-width: 250px;
  background: rgba(11, 29, 52, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(143, 224, 222, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media (max-width: 520px) {
  .quehacemos-chip { left: 12px; bottom: -20px; }
}
.quehacemos-chip-label { font-family: var(--font-sans); font-weight: 700; font-size: 14px; color: #fff; }
.quehacemos-chip-sub { font-family: var(--font-sans); font-weight: 500; font-size: 12px; letter-spacing: 0.04em; color: #7FE3DA; }

/* ============================================================
   2. Servicios
   ============================================================ */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .servicios-grid { grid-template-columns: 1fr; }
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(143, 224, 222, 0.18);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.service-card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.service-card:hover .service-card-img { transform: scale(1.06); }
.service-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 29, 52, 0.15) 0%, rgba(11, 29, 52, 0.55) 55%, rgba(11, 29, 52, 0.94) 100%);
  transition: background var(--dur-slow) var(--ease-out);
}
.service-card:hover .service-card-overlay {
  background: linear-gradient(180deg, rgba(27, 163, 163, 0.2) 0%, rgba(11, 29, 52, 0.6) 55%, rgba(11, 29, 52, 0.95) 100%);
}
.service-card-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%; padding: 28px 26px;
  transition: transform var(--dur-slow) var(--ease-out);
}
.service-card:hover .service-card-content { transform: translateY(-6px); }
.service-card-title { font-family: var(--font-sans); font-weight: 700; font-size: 22px; color: #fff; margin: 0 0 10px; }
.service-card-text { font-family: var(--font-sans); font-size: 14.5px; line-height: 1.6; color: rgba(230, 244, 245, 0.85); margin: 0; max-width: 320px; }

/* ============================================================
   3. Modelo de operación
   ============================================================ */
.timeline { position: relative; display: flex; gap: 32px; margin-top: 16px; }
.timeline-line {
  position: absolute; left: 23px; right: 23px; top: 23px; height: 1px;
  background: rgba(127, 227, 218, 0.22); z-index: 0;
}
.timeline-step { position: relative; z-index: 1; flex: 1 1 0; display: flex; flex-direction: column; gap: 16px; }
.timeline-num {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(0, 181, 166, 0.55);
  background: rgba(8, 20, 36, 0.9);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 700; font-size: 15px; color: #7FE3DA;
}
.timeline-step-body { display: flex; flex-direction: column; gap: 8px; }
.timeline-title { font-family: var(--font-sans); font-weight: 700; font-size: 18px; color: #fff; margin: 0; }
.timeline-text { font-family: var(--font-sans); font-size: 14.5px; line-height: 1.6; color: rgba(230, 244, 245, 0.75); margin: 0; max-width: 240px; }

@media (max-width: 860px) {
  .timeline { flex-direction: column; gap: 36px; }
  .timeline-line { left: 23px; top: 23px; bottom: 23px; right: auto; width: 1px; height: auto; }
  .timeline-step { flex-direction: row; align-items: flex-start; }
  .timeline-text { max-width: 340px; }
}

/* ============================================================
   4. Red comercial (showcase)
   ============================================================ */
.showcase-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.showcase-scroll::-webkit-scrollbar { height: 6px; }
.showcase-scroll::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 99px; }

.showcase-card {
  position: relative;
  flex: 0 0 auto;
  width: min(340px, 78vw);
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: var(--shadow-md);
  isolation: isolate;
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.showcase-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.showcase-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out); }
.showcase-card:hover .showcase-img { transform: scale(1.08); }
.showcase-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 29, 52, 0.05) 0%, rgba(11, 29, 52, 0.8) 100%);
  transition: background var(--dur-slow) var(--ease-out);
}
.showcase-card:hover .showcase-overlay {
  background: linear-gradient(180deg, rgba(27, 163, 163, 0.22) 0%, rgba(11, 29, 52, 0.85) 100%);
}
.showcase-label { position: absolute; left: 22px; bottom: 22px; z-index: 1; font-family: var(--font-sans); font-weight: 700; font-size: 17px; color: #fff; }

/* Photo-less showcase card variant — brand gradient in place of a repeated photo */
.showcase-card--gradient { background: linear-gradient(160deg, var(--navy-900) 0%, var(--teal-900) 60%, var(--teal-500) 130%); }
.showcase-card--gradient:hover { background: linear-gradient(160deg, var(--navy-900) 0%, var(--teal-900) 55%, var(--teal-500) 115%); }

/* ============================================================
   5. Diferenciales
   ============================================================ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .diff-grid { grid-template-columns: 1fr; } }

.diff-card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.diff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(27, 163, 163, 0.3); }
.diff-mark { position: relative; width: 34px; height: 34px; margin-bottom: 18px; }
.diff-mark::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(27, 163, 163, 0.4); }
.diff-mark::after { content: ''; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--cta-500); }
.diff-title { font-family: var(--font-sans); font-weight: 700; font-size: 17px; color: var(--carbon); margin: 0 0 8px; }
.diff-text { font-family: var(--font-sans); font-size: 14px; line-height: 1.6; color: var(--grey-600); margin: 0; }

/* ============================================================
   6. CTA final
   ============================================================ */
.cta-final { text-align: center; }
.cta-final-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cta-final-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(11, 29, 52, 0.95) 0%, rgba(15, 44, 69, 0.92) 45%, rgba(15, 109, 109, 0.88) 115%);
}
.cta-final-inner { display: flex; flex-direction: column; align-items: center; max-width: 720px; }
.cta-final-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy-900); border-top: 1px solid rgba(143, 224, 222, 0.14); padding: 40px clamp(20px, 5vw, 64px); }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer-logo img { height: 34px; width: auto; display: block; }
.site-footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer-nav a { font-family: var(--font-sans); font-weight: 500; font-size: 13px; color: rgba(255, 255, 255, 0.7); transition: color var(--dur) var(--ease-out); }
.site-footer-nav a:hover { color: #fff; }
.site-footer-copy { font-family: var(--font-sans); font-size: 12px; color: rgba(255, 255, 255, 0.45); margin: 0; width: 100%; order: 3; }

/* ============================================================
   Decorative orbit placements — Modelo de operación / CTA final
   ============================================================ */
.modelo-ring--1 { width: 520px; height: 520px; left: -180px; top: -200px; }
.modelo-ring--2 { width: 340px; height: 340px; right: -120px; bottom: -160px; border-color: rgba(0, 181, 166, 0.16); }
.modelo-dot--1 { width: 6px; height: 6px; right: 12%; top: 18%; box-shadow: 0 0 0 5px rgba(127, 227, 218, 0.14); }
.modelo-dot--2 { width: 5px; height: 5px; left: 8%; bottom: 22%; background: #1BA3A3; box-shadow: 0 0 0 4px rgba(27, 163, 163, 0.16); }

.cta-ring--1 { position: absolute; z-index: 1; width: 460px; height: 460px; right: -140px; top: -160px; border-radius: 50%; border: 1px solid rgba(143, 224, 222, 0.16); pointer-events: none; }
.cta-ring--2 { position: absolute; z-index: 1; width: 300px; height: 300px; left: -100px; bottom: -140px; border-radius: 50%; border: 1px solid rgba(0, 181, 166, 0.18); pointer-events: none; }

/* ============================================================
   Extensions for subpages (Nosotros, and future pages)
   Same system as the Home — additive only, nothing above is modified.
   ============================================================ */

/* Active nav indicator, reusing the hover treatment */
.hero-nav a.is-active { color: #fff; border-bottom-color: var(--teal-500); }
.site-footer-nav a.is-active { color: #fff; }

/* Bullet list (editorial columns, e.g. Quiénes somos) */
.bullet-list { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.bullet-item { display: flex; align-items: center; gap: 12px; font-family: var(--font-sans); font-weight: 600; font-size: 15px; color: var(--carbon); }
.bullet-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cta-500); flex-shrink: 0; }

/* Generic photo + overlay background for any section (extends the hero/cta-final pattern) */
.section-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.section-bg-overlay { position: absolute; inset: 0; z-index: 1; }
.section-bg-overlay--navy-soft {
  background: linear-gradient(165deg, rgba(11, 29, 52, 0.93) 0%, rgba(15, 44, 69, 0.88) 45%, rgba(11, 29, 52, 0.95) 100%);
}

/* Orbit placements — Forma de trabajo */
.trabajo-ring--1 { width: 480px; height: 480px; left: -160px; bottom: -220px; }
.trabajo-ring--2 { width: 300px; height: 300px; right: -100px; top: -140px; border-color: rgba(0, 181, 166, 0.16); }
.trabajo-dot--1 { width: 6px; height: 6px; left: 14%; top: 22%; box-shadow: 0 0 0 5px rgba(127, 227, 218, 0.14); }
.trabajo-dot--2 { width: 5px; height: 5px; right: 10%; bottom: 26%; background: #1BA3A3; box-shadow: 0 0 0 4px rgba(27, 163, 163, 0.16); }

/* Principios — two-column layout pairing a supporting image with the card grid */
.principios-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .principios-layout { grid-template-columns: 1fr; gap: 32px; } }
.diff-grid.diff-grid--2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 520px) { .diff-grid.diff-grid--2col { grid-template-columns: 1fr; } }

/* Bloque visual — bento collage with floating glass chip and orbit decor */
.collage-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 20px;
}
@media (max-width: 780px) {
  .collage-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px 180px; }
}
@media (max-width: 520px) {
  .collage-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 200px); }
}

.collage-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); isolation: isolate; }
.collage-item--a { grid-column: 1; grid-row: 1 / 3; }
.collage-item--b { grid-column: 2; grid-row: 1; }
.collage-item--c { grid-column: 3; grid-row: 1; }
.collage-item--d { grid-column: 2 / 4; grid-row: 2; }
@media (max-width: 780px) {
  .collage-item--a { grid-column: 1 / 3; grid-row: 1; }
  .collage-item--b { grid-column: 1; grid-row: 2; }
  .collage-item--c { grid-column: 2; grid-row: 2; }
  .collage-item--d { grid-column: 1 / 3; grid-row: 3; }
}
@media (max-width: 520px) {
  .collage-item--a, .collage-item--b, .collage-item--c, .collage-item--d { grid-column: 1; }
  .collage-item--a { grid-row: 1; }
  .collage-item--b { grid-row: 2; }
  .collage-item--c { grid-row: 3; }
  .collage-item--d { grid-row: 4; }
}

.collage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.collage-item:hover .collage-img { transform: scale(1.06); }
.collage-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 29, 52, 0.08) 0%, rgba(11, 29, 52, 0.32) 60%, rgba(11, 29, 52, 0.86) 100%);
  transition: background var(--dur-slow) var(--ease-out);
}
.collage-item:hover .collage-overlay { background: linear-gradient(180deg, rgba(27, 163, 163, 0.16) 0%, rgba(11, 29, 52, 0.4) 60%, rgba(11, 29, 52, 0.88) 100%); }
.collage-caption { position: absolute; left: 18px; bottom: 16px; z-index: 1; font-family: var(--font-sans); font-weight: 700; font-size: 14px; color: #fff; }

.collage-chip {
  position: absolute;
  left: 28px; bottom: -28px;
  z-index: 2;
  max-width: 260px;
  background: rgba(11, 29, 52, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(143, 224, 222, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media (max-width: 520px) {
  .collage-chip { position: static; margin-top: 24px; max-width: none; }
}
.collage-chip-label { font-family: var(--font-sans); font-weight: 700; font-size: 14px; color: #fff; }
.collage-chip-sub { font-family: var(--font-sans); font-weight: 500; font-size: 12px; letter-spacing: 0.04em; color: #7FE3DA; }

/* ============================================================
   Extensions for Servicios (and future pages) — additive only
   ============================================================ */

/* Subtle decorative orbital-lines texture over a hero photo */
.hero-orbital-overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.16; mix-blend-mode: screen; z-index: 1; pointer-events: none; }

/* Grid variants for card groups of different counts */
.diff-grid.diff-grid--3col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .diff-grid.diff-grid--3col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .diff-grid.diff-grid--3col { grid-template-columns: 1fr; } }

/* Abstract glass/CSS panel (Introducción) — light-surface counterpart to the dark glass cards */
.abstract-panel { position: relative; background: linear-gradient(160deg, var(--aqua-50) 0%, #fff 65%); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 32px; overflow: hidden; }
.intro-ring--1 { position: absolute; z-index: 0; width: 220px; height: 220px; right: -70px; top: -80px; border-radius: 50%; border: 1px solid rgba(27, 163, 163, 0.16); pointer-events: none; }
.intro-ring--2 { position: absolute; z-index: 0; width: 140px; height: 140px; left: -50px; bottom: -60px; border-radius: 50%; border: 1px solid rgba(0, 181, 166, 0.14); pointer-events: none; }
.abstract-panel > .diff-grid { position: relative; z-index: 1; }

/* Alternate background overlay — vignette that keeps a photo visible centrally (Red comercial) */
.section-bg-overlay--navy-frame {
  background: linear-gradient(180deg, rgba(11, 29, 52, 0.88) 0%, rgba(11, 29, 52, 0.6) 44%, rgba(11, 29, 52, 0.35) 62%, rgba(11, 29, 52, 0.88) 100%);
  transition: background var(--dur-slow) var(--ease-out);
}

/* Premium scenario list (Escenarios de valor) */
.scenario-list { display: flex; flex-direction: column; gap: 14px; }
.scenario-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--cta-500);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-family: var(--font-sans); font-weight: 500; font-size: 15px; line-height: 1.6; color: var(--grey-900);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.scenario-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }

/* Floating glass info-cards over a single full-bleed photo (Red comercial) */
.floating-cards-row { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.floating-card {
  flex: 1 1 220px; max-width: 280px;
  background: rgba(11, 29, 52, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(143, 224, 222, 0.22);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out), border-color var(--dur-slow) var(--ease-out);
}
.floating-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: rgba(0, 181, 166, 0.4); }
.floating-card-title { font-family: var(--font-sans); font-weight: 700; font-size: 17px; color: #fff; margin: 0 0 8px; }
.floating-card-text { font-family: var(--font-sans); font-size: 13.5px; line-height: 1.6; color: rgba(230, 244, 245, 0.78); margin: 0; }

/* Section-level hover: gentle image zoom + teal overlay shift (Red comercial) */
#red-comercial .section-bg-img { transition: transform 900ms var(--ease-out); }
#red-comercial:hover .section-bg-img { transform: scale(1.04); }
#red-comercial:hover .section-bg-overlay--navy-frame {
  background: linear-gradient(180deg, rgba(11, 29, 52, 0.86) 0%, rgba(27, 163, 163, 0.4) 44%, rgba(27, 163, 163, 0.28) 62%, rgba(11, 29, 52, 0.88) 100%);
}

/* ============================================================
   Extensions for Contacto (and future pages) — additive only
   ============================================================ */

/* Glass form panel floating over a supporting photo */
.contact-visual-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 660px; box-shadow: var(--shadow-lg); }
.contact-visual-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-visual-overlay { position: absolute; inset: 0; background: linear-gradient(165deg, rgba(11, 29, 52, 0.92) 0%, rgba(11, 29, 52, 0.55) 55%, rgba(15, 109, 109, 0.45) 100%); }
.form-glass-card {
  position: relative; z-index: 1; margin: 28px;
  background: rgba(11, 29, 52, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(143, 224, 222, 0.22);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 640px) {
  .contact-visual-wrap { min-height: auto; }
  .form-glass-card { margin: 14px; padding: 22px 18px; }
}

/* Form fields (static markup, no backend) */
.form-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.form-field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.form-field--full { flex: 1 1 100%; }
.form-label { font-family: var(--font-sans); font-weight: 600; font-size: 12.5px; letter-spacing: 0.02em; color: #7FE3DA; }
.form-input, .form-select, .form-textarea {
  font-family: var(--font-sans);
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(143, 224, 222, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-on-dark);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(234, 242, 244, 0.4); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--ring); background: rgba(255, 255, 255, 0.1); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-select option { color: var(--carbon); }
.form-submit { margin-top: 8px; width: 100%; justify-content: center; border: none; cursor: pointer; }

/* Contact channel list (email / phone / location) */
.contact-channels { display: flex; flex-direction: column; margin-top: 8px; }
.channel-item { padding: 16px 0; border-bottom: 1px solid var(--border-subtle); }
.channel-item:last-child { border-bottom: none; }
.channel-label { font-family: var(--font-sans); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-600); }
.channel-value { font-family: var(--font-sans); font-weight: 700; font-size: 17px; color: var(--carbon); margin-top: 4px; }
.channel-value a { color: inherit; transition: color var(--dur) var(--ease-out); }
.channel-value a:hover { color: var(--teal-500); }

/* Confidentiality note */
.confidential-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; padding: 16px 18px; background: var(--aqua-50); border-radius: var(--radius-sm); font-family: var(--font-sans); font-size: 13.5px; line-height: 1.6; color: var(--grey-900); }

/* ============================================================
   Centered, editorial Hero composition — Nosotros / Servicios / Contacto.
   Scoped to these modifier classes so index.html's two-column Hero
   (copy + dashboard cluster) is completely unaffected.
   ============================================================ */
.hero-body--center {
  display: flex;
  justify-content: center;
}

.hero-copy--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: clamp(760px, 68vw, 1040px);
}
.hero-copy--center .hero-kicker { align-items: center; }
.hero-copy--center .hero-lead { max-width: 780px; margin-left: auto; margin-right: auto; }
.hero-copy--center .hero-ctas { justify-content: center; margin-top: 32px; }
.hero-copy--center .hero-badges { justify-content: center; }

@media (max-width: 1024px) {
  .hero-copy--center { max-width: 720px; }
}

@media (max-width: 640px) {
  .hero-copy--center .hero-title { font-size: clamp(40px, 12vw, 58px); }
}
.confidential-note-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cta-500); flex-shrink: 0; margin-top: 6px; }
