/* ===============================================================
   santa-catalina.css — Instalación Logística Apartadero Santa Catalina
   =============================================================== */

/* ── Hero ──────────────────────────────────────────────────── */
.sc-hero {
  position: relative;
  background-color: var(--sr-primary-dark);
  color: #fff;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5.5rem);
}
.sc-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/placeholders/terreno-anterior.jpg') center 30% / cover no-repeat;
  opacity: 0.13;
  z-index: 0;
  pointer-events: none;
}
.sc-hero-content {
  position: relative;
  z-index: 1;
}

.sc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
}
.sc-badge-sep { opacity: 0.35; }

.sc-hero-supertitle {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 0.55rem;
}
.sc-hero-h1 {
  font-family: var(--sr-font-display);
  font-size: clamp(3rem, 7.5vw, 5.75rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
  max-width: 16ch;
}
.sc-hero-desc {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 54ch;
  line-height: 1.72;
  margin-bottom: 3rem;
}

/* Stats strip at base of hero */
.sc-stats-strip {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-top: 2rem;
}
.sc-stat {
  flex: 1 1 160px;
  padding: 0 2.25rem 0.5rem 0;
}
.sc-stat + .sc-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 2.25rem;
  padding-right: 0;
}
.sc-stat-num {
  display: block;
  font-family: var(--sr-font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.sc-stat-lbl {
  display: block;
  font-size: 0.77rem;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 500;
  margin-top: 0.25rem;
}
@media (max-width: 575px) {
  .sc-stat { flex-basis: 100%; padding-right: 0; }
  .sc-stat + .sc-stat {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 0.75rem;
  }
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.sc-breadcrumb { background: var(--sr-bg); }
.sc-breadcrumb .breadcrumb { font-size: 0.82rem; margin-bottom: 0; }
.sc-breadcrumb .breadcrumb-item a {
  color: var(--sr-primary);
  text-decoration: none;
}
.sc-breadcrumb .breadcrumb-item a:hover { text-decoration: underline; }

/* ── Section scaffolding ───────────────────────────────────── */
.sc-section { padding: clamp(3.5rem, 6vw, 6rem) 0; }
.sc-section-title {
  font-family: var(--sr-font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--sr-text);
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
}

/* ── Intro layout ──────────────────────────────────────────── */
.sc-intro-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 991px) {
  .sc-intro-layout { grid-template-columns: 1fr; gap: 2.25rem; }
}
.sc-intro-body {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.74;
  color: var(--sr-ink);
}
.sc-intro-body p { max-width: 62ch; margin-bottom: 0; }
.sc-intro-body p + p { margin-top: 1.2rem; }
.sc-intro-body strong { color: var(--sr-text); }

.sc-aside-card {
  background: var(--sr-primary);
  border-radius: 16px;
  padding: 2rem;
  color: #fff;
}
.sc-aside-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.70);
  margin-bottom: 1.5rem;
}
.sc-aside-entry {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sc-aside-entry:last-child { border-bottom: none; padding-bottom: 0; }
.sc-aside-entry:first-child { padding-top: 0; }
.sc-aside-key {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.70);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sc-aside-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

/* ── Data panels ───────────────────────────────────────────── */
.sc-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 767px) { .sc-panels { grid-template-columns: 1fr; } }

.sc-panel {
  background: #fff;
  border: 1px solid var(--sr-border);
  border-radius: 16px;
  overflow: hidden;
}
.sc-panel-head {
  background: var(--sr-primary);
  color: #fff;
  padding: 0.9rem 1.5rem;
  font-family: var(--sr-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.sc-panel-body { padding: 0 1.5rem; }
.sc-def-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--sr-border);
}
.sc-def-row:last-child { border-bottom: none; }
.sc-def-key {
  font-size: 0.8rem;
  color: var(--sr-muted);
  font-weight: 500;
  flex-shrink: 0;
}
.sc-def-val {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sr-text);
  text-align: right;
}
.sc-def-val--accent {
  font-family: var(--sr-font-display);
  font-size: 1.05rem;
  color: var(--sr-primary);
  letter-spacing: -0.01em;
}

/* ── Funding ───────────────────────────────────────────────── */
.sc-funding-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.sc-funding-intro-text { max-width: 48ch; }
.sc-funding-intro-text p {
  font-size: 0.9rem;
  color: var(--sr-muted);
  margin: 0.25rem 0 0;
  line-height: 1.65;
}
.sc-funding-total-wrap { text-align: right; flex-shrink: 0; }
.sc-funding-total-lbl {
  display: block;
  font-size: 0.77rem;
  color: var(--sr-muted);
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.sc-funding-total-fig {
  font-family: var(--sr-font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--sr-primary);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
@media (max-width: 575px) {
  .sc-funding-intro { flex-direction: column; }
  .sc-funding-total-wrap { text-align: left; }
}

.sc-proportion-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  gap: 3px;
}
.sc-proportion-bar-a {
  flex: 70;
  background: var(--sr-primary);
  border-radius: 999px 0 0 999px;
}
.sc-proportion-bar-b {
  flex: 30;
  background: var(--sr-primary-2);
  border-radius: 0 999px 999px 0;
}

.sc-source-cards {
  display: grid;
  grid-template-columns: 70fr 30fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 575px) { .sc-source-cards { grid-template-columns: 1fr; } }

.sc-source-card {
  border-radius: 16px;
  padding: 1.75rem;
  color: #fff;
}
.sc-source-card--eu { background: var(--sr-primary); }
.sc-source-card--co { background: var(--sr-primary-2); }
.sc-source-card-pct {
  font-family: var(--sr-font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.sc-source-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.5rem;
}
.sc-source-card-amount {
  font-family: var(--sr-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.sc-source-card-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.25rem;
}
.sc-source-card--co .sc-source-card-name { color: rgba(255, 255, 255, 0.92); }
.sc-source-card--co .sc-source-card-sub  { color: rgba(255, 255, 255, 0.92); }

.sc-grant-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: rgba(var(--sr-primary-rgb), 0.05);
  border: 1px solid rgba(var(--sr-primary-rgb), 0.12);
  border-radius: 12px;
}
.sc-grant-callout-lbl {
  font-size: 0.82rem;
  color: var(--sr-muted);
  font-weight: 500;
}
.sc-grant-callout-amount {
  font-family: var(--sr-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sr-primary);
  letter-spacing: -0.02em;
}

/* ── Services ──────────────────────────────────────────────── */
.sc-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--sr-border);
}
@media (max-width: 767px) { .sc-services-grid { grid-template-columns: 1fr; } }

.sc-svc-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--sr-border);
}
.sc-svc-item:nth-child(odd) {
  padding-right: 3rem;
  border-right: 1px solid var(--sr-border);
}
.sc-svc-item:nth-child(even) { padding-left: 3rem; }

/* Remove bottom border from last row */
.sc-svc-item:nth-last-child(-n+2) { border-bottom: none; }

@media (max-width: 767px) {
  .sc-svc-item:nth-child(odd)  { padding-right: 0; border-right: none; }
  .sc-svc-item:nth-child(even) { padding-left: 0; }
  .sc-svc-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--sr-border); }
  .sc-svc-item:last-child { border-bottom: none; }
}

.sc-svc-name {
  font-family: var(--sr-font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--sr-text);
  margin-bottom: 0.5rem;
  line-height: 1.15;
}
.sc-svc-desc {
  font-size: 0.875rem;
  color: var(--sr-muted);
  line-height: 1.65;
  margin: 0;
  max-width: 44ch;
}

/* ── Legal block ───────────────────────────────────────────── */
.sc-legal {
  padding: clamp(3rem, 5vw, 5rem) 0;
  border-top: 1px solid var(--sr-border);
}
.sc-legal-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sr-muted);
  margin-bottom: 1.75rem;
}

.sc-logos-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 575px) { .sc-logos-row { grid-template-columns: 1fr; } }

.sc-logo-slot {
  background: #fff;
  border: 1px solid var(--sr-border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.25rem;
  gap: 0.9rem;
  min-height: 130px;
  text-align: center;
}
.sc-logo-rect {
  width: 96px;
  height: 52px;
  border-radius: 6px;
  background: var(--sr-surface);
  border: 1px dashed rgba(var(--sr-text-rgb), 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sr-muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sc-logo-name {
  font-size: 0.75rem;
  color: var(--sr-ink);
  font-weight: 500;
  line-height: 1.45;
}

.sc-legal-text-box {
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(var(--sr-primary-rgb), 0.25);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--sr-ink);
  line-height: 1.65;
  max-width: 80ch;
  font-style: italic;
}

/* ── Infrastructure & Equipment ────────────────────────────── */
.sc-infra-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (max-width: 991px) { .sc-infra-grid { grid-template-columns: 1fr; } }

.sc-infra-card {
  border-radius: 20px;
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
}
.sc-infra-card--naves {
  border: 1px solid var(--sr-border);
  background: #fff;
}
.sc-infra-card--featured {
  background: var(--sr-primary-dark);
  border: 1px solid transparent;
  color: #fff;
}

.sc-infra-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  width: fit-content;
}
.sc-infra-card--naves .sc-infra-tag {
  background: rgba(var(--sr-primary-rgb), 0.08);
  color: var(--sr-primary);
}
.sc-infra-card--featured .sc-infra-tag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
}

.sc-infra-card-title {
  font-family: var(--sr-font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.sc-infra-card--naves .sc-infra-card-title { color: var(--sr-text); }
.sc-infra-card--featured .sc-infra-card-title { color: #fff; }

.sc-infra-card-desc {
  font-size: 0.9rem;
  line-height: 1.68;
  margin-bottom: 0;
}
.sc-infra-card--naves .sc-infra-card-desc { color: var(--sr-muted); }
.sc-infra-card--featured .sc-infra-card-desc { color: rgba(255, 255, 255, 0.62); }

.sc-infra-num-callout {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.75rem;
  border-top: 1px solid var(--sr-border);
}
.sc-infra-num-big {
  font-family: var(--sr-font-display);
  font-size: clamp(3.5rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--sr-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}
.sc-infra-num-label {
  font-size: 0.82rem;
  color: var(--sr-muted);
  font-weight: 500;
  line-height: 1.45;
}

.sc-infra-specs {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1.75rem;
  padding-top: 0.25rem;
  display: flex;
  flex-direction: column;
}
.sc-infra-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.sc-infra-spec-row:last-child { border-bottom: none; padding-bottom: 0; }
.sc-infra-spec-key {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 500;
  flex-shrink: 0;
}
.sc-infra-spec-val {
  font-family: var(--sr-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-align: right;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.sc-gauge-pills {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.sc-gauge-pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}

/* ── Skeleton loading ──────────────────────────────────────── */
@keyframes sc-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes sc-row-enter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sc-panel-body { position: relative; }

.sc-panel-skel {
  position: absolute;
  inset: 0;
  padding: 0 1.5rem;
  background: #fff;
  z-index: 1;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 1;
  transition: opacity 280ms var(--ease-out-quart);
}
.sc-panel-skel.sc-skel--out { opacity: 0; }

.sc-skel-row {
  flex: 0 0 auto;
  min-height: 49px;
  border-bottom: 1px solid var(--sr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sc-skel-row:last-child { border-bottom: none; }
.sc-skel-row::before,
.sc-skel-row::after {
  content: '';
  height: 11px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(var(--sr-primary-rgb), 0.06) 25%,
    rgba(var(--sr-primary-rgb), 0.14) 50%,
    rgba(var(--sr-primary-rgb), 0.06) 75%
  );
  background-size: 200% 100%;
  animation: sc-shimmer 1.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 90ms);
}
.sc-skel-row::before { width: 44%; }
.sc-skel-row::after  { width: 28%; }

.sc-body--loading .sc-def-row { opacity: 0; pointer-events: none; }

.sc-body--revealing .sc-def-row {
  animation: sc-row-enter 0.42s var(--ease-out-quart) both;
  animation-delay: calc(var(--row-i, 0) * 60ms);
}

/* ── Row accordion ─────────────────────────────────────────── */
.sc-def-row--expandable {
  flex-wrap: wrap;
  align-items: flex-start;
}

.sc-def-toggle {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--sr-muted);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-align: left;
  flex-shrink: 0;
  line-height: 1.5;
}
.sc-def-toggle:focus-visible {
  outline: 2px solid var(--sr-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

.sc-def-expand-icon {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--sr-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  line-height: 1;
  color: var(--sr-muted);
  transition: transform 300ms var(--ease-out-quart),
              color 180ms,
              background-color 180ms,
              border-color 180ms;
  will-change: transform;
}

.sc-def-row--open .sc-def-expand-icon {
  transform: rotate(45deg);
  color: var(--sr-primary);
  background: rgba(var(--sr-primary-rgb), 0.08);
  border-color: rgba(var(--sr-primary-rgb), 0.28);
}

.sc-def-detail {
  flex: 0 0 100%;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 360ms var(--ease-out-quart);
}
.sc-def-detail-inner { min-height: 0; overflow: hidden; }
.sc-def-detail-text {
  padding: 0.3rem 0 0.8rem;
  font-size: 0.8rem;
  color: var(--sr-ink);
  line-height: 1.65;
  max-width: 66ch;
  text-wrap: pretty;
  margin: 0;
}

.sc-def-row--open .sc-def-detail { grid-template-rows: 1fr; }

/* ── Gallery ───────────────────────────────────────────────── */
.sc-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 280px 240px;
  gap: 0.75rem;
}
.sc-gallery-item {
  border-radius: 14px;
  overflow: hidden;
}
.sc-gallery-item:first-child {
  grid-row: 1 / 3;
}
.sc-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}
.sc-gallery-item:hover img { transform: scale(1.04); }
@media (max-width: 767px) {
  .sc-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .sc-gallery-item:first-child { grid-row: auto; }
  .sc-gallery-item img { height: 260px; }
}

/* ── Infra photo ────────────────────────────────────────────── */
.sc-infra-photo {
  border-radius: 10px;
  overflow: hidden;
  margin: 1.5rem 0 0;
  flex-shrink: 0;
}
.sc-infra-photo img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

/* ── Reduced motion overrides ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .sc-skel-row::before,
  .sc-skel-row::after {
    animation: none;
    background: rgba(var(--sr-primary-rgb), 0.09);
  }
  .sc-panel-skel    { transition: none; }
  .sc-body--revealing .sc-def-row { animation: none; opacity: 1; }
  .sc-def-expand-icon { transition: none; }
  .sc-def-detail      { transition: none; }
}
