/* SeGeTIC — home maqueta (Bootstrap 5 companion) */
:root {
  --sg-accent: #E8A838;
  --sg-accent-dark: #D4922A;
  --sg-accent-soft: rgba(232, 168, 56, 0.14);
  --sg-ink: #1a1a1a;
  --sg-ink-soft: #4a4a4a;
  --sg-muted: #6b7280;
  --sg-line: #e8e6e1;
  --sg-bg: #ffffff;
  --sg-bg-muted: #f7f6f3;
  --sg-radius: 1rem;
  --sg-shadow: 0 12px 40px rgba(26, 26, 26, 0.06);
  --sg-font-head: "Poppins", system-ui, sans-serif;
  --sg-font-body: "Open Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

.segetic-body {
  font-family: var(--sg-font-body);
  color: var(--sg-ink);
  background: var(--sg-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .sg-hero__title, .sg-section__title,
.sg-card__title, .sg-project__title, .sg-step__title, .sg-cta__title {
  font-family: var(--sg-font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--sg-ink);
}

a {
  color: var(--sg-accent-dark);
  text-decoration: none;
}
a:hover {
  color: var(--sg-accent);
}

img {
  max-width: 100%;
  height: auto;
}

/* Buttons */
.btn-sg-primary {
  --bs-btn-color: #1a1a1a;
  --bs-btn-bg: var(--sg-accent);
  --bs-btn-border-color: var(--sg-accent);
  --bs-btn-hover-color: #1a1a1a;
  --bs-btn-hover-bg: var(--sg-accent-dark);
  --bs-btn-hover-border-color: var(--sg-accent-dark);
  --bs-btn-active-color: #1a1a1a;
  --bs-btn-active-bg: var(--sg-accent-dark);
  --bs-btn-active-border-color: var(--sg-accent-dark);
  --bs-btn-font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  box-shadow: 0 8px 20px rgba(232, 168, 56, 0.28);
}

.btn-sg-outline {
  --bs-btn-color: var(--sg-ink);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--sg-line);
  --bs-btn-hover-color: var(--sg-ink);
  --bs-btn-hover-bg: var(--sg-bg-muted);
  --bs-btn-hover-border-color: #d4d0c8;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
}

/* Header */
.sg-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sg-line);
}

.sg-header__accent {
  height: 3px;
  background: linear-gradient(90deg, var(--sg-accent), #f0c56a 55%, var(--sg-accent));
}

.sg-nav {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.sg-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: none;
}
@media (max-width: 575.98px) {
  .sg-logo:not(.sg-logo--footer) { height: 34px; }
}

.sg-logo--footer {
  height: 36px;
}

.sg-nav .nav-link {
  color: var(--sg-ink-soft) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: 0.5rem;
}

.sg-nav .nav-link:hover,
.sg-nav .nav-link:focus {
  color: var(--sg-ink) !important;
  background: var(--sg-accent-soft);
}

.sg-toggler {
  border: 1px solid var(--sg-line);
  border-radius: 0.5rem;
  padding: 0.4rem 0.55rem;
}

.sg-toggler:focus {
  box-shadow: 0 0 0 0.2rem var(--sg-accent-soft);
}

/* Hero */
.sg-hero {
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(232, 168, 56, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 5% 90%, rgba(232, 168, 56, 0.08), transparent 50%),
    linear-gradient(180deg, #fffefb 0%, #ffffff 100%);
}

.sg-hero--impact {
  position: relative;
  isolation: isolate;
  min-height: clamp(28rem, 72vh, 42rem);
  padding: 0;
  display: flex;
  align-items: flex-end;
  background: #1a1410;
  overflow: hidden;
}

.sg-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sg-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transform: scale(1.02);
}

.sg-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 8, 0.78) 0%, rgba(12, 10, 8, 0.55) 42%, rgba(12, 10, 8, 0.28) 70%, rgba(12, 10, 8, 0.35) 100%),
    linear-gradient(180deg, rgba(12, 10, 8, 0.35) 0%, rgba(12, 10, 8, 0.15) 35%, rgba(12, 10, 8, 0.72) 100%);
}

.sg-hero__content {
  position: relative;
  z-index: 1;
  padding-top: clamp(5.5rem, 12vh, 8rem);
  padding-bottom: clamp(3rem, 8vh, 5rem);
}

.sg-hero__title--on-dark {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.sg-hero__sub--on-dark {
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}

.btn-sg-ghost {
  --bs-btn-color: #fff;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(255, 255, 255, 0.55);
  --bs-btn-hover-color: #1a1a1a;
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
}

.sg-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-accent-dark);
  margin-bottom: 0.85rem;
}

.sg-eyebrow--on-dark {
  color: #f0c56a;
}

.sg-hero__title {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.15;
  margin-bottom: 1.15rem;
  font-weight: 700;
}

.sg-hero__sub {
  font-size: 1.1rem;
  color: var(--sg-ink-soft);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.sg-hero__panel {
  position: relative;
  min-height: 280px;
  border-radius: calc(var(--sg-radius) + 0.35rem);
  background: linear-gradient(145deg, #fff8eb 0%, #ffffff 45%, #f3f1ec 100%);
  border: 1px solid var(--sg-line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sg-shadow);
}

.sg-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.sg-hero__orb--1 {
  width: 180px;
  height: 180px;
  background: rgba(232, 168, 56, 0.35);
  top: -40px;
  right: -30px;
}

.sg-hero__orb--2 {
  width: 120px;
  height: 120px;
  background: rgba(232, 168, 56, 0.2);
  bottom: 20px;
  left: -20px;
}

.sg-hero__card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.86);
  border-radius: var(--sg-radius);
  border: 1px solid rgba(232, 168, 56, 0.25);
  backdrop-filter: blur(6px);
}

.sg-hero__logo {
  height: 52px;
  width: auto;
  margin: 0 auto 0.75rem;
  display: block;
}

.sg-hero__card-text {
  font-size: 0.9rem;
  color: var(--sg-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Sections */
.sg-section {
  padding: 5rem 0;
}

.sg-section--muted {
  background: var(--sg-bg-muted);
}

.sg-section__head {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.sg-section__title {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  margin-bottom: 0.75rem;
}

.sg-section__lead {
  color: var(--sg-ink-soft);
  margin-bottom: 0;
  font-size: 1.05rem;
}

/* Service cards */
.sg-card {
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.02);
}

.sg-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sg-shadow);
  border-color: rgba(232, 168, 56, 0.45);
}

.sg-card__media {
  aspect-ratio: 1 / 1;
  background: #0b1220;
  overflow: hidden;
}

.sg-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
}

.sg-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: var(--sg-accent-soft);
  color: var(--sg-accent-dark);
  margin-bottom: 1.1rem;
  font-size: 1.1rem;
}

.sg-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.sg-card__text {
  color: var(--sg-ink-soft);
  font-size: 0.95rem;
}

/* Projects */
.sg-project {
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sg-project:hover {
  transform: translateY(-3px);
  box-shadow: var(--sg-shadow);
}

.sg-project__thumb {
  height: 160px;
  border-bottom: 3px solid var(--sg-accent);
}

.sg-project__thumb--a {
  background: linear-gradient(135deg, #3d2a1a 0%, #E8A838 55%, #f5d9a0 100%);
}
.sg-project__thumb--b {
  background: linear-gradient(135deg, #1e3a4c 0%, #5a9bb0 50%, #E8A838 100%);
}
.sg-project__thumb--c {
  background: linear-gradient(135deg, #2f4a22 0%, #8faf5a 45%, #E8A838 100%);
}

.sg-project__thumb--shot {
  height: 200px;
  aspect-ratio: auto;
  background: #f3f3f3;
  padding: 0;
  overflow: hidden;
  position: relative;
  border-radius: var(--sg-radius) var(--sg-radius) 0 0;
  border-bottom: 3px solid var(--sg-accent);
}

.sg-project__thumb--shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.sg-project__body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sg-chip {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sg-accent-dark);
  background: var(--sg-accent-soft);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.65rem;
}

.sg-project__title {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.sg-project__text {
  color: var(--sg-ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.sg-project__link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sg-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  pointer-events: none;
  opacity: 0.55;
}

/* Process — JetDue-style scroll timeline */
.sg-process {
  overflow: clip;
}

.sg-process__grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 992px) {
  .sg-process__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }

  .sg-process__intro {
    position: sticky;
    top: 6.5rem;
    padding-bottom: 2rem;
  }
}

.sg-process__lead {
  margin-bottom: 1.25rem;
  max-width: 34rem;
}

.sg-process__steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-left: 0.25rem;
}

.sg-process__track {
  position: absolute;
  left: 1.55rem;
  top: 2.1rem;
  bottom: 2.1rem;
  width: 2px;
  border-radius: 999px;
  background: var(--sg-line);
  overflow: hidden;
  z-index: 0;
}

.sg-process__track-fill {
  width: 100%;
  height: 100%;
  transform-origin: top center;
  transform: scaleY(0);
  background: linear-gradient(180deg, var(--sg-accent) 0%, #c9841f 100%);
  will-change: transform;
}

.sg-process__step {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  padding: 1rem 1rem 1rem 0.35rem;
  border-radius: 14px;
  transition: background-color 0.35s ease;
}

.sg-process__step.is-active {
  background: rgba(232, 168, 56, 0.06);
}

.sg-process__marker {
  flex: 0 0 3.1rem;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 15px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--sg-line);
  background: #fff;
  box-shadow: 0 6px 16px -8px rgba(26, 26, 26, 0.18);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
  font-family: var(--sg-font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sg-muted);
}

.sg-process__step.is-active .sg-process__marker {
  transform: scale(1.05);
  border-color: transparent;
  color: #fff;
  background: linear-gradient(145deg, #e8a838 0%, #c9841f 100%);
  box-shadow: 0 14px 26px -10px rgba(201, 132, 31, 0.55);
}

.sg-process__kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sg-muted);
  transition: color 0.35s ease;
}

.sg-process__step.is-active .sg-process__kicker {
  color: var(--sg-accent-dark);
}

.sg-process__title {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sg-ink);
  transition: color 0.35s ease;
}

.sg-process__step:not(.is-active) .sg-process__title {
  color: #7a7a7a;
}

.sg-process__text {
  margin: 0;
  max-width: 26rem;
  color: var(--sg-ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  transition: color 0.35s ease;
}

.sg-process__step:not(.is-active) .sg-process__text {
  color: #9a9a9a;
}

/* legacy step title selector still referenced in shared heading rule */
.sg-step__title {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

/* About */
.sg-about {
  font-size: 1.1rem;
  color: var(--sg-ink-soft);
  margin: 0 auto;
  max-width: 38rem;
}

.sg-trust__label {
  font-size: 0.85rem;
  color: var(--sg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.sg-trust__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.sg-trust__item {
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sg-ink-soft);
}

/* CTA / Contact */
.sg-cta {
  background: linear-gradient(160deg, #1f1c17 0%, #2a241c 55%, #1a1713 100%);
  color: #f5f2eb;
}

.sg-cta__title {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 0.85rem;
}

.sg-cta__lead {
  color: rgba(245, 242, 235, 0.78);
  margin-bottom: 1.75rem;
}

.sg-cta__contacts li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: rgba(245, 242, 235, 0.9);
}

.sg-cta__contacts i {
  color: var(--sg-accent);
  width: 1.1rem;
  margin-top: 0.2rem;
}

.sg-cta__contacts a {
  color: #fff;
  font-weight: 500;
}
.sg-cta__contacts a:hover {
  color: var(--sg-accent);
}

.sg-form {
  background: #fff;
  color: var(--sg-ink);
  border-radius: calc(var(--sg-radius) + 0.15rem);
  padding: 1.75rem;
  box-shadow: var(--sg-shadow);
}

.sg-form .form-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.sg-form .form-control {
  border-radius: 0.65rem;
  border-color: var(--sg-line);
  padding: 0.7rem 0.9rem;
}

.sg-form .form-control:focus {
  border-color: var(--sg-accent);
  box-shadow: 0 0 0 0.2rem var(--sg-accent-soft);
}

.sg-form__hint {
  font-size: 0.8rem;
  color: var(--sg-muted);
}

/* Footer */
.sg-footer {
  background: #141210;
  color: rgba(245, 242, 235, 0.78);
  padding: 3.5rem 0 0;
}

.sg-footer__title {
  font-family: var(--sg-font-head);
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 1rem;
}

.sg-footer__blurb {
  max-width: 22rem;
  font-size: 0.95rem;
}

.sg-footer__links a,
.sg-footer__contact a {
  color: rgba(245, 242, 235, 0.78);
}
.sg-footer__links a:hover,
.sg-footer__contact a:hover {
  color: var(--sg-accent);
}

.sg-footer__links li,
.sg-footer__contact li {
  margin-bottom: 0.45rem;
}

.sg-footer__bottom {
  margin-top: 2.75rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(245, 242, 235, 0.55);
}

/* Responsive */
@media (max-width: 991.98px) {
  .sg-hero {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }
  .sg-section {
    padding: 3.5rem 0;
  }
  .sg-nav .navbar-collapse {
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .sg-form {
    padding: 1.25rem;
  }
  .sg-hero__panel {
    min-height: 220px;
  }
}

/* ===== Sobre mí landing ===== */
.sg-about-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
}
.sg-about-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.sg-about-hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.sg-about-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(18, 12, 8, 0.92) 0%, rgba(18, 12, 8, 0.72) 48%, rgba(18, 12, 8, 0.45) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(232, 168, 56, 0.22), transparent 55%);
}
.sg-about-hero__inner {
  position: relative;
  z-index: 1;
}
.sg-about-hero__title {
  font-family: var(--sg-font-head);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0.35rem 0 1rem;
}
.sg-about-hero__lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}
.sg-about-hero__portrait {
  border-radius: calc(var(--sg-radius) + 0.35rem);
  overflow: hidden;
  border: 1px solid rgba(232, 168, 56, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  background: #1a120c;
  aspect-ratio: 1;
}
.sg-about-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sg-about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.sg-about-stat__num {
  display: block;
  font-family: var(--sg-font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--sg-accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.sg-about-stat__label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 575.98px) {
  .sg-about-stats { grid-template-columns: 1fr; gap: 1.25rem; }
}

.sg-about-prose {
  font-size: 1.05rem;
  color: var(--sg-ink-soft);
}
.sg-about-prose p + p { margin-top: 1.1rem; }
.sg-about-prose strong { color: var(--sg-ink); font-weight: 600; }

.sg-about-tl {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.25rem;
  position: relative;
  max-width: 42rem;
  margin-inline: auto;
}
.sg-about-tl::before {
  content: "";
  position: absolute;
  left: calc(1.125rem - 1px);
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(180deg, var(--sg-accent), rgba(232, 168, 56, 0.15));
  border-radius: 2px;
}
.sg-about-tl__item {
  position: relative;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1.1rem;
  padding: 0 0 2.25rem;
}
.sg-about-tl__item:last-child { padding-bottom: 0; }
.sg-about-tl__marker {
  position: relative;
  z-index: 1;
  width: 1.75rem;
  display: flex;
  justify-content: center;
  padding-top: 0.35rem;
}
.sg-about-tl__marker span {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--sg-accent);
  box-shadow: 0 0 0 4px var(--sg-accent-soft);
}
.sg-about-tl__year {
  margin: 0;
  font-family: var(--sg-font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sg-accent-dark);
}
.sg-about-tl__title {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.25rem;
}
.sg-about-tl__text {
  margin: 0;
  color: var(--sg-ink-soft);
}

.sg-about-skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (min-width: 768px) {
  .sg-about-skills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .sg-about-skills { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.sg-about-skill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: var(--sg-radius);
  border: 1px solid var(--sg-line);
  background: #fff;
  box-shadow: var(--sg-shadow);
  font-family: var(--sg-font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--sg-ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.sg-about-skill i {
  color: var(--sg-accent-dark);
  font-size: 1.15rem;
  width: 1.4rem;
  text-align: center;
}
.sg-about-skill:hover {
  border-color: rgba(232, 168, 56, 0.55);
  transform: translateY(-2px);
}

.sg-about-value {
  position: relative;
  padding: 1.75rem 1.5rem 1.6rem;
  border-radius: var(--sg-radius);
  background: #fff;
  border: 1px solid var(--sg-line);
  box-shadow: var(--sg-shadow);
  overflow: hidden;
}
.sg-about-value__num {
  font-family: var(--sg-font-head);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--sg-accent-soft);
  color: rgba(232, 168, 56, 0.35);
  display: block;
  margin-bottom: 0.75rem;
}
.sg-about-value__title {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}
.sg-about-value__text {
  color: var(--sg-ink-soft);
  margin: 0;
}

.sg-about-workcard {
  display: block;
  position: relative;
  border-radius: var(--sg-radius);
  overflow: hidden;
  border: 1px solid var(--sg-line);
  background: #111;
  aspect-ratio: 16 / 10;
  box-shadow: var(--sg-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sg-about-workcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.45s ease;
}
.sg-about-workcard__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(180deg, transparent, rgba(12, 8, 4, 0.88));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.sg-about-workcard__meta strong {
  font-family: var(--sg-font-head);
  font-size: 1.05rem;
}
.sg-about-workcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(26, 26, 26, 0.14);
}
.sg-about-workcard:hover img {
  transform: scale(1.04);
}

.sg-about-cta__panel {
  border-radius: calc(var(--sg-radius) + 0.25rem);
  padding: 2.5rem 2rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(232, 168, 56, 0.28), transparent 50%),
    linear-gradient(135deg, #1a120c 0%, #2a1c12 100%);
  color: #fff;
  border: 1px solid rgba(232, 168, 56, 0.25);
  box-shadow: 0 20px 50px rgba(26, 26, 26, 0.18);
}
.sg-about-cta__title {
  font-family: var(--sg-font-head);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  color: #fff;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}
.sg-about-cta__lead {
  color: rgba(255, 255, 255, 0.78);
  max-width: 36rem;
}
.sg-about-cta__phone a {
  color: var(--sg-accent);
  font-family: var(--sg-font-head);
  font-weight: 600;
  font-size: 1.05rem;
}
.sg-about-cta__phone a:hover { color: #f0c56a; }

/* Reveal */
[data-sg-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-sg-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-sg-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.nav-link.is-active {
  color: var(--sg-ink) !important;
  font-weight: 600;
}

/* ===== Servicios ===== */
.sg-svc { padding: 2.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.sg-svc:last-child { border-bottom: 0; }
@media (min-width: 992px) { .sg-svc--rev .row { flex-direction: row-reverse; } }
.sg-svc__media { border-radius: 1.25rem; overflow: hidden; aspect-ratio: 4 / 3; }
.sg-svc__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-svc__num { font-family: var(--sg-font-head); font-weight: 600; color: var(--sg-accent-dark); letter-spacing: 0.08em; }
.sg-svc__title { margin: 0.35rem 0 0.75rem; font-size: 1.75rem; }
.sg-svc__text { color: var(--sg-ink-soft); font-size: 1.05rem; }
.sg-svc__list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.6rem; }
.sg-svc__list li { position: relative; padding-left: 1.6rem; }
.sg-svc__list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--sg-accent); box-shadow: 0 0 0 3px var(--sg-accent-soft); }
.sg-faq { max-width: 48rem; margin-inline: auto; display: grid; gap: 0.75rem; }
.sg-faq__item { background: #fff; border-radius: 1rem; padding: 1.1rem 1.4rem; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.sg-faq__item summary { cursor: pointer; font-family: var(--sg-font-head); font-weight: 600; list-style: none; position: relative; padding-right: 2rem; }
.sg-faq__item summary::-webkit-details-marker { display: none; }
.sg-faq__item summary::after { content: "+"; position: absolute; right: 0; top: -0.1rem; font-size: 1.4rem; color: var(--sg-accent-dark); }
.sg-faq__item[open] summary::after { content: "–"; }
.sg-faq__item p { margin: 0.75rem 0 0; color: var(--sg-ink-soft); }

/* Contact form feedback + honeypot */
.sg-form-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
  border: 1px solid transparent;
}
.sg-form-alert i {
  margin-top: 0.15rem;
}
.sg-form-alert--success {
  background: var(--sg-accent-soft);
  border-color: rgba(232, 168, 56, 0.45);
  color: var(--sg-ink);
}
.sg-form-alert--success i {
  color: var(--sg-accent-dark);
}
.sg-form-alert--error {
  background: #fdf0ee;
  border-color: #f2c4bc;
  color: #8a2a1c;
}
.sg-form .form-control.is-invalid {
  border-color: #d9534f;
}
.sg-form .invalid-feedback {
  font-size: 0.82rem;
}
.sg-form__hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Contact form: phone (optional), privacy consent, first-layer data protection info */
.sg-form__optional {
  font-weight: 400;
  color: var(--sg-muted);
}
.sg-form__consent {
  font-size: 0.9rem;
}
.sg-form__consent .form-check-input {
  border-color: #c9c5bd;
}
.sg-form__consent .form-check-input:checked {
  background-color: var(--sg-accent);
  border-color: var(--sg-accent);
}
.sg-form__consent .form-check-input:focus {
  border-color: var(--sg-accent);
  box-shadow: 0 0 0 0.2rem var(--sg-accent-soft);
}
.sg-form__consent .form-check-input.is-invalid {
  border-color: #d9534f;
}
.sg-form__consent a,
.sg-form__legal a {
  color: var(--sg-accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sg-form__legal {
  padding: 0.85rem 1rem;
  background: var(--sg-bg-muted);
  border: 1px solid var(--sg-line);
  border-radius: 0.65rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--sg-muted);
}
.sg-form__legal-title {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--sg-ink-soft);
}
.sg-form__legal li + li {
  margin-top: 0.15rem;
}
.sg-form__legal strong {
  color: var(--sg-ink-soft);
  font-weight: 600;
}

/* Legal pages */
.sg-legal {
  max-width: 50rem;
}
.sg-legal h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin-bottom: 0.75rem;
}
.sg-legal h2 {
  font-size: 1.2rem;
  margin: 2.25rem 0 0.75rem;
}
.sg-legal p,
.sg-legal li {
  color: var(--sg-ink-soft);
  line-height: 1.7;
}
.sg-legal a {
  color: var(--sg-accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sg-legal__meta {
  color: var(--sg-muted);
  font-size: 0.9rem;
}
.sg-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.sg-footer__legal a {
  color: rgba(245, 242, 235, 0.7);
}
.sg-footer__legal a:hover {
  color: var(--sg-accent);
}

/* ===== Clientes ===== */
.sg-clients__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 576px) {
  .sg-clients__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .sg-clients__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
}
@media (min-width: 1200px) {
  .sg-clients__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.sg-clients__item {
  display: flex;
}
.sg-clients__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
  padding: 1.25rem 1rem 1rem;
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  color: var(--sg-ink-soft);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
a.sg-clients__card:hover,
a.sg-clients__card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--sg-shadow);
  border-color: rgba(232, 168, 56, 0.55);
  color: var(--sg-ink);
}
a.sg-clients__card:focus-visible {
  outline: 2px solid var(--sg-accent);
  outline-offset: 2px;
}
.sg-clients__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 120px;
}
.sg-clients__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  border-radius: 0.5rem;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
@media (hover: hover) {
  .sg-clients__logo img {
    filter: grayscale(0.85);
    opacity: 0.85;
  }
  .sg-clients__card:hover .sg-clients__logo img,
  .sg-clients__card:focus-visible .sg-clients__logo img {
    filter: none;
    opacity: 1;
  }
}
.sg-clients__name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}
.sg-clients__name i {
  margin-left: 0.3rem;
  font-size: 0.7rem;
  color: var(--sg-accent-dark);
}
@media (prefers-reduced-motion: reduce) {
  .sg-clients__card,
  .sg-clients__logo img { transition: none; }
  a.sg-clients__card:hover { transform: none; }
}

/* Per-logo modifier: wide logos whose artwork reaches the edges */
.sg-clients__logo--narrow img {
  max-width: 80%;
}

/* ---------- WhatsApp flotante ---------- */
.sg-wa-float{position:fixed;right:1.25rem;bottom:1.25rem;z-index:1050;width:58px;height:58px;border-radius:50%;background:#25D366;color:#fff;display:flex;align-items:center;justify-content:center;font-size:2rem;line-height:1;box-shadow:0 6px 18px rgba(0,0,0,.25);text-decoration:none;transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease}
.sg-wa-float:hover,.sg-wa-float:focus-visible{color:#fff;background:#1ebe5b;transform:scale(1.08);box-shadow:0 8px 24px rgba(0,0,0,.3)}
.sg-wa-float:focus-visible{outline:3px solid rgba(37,211,102,.45);outline-offset:3px}
@media (max-width:575.98px){.sg-wa-float{right:1rem;bottom:1rem;width:52px;height:52px;font-size:1.75rem}}
@media print{.sg-wa-float{display:none}}

/* Footer legal links */
.sg-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

/* ===== Cookies: banner y panel de consentimiento ===== */
.sg-cookie {
  position: fixed;
  z-index: 1080;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem 1.35rem 1.35rem;
  background: linear-gradient(160deg, #1f1c17 0%, #2a241c 60%, #1a1713 100%);
  color: #f5f2eb;
  border: 1px solid rgba(232, 168, 56, 0.35);
  border-radius: var(--sg-radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  font-size: 0.9rem;
}
/* Modal centrado (por defecto) */
.sg-cookie--modal {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 1.6rem 1.6rem 1.6rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  font-size: 0.92rem;
}
/* Tarjeta no bloqueante (páginas legales) */
.sg-cookie--inline {
  left: 1.25rem;
  bottom: 1.25rem;
  width: min(36rem, calc(100% - 2.5rem));
  max-height: calc(100vh - 2.5rem);
}
.sg-cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1070; /* por encima del botón de WhatsApp (1050) */
  background: rgba(12, 10, 8, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.sg-cookie-backdrop[hidden] { display: none; }
html.sg-cookie-lock,
html.sg-cookie-lock body { overflow: hidden; }
.sg-cookie__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.sg-cookie__close {
  appearance: none;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin: -0.35rem -0.4rem 0 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(245, 242, 235, 0.75);
  font-size: 1.1rem;
  cursor: pointer;
}
.sg-cookie__close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.sg-cookie__close:focus-visible { outline: 3px solid var(--sg-accent); outline-offset: 1px; }
.sg-cookie__close[hidden] { display: none; }
.sg-cookie[hidden] { display: none; }
.sg-cookie__title {
  margin: 0 0 0.4rem;
  font-family: var(--sg-font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}
.sg-cookie__title:focus { outline: none; }
.sg-cookie__title:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: 3px; }
.sg-cookie__text {
  margin: 0 0 1rem;
  line-height: 1.55;
  color: rgba(245, 242, 235, 0.82);
}
.sg-cookie a {
  color: var(--sg-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sg-cookie a:hover { color: #f0c56a; }
/* Los tres botones son idénticos (mismo tamaño, color y peso): rechazar es tan fácil como aceptar. */
.sg-cookie__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.sg-cookie__btn {
  appearance: none;
  border: 1px solid var(--sg-accent);
  background: var(--sg-accent);
  color: #1a1a1a;
  font-family: var(--sg-font-body);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.2;
  padding: 0.7rem 0.6rem;
  border-radius: 0.65rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.sg-cookie__btn:hover { background: var(--sg-accent-dark); border-color: var(--sg-accent-dark); }
.sg-cookie__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sg-cookie__cats { margin: 0 0 1rem; }
.sg-cookie__cat {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sg-cookie__cat:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.sg-cookie__switch {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding-left: 2.75em;
}
.sg-cookie__switch .form-check-input {
  width: 2.4em;
  height: 1.3em;
  margin-left: -2.75em;
  margin-top: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.sg-cookie__switch .form-check-input:checked {
  background-color: var(--sg-accent);
  border-color: var(--sg-accent);
}
.sg-cookie__switch .form-check-input:focus {
  border-color: var(--sg-accent);
  box-shadow: 0 0 0 0.2rem rgba(232, 168, 56, 0.35);
}
.sg-cookie__switch .form-check-input:disabled { opacity: 0.75; cursor: not-allowed; }
.sg-cookie__switch .form-check-input:disabled ~ .form-check-label { opacity: 1; }
.sg-cookie__switch .form-check-label {
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
.sg-cookie__badge {
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(232, 168, 56, 0.18);
  color: var(--sg-accent);
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: middle;
}
.sg-cookie__cat-text {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(245, 242, 235, 0.7);
}
@media (max-width: 575.98px) {
  .sg-cookie--modal {
    width: calc(100% - 1.5rem);
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    padding: 1.15rem 1.1rem 1.2rem;
  }
  .sg-cookie--inline {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: auto;
    max-height: calc(100vh - 1.5rem);
    padding: 1rem 1rem 1.1rem;
  }
}
@media (max-width: 419.98px) {
  .sg-cookie__actions { grid-template-columns: 1fr; }
}
@media print { .sg-cookie, .sg-cookie-backdrop { display: none !important; } }

/* Footer: botón «Configurar cookies» con aspecto de enlace */
.sg-footer__cookie-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: rgba(245, 242, 235, 0.7);
  cursor: pointer;
}
.sg-footer__cookie-btn:hover,
.sg-footer__cookie-btn:focus-visible { color: var(--sg-accent); }

/* Tabla de la política de cookies */
.sg-legal__table {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.sg-legal__table th {
  background: var(--sg-bg-muted);
  color: var(--sg-ink);
  font-weight: 600;
  white-space: nowrap;
}
.sg-legal__table td,
.sg-legal__table th {
  border-color: var(--sg-line);
  padding: 0.65rem 0.75rem;
  vertical-align: top;
}
.sg-legal__table code { color: var(--sg-ink); }

/* ---------- Home: enlace a clientes ---------- */
.sg-trust__more{color:#b8801f;font-weight:600;text-decoration:none;font-size:.95rem}
.sg-trust__more:hover,.sg-trust__more:focus-visible{color:#E8A838;text-decoration:underline}
.sg-trust__more i{font-size:.8em;margin-left:.25rem}

/* ===== Selector de idioma ES / CA ===== */
.sg-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--sg-font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.sg-lang__link {
  color: var(--sg-ink-soft);
  padding: 0.3rem 0.4rem;
  border-radius: 0.4rem;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.sg-lang__link:hover { color: var(--sg-accent-dark); background: var(--sg-accent-soft); }
.sg-lang__link.is-active { color: var(--sg-accent); }
.sg-lang__link:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: 2px; }
.sg-lang__sep { color: var(--sg-line); font-weight: 400; }
@media (min-width: 992px) {
  .sg-lang-item { margin-left: 0.75rem; padding-left: 0.75rem; border-left: 1px solid var(--sg-line); }
}
@media (max-width: 991.98px) {
  .sg-lang-item { margin-top: 0.75rem; padding: 0.5rem 0 0.25rem; border-top: 1px solid var(--sg-line); }
  .sg-lang { font-size: 0.9rem; }
}

/* ===== Google Translate: ocultar barra, globos y desplazamiento ===== */
.sg-gt { position: absolute !important; left: -9999px !important; top: 0 !important; width: 1px; height: 1px; overflow: hidden; }
.goog-te-banner-frame,
.skiptranslate iframe,
iframe.skiptranslate,
body > .skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-te-spinner-pos,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-yAWNEb-L7lbkb { display: none !important; }
html, body { top: 0 !important; }
body { position: static !important; }
.goog-text-highlight,
.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q { background: none !important; box-shadow: none !important; }
font[style*="vertical-align: inherit"] { vertical-align: inherit; }
.sg-lang--dark .sg-lang__link { color: rgba(245, 242, 235, 0.7); }
.sg-lang--dark .sg-lang__link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.sg-lang--dark .sg-lang__link.is-active { color: var(--sg-accent); }
.sg-lang--dark .sg-lang__sep { color: rgba(255, 255, 255, 0.25); }
.sg-cookie__head .sg-lang { margin: -0.2rem -0.3rem 0 0; }
