/* =========================================================
   LA DOLORENSE — Cooperativa de Trabajo
   Design tokens + responsive landing
   ========================================================= */

:root {
  /* Brand — vibrant azure palette */
  --navy-900: #07287E;
  --navy-800: #0A38A6;
  --navy-700: #0D45C9;
  --navy-600: #1158E8;   /* core deep brand */
  --navy-500: #1E6BFF;   /* hero core */
  --sky-500:  #3B8BFF;   /* mid bright */
  --sky-400:  #5FA8FF;   /* highlight */
  --sky-300:  #8AC3FF;   /* soft glow */
  --sky-200:  #B8D9FF;   /* light glow */
  --gold:     #FFC73B;

  /* Neutrals */
  --ink:        #08184A;
  --ink-2:      #122363;
  --muted:      #5B6B8C;
  --muted-2:    #8B97B3;
  --line:       #DDE7F7;
  --line-dark:  rgba(255,255,255,0.10);
  --bg:         #EEF5FF;
  --bg-soft:    #E2EEFF;
  --white:      #FFFFFF;

  /* Gradients — extracted from vibrant blue reference */
  --grad-hero:
    radial-gradient(60% 50% at 15% 10%, rgba(138,195,255,0.55) 0%, transparent 60%),
    radial-gradient(50% 45% at 85% 25%, rgba(95,168,255,0.55) 0%, transparent 60%),
    radial-gradient(55% 50% at 25% 85%, rgba(184,217,255,0.45) 0%, transparent 60%),
    radial-gradient(70% 60% at 75% 80%, rgba(138,195,255,0.50) 0%, transparent 65%),
    linear-gradient(135deg, #1E6BFF 0%, #1158E8 50%, #0D45C9 100%);
  --grad-text:  linear-gradient(90deg, #B8D9FF, #FFFFFF 60%, #8AC3FF);
  --grad-accent:linear-gradient(135deg, #0D45C9 0%, #3B8BFF 60%, #5FA8FF 100%);
  --grad-soft:  linear-gradient(135deg, #1E6BFF 0%, #5FA8FF 100%);

  /* Effects */
  --shadow-card:  0 12px 40px -16px rgba(11,26,61,0.30);
  --shadow-hover: 0 24px 60px -22px rgba(11,26,61,0.45);
  --shadow-glow:  0 0 0 1px rgba(94,200,242,0.20), 0 20px 60px -20px rgba(94,200,242,0.35);
  --glass:        rgba(255,255,255,0.06);
  --glass-strong: rgba(255,255,255,0.10);
  --glass-line:   rgba(255,255,255,0.14);

  /* Type */
  --ff-display: 'Poppins', system-ui, -apple-system, Segoe UI, sans-serif;
  --ff-body:    'Inter', 'Poppins', system-ui, -apple-system, Segoe UI, sans-serif;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;

  /* Layout */
  --container: 1240px;
  --pad-x: clamp(20px, 4vw, 40px);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
:focus-visible { outline: 2px solid var(--sky-400); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1,h2,h3,h4,h5 { font-family: var(--ff-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 2.4vw + 1rem, 3.2rem); }
h3 { font-size: clamp(1.15rem, 0.6vw + 0.95rem, 1.45rem); }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin: 0; }

.section-title { font-family: var(--ff-display); color: var(--ink); }
.lead { color: var(--muted); font-size: clamp(1rem, 0.4vw + 0.9rem, 1.15rem); line-height: 1.7; max-width: 60ch; }

.grad {
  background: linear-gradient(90deg, #0D45C9, #3B8BFF 60%, #5FA8FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* On dark sections (hero, cta-strip), use light gradient */
.hero .grad,
.cta-strip .grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  font-family: var(--ff-display);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #FFFFFF;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: var(--r-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.eyebrow--dark { color: var(--navy-600); background: rgba(17,88,232,0.08); border-color: rgba(17,88,232,0.22); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255,255,255,0.22); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--r-pill);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(77,184,232,0.7), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -14px rgba(77,184,232,0.9); }
.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--white {
  background: #fff;
  color: var(--navy-700);
  box-shadow: 0 14px 30px -16px rgba(0,0,0,0.35);
}
.btn--white:hover { transform: translateY(-2px); }
.btn--pill { padding: 11px 18px; font-size: .85rem; }

/* =========================================================
   NAVBAR — White translucent over color logo
   ========================================================= */
.nav {
  position: fixed; top: 16px; left: 16px; right: 16px;
  z-index: 50;
  padding: 10px 16px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--r-pill);
  box-shadow: 0 16px 40px -22px rgba(8,24,74,0.45);
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease, top .3s ease;
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 18px 44px -18px rgba(8,24,74,0.35);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding-inline: 8px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav__brand img.brand-logo { height: 56px; width: auto; display: block; }

.nav__menu {
  display: flex; gap: 4px;
  margin-inline: auto;
}
.nav__menu a {
  padding: 9px 16px;
  font-family: var(--ff-display);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--r-pill);
  transition: color .25s, background .25s;
}
.nav__menu a:hover { color: var(--navy-600); background: rgba(17,88,232,0.08); }

.nav__cta {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(17,88,232,0.55);
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(17,88,232,0.7); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(8,24,74,0.08);
  align-items: center; justify-content: center;
  transition: background .25s, transform .25s;
}
.nav__toggle img { width: 22px; height: 22px; display: block; }
.nav__toggle:hover { background: #fff; transform: scale(1.04); }

/* mobile menu */
@media (max-width: 900px) {
  .nav { left: 12px; right: 12px; padding: 10px 14px; }
  .nav__brand img.brand-logo { height: 48px; }
  .nav__menu { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; margin-left: auto; }
  .nav.is-open .nav__menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px); left: 0; right: 0;
    padding: 14px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(8,24,74,0.08);
    border-radius: var(--r-lg);
    box-shadow: 0 20px 40px -20px rgba(8,24,74,0.3);
  }
  .nav.is-open .nav__menu a { padding: 12px 14px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(140px, 16vh, 200px) 0 80px;
  background: var(--grad-hero);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }

.hero__bg-photo {
  position: absolute;
  inset: -30px;
  background-image: url('assets/fondo-pagina-png.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(14px) brightness(0.55) saturate(1.3) contrast(1.05);
  transform: scale(1.08);
  animation: heroPhotoDrift 28s ease-in-out infinite alternate;
}

@keyframes heroPhotoDrift {
  0%   { transform: scale(1.08) translate3d(0, 0, 0); }
  100% { transform: scale(1.10) translate3d(-2%, -1%, 0); }
}

.hero__bg-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(11,63,168,0.88) 0%, rgba(17,88,232,0.82) 45%, rgba(13,69,201,0.90) 100%),
    radial-gradient(50% 60% at 10% 20%, rgba(184,217,255,0.45) 0%, transparent 60%),
    radial-gradient(45% 55% at 85% 80%, rgba(95,168,255,0.40) 0%, transparent 60%);
  mix-blend-mode: normal;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  will-change: transform;
}
.orb--1 { width: 520px; height: 520px; top: -140px; left: -140px; background: radial-gradient(circle, #8AC3FF, transparent 65%); opacity: .75; }
.orb--2 { width: 580px; height: 580px; bottom: -200px; right: -120px; background: radial-gradient(circle, #5FA8FF, transparent 65%); opacity: .65; }
.orb--3 { width: 380px; height: 380px; top: 30%; right: 22%; background: radial-gradient(circle, #B8D9FF, transparent 65%); opacity: .55; }

/* additional decorative thin rings (matching reference image) */
.hero__bg::before,
.hero__bg::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  pointer-events: none;
}
.hero__bg::before { width: 280px; height: 280px; top: 18%; left: 8%; }
.hero__bg::after  { width: 200px; height: 200px; bottom: 14%; right: 12%; }

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

/* HERO SPLIT — Mobile: stacked centered. Desktop: 2-column flex */
.hero__split {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
  max-width: 880px;
  margin: 0 auto;
}
.hero__col { width: 100%; min-width: 0; }
.hero__col--left  { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero__col--right { display: flex; flex-direction: column; align-items: center; gap: 28px; }

.hero__split .hero__title {
  font-size: clamp(2.4rem, 5vw + 0.5rem, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 800;
  margin: 0;
}
.hero__split .hero__lead {
  margin: 0;
  max-width: 64ch;
}
.hero__split .hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero__split .hero__rating { display: flex; align-items: center; gap: 16px; }

@media (min-width: 901px) {
  .hero__split {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
    max-width: var(--container);
    text-align: left;
  }
  .hero__col { flex: 1; }
  .hero__col--left  { align-items: flex-start; }
  .hero__col--right { align-items: flex-start; gap: 32px; }
  .hero__split .hero__title {
    font-size: clamp(2.6rem, 3.8vw + 0.5rem, 4.6rem);
  }
  .hero__split .hero__cta { justify-content: flex-start; }
}

/* decorative chips (replace the right-side visual) */
.hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__grid { position: relative; z-index: 2; }
.decor-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.40);
  border-radius: var(--r-pill);
  color: #fff;
  font-family: var(--ff-display);
  font-size: .88rem;
  font-weight: 500;
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.45);
  will-change: transform;
}
.decor-chip strong { font-weight: 800; color: #B8D9FF; font-size: 1.05rem; }
.decor-chip .ck {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(184,217,255,0.35);
  color: #fff;
  font-size: .75rem;
}
.decor-chip .dot-pulse {
  position: relative;
  width: 10px; height: 10px; border-radius: 50%;
  background: #4DE8A0;
}
.decor-chip .dot-pulse::after {
  content: '';
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 2px solid #4DE8A0;
  animation: pulse 1.8s ease-out infinite;
}

.decor-chip--1 { top: 22%; left: 6%; animation: float 5s ease-in-out infinite; }
.decor-chip--2 { top: 36%; right: 5%; animation: float 6.2s ease-in-out infinite reverse; animation-delay: -1.2s; }
.decor-chip--3 { bottom: 18%; left: 12%; animation: float 5.6s ease-in-out infinite; animation-delay: -2.4s; }

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

@media (max-width: 900px) {
  .decor-chip { font-size: .78rem; padding: 10px 14px; }
  .decor-chip--1 { top: 16%; left: 4%; }
  .decor-chip--2 { top: 28%; right: 3%; }
  .decor-chip--3 { bottom: 8%; left: 6%; }
}
@media (max-width: 600px) {
  .hero__decor { display: none; }
}
.hero__title { margin-top: 18px; }
.hero__lead { margin-top: 22px; color: rgba(255,255,255,0.78); max-width: 56ch; font-size: 1.05rem; }

.hero__cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero__rating { display: flex; align-items: center; gap: 16px; margin-top: 36px; color: rgba(255,255,255,0.85); }
.stars { display: flex; gap: 2px; }
.hero__rating strong { display: block; font-family: var(--ff-display); font-size: 1.35rem; line-height: 1; color: #fff; }
.hero__rating span { font-size: .85rem; color: rgba(255,255,255,0.6); }

/* Hero Visual */
.hero__visual { position: relative; min-height: 520px; }
.visual-frame {
  position: relative; width: 100%; height: 100%;
  display: grid; place-items: center;
}

.floating-card {
  position: absolute;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
  will-change: transform;
}

.fc--main {
  position: relative;
  width: min(82%, 380px);
  z-index: 2;
  background: linear-gradient(180deg, rgba(184,217,255,0.22), rgba(184,217,255,0.06));
  border-color: rgba(184,217,255,0.45);
  box-shadow: 0 30px 70px -25px rgba(13,69,201,0.55);
}
.fc__header { display: flex; align-items: center; justify-content: space-between; }
.fc__chip {
  padding: 5px 10px;
  font-family: var(--ff-display);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: #B8D9FF;
  background: rgba(184,217,255,0.18);
  border-radius: 999px;
  border: 1px solid rgba(184,217,255,0.4);
}
.fc__pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #4DE8A0; }
.fc__pulse::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #4DE8A0; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.fc--main h3 { font-size: 1.15rem; margin: 14px 0 14px; color: #fff; }
.fc__list { display: grid; gap: 10px; }
.fc__list li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  font-size: .9rem;
  color: rgba(255,255,255,0.86);
}
.fc__list em { margin-left: auto; font-style: normal; font-family: var(--ff-display); font-weight: 600; color: #B8D9FF; }
.ck {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(184,217,255,0.25);
  color: #B8D9FF;
  font-size: .7rem; font-weight: bold;
}

.fc--top {
  top: 6%;
  left: -2%;
  width: min(58%, 260px);
  z-index: 3;
}
.fc--top h4 { font-size: .95rem; color: #fff; margin-top: 4px; }
.fc__label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.fc__bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 999px; margin: 14px 0 10px; overflow: hidden; }
.fc__bar span { display: block; height: 100%; width: 78%; background: var(--grad-accent); border-radius: 999px; }
.fc--top small { font-size: .75rem; color: rgba(255,255,255,0.6); }

.fc--bottom {
  bottom: 4%;
  right: -2%;
  width: min(48%, 220px);
  z-index: 3;
  text-align: left;
}
.fc__years .num {
  display: block;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: #fff;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fc__years small { display: block; margin-top: 6px; color: rgba(255,255,255,0.7); font-size: .8rem; }

/* Hero mini cards */
.hero__cards {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 80px;
}
.mini-card {
  position: relative;
  padding: 26px 20px 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
  color: #fff;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}
.mini-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.14); border-color: rgba(184,217,255,0.55); }

.mini-card__badge {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.10);
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 12px 28px -10px rgba(7,40,126,0.55);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform .35s ease, box-shadow .35s ease;
}
.mini-card__badge img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.mini-card:hover .mini-card__badge { transform: scale(1.05); box-shadow: 0 16px 30px -10px rgba(7,40,126,0.7); }

.mini-card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(184,217,255,0.18);
  color: #B8D9FF;
  border-radius: 12px;
  margin-bottom: 8px;
}
.mini-card__icon svg { width: 22px; height: 22px; }
.mini-card h4 { font-size: 1.02rem; margin: 6px 0 4px; }
.mini-card p { font-size: .88rem; color: rgba(255,255,255,0.78); line-height: 1.55; }

.mini-card--dark {
  background: linear-gradient(180deg, rgba(7,40,126,0.65), rgba(13,69,201,0.55));
  border: 1px solid rgba(184,217,255,0.40);
  overflow: hidden;
  min-height: 170px;
  text-align: center;
  align-items: center;
  justify-content: center;
}
.mini-card__art { position: absolute; inset: 0; opacity: .35; pointer-events: none; }
.art-shape {
  position: absolute;
  right: -40px; top: -30px;
  width: 220px; height: 220px;
  background: radial-gradient(circle at 30% 30%, rgba(184,217,255,0.7), transparent 60%);
  border-radius: 50%;
  filter: blur(28px);
}
.mini-card--dark h4 { font-size: 1.25rem; }
.link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: rgba(184,217,255,0.18); border: 1px solid rgba(184,217,255,0.4); color: #fff; border-radius: 999px; font-size: .85rem; font-weight: 500; align-self: center; transition: background .25s; }
.link:hover { background: rgba(184,217,255,0.32); }

@media (max-width: 1050px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { min-height: 480px; }
  .hero__cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero { padding-top: 120px; }
  .hero__visual { min-height: 420px; }
  .fc--main { width: 90%; }
  .fc--top  { width: 64%; }
  .fc--bottom { width: 56%; }
  .hero__cards { grid-template-columns: 1fr; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  padding: clamp(80px, 12vh, 130px) 0;
  background: var(--bg);
  position: relative;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.about__image { position: relative; }
.about-photo {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: 0 30px 70px -28px rgba(7,40,126,0.55);
  border: 1px solid rgba(17,88,232,0.18);
  isolation: isolate;
}
.about-photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.4s ease;
}
.about-photo:hover .about-photo__img { transform: scale(1.04); }
.about-photo__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 55%, rgba(8,24,74,0.45) 100%),
    radial-gradient(40% 40% at 12% 12%, rgba(17,88,232,0.20), transparent 70%);
  mix-blend-mode: multiply;
}
.about__sticker {
  position: absolute;
  bottom: -28px; left: -28px;
  padding: 22px 26px;
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  border-left: 4px solid var(--sky-500);
}
.about__sticker strong {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.about__sticker span { color: var(--muted); font-size: .85rem; line-height: 1.3; margin-top: 6px; }

.about__copy .section-title { margin: 16px 0 22px; }

.about__pillars { display: grid; gap: 20px; margin: 32px 0 36px; }
.pillar { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform .3s, box-shadow .3s, border-color .3s; }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--sky-400); }
.pillar__icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--grad-accent);
  color: #fff;
  border-radius: 12px;
}
.pillar__icon svg { width: 22px; height: 22px; }
.pillar h4 { margin-bottom: 4px; color: var(--ink); }
.pillar p { font-size: .92rem; color: var(--muted); line-height: 1.6; }

@media (max-width: 950px) {
  .about__grid { grid-template-columns: 1fr; gap: 60px; }
  .about__sticker { bottom: -22px; left: 16px; padding: 18px; }
  .about__sticker strong { font-size: 2.2rem; }
}

/* =========================================================
   STATS
   ========================================================= */
.stats {
  padding: 70px 0 90px;
  background: var(--bg);
  position: relative;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 50px 30px;
  background: linear-gradient(180deg, #fff, var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-card);
}
.stats__grid--duo {
  grid-template-columns: 1fr 1fr;
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 56px;
  text-align: center;
  justify-items: center;
}
.stats__grid--duo .stat__num { font-size: clamp(3rem, 5vw, 4.6rem); }
.stats__grid--duo .stat__line { margin-inline: auto; }
.stats__grid--duo .stat p { max-width: 28ch; }
.stat__num {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat__line { width: 40px; height: 3px; background: var(--sky-500); border-radius: 999px; margin: 14px 0 14px; }
.stat p { color: var(--muted); font-size: .92rem; line-height: 1.55; }

@media (max-width: 800px) {
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 28px; padding: 36px 22px; }
}
@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  padding: clamp(80px, 14vh, 140px) 0;
  background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head .lead { margin: 22px auto 0; }
.section-head .section-title { margin-top: 16px; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  position: relative;
  padding: 28px 22px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: 0 6px 20px -14px rgba(7,40,126,0.18);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--sky-400);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__num {
  position: absolute;
  top: 18px; right: 24px;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--bg-soft);
  z-index: 0;
  pointer-events: none;
}
.service-card__icon {
  position: relative;
  width: 84px; height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft);
  border: 2px solid rgba(17,88,232,0.18);
  margin: 0 auto 22px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  box-shadow: 0 12px 30px -14px rgba(7,40,126,0.35);
}
.service-card:hover .service-card__icon {
  transform: scale(1.06) translateY(-2px);
  border-color: rgba(17,88,232,0.5);
  box-shadow: 0 18px 36px -14px rgba(17,88,232,0.55);
}
.service-card__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-card h3 { position: relative; color: var(--ink); margin-bottom: 16px; font-size: 1.1rem; line-height: 1.3; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; justify-content: center; }
.tags li {
  font-size: .78rem;
  font-weight: 500;
  font-family: var(--ff-display);
  color: var(--navy-700);
  background: var(--bg-soft);
  border: 1px solid rgba(17,88,232,0.12);
  padding: 5px 10px;
  border-radius: 999px;
}
.wa-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto;
  padding: 6px 16px 6px 6px;
  background: #fff;
  color: #1FA855;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .88rem;
  border-radius: 999px;
  border: 1.5px solid rgba(37,211,102,0.30);
  align-self: center;
  transition: transform .25s, box-shadow .25s, border-color .25s, background .25s;
  box-shadow: 0 8px 18px -12px rgba(37,211,102,0.35);
}
.wa-link img { width: 26px; height: 26px; display: block; flex-shrink: 0; }
.wa-link span { line-height: 1; }
.wa-link:hover {
  transform: translateY(-2px);
  border-color: #25D366;
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 16px 28px -10px rgba(37,211,102,0.65);
}
.wa-link:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -10px rgba(37,211,102,0.9); background: #1FBA59; }

@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   GALLERY (infinite marquee)
   ========================================================= */
.gallery {
  padding: clamp(70px, 10vh, 110px) 0 clamp(60px, 8vh, 90px);
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  overflow: hidden;
  position: relative;
}
.gallery__head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.gallery__head .section-title { margin-top: 16px; }
.gallery__head .lead { margin: 22px auto 0; }

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee__track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 10px 0;
  animation: marquee-scroll 55s linear infinite !important;
  animation-iteration-count: infinite !important;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused !important; }

.gallery-item {
  flex: 0 0 auto;
  margin: 0;
  width: clamp(220px, 26vw, 320px);
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid rgba(17,88,232,0.10);
  box-shadow: 0 14px 36px -22px rgba(7,40,126,0.45);
  transition: transform .35s ease, box-shadow .35s ease;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -20px rgba(7,40,126,0.55); }
.gallery-item:hover img { transform: scale(1.06); }

@keyframes marquee-scroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* =========================================================
   TRUST · Constructora Matías
   ========================================================= */
.trust__partner {
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 18px 34px;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
  border: 1px solid rgba(184,217,255,0.30);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 44px -22px rgba(7,40,126,0.65), inset 0 1px 0 rgba(255,255,255,0.10);
  margin-bottom: 8px;
  transition: transform .35s ease, box-shadow .35s ease;
  position: relative;
  overflow: hidden;
}
.trust__partner::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(50% 80% at 80% 0%, rgba(184,217,255,0.20), transparent 60%);
  pointer-events: none;
}
.trust__partner:hover { transform: translateY(-3px); box-shadow: 0 28px 52px -22px rgba(7,40,126,0.75), inset 0 1px 0 rgba(255,255,255,0.14); }
.trust__partner-logo {
  display: block;
  height: clamp(56px, 6vw, 84px);
  width: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.30));
}

.trust {
  padding: clamp(80px, 12vh, 130px) 0;
  background:
    radial-gradient(60% 60% at 100% 0%, rgba(17,88,232,0.08) 0%, transparent 60%),
    radial-gradient(50% 50% at 0% 100%, rgba(184,217,255,0.30) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg-soft) 0%, #fff 50%, var(--bg-soft) 100%);
  position: relative;
  overflow: hidden;
}
.trust__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 40px;
}
.trust-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: 0 12px 36px -24px rgba(7,40,126,0.35);
  backdrop-filter: blur(8px);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.trust-card:hover {
  transform: translateY(-4px);
  border-color: rgba(17,88,232,0.35);
  box-shadow: 0 20px 44px -22px rgba(17,88,232,0.45);
}
.trust-card__icon {
  flex-shrink: 0;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: grid; place-items: center;
  box-shadow: 0 18px 32px -12px rgba(17,88,232,0.6);
  transition: transform .35s ease, box-shadow .35s ease;
}
.trust-card:hover .trust-card__icon {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 22px 40px -10px rgba(17,88,232,0.75);
}
.trust-card__icon img { width: 62px; height: 62px; object-fit: contain; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.22)); }
.trust-card h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 8px; }
.trust-card p  { color: var(--muted); font-size: .92rem; line-height: 1.65; }

.certificate {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 26px 32px;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-500) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  box-shadow: 0 28px 60px -28px rgba(7,40,126,0.6);
  position: relative;
  overflow: hidden;
}
.certificate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 80% at 85% 0%, rgba(184,217,255,0.22), transparent 60%);
  pointer-events: none;
}
.certificate__badge {
  display: flex; align-items: center; gap: 16px;
  position: relative;
  z-index: 1;
}
.certificate__badge svg { color: #B8D9FF; flex-shrink: 0; }
.certificate__badge small {
  display: block;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}
.certificate__badge strong {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: #fff;
}
.certificate p {
  color: rgba(255,255,255,0.85);
  font-size: .92rem;
  max-width: 42ch;
  text-align: right;
  position: relative;
  z-index: 1;
}

.certificate + .certificate { margin-top: 18px; }

.certificate__data {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}
.certificate__data li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.certificate__data li span {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
}
.certificate__data li strong {
  font-family: var(--ff-display);
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .02em;
}

@media (max-width: 900px) {
  .certificate__data {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
  }
  .certificate__data li strong { font-size: 1rem; }
}

@media (max-width: 900px) {
  .trust__grid { grid-template-columns: 1fr; gap: 18px; }
  .trust-card { padding: 22px; gap: 16px; }
  .certificate { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; }
  .certificate p { text-align: left; }
}
@media (max-width: 560px) {
  .trust-card { flex-direction: column; }
  .trust-card__icon { align-self: center; }
}

/* =========================================================
   CTA STRIP
   ========================================================= */
.cta-strip {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  color: #fff;
  isolation: isolate;
}
.cta-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 55% at 85% 5%, rgba(184,217,255,0.45), transparent 60%),
    radial-gradient(40% 50% at 15% 95%, rgba(138,195,255,0.35), transparent 60%);
  z-index: -1;
}
.cta-strip__inner {
  display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
}
.cta-strip h2 { color: #fff; margin-bottom: 12px; }
.cta-strip p { color: rgba(255,255,255,0.72); max-width: 56ch; }

@media (max-width: 800px) {
  .cta-strip__inner { grid-template-columns: 1fr; text-align: left; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  padding: clamp(80px, 12vh, 130px) 0;
  background: #fff;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
}
.contact__cards { display: grid; gap: 14px; }

.contact-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--sky-400);
  box-shadow: var(--shadow-card);
}
.contact-card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-card__icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.contact-card__body { display: flex; flex-direction: column; min-width: 0; }
.contact-card__label {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-card strong { font-family: var(--ff-display); color: var(--ink); font-size: 1rem; font-weight: 600; }
.contact-card__arrow { margin-left: auto; color: var(--muted); transition: color .3s, transform .3s; }
.contact-card:hover .contact-card__arrow { color: var(--sky-500); transform: translate(2px,-2px); }

.contact-info {
  margin-top: 14px;
  padding: 22px;
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  display: grid; gap: 14px;
}
.contact-info__row {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-2);
  font-size: .95rem;
}
.contact-info__row svg { color: var(--sky-500); flex-shrink: 0; }
.contact-info__ig { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.contact-info__row a:hover { color: var(--sky-500); }

.contact__map {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  min-height: 460px;
}

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__map { min-height: 340px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.78);
  padding-top: 80px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 60px;
}
.footer__brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.footer__logo { width: 220px; height: auto; display: block; }
.footer__about { font-size: .9rem; line-height: 1.6; color: rgba(255,255,255,0.7); max-width: 32ch; }

.footer h5 {
  font-family: var(--ff-display);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer ul { display: grid; gap: 10px; }
.footer ul a, .footer__contact li { font-size: .9rem; color: rgba(255,255,255,0.7); transition: color .25s; }
.footer ul a:hover { color: var(--sky-400); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
}
.footer__bottom .container {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: rgba(255,255,255,0.5);
  font-size: .82rem;
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   FLOATING WA
   ========================================================= */
.fab-wa {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  box-shadow: 0 16px 30px -10px rgba(37,211,102,0.55);
  z-index: 40;
  transition: transform .3s ease, box-shadow .3s ease;
}
.fab-wa img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.fab-wa::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: pulse 2s ease-out infinite;
  pointer-events: none;
}
.fab-wa:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 22px 40px -12px rgba(37,211,102,0.8); }

/* =========================================================
   ANIMATIONS — Reveal on scroll (single, consistent system)
   - Elementos parten ocultos con leve desplazamiento
   - Cuando IntersectionObserver detecta entrada al viewport,
     se les agrega .is-revealed y CSS transition los muestra.
   - Una vez revelados, permanecen visibles (no re-animan).
   ========================================================= */
[data-anim] {
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-anim="title"]  { transform: translateY(22px); }
[data-anim="fade"]   { transform: translateY(18px); }
[data-anim="card"]   { transform: translateY(28px); }
[data-anim="reveal"] { transform: scale(0.95); }
[data-anim="visual"] { transform: translateY(28px); }

[data-anim].is-revealed {
  opacity: 1;
  transform: none;
}

/* respect prefers-reduced-motion (excepción: marquee mantiene movimiento) */
@media (prefers-reduced-motion: reduce) {
  *:not(.marquee__track), *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-anim] { opacity: 1; transform: none !important; }
  html { scroll-behavior: auto; }
  .marquee__track {
    animation: marquee-scroll 75s linear infinite !important;
    animation-iteration-count: infinite !important;
    animation-duration: 75s !important;
  }
}
