* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

:root {
  --gold: #B8912A;
  --gold-l: #D4AE55;
  --gold-d: #8A6A1A;
  --gold-pale: #F7F0E0;
  --cream: #FDFAF5;
  --off-white: #FDFAF5;
  --warm-white: #FDFAF5;
  --dark: #1A1612;
  --dark2: #2C2519;
  --mid: #5C4F3A;
  --muted: #8C7E6A;
  --muted-l: #B5A898;
  --border: rgba(184, 145, 42, 0.16);
  --border-dark: rgba(92, 79, 58, 0.15);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --shadow: 0 2px 24px rgba(28, 22, 12, 0.08);
  --shadow-lg: 0 8px 48px rgba(28, 22, 12, 0.12);
  --gold-xl: #E8CC80;
}

html {
  scroll-behavior: smooth
}

body {
  background: var(--cream);
  color: var(--dark);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 4px
}

::-webkit-scrollbar-track {
  background: var(--off-white)
}

::-webkit-scrollbar-thumb {
  background: var(--gold-l);
  border-radius: 2px
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 60px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(253, 250, 245, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--border)
}

.nav-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none
}

.nav-logo-mark {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -.02em
}

.nav-logo-text {
  line-height: 1
}

.nav-logo-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: .06em;
  display: block
}

.nav-logo-sub {
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 1px
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none
}

.nav-links a {
  color: var(--mid);
  font-size: 13px;
  letter-spacing: .06em;
  text-decoration: none;
  transition: color .25s;
  font-weight: 400
}

.nav-links a:hover {
  color: var(--gold)
}

.nav-cta {
  background: var(--gold);
  color: white;
  padding: 10px 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .25s;
  border-radius: 2px
}

.nav-cta:hover {
  background: var(--gold-l);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(184, 145, 42, 0.3)
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 60px;
  padding-top: 72px;
  background: var(--warm-white);
  position: relative;
  overflow: hidden
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(184, 145, 42, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none
}

.hero-left {
  position: relative;
  z-index: 2;
  padding-right: 60px
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  background: var(--gold-pale);
  padding: 8px 16px;
  border-radius: 40px;
  border: 0.5px solid var(--border)
}

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 80px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--dark);
  margin-bottom: 28px;
  letter-spacing: -.01em
}

.hero-h1 em {
  font-style: italic;
  color: var(--gold)
}

.hero-sub {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--mid);
  max-width: 480px;
  margin-bottom: 44px
}

.hero-ctas {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap
}

.btn-primary {
  background: var(--gold);
  color: white;
  padding: 15px 36px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all .25s;
  display: inline-block
}

.btn-primary:hover {
  background: var(--gold-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 145, 42, 0.3)
}

.btn-outline {
  border: 1.5px solid var(--dark);
  color: var(--dark);
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold)
}

.btn-outline::after {
  content: '→';
  transition: transform .25s
}

.btn-outline:hover::after {
  transform: translateX(4px)
}

.hero-right {
  position: relative;
  height: 100vh;
  overflow: hidden
}

.hero-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center
}

.hero-img-badge {
  position: absolute;
  bottom: 40px;
  left: 32px;
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 260px;
  animation: float 3s ease-in-out infinite
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-6px)
  }
}

.badge-icon {
  width: 36px;
  height: 36px;
  background: var(--gold-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0
}

.badge-text {
  font-size: 12px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.4
}

.badge-text strong {
  display: block;
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 2px
}

/* ── Clients ticker ── */
.clients-bar {
  background: var(--dark);
  padding: 18px 0;
  overflow: hidden;
  position: relative
}

.clients-track {
  display: flex;
  gap: 0;
  animation: ticker 28s linear infinite;
  white-space: nowrap
}

.clients-track:hover {
  animation-play-state: paused
}

.client-item {
  padding: 0 52px;
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  border-right: 0.5px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0
}

.client-item::before {
  content: '✦';
  color: var(--gold);
  font-size: 8px
}

@keyframes ticker {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

/* ── Stats ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: white;
  border-bottom: 0.5px solid var(--border-dark)
}

.stat {
  padding: 40px 32px;
  text-align: center;
  border-right: 0.5px solid var(--border-dark);
  transition: background .25s
}

.stat:last-child {
  border-right: none
}

.stat:hover {
  background: var(--gold-pale)
}

.stat-num {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -.02em
}

.stat-label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400
}

/* ── Sections ── */
section {
  padding: 100px 60px
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  border-radius: 1px
}

.section-h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 60px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 20px
}

.section-h2 em {
  font-style: italic;
  color: var(--gold)
}

.section-lead {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--mid);
  max-width: 580px
}

/* ── Manifesto ── */
#manifesto {
  background: var(--dark);
  position: relative;
  overflow: hidden
}

.manifesto-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 80% 50%, rgba(184, 145, 42, 0.08) 0%, transparent 60%)
}

.manifesto-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center
}

.manifesto-quote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 50px);
  font-weight: 300;
  line-height: 1.3;
  color: white;
  font-style: italic
}

.manifesto-quote strong {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold), var(--gold-xl));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 400
}

.manifesto-right {}

.manifesto-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 36px
}

.manifesto-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.pill {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-xl) 50%, var(--gold) 100%);
  background-size: 200% 200%;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 7px 16px;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 40px;
  box-shadow: 0 4px 16px rgba(184, 145, 42, 0.3), inset 0 1px rgba(255, 255, 255, 0.25);
  transition: background-position .5s, transform .25s, box-shadow .25s
}

.pill:hover {
  background-position: 100% 0%;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(184, 145, 42, 0.45), inset 0 1px rgba(255, 255, 255, 0.25)
}

/* ── Portfolio ── */
#portafolio {
  background: var(--off-white);
  padding-bottom: 0
}

.portfolio-header {
  margin-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end
}

.p-item {
  break-inside: avoid;
  margin-bottom: 0px;
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block
}

.p-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
  filter: brightness(.92)
}

.p-item:hover img {
  transform: scale(1.04);
  filter: brightness(1)
}

.p-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 22, 18, .88) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px;
  opacity: 0;
  transition: opacity .35s
}

.p-item:hover .p-overlay {
  opacity: 1
}

.p-client {
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-l);
  margin-bottom: 5px
}

.p-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: white;
  line-height: 1.2;
  margin-bottom: 4px
}

.p-type {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55)
}

.p-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(26, 22, 18, 0.75);
  border: 0.5px solid rgba(184, 145, 42, 0.5);
  color: var(--gold-l);
  padding: 5px 12px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-radius: 40px;
  opacity: 0;
  transition: opacity .35s
}

.p-item:hover .p-tag {
  opacity: 1
}

/* Row layout for special items */
.portfolio-row {
  display: grid;
  gap: 0px;
  margin-bottom: 0px
}

.portfolio-row.cols2 {
  grid-template-columns: 1fr 1fr
}

.portfolio-row.cols3 {
  grid-template-columns: 2fr 1fr 1fr
}

.portfolio-row.cols-13 {
  grid-template-columns: 1fr 3fr
}

/* ── Servicios ── */
#servicios {
  background: var(--off-white)
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.service-card {
  background: white;
  padding: 48px;
  position: relative;
  overflow: hidden;
  transition: all .3s;
  border: 1px solid #eaeaea;
}

.service-card:hover {
  background: rgba(184, 145, 42, 0.04);
  border-color: rgba(184, 145, 42, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

.service-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold-l));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.service-card:hover .service-accent {
  transform: scaleX(1);
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.service-num {
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  transition: all .3s;
}

.service-card:hover .service-num {
  opacity: 1;
}

.service-badge {
  background: var(--gold);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(184, 145, 42, 0.4);
  text-transform: uppercase;
}

.service-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.service-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* ── Proceso ── */
#proceso {
  position: relative;
  background: var(--dark);
  color: white;
  z-index: 1
}

#proceso::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/logo-watermark.webp") no-repeat left -190px center fixed;
  background-size: 80vh;
  opacity: 0.04;
  z-index: -1;
  pointer-events: none
}

.proceso-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative
}

.proceso-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(to right, var(--gold), var(--gold-l), var(--gold));
  opacity: .25;
  z-index: 0
}

.paso {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 0.5px solid var(--border-dark);
  padding: 36px 28px;
  position: relative;
  transition: all .3s;
  margin: 0 1px
}

.paso:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  z-index: 1
}

.paso-num-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--gold);
  margin: 0 auto 28px;
  background: white;
  position: relative;
  z-index: 1;
  transition: all .3s
}

.paso:hover .paso-num-circle {
  background: var(--gold);
  color: white
}

.paso-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: white;
  margin-bottom: 12px;
  line-height: 1.25;
  text-align: center
}

.paso-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  text-align: center
}

.paso-time {
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  font-weight: 500
}

/* ── Tech NFC ── */
#tecnologia {
  position: relative;
  background: var(--dark);
  color: white;
  z-index: 1
}

#tecnologia::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/logo-watermark.webp") no-repeat right -150px center fixed;
  background-size: 85vh;
  opacity: 0.04;
  z-index: -1;
  pointer-events: none
}

.tech-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center
}

.tech-content .section-lead {
  margin-bottom: 40px
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 0
}

.tech-item {
  padding: 20px 0;
  border-bottom: 0.5px solid var(--border-dark);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all .25s
}

.tech-item:first-child {
  border-top: 0.5px solid var(--border-dark)
}

.tech-item:hover {
  padding-left: 8px
}

.t-icon { width: 40px; height: 40px; border: 1px solid rgba(184, 145, 42, 0.3); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold); background: transparent; transition: all .25s; }

.tech-item:hover .t-icon { background: rgba(184, 145, 42, 0.1); border-color: var(--gold); }

.t-title {
  font-size: 14px;
  font-weight: 500;
  color: white;
  margin-bottom: 4px;
  letter-spacing: .02em
}

.t-desc {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6
}

.tech-card {
  background: radial-gradient(circle at 100% 0%, rgba(184, 145, 42, 0.12) 0%, var(--dark) 60%);
  border: 1px solid rgba(184, 145, 42, 0.3);
  border-radius: 16px;
  padding: 48px;
  color: white;
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(184, 145, 42, 0.2);
  border-radius: 50%
}

.tech-card::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(184, 145, 42, 0.1);
  border-radius: 50%
}

.tech-icon-main {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(184, 145, 42, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  position: relative;
  z-index: 1
}

.tech-card-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--gold-l);
  margin-bottom: 8px;
  position: relative;
  z-index: 1
}

.tech-card-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: .15em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  margin-bottom: 32px
}

.chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  position: relative;
  z-index: 1;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden
}

.chip-cell {
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
  transition: background .25s
}

.chip-cell:hover {
  background: rgba(184, 145, 42, 0.1)
}

.chip-val {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--gold-l);
  margin-bottom: 4px
}

.chip-key { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.35); }

.tech-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.tech-card-icon { width: 32px; height: 32px; border: 1px solid rgba(184, 145, 42, 0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); }
.tech-card-icon svg { width: 16px; height: 16px; }
.tech-card-label { font-size: 10px; font-weight: 500; letter-spacing: 0.15em; color: var(--gold-l); text-transform: uppercase; }
.tech-card-title { font-family: var(--serif); font-size: 32px; font-weight: 300; color: white; margin-bottom: 12px; line-height: 1.2; }
.tech-card-sub { font-size: 9px; color: var(--gold-d); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 32px; font-weight: 500; }
.chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; overflow: hidden; margin-bottom: 32px; }
.chip-cell { background: rgba(255, 255, 255, 0.02); padding: 20px; transition: background .25s; }
.chip-cell.span-full { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.chip-val { font-family: var(--serif); font-size: 20px; color: var(--gold-l); margin-bottom: 4px; }
.chip-key { font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); }
.tech-card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 9px; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.3); border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 24px; text-transform: uppercase; }
.tech-card-footer .arrow { color: var(--gold-d); font-size: 14px; }


/* ── Nosotros ── */
#nosotros {
  background: var(--warm-white)
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch
}

.about-img-wrap {
  position: relative
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  box-shadow: var(--shadow-lg)
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: white;
  padding: 20px 24px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(184, 145, 42, 0.3)
}

.about-badge-num {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 4px
}

.about-badge-label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .85
}

.about-content {
  padding-top: 16px
}

.about-text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--mid);
  margin-bottom: 20px
}

.about-distinctions {
  margin-top: 40px;
  border-top: 0.5px solid var(--border-dark)
}

.distinction {
  padding: 16px 0;
  border-bottom: 0.5px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center
}

.dist-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300
}

.dist-val {
  font-size: 13px;
  color: var(--dark);
  font-weight: 400
}

/* ── Testimonial ── */
#testimonial {
  background: var(--gold);
  padding: 80px 60px;
  text-align: center
}

.test-quote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 300;
  color: white;
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto 24px;
  font-style: italic
}

.test-source {
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65)
}

/* ── Contacto ── */
#contacto {
  background: var(--dark);
  color: white
}

.contact-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start
}

.contact-left {
  padding-top: 8px
}

.contact-tagline {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 20px;
  color: white
}

.contact-tagline em {
  font-style: italic;
  color: var(--gold)
}

.contact-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px
}

.contact-detail { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.05); }

.cdet-icon { width: 40px; height: 40px; border: 1px solid rgba(184, 145, 42, 0.3); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; color: var(--gold); background: transparent; }

.cdet-label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px
}

.cdet-val {
  font-size: 14px;
  color: white;
  font-weight: 400;
  line-height: 1.4
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid var(--border-dark);
  border-radius: 12px;
  padding: 40px
}

.form-title { display: none; }

.fg {
  margin-bottom: 16px
}

.fg label {
  display: block;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
  font-weight: 500
}

.fg input, .fg textarea, .fg select { width: 100%; background: transparent; border: 1px solid rgba(255, 255, 255, 0.15); color: white; padding: 12px 16px; font-family: var(--sans); font-size: 14px; font-weight: 300; outline: none; transition: border-color .25s; resize: none; border-radius: 6px; }

.fg input:focus, .fg textarea:focus, .fg select:focus { border-color: var(--gold); background: rgba(184, 145, 42, 0.05); box-shadow: none; }

.fg select option { background: #1a1a1a; color: white; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.btn-send { width: 100%; background: var(--gold); color: white; border: none; padding: 15px; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: all .25s; border-radius: 6px; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }

.btn-send:hover { background: var(--gold-l); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,145,42,0.3); }

.btn-send::after {
  content: '→';
  transition: transform .25s
}

.btn-send:hover::after {
  transform: translateX(4px)
}

/* ── Footer ── */
footer {
  background: var(--dark);
  padding: 56px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  border-top: 2px solid var(--gold)
}

.footer-brand .footer-logo-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--gold-l);
  letter-spacing: .08em;
  display: block;
  margin-bottom: 4px
}

.footer-brand .footer-logo-sub {
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3)
}

.footer-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 16px
}

.footer-links-title {
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  text-decoration: none;
  transition: color .25s;
  font-weight: 300
}

.footer-links-list a:hover {
  color: var(--gold-l)
}

.footer-contact .footer-links-title {
  margin-bottom: 16px
}

.footer-contact-item {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
  font-weight: 300;
  line-height: 1.5
}

.footer-bottom {
  background: var(--dark2);
  padding: 16px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 0.5px solid rgba(255, 255, 255, 0.06)
}

.footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: .05em
}

.footer-mark {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold);
  opacity: .5
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.hero-left {
  animation: fadeUp .8s ease both
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease
}

.reveal.visible {
  opacity: 1;
  transform: none
}

.reveal-d1 {
  transition-delay: .1s
}

.reveal-d2 {
  transition-delay: .2s
}

.reveal-d3 {
  transition-delay: .3s
}

.reveal-d4 {
  transition-delay: .4s
}

/* ── Responsive ── */
@media(max-width:960px) {
  nav {
    padding: 0 24px
  }

  .nav-links,
  .nav-cta {
    display: none
  }

  #hero {
    grid-template-columns: 1fr;
    padding: 80px 24px 40px
  }

  .hero-right {
    height: 300px;
    margin: 0 -24px
  }

  .stats {
    grid-template-columns: repeat(2, 1fr)
  }

  section {
    padding: 70px 24px
  }

  .manifesto-inner,
  .tech-inner,
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr
  }

  .services-grid {
    grid-template-columns: 1fr
  }

  .proceso-steps {
    grid-template-columns: repeat(2, 1fr)
  }

  footer {
    grid-template-columns: 1fr;
    padding: 40px 24px
  }

  .footer-bottom {
    padding: 16px 24px;
    flex-direction: column;
    gap: 8px
  }

  .portfolio-row.cols3,
  .portfolio-row.cols2,
  .portfolio-row.cols-13 {
    grid-template-columns: 1fr
  }

  .hero-left {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .hero-ctas .btn-primary, 
  .hero-ctas .btn-outline {
    text-align: center;
    width: 100%;
    max-width: 300px;
  }

  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .portfolio-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 6px 16px;
    font-size: 13px;
  }

  .portfolio-masonry {
    grid-template-columns: 1fr;
  }

  .span-wide, 
  .span-tall {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1/1 !important;
  }
}

/* Filters */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 8px 24px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  color: #fff;
}

.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 0px;
}

.span-wide {
  grid-column: span 2;
  aspect-ratio: 2/1 !important;
}

.span-tall {
  grid-row: span 2;
  aspect-ratio: 1/2 !important;
}

/* Floating Action Buttons */
.fab {
  position: fixed;
  bottom: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  color: white;
  text-decoration: none;
  z-index: 1000;
}
.fab:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  color: white;
}
.fab-whatsapp {
  left: 24px;
  background-color: #25D366;
}
.fab-whatsapp:hover {
  background-color: #1DA851;
}
.fab-up {
  right: 24px;
  background-color: var(--gold);
  color: var(--bg);
}
.fab-up:hover {
  background-color: #d4a34b; /* slightly darker gold */
  color: var(--bg);
}

/* Custom Alert */
#custom-alert { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; display: none; align-items: center; justify-content: center; }
#custom-alert .ca-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(4px); }
#custom-alert .ca-box { position: relative; background: var(--dark2); border: 1px solid rgba(184, 145, 42, 0.3); border-radius: 8px; padding: 40px; width: 90%; max-width: 420px; text-align: center; box-shadow: 0 24px 48px rgba(0,0,0,0.6); z-index: 2; animation: ca-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
#custom-alert .ca-icon { margin-bottom: 20px; display: flex; justify-content: center; }
#custom-alert .ca-msg { color: var(--cream); font-family: var(--sans); font-size: 16px; font-weight: 300; line-height: 1.6; margin-bottom: 30px; }
#custom-alert .ca-btn { background: var(--gold); color: white; border: none; padding: 14px 40px; border-radius: 6px; font-family: var(--sans); font-size: 14px; font-weight: 500; text-transform: uppercase; cursor: pointer; transition: all 0.25s; letter-spacing: 0.05em; }
#custom-alert .ca-btn:hover { background: var(--gold-l); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,145,42,0.3); }
@keyframes ca-pop { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ── Mobile Menu & Nav Actions ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--cream);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ── Layout Toggle Button ── */
.layout-toggle-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted-l);
  padding: 6px 12px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.layout-toggle-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Boxed Layout ── */
body.layout-boxed section:not(#hero) {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
body.layout-boxed .portfolio-masonry {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
body.layout-boxed footer {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Gallery Lightbox ── */
#gallery-lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lb-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
}
.lb-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px;
}
.lb-img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  animation: lb-fadein 0.3s ease forwards;
}
.lb-close, .lb-prev, .lb-next {
  background: rgba(20,20,20,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  position: absolute;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.1);
}
.lb-close { top: 24px; right: 24px; width: 44px; height: 44px; }
.lb-prev { left: 24px; width: 56px; height: 56px; }
.lb-next { right: 24px; width: 56px; height: 56px; }
@keyframes lb-fadein { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }

/* Mobile Menu Queries */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 1000;
  }
  .nav-links.active {
    opacity: 1;
    pointer-events: all;
  }
  .nav-links li a { font-size: 24px; }
  .nav-cta { display: none; }
}