@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap');

/*
Theme Name: ST Theme
Theme URI: https://www.stltda.cl/
Author: Aaron Gonzalez Romero
Description: Tema base para la nueva implementacion corporativa de STLTDA.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.1
Text Domain: st-theme
*/

:root {
  --st-color-ink: #001F3F;
  /* Azul muy oscuro puro (Navy profundo) */
  --st-color-accent: #E67E22;
  /* Naranjo Ocre Industrial */
  --st-color-accent-soft: rgba(230, 126, 34, 0.15);
  --st-color-sand: #f4f1ea;
  --st-color-line: #d2d9dd;
  --st-color-white: #ffffff;
  --st-color-text: #24343c;
  --st-font-display: "Montserrat", sans-serif;
  --st-font-body: "Open Sans", sans-serif;
  --st-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--st-color-text);
  background-color: #f8fafc;
  background-image:
    linear-gradient(rgba(15, 76, 92, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 92, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  font-family: var(--st-font-body);
  line-height: 1.7;
}

:focus-visible {
  outline: 3px solid rgba(15, 76, 92, 0.45);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

p {
  text-align: left;
  margin-bottom: 1rem;
}

.st-shell {
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--st-color-ink);
  color: var(--st-color-white);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.st-container {
  width: min(calc(100% - 2rem), var(--st-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(15, 76, 92, 0.08);
}

.site-header__topbar {
  border-bottom: 1px solid rgba(15, 76, 92, 0.08);
  background: rgba(15, 37, 48, 0.96);
  color: rgba(255, 255, 255, 0.86);
}

.site-header__topbar-inner,
.site-header__nav-block,
.site-header__brand-block,
.site-header__meta-links,
.social-links {
  display: flex;
  align-items: center;
}

.site-header__topbar-inner,
.site-header__nav-block {
  justify-content: space-between;
  gap: 1rem;
}

.site-header__topbar-inner {
  min-height: 2.6rem;
}

.site-header__meta-links,
.social-links {
  gap: 0.9rem;
  flex-wrap: wrap;
}

.site-header__meta-links a,
.social-links a {
  font-size: 0.82rem;
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.site-header__brand-block {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.site-header__nav-block {
  flex: 1;
  justify-content: center;
}

.site-header__tagline {
  margin: 0;
  max-width: 26rem;
  color: rgba(15, 37, 48, 0.72);
  font-size: 0.85rem;
}

.site-header__cta {
  white-space: nowrap;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--st-font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-brand__logo {
  display: block;
  width: 25rem;
  height: auto;
  margin-left: -1.7rem;
}

.site-brand__text {
  display: none;
}

.site-brand__mark {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--st-color-accent);
  color: var(--st-color-white);
}

.site-nav {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  list-style: none;
}

.site-nav a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--st-color-ink);
  position: relative;
  padding: 0.5rem 0.2rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--st-color-accent);
  transition: transform 180ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav .current-menu-item>a::after,
.site-nav .current_page_item>a::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button--primary {
  color: var(--st-color-white);
  background: var(--st-color-accent);
  box-shadow: 0 16px 40px rgba(15, 76, 92, 0.25);
}

.button--ghost {
  border-color: rgba(15, 76, 92, 0.2);
  background: rgba(255, 255, 255, 0.7);
}

.hero {
  padding: 5rem 0 3rem;
}

.hero--home {
  overflow: hidden;
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--st-color-accent-soft);
  color: var(--st-color-accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 1rem 0;
  color: var(--st-color-ink);
  font-family: var(--st-font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
}

h2 {
  font-family: var(--st-font-display);
  font-size: clamp(2.2rem, 4.5vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

h3 {
  font-family: var(--st-font-display);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  margin-bottom: 0.5rem;
}

.hero p,
.page-hero p {
  max-width: 40rem;
  font-size: 1.15rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero__meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero__meta-strip div {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 76, 92, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
}

.hero__meta-strip strong {
  display: block;
  color: var(--st-color-accent);
  font-size: 1.15rem;
}

.hero__meta-strip span {
  font-size: 0.92rem;
}

.hero__panel,
.st-card {
  border: 1px solid rgba(15, 76, 92, 0.1);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(15, 37, 48, 0.05);
}

.st-card p {
  text-align: left;
}

.hero__panel {
  min-height: 22rem;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(15, 76, 92, 0.22), transparent 38%),
    linear-gradient(135deg, #ffffff 0%, #dcebef 100%);
}

.hero__media {
  position: relative;
  min-height: 28rem;
}

.hero__pattern {
  position: absolute;
  top: -1rem;
  right: -3rem;
  width: 14rem;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

.hero__media img {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
  border-radius: 1.6rem;
  box-shadow: 0 30px 60px rgba(15, 37, 48, 0.16);
}

.hero__media>img:not(.hero__pattern) {
  position: relative;
  z-index: 1;
}

.hero__floating-card {
  position: absolute;
  right: -1rem;
  bottom: 1.5rem;
  display: grid;
  gap: 0.4rem;
  max-width: 18rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1rem;
  background: rgba(16, 42, 52, 0.88);
  color: var(--st-color-white);
  z-index: 2;
}

.hero__project-chip {
  position: absolute;
  left: -1rem;
  top: 2rem;
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 40px rgba(15, 37, 48, 0.14);
  z-index: 2;
}

.hero__project-chip span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--st-color-accent);
}

.hero__panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  height: 100%;
}

.hero__metric {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
}

.hero__metric strong {
  color: var(--st-color-accent);
  font-size: 2rem;
  line-height: 1;
}

.section {
  padding: 1rem 0 2rem;
}

.section--surface {
  position: relative;
}

.section--sand {
  background: linear-gradient(180deg, rgba(244, 241, 234, 0.85) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.section--contrast {
  background: linear-gradient(180deg, rgba(15, 76, 92, 0.06) 0%, rgba(15, 76, 92, 0.12) 100%);
}

.section--cta {
  padding-top: 0;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading__text {
  max-width: 42rem;
  margin: 0.5rem 0 0;
}

.section h2 {
  margin: 0 0 1rem;
  color: var(--st-color-ink);
  font-family: var(--st-font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-grid--segments {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid--news {
  margin-top: 1.5rem;
}

.feature-grid--services .st-card {
  overflow: hidden;
  padding: 0;
}

.st-card {
  padding: 1.25rem;
}

.st-card--segment {
  min-height: 15rem;
  background:
    radial-gradient(circle at top right, rgba(15, 76, 92, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.88);
}

.segment-icon {
  width: 3rem;
  height: 3rem;
  margin: 1.1rem 1.25rem 0;
  object-fit: contain;
}

.segment-icon--light {
  filter: brightness(0) invert(1);
}

.st-card h3,
.st-card p,
.st-card strong,
.st-card span {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

.st-card p,
.st-card span {
  margin-bottom: 1.25rem;
}

.card-media {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  margin-bottom: 1rem;
}

.project-showcase {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
  align-items: start;
}

.project-showcase__intro {
  padding-top: 1rem;
}

.project-showcase__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.projects-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.projects-gallery .project-card--large {
  grid-column: span 2;
}

.projects-hero-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.projects-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 16rem;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 50px rgba(15, 37, 48, 0.12);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card--large {
  grid-row: span 2;
  min-height: 33rem;
}

.project-card--accent {
  display: flex;
  align-items: stretch;
  padding: 1.5rem;
  background: linear-gradient(160deg, #0f4c5c 0%, #163746 100%);
  color: var(--st-color-white);
}

.project-card--accent h3,
.project-card--accent p {
  margin-left: 0;
  margin-right: 0;
}

.project-card__overlay {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  gap: 0.15rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(16, 42, 52, 0.1), rgba(16, 42, 52, 0.88));
  color: var(--st-color-white);
}

.project-card__overlay span {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.text-link {
  color: var(--st-color-accent);
  font-weight: 700;
}

.split-band {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
  align-items: start;
}

.split-band--hero {
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.logo-grid--wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.logo-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9rem;
  padding: 1rem;
  border: 1px solid rgba(15, 76, 92, 0.12);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.86);
}

.st-card {
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms ease;
}

.logo-grid__item:hover,
.news-card:hover,
.feature-grid--services .st-card:hover,
.st-card--segment:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 32px 64px rgba(15, 37, 48, 0.14);
  z-index: 2;
  position: relative;
}

.logo-grid__item img {
  max-height: 3.2rem;
  width: auto;
}

.section-actions {
  display: flex;
  justify-content: flex-end;
  align-items: end;
}

.news-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.st-card--stat {
  min-height: 10rem;
  justify-content: end;
}

.st-card--stat strong {
  display: block;
  margin-top: 1.25rem;
  font-size: 1.2rem;
  color: var(--st-color-accent);
}

.st-card--page {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.section-stack {
  margin-top: 1.5rem;
}

.section-stack-small {
  margin-top: 1rem;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.policy-card {
  min-height: 13rem;
}

.policy-card h3 {
  margin-top: 0.2rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.about-stats article {
  padding: 1.2rem;
  border: 1px solid rgba(15, 76, 92, 0.12);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.84);
}

.about-stats strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--st-color-accent);
  font-size: 1.4rem;
}

.about-copy-block {
  align-self: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card--accent {
  background: linear-gradient(160deg, rgba(15, 76, 92, 0.1), rgba(15, 76, 92, 0.18));
}

.contact-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-map-placeholder {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(15, 76, 92, 0.1);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(234, 243, 245, 0.7));
}

.contact-map-placeholder__panel {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(16, 42, 52, 0.92);
  color: var(--st-color-white);
}

.contact-form-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field span {
  font-weight: 700;
  color: var(--st-color-ink);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 76, 92, 0.18);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--st-color-text);
  font: inherit;
}

.form-field textarea {
  resize: vertical;
  min-height: 10rem;
}

.form-field--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.contact-form__note {
  margin: 0;
  color: rgba(15, 37, 48, 0.68);
  font-size: 0.9rem;
}

.contact-form__help {
  margin: -0.4rem 0 0;
  color: rgba(15, 37, 48, 0.68);
  font-size: 0.9rem;
}

.form-feedback {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid transparent;
}

.form-feedback--success {
  border-color: rgba(24, 133, 85, 0.2);
  background: rgba(24, 133, 85, 0.1);
  color: #155f3e;
}

.form-feedback--error {
  border-color: rgba(171, 73, 52, 0.22);
  background: rgba(171, 73, 52, 0.1);
  color: #7a2f20;
}

.st-list {
  margin: 0;
  padding-left: 1.25rem;
}

.st-list li+li {
  margin-top: 0.5rem;
}

.media-frame {
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(15, 37, 48, 0.12);
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 20rem;
  object-fit: cover;
}

.media-frame--tall img {
  min-height: 28rem;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(15, 76, 92, 0.1);
  border-radius: 1.75rem;
  background: linear-gradient(135deg, rgba(16, 42, 52, 0.98) 0%, rgba(15, 76, 92, 0.92) 100%);
  color: var(--st-color-white);
}

.cta-panel h2 {
  color: var(--st-color-white);
  max-width: 48rem;
}

.news-list {
  display: grid;
  gap: 1rem;
}

.news-feed {
  display: grid;
  gap: 1.5rem;
}

.news-feed__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
}

.news-feed__header h2 {
  margin: 0.25rem 0 0;
}

.news-feed__header p {
  max-width: 34rem;
  margin: 0;
}

.news-list--grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-hero-card {
  display: grid;
  gap: 0.5rem;
}

.news-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  gap: 1.5rem;
  align-items: stretch;
  overflow: hidden;
}

.news-featured__content {
  display: grid;
  align-content: center;
  gap: 0.85rem;
  padding: 0.5rem 0;
}

.news-featured__content h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
}

.news-featured__content p {
  margin: 0;
}

.news-featured__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.news-featured__media {
  min-height: 22rem;
  border-radius: 1.5rem;
  overflow: hidden;
}

.news-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.news-featured:hover .news-featured__media img {
  transform: scale(1.03);
}

.news-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.news-card__eyebrow {
  margin: 0;
  color: var(--st-color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card h3 {
  margin: 0;
}

.news-card p {
  margin: 0;
}

.news-list--secondary .news-card {
  height: 100%;
}

.news-card--compact .card-media {
  aspect-ratio: 16 / 10;
}

.news-list__item h2 {
  margin-top: 0;
}

.news-list__meta {
  color: rgba(15, 37, 48, 0.65);
  font-size: 0.92rem;
}

.news-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.6fr);
  gap: 1.5rem;
  align-items: start;
}

.news-article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
  gap: 1.5rem;
  align-items: start;
}

.news-article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  color: rgba(15, 37, 48, 0.68);
  font-size: 0.92rem;
}

.news-article-hero__aside {
  display: grid;
  gap: 0.5rem;
  background: linear-gradient(160deg, rgba(15, 76, 92, 0.08), rgba(15, 76, 92, 0.18));
}

.news-article-hero__aside p {
  margin: 0;
}

.news-single-image {
  width: 100%;
  height: auto;
  max-height: 30rem;
  object-fit: cover;
  border-radius: 1.2rem;
  margin-bottom: 1.25rem;
}

.news-single-body>* {
  max-width: 46rem;
}

.news-sidebar {
  position: sticky;
  top: 7rem;
}

.news-sidebar__panel {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.news-sidebar__panel p {
  margin: 0;
}

.news-sidebar__panel--accent {
  padding: 1rem;
  border-radius: 1.2rem;
  background: linear-gradient(160deg, rgba(15, 76, 92, 0.08), rgba(15, 76, 92, 0.18));
}

.news-sidebar__list {
  display: grid;
  gap: 0.75rem;
}

.news-sidebar__item {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(15, 76, 92, 0.12);
}

.news-sidebar__item strong,
.news-sidebar__item span {
  margin: 0;
}

.news-sidebar__item span {
  color: rgba(15, 37, 48, 0.62);
  font-size: 0.88rem;
}

.news-sidebar__cta {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 1.2rem;
  background: linear-gradient(160deg, rgba(15, 76, 92, 0.08), rgba(15, 76, 92, 0.16));
}

.news-empty-state {
  grid-column: 1 / -1;
}

.related-news {
  display: grid;
  gap: 1rem;
}

.news-pagination {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.news-pagination .nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(15, 76, 92, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.news-pagination .page-numbers.current {
  background: var(--st-color-accent);
  border-color: var(--st-color-accent);
  color: var(--st-color-white);
}

.archive-intro-card {
  align-content: center;
}

.error-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 1rem;
}

.error-layout__aside {
  background: linear-gradient(160deg, rgba(15, 76, 92, 0.08), rgba(15, 76, 92, 0.18));
}

.error-links {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.page-hero {
  padding: 4rem 0 2rem;
}

.page-content {
  padding-bottom: 4rem;
}

.site-footer {
  margin-top: 4rem;
  color: var(--st-color-white);
  background: #102a34;
}

.site-footer__brand {
  display: grid;
  gap: 0.75rem;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.site-footer__columns h3 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer__logo {
  width: 10rem;
  height: auto;
}

.site-footer__contact-line a {
  color: inherit;
}

.site-footer .site-nav a,
.site-footer .social-links a,
.site-footer__legal a {
  color: rgba(255, 255, 255, 0.92);
}

.site-footer .site-nav a:hover,
.site-footer .social-links a:hover,
.site-footer__legal a:hover {
  color: var(--st-color-white);
}

.site-nav--footer-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.social-links--footer {
  flex-direction: column;
  align-items: flex-start;
}

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
  opacity: 0.85;
}

/* --- Mobile Nav System --- */
.site-header__head {
  display: flex;
  align-items: center;
}

.site-header__toggle {
  display: none;
  background: none;
  border: 1px solid rgba(15, 76, 92, 0.15);
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--st-color-ink);
  transition: background 180ms ease;
}

.site-header__toggle:hover {
  background: rgba(15, 76, 92, 0.05);
}

.site-header__toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header__toggle-icon--close {
  display: none;
}

.site-header__toggle.is-active .site-header__toggle-icon--menu {
  display: none;
}

.site-header__toggle.is-active .site-header__toggle-icon--close {
  display: flex;
}

@media (max-width: 900px) {

  .hero__grid,
  .feature-grid,
  .split-band,
  .stats-grid,
  .logo-grid,
  .project-showcase,
  .project-showcase__grid,
  .hero__meta-strip,
  .policy-grid,
  .about-stats,
  .news-list--grid,
  .news-single-layout,
  .site-footer__columns,
  .projects-gallery,
  .projects-pillars,
  .contact-grid,
  .contact-process-grid,
  .contact-map-placeholder,
  .contact-form-layout,
  .news-featured,
  .news-article-hero,
  .error-layout {
    grid-template-columns: 1fr;
  }

  .section-heading--split,
  .news-feed__header,
  .cta-panel,
  .site-header__inner,
  .site-header__nav-block,
  .site-header__topbar-inner,
  .site-footer__legal,
  .news-article-hero__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header__nav-block {
    width: 100%;
    display: none;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 76, 92, 0.08);
  }

  .site-header__nav-block.is-open {
    display: flex;
  }

  .site-header__head {
    width: 100%;
    justify-content: space-between;
  }

  .site-header__toggle {
    display: block;
  }

  .site-nav {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }

  .site-nav a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.15rem;
  }

  .hero__floating-card {
    right: 1rem;
  }

  .hero__project-chip {
    left: 1rem;
  }

  .news-sidebar {
    position: static;
  }

  .news-featured__media {
    min-height: 18rem;
  }
}

@media (max-width: 640px) {
  .st-container {
    width: min(calc(100% - 3rem), var(--st-width));
  }

  .site-header__inner,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 3rem;
  }

  .site-brand__logo,
  .site-footer__logo {
    width: 8.5rem;
  }

  .site-header__topbar {
    display: none;
  }

  .hero__media {
    min-height: 0;
  }

  .hero__media img {
    min-height: 18rem;
  }

  .hero__floating-card {
    position: static;
    margin-top: 1rem;
    max-width: none;
  }

  .hero__project-chip {
    position: static;
    margin-top: 1rem;
  }

  .hero__pattern {
    display: none;
  }

  .project-card--large {
    min-height: 20rem;
  }

  .page-hero {
    padding: 3rem 0 1.5rem;
  }

  .page-content {
    padding-bottom: 3rem;
  }

  .st-card,
  .st-card--page,
  .cta-panel,
  .contact-map-placeholder {
    padding: 1.25rem;
  }

  .hero__meta-strip,
  .hero__meta-strip--editorial,
  .site-nav,
  .news-featured__actions,
  .news-article-hero__meta,
  .contact-form__actions {
    gap: 0.75rem;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .news-featured__content h2,
  .news-article-hero h1 {
    font-size: 1.85rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Animaciones en Cascada (Fade Up)
/* -------------------------------------------------------------------------- */

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(1.5rem);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.st-card,
.st-card--segment,
.logo-grid__item,
.hero__metric,
.hero__floating-card,
.hero__actions,
.hero p,
.hero h1,
.feature-grid article,
.st-list li {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered Delay para simular carga fluida */
.hero h1 {
  animation-delay: 0.1s;
}

.hero p {
  animation-delay: 0.2s;
}

.hero__actions {
  animation-delay: 0.3s;
}

.hero__floating-card {
  animation-delay: 0.4s;
}

.hero__metric:nth-child(1) {
  animation-delay: 0.2s;
}

.hero__metric:nth-child(2) {
  animation-delay: 0.3s;
}

.hero__metric:nth-child(3) {
  animation-delay: 0.4s;
}

.feature-grid> :nth-child(1) {
  animation-delay: 0.1s;
}

.feature-grid> :nth-child(2) {
  animation-delay: 0.2s;
}

.feature-grid> :nth-child(3) {
  animation-delay: 0.3s;
}

.feature-grid> :nth-child(4) {
  animation-delay: 0.4s;
}

.logo-grid__item:nth-child(1) {
  animation-delay: 0.1s;
}

.logo-grid__item:nth-child(2) {
  animation-delay: 0.2s;
}

.logo-grid__item:nth-child(3) {
  animation-delay: 0.3s;
}

.logo-grid__item:nth-child(4) {
  animation-delay: 0.4s;
}

/* --- SPLIDE HERO SLIDER B2B --- */
.st-hero-slider {
  margin-top: 0;
  margin-bottom: 2rem;
}

.st-hero-slide {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding: 8rem 0;
}

.st-hero-slide__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(100deg, rgba(15, 37, 48, 0.92) 10%, rgba(15, 76, 92, 0.6) 80%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
}

.st-hero-slide__content {
  position: relative;
  z-index: 2;
  color: var(--st-color-white);
  max-width: var(--st-width);
  margin: 0 auto;
}

.st-hero-slide__content.fadeUp {
  animation-delay: 0.2s;
}

.st-hero-slide__content h1 {
  color: var(--st-color-white);
  max-width: 800px;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.st-hero-slide__content p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-align: left;
}

.st-hero-slide__content .hero__eyebrow {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(4px);
  margin-bottom: 1rem;
}

/* Splide Customizations */
.splide__pagination {
  bottom: 2rem;
}

.splide__pagination__page {
  background: rgba(255, 255, 255, 0.4) !important;
  height: 4px !important;
  width: 24px !important;
  border-radius: 2px !important;
  transition: width 0.3s ease, background 0.3s ease !important;
}

.splide__pagination__page.is-active {
  background: var(--st-color-white) !important;
  width: 48px !important;
}

.splide__arrow {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(4px);
  width: 3.5rem !important;
  height: 3.5rem !important;
}

.splide__arrow svg {
  fill: #fff !important;
  height: 1.5em !important;
  width: 1.5em !important;
}

/* --- SALA DE PRENSA / NOTICIAS B2B --- */
.news-hero-press {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3.5rem;
  margin-bottom: 0;
}

.news-hero-press__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.news-hero-press__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 25, 40, 0.1) 0%, rgba(10, 25, 40, 0.85) 70%, rgba(10, 25, 40, 0.98) 100%);
  z-index: 1;
}

.news-hero-press__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 900px;
}

.news-hero-press__content h1 {
  color: #fff;
  margin-bottom: 1.5rem;
  text-transform: none;
}

.news-hero-press--empty {
  background: var(--st-color-ink);
}

.news-filters {
  background: transparent;
  padding: 1.5rem 0 2.5rem 0;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.filter-pills__label {
  font-weight: 600;
  color: var(--st-color-ink);
  margin-right: 0.5rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.pill {
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  background: var(--st-color-sand);
  color: var(--st-color-text);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid var(--st-color-line);
}

.pill:hover,
.pill--active {
  background: var(--st-color-accent);
  color: #fff;
  border-color: var(--st-color-accent);
}

.section--news-grid {
  padding: 0 0 5rem 0;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem 2rem;
}

.news-card--press {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 0;
}

.news-card--press .card-media-wrapper {
  display: block;
  overflow: hidden;
  border-radius: 0.3rem;
  margin-bottom: 1rem;
}

.news-card--press .card-media {
  border-radius: 0;
  margin-bottom: 0;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.4s ease;
  width: 100%;
}

.news-card--press:hover .card-media {
  transform: scale(1.04);
}

.news-card--press h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  line-height: 1.35;
  color: var(--st-color-ink);
}

.news-card--press .news-list__meta {
  color: rgba(10, 25, 40, 0.6);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.news-card--press .news-card__eyebrow {
  margin-bottom: 0.4rem;
  padding: 0.2rem 0.6rem;
  background: var(--st-color-line);
  color: var(--st-color-text);
  font-size: 0.75rem;
  border-radius: 4px;
  display: inline-block;
}

/* --- QUIENES SOMOS B2B REWORK --- */
.about-hero-b2b {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.about-hero-b2b__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(10, 25, 40, 0.95) 0%, rgba(10, 25, 40, 0.6) 80%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}

.about-hero-b2b__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
}

.about-hero-b2b__content h1 {
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.stats-band-b2b {
  background: var(--st-color-ink);
  color: #fff;
  padding: 3rem 0;
}

.about-stats-b2b {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.about-stats-b2b strong {
  display: block;
  font-size: 3.5rem;
  font-family: var(--st-font-display);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.about-stats-b2b span {
  display: block;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 1;
  color: var(--st-color-accent);
  font-weight: 600;
}

.split-band--b2b {
  align-items: center;
  gap: 4rem;
}

.split-band--b2b .split-text {
  flex: 1;
  min-width: 300px;
}

.split-band--b2b .split-media {
  flex: 1.3;
  min-width: 300px;
}

.split-band--b2b .split-media img {
  border-radius: 0.5rem;
  box-shadow: 0 20px 40px rgba(10, 25, 40, 0.12);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.icon-values-b2b {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.icon-value {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.icon-value .icon {
  font-size: 2.2rem;
  opacity: 0.9;
}

.icon-value h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--st-color-ink);
}

.icon-value p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(10, 25, 40, 0.7);
}

.st-list--b2b {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

.st-list--b2b li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  list-style: none;
}

.st-list--b2b li::before {
  content: "»";
  position: absolute;
  left: 0;
  color: var(--st-color-accent);
  font-weight: bold;
}

@media (max-width: 768px) {
  .split-band--reverse {
    flex-direction: column-reverse;
  }
}

/* --- ANIMACIONES GLOBALES B2B --- */
.reveal-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform, opacity;
}

.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* --- SERVICIOS DENSE B2B --- */
.section--services-b2b {
  padding: 4rem 0 6rem 0;
}

.services-header {
  margin-bottom: 2.5rem;
  max-width: 650px;
}

.services-header h2 {
  font-size: 2.2rem;
  color: var(--st-color-ink);
  margin-bottom: 0.5rem;
}

.services-header p {
  font-size: 1.1rem;
  color: rgba(10, 25, 40, 0.7);
}

.services-grid-b2b {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card-b2b {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 1/1;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card-b2b__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(10, 25, 40, 0.9) 0%, rgba(10, 25, 40, 0.2) 60%, transparent 100%);
  transition: opacity 0.4s ease;
  z-index: 1;
}

.service-card-b2b:hover .service-card-b2b__overlay {
  background: linear-gradient(0deg, rgba(0, 51, 102, 0.95) 0%, rgba(10, 25, 40, 0.4) 60%, transparent 100%);
}

.service-card-b2b__content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  color: #fff;
  transform: translateY(15px);
  transition: transform 0.4s ease;
}

.service-card-b2b:hover .service-card-b2b__content {
  transform: translateY(0);
}

.service-card-b2b__content h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.service-card-b2b__content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card-b2b:hover .service-card-b2b__content p {
  opacity: 1;
}

.services-cta {
  margin-top: 4rem;
  text-align: center;
  background: rgba(15, 76, 92, 0.03);
  padding: 3rem;
  border-radius: 0.5rem;
  border: 1px dashed rgba(10, 25, 40, 0.2);
}

.services-cta p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--st-color-ink);
}

/* --- FOOTER REDESIGN B2B --- */
.site-footer {
  background: var(--st-color-ink);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  border-top: 4px solid var(--st-color-accent);
}

.site-footer a {
  color: #fff;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--st-color-accent);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 4rem;
  padding: 4rem 0;
  align-items: start;
}

.site-footer__brand {
  max-width: 400px;
}

.site-footer__brand p {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.site-footer__logo {
  max-width: 200px;
  margin-bottom: 1.5rem;
  height: auto;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.site-footer__columns h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--st-font-display);
}

.site-footer .menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .menu li {
  margin-bottom: 0.8rem;
}

.site-footer .social-links--footer {
  justify-content: flex-start;
  gap: 1.5rem;
}

.site-footer .social-links--footer svg {
  width: 24px;
  height: 24px;
}

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__legal a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0;
  }

  .site-footer__columns {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .site-footer__legal {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* FIX: Header Compression and Layout */
.site-header__inner {
  align-items: center !important;
}

.site-brand__logo {
  max-width: 22rem !important;
  margin-left: -0.5rem !important;
}

.site-nav {
  gap: 1.2rem !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.site-nav a {
  font-size: 1.05rem !important;
}







/* =========================================================
   B2B FINAL LAYOUT MASTERS (PHASE 1-5 OVERRIDES)
========================================================== */

/* Phase 1: Global Left Alignment for Heroes */
.about-hero-b2b__content,
.news-hero-press__content,
.st-hero-slide__content {
  max-width: var(--st-width) !important;
}

.about-hero-b2b__content h1,
.about-hero-b2b__content p,
.news-hero-press__content h1,
.news-hero-press__content p,
.st-hero-slide__content h1,
.st-hero-slide__content p {
  max-width: 800px;
}

/* Phase 2: Rule of 3 Grids */
.services-grid-b2b,
.press-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 1024px) {

  .services-grid-b2b,
  .press-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {

  .services-grid-b2b,
  .press-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Phase 3: Footer 3-Column Restructuring */
.site-footer__inner {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
  align-items: start;
}

.site-footer__brand {
  max-width: none !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer__logo {
  max-width: 180px !important;
  margin: 0 0 1.5rem 0 !important;
  display: block;
}

/* Phase 4: Standardize Hero Title Heights */
.news-hero-press__content h1,
.about-hero-b2b__content h1,
.st-hero-slide__content h1 {
  font-size: 2.8rem !important;
  line-height: 1.15;
}

/* Phase 5: Contact Page Top Alignment */
.contact-form-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start !important;
}

.contact-form.st-card {
  margin: 0 !important;
  /* Remove negative top margin */
}

.contact-map-placeholder__panel {
  margin-top: 0 !important;
}

/* Phase 6: Logo Mosaic Background */
body {
  background-image: url('assets/images/pattern-mosaico.svg') !important;
  background-size: 360px 360px !important;
  background-repeat: repeat !important;
  background-attachment: fixed !important;
}

/* Phase 7: Header Integration & Transparent Nav */
.site-header {
  position: absolute !important;
  width: 100%;
  background-color: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.is-scrolled {
  position: fixed !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--st-color-line) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Nav Links Color Scheme */
.site-nav a {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.site-header.is-scrolled .site-nav a {
  color: var(--st-color-text) !important;
  text-shadow: none;
}

/* Contact Button in Nav */
.site-nav__btn {
  background-color: var(--st-color-accent) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 4px;
  font-weight: 700;
  text-shadow: none !important;
  transition: filter 0.3s ease;
  margin-left: 1rem;
}

.site-nav__btn:hover {
  filter: brightness(1.15);
}

/* Dynamic Logo and Dimensions Overlay */
.site-brand__logo {
  max-width: 18rem !important;
  max-height: 4.5rem !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.site-header:not(.is-scrolled) .site-brand__logo {
  filter: brightness(0) invert(1) !important;
}

/* Fix mobile menu background when transparent */
@media (max-width: 1024px) {
  .site-header__nav-block.is-open {
    background-color: rgba(0, 31, 63, 0.98) !important;
  }
}

/* Phase 8: Footer Vertical Nav & Icon Buttons */
.site-footer__nav-col .site-nav {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
}

.social-links--footer {
  display: flex !important;
  flex-direction: row !important;
  gap: 1rem !important;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--st-color-white);
  transition: all 0.3s ease;
}

.social-icon-btn svg {
  width: 20px;
  height: 20px;
}

.social-icon-btn:hover {
  background: var(--st-color-accent);
  border-color: var(--st-color-accent);
  color: #fff;
  transform: translateY(-2px);
}
}

/* Pop-up Service Modal Styles */
.st-modal {
  border: none;
  border-radius: 8px;
  padding: 0;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  background: #fff;
}

.st-modal::backdrop {
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(4px);
}

.st-modal-content {
  position: relative;
}

.st-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  color: var(--st-gray);
  transition: color 0.3s, background 0.3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.st-modal-close:hover {
  color: var(--st-navy);
  background: #fff;
}

#modal-title {
  margin-top: 0;
  margin-right: 2rem;
  font-size: 1.8rem;
  color: var(--st-navy);
}

/* Modal Split Layout */
.st-modal-content.split-layout {
  display: flex;
  flex-direction: row;
  padding: 0;
  overflow: hidden;
}

.st-modal-media {
  flex: 1;
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

.st-modal-body {
  flex: 1;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .st-modal-content.split-layout {
    flex-direction: column;
  }

  .st-modal-media {
    min-height: 250px;
  }
}

/* Horizontal Gallery Band */
.horizontal-gallery {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0 2rem 0;
  scrollbar-width: thin;
  flex-wrap: nowrap;
}

.horizontal-gallery img {
  height: 300px;
  width: auto;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Split Layout */
.st-hero-slide--split .st-hero-slide__split-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 3rem;
}

.st-hero-split-text {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

.st-hero-split-mosaic {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 2;
}

.mosaic-grid {
  position: relative;
  width: 450px;
  height: 450px;
}

.mosaic-grid img {
  position: absolute;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s ease, z-index 0s, box-shadow 0.4s ease;
}

.mosaic-img-1 {
  width: 280px;
  height: 200px;
  top: 0;
  left: 0;
  z-index: 2;
}

.mosaic-img-2 {
  width: 240px;
  height: 280px;
  top: 80px;
  right: 0;
  z-index: 1;
}

.mosaic-img-3 {
  width: 260px;
  height: 180px;
  bottom: 0;
  left: 40px;
  z-index: 3;
}

.mosaic-grid img:hover {
  transform: translateY(-10px) scale(1.05);
  z-index: 10;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5);
  border-color: var(--st-cyan);
}

@media (max-width: 992px) {
  .st-hero-slide--split .st-hero-slide__split-content {
    flex-direction: column;
    justify-content: center;
  }

  .st-hero-split-mosaic {
    display: none;
  }
}

/* Fix Hero Text Contrast */
.st-hero-split-text h1,
.st-hero-split-text p,
.st-hero-split-text .hero__eyebrow {
  color: #ffffff !important;
}

.st-hero-split-text {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}


/* Center Hero Slider Text */
.st-hero-slide__content {
  text-align: center;
  align-items: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.st-hero-slide__content p {
  text-align: center;
  margin: 0 auto 2rem auto;
}

.hero__actions {
  justify-content: center;
}