/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --black: #000000;
  --cream: #f7f3ea;
  --off-white: #faf7f0;
  --ink: #1a1712;
  --copper: #c76a3c;
  --gold: #c9a765;

  --serif: 'Playfair Display', serif;
  --sans: 'Barlow', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 88px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.05; }
::selection { background: var(--copper); color: #fff; }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (pointer: fine) {
  html, body, a, button, [data-gallery-item] { cursor: none; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  padding: .6rem 1rem;
  background: var(--cream);
  color: var(--ink);
  z-index: 9999;
  border-radius: 8px;
  font-weight: 500;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; cursor: auto; }

.kicker {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 18px;
}

/* =============================================================
   4. Typography
   ============================================================= */
.section-heading {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.3px;
  color: var(--off-white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
  max-width: 900px;
  margin-bottom: 3.5rem;
}
.section-heading-ink {
  color: var(--ink);
  text-shadow: none;
}

/* word-by-word blur reveal, populated by main.js; content already in HTML so it
   reads fine with JS disabled (see .word span fallback below) */
.section-heading .word {
  display: inline-block;
  margin-right: 0.28em;
}
.section-heading[data-reveal-ready] .word {
  filter: blur(10px);
  opacity: 0;
  transform: translateY(50px);
  transition: filter .7s var(--ease-out), opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.section-heading[data-reveal-ready].is-revealed .word {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   5. Components
   ============================================================= */

/* --- Custom cursor --- */
.cursor-ring, .cursor-dot {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  opacity: 0;
  will-change: transform;
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid #fff;
  transition: opacity .25s var(--ease-out);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
}
.cursor-ring.is-ready, .cursor-dot.is-ready { opacity: 1; }

/* --- Logo --- */
.s33-logo {
  position: fixed;
  top: 14px; left: 20px;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  opacity: 1;
  transition: opacity .4s ease;
}
.s33-logo img {
  height: 100%; width: auto;
  filter: brightness(0) invert(1);
}
.s33-logo.is-hidden { opacity: 0; pointer-events: none; }

/* --- Nav --- */
.s33-nav {
  position: fixed;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  max-width: calc(100vw - 200px);
}
.s33-nav-pill {
  display: flex;
  gap: 6px;
  font-weight: 500;
  font-size: .82rem;
  padding: 10px 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: background .3s ease, box-shadow .3s ease;
}
.s33-nav-pill a {
  padding: 8px 14px;
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  transition: color .3s ease, font-weight .3s ease;
}
.s33-nav-pill a.is-active { color: #fff; font-weight: 700; }

.s33-nav-actions {
  position: fixed;
  top: 22px; right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
}
.s33-nav-cta {
  font-weight: 500;
  font-size: .82rem;
  color: #fff;
  padding: 12px 16px;
  white-space: nowrap;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: background .3s ease;
}
.lang-toggle {
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .04em;
  color: #fff;
  padding: 10px 13px;
  white-space: nowrap;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: background .3s ease, transform .2s var(--ease-out);
}
.lang-toggle:hover { transform: translateY(-1px); }

/* Nav theme swap over light sections (portfolio / contact) */
body.is-light-section .s33-nav-pill {
  background: rgba(26, 23, 18, 0.1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}
body.is-light-section .s33-nav-pill a { color: var(--ink); }
body.is-light-section .s33-nav-pill a.is-active { color: var(--copper); }
body.is-light-section .s33-nav-cta,
body.is-light-section .lang-toggle {
  color: var(--ink);
  background: rgba(26, 23, 18, 0.05);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 6px;
  font-weight: 500;
  font-size: .95rem;
}
.btn-light { background: var(--off-white); color: var(--ink); }
.btn-whatsapp {
  font-size: 1rem;
  padding: 18px 34px;
  border-radius: 100px;
  background: rgba(26, 23, 18, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(26, 23, 18, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  color: var(--ink);
}

/* --- Glass cards --- */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}
@supports not (backdrop-filter: blur(1px)) {
  .glass-card { background: rgba(20, 20, 20, 0.85); }
}
.glass-card-strong {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 60px rgba(154, 110, 60, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  border-radius: 28px;
}
@supports not (backdrop-filter: blur(1px)) {
  .glass-card-strong { background: rgba(247, 243, 234, 0.96); }
}

/* =============================================================
   6. Sections
   ============================================================= */
.section { position: relative; min-height: 100vh; overflow: hidden; }
.section-dark { background: var(--black); }
.section-cream { background: var(--cream); }
.section-center { display: flex; align-items: center; justify-content: center; }

.section-inner {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 6vw 90px;
}
.section-center .section-inner { min-height: 0; padding: 100px 6vw; width: 100%; }
.section-inner-tight { min-height: 0; padding-bottom: 48px; }

.section-halo {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 140%; height: 90%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(199, 120, 60, 0.32) 0%, rgba(199, 120, 60, 0.12) 35%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.section-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.section-blob-top {
  top: -15%; right: -10%;
  width: 60%; height: 70%;
  background: radial-gradient(circle, rgba(201, 167, 101, 0.22) 0%, rgba(201, 167, 101, 0) 70%);
}
.section-blob-bottom {
  bottom: -15%; left: -10%;
  width: 55%; height: 65%;
  background: radial-gradient(circle, rgba(199, 106, 60, 0.14) 0%, rgba(199, 106, 60, 0) 70%);
}

.kicker-floating {
  position: absolute;
  top: 56px; left: 6vw;
  z-index: 2;
  margin-bottom: 0;
}

/* --- Hero --- */
.hero-scrub { position: relative; background: var(--black); height: 200vh; }
.hero-video-wrap { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
}
.hero {
  position: sticky; top: 0; margin-top: -100vh;
  height: 100vh; height: 100svh;
  z-index: 2;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 6vw;
}
.hero-content { max-width: 760px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.5vw, 6.9rem);
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--off-white);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}
.hero-title em { font-style: italic; }
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.5;
  color: rgba(250, 247, 240, 0.85);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  margin-top: 28px;
}
.hero .btn { margin-top: 36px; }
.hero-scroll-cue {
  position: absolute;
  left: 32px; bottom: 36px;
  display: flex; flex-direction: column; gap: 6px;
}
.hero-scroll-cue span:first-child {
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.75);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.hero-scroll-arrow {
  font-size: 1rem;
  color: var(--off-white);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  animation: s33-bounce 2s ease-in-out infinite;
}
@keyframes s33-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.service-card {
  display: flex; flex-direction: column;
  padding: 32px 32px 24px;
  min-height: 420px;
  transition: transform .35s var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); }
.service-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.service-tags span {
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 9px;
  border-radius: 100px;
}
.service-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: var(--off-white);
  margin-bottom: 12px;
}
.service-card p {
  font-weight: 300;
  font-size: .95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  max-width: 440px;
  margin-bottom: 28px;
}
.service-img {
  flex: 1; width: 100%;
  border-radius: 14px;
  overflow: hidden;
  min-height: 200px;
}
.service-img img { width: 100%; height: 100%; object-fit: cover; }

/* --- Portfolio --- */
.portfolio-rail-wrap { position: relative; z-index: 2; }
.portfolio-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  padding: 2rem 6vw 2.5rem;
  scrollbar-width: none;
}
.portfolio-rail::-webkit-scrollbar { display: none; }
.portfolio-item {
  flex: 0 0 auto;
  width: min(78vw, 460px);
  height: min(72vh, 640px);
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #151515;
}
.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22,.61,.36,1), filter .5s ease;
}
@media (hover: hover) and (pointer: fine) {
  .portfolio-item:hover img { transform: scale(1.06); filter: brightness(1.08); }
}
.portfolio-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}
.portfolio-arrow-prev { left: 18px; }
.portfolio-arrow-next { right: 18px; }

/* --- About --- */
.about-layout {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.about-copy { flex: 1 1 480px; min-width: 0; max-width: 600px; }
.about-paragraphs {
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
  max-width: 560px;
  display: flex; flex-direction: column; gap: 18px;
}
.about-portrait {
  flex: 0 0 auto;
  width: min(420px, 90vw);
  height: min(500px, 60vh);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, #d35500, #28211a);
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }

/* --- Contact --- */
.section-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px 0;
}
.contact-card {
  width: 100%;
  max-width: 1160px;
  margin: auto 0;
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}
.contact-col { min-width: 0; padding: 40px 28px; text-align: left; }
.contact-col-main { padding-top: 48px; }
.contact-col-info {
  background: rgba(26, 23, 18, 0.04);
  border-top: 1px solid rgba(26, 23, 18, 0.08);
  display: flex; flex-direction: column; gap: 20px;
}
.contact-col-form {
  background: rgba(26, 23, 18, 0.06);
  border-top: 1px solid rgba(26, 23, 18, 0.08);
  display: flex; flex-direction: column; gap: 14px;
}
.contact-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 20px;
}
.contact-lede {
  font-size: .95rem;
  line-height: 1.6;
  color: rgba(26, 23, 18, 0.65);
  margin-bottom: 28px;
}
.contact-label {
  display: block;
  font-weight: 600;
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(26, 23, 18, 0.45);
  margin-bottom: 6px;
}
.contact-field a, .contact-field span:last-child {
  font-weight: 500;
  font-size: .9rem;
  color: var(--ink);
}
.contact-social { display: flex; gap: 10px; margin-top: auto; padding-top: 6px; }
.contact-social a { color: rgba(26, 23, 18, 0.55); display: flex; transition: color .2s ease; }
.contact-social a:hover { color: var(--copper); }

.contact-form-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 6px;
}
[data-contact-form] { display: flex; flex-direction: column; gap: 14px; }
.contact-form-row { display: flex; gap: 10px; }
.contact-form-row label { flex: 1; }
[data-contact-form] label { display: flex; flex-direction: column; gap: 5px; }
[data-contact-form] label span {
  font-weight: 600;
  font-size: .625rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(26, 23, 18, 0.45);
}
[data-contact-form] input,
[data-contact-form] textarea {
  width: 100%;
  padding: 9px 11px;
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(26, 23, 18, 0.15);
  border-radius: 6px;
  outline: none;
}
[data-contact-form] textarea { resize: none; }
[data-contact-form] button {
  margin-top: 6px;
  padding: 12px;
  font-weight: 500;
  font-size: .875rem;
  color: var(--off-white);
  background: var(--ink);
  border-radius: 6px;
}

.site-footer {
  position: relative; z-index: 2;
  margin-top: auto;
  width: calc(100% + 48px);
  margin-left: -24px;
  background: var(--black);
  padding: 40px 24px 24px;
  display: flex; justify-content: center;
}
.site-footer p { font-weight: 300; font-size: .75rem; color: rgba(255, 255, 255, 0.5); }

/* --- Floating contact button (on-brand, not the default WhatsApp green) --- */
.contact-fab {
  position: fixed;
  right: 20px; bottom: 24px;
  z-index: 450;
  width: 60px; height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.contact-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: fabPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.65); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-fab::before { animation: none; }
}
.contact-fab svg { width: 58px; height: 58px; flex-shrink: 0; }
.contact-fab span { display: none; }
@media (hover: hover) and (pointer: fine) {
  .contact-fab:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38); }
}
@media (max-width: 539px) {
  .contact-fab { bottom: 108px; right: 16px; }
  .contact-fab span { display: none; }
}

/* --- Cookie notice --- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 500;
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(20, 18, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  color: var(--off-white);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(0);
  transition: transform .4s var(--ease-out), opacity .4s var(--ease-out);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-leaving { transform: translateY(20px); opacity: 0; pointer-events: none; }
.cookie-banner p { font-size: .82rem; line-height: 1.5; color: rgba(250, 247, 240, 0.85); }
.cookie-banner-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-banner-actions button {
  padding: 9px 18px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 500;
}
.cookie-banner-actions [data-cookie-reject] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--off-white);
}
.cookie-banner-actions [data-cookie-accept] {
  background: var(--off-white);
  color: var(--ink);
}

@media (min-width: 540px) {
  .cookie-banner { left: auto; right: 24px; bottom: 24px; }
}

/* =============================================================
   7. Effects
   ============================================================= */
.glass-card { transition: transform .35s var(--ease-out); }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .contact-form-row { gap: 14px; }
}

@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1.3fr 1fr 1.1fr; }
  .contact-col-info, .contact-col-form { border-top: none; border-left: 1px solid rgba(26, 23, 18, 0.08); }
}

@media (min-width: 960px) {
  .s33-nav { max-width: calc(100vw - 220px); }
}

@media (max-width: 719px) {
  .s33-nav { display: none; }
  .s33-logo { height: 40px; }
  .s33-nav-actions { top: 16px; right: 16px; gap: 6px; }
  .s33-nav-cta { font-size: .78rem; padding: 10px 14px; }
  .lang-toggle { font-size: .68rem; padding: 9px 11px; }
}

@media (pointer: coarse) {
  /* Touch devices play the hero video normally (autoplay + loop) instead
     of scrubbing it with scroll — no need to pin it for 200vh. */
  .hero-scrub { height: 100vh; height: 100svh; }
}

/* =============================================================
   9. Reduced motion — only the truly intrusive bits
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll-arrow { animation: none; }
  .cursor-ring, .cursor-dot { display: none; }
  .hero-video { transform: none !important; }
}


/* Subtitulo de seccion + acento en titular de servicios */
.section-lede{ max-width:56ch; margin-top:20px; color:rgba(250,247,240,.62); font-size:clamp(15px,1.3vw,18px); line-height:1.6; }
html[lang="es"] #servicios .section-heading .word:nth-last-child(-n+3),
html[lang="en"] #servicios .section-heading .word:nth-last-child(-n+4){ color:var(--copper); }


/* Ajustes finos servicios: titular mas ancho + subtitulo mas arriba */
#servicios .section-heading{ max-width:1200px; }
#servicios .section-lede{ margin-top:-42px; margin-bottom:32px; }


/* Portafolio: encabezado TRABAJO / RENDERING centrado, serif + cobre */
#portafolio .section-inner-tight{ text-align:center; }
#portafolio .section-heading{ margin:22px auto; }
#portafolio .section-heading .word:last-child{ color:var(--copper); }
.pf-eyebrow{ display:flex; align-items:center; justify-content:center; gap:16px; font-size:12px; font-weight:600; letter-spacing:.32em; text-transform:uppercase; color:rgba(26,23,18,.5); margin:0; }
.pf-eyebrow::before, .pf-eyebrow::after{ content:""; width:46px; height:1px; background:rgba(26,23,18,.2); }

#portafolio .kicker{ text-align:left; margin-bottom:34px; }


/* Servicios: 3 tarjetas por fila, mas compactas */
#servicios .services-grid{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); }\n#servicios .services-grid .service-card{ max-width:none; min-width:0; }
#servicios .services-grid .service-card:nth-child(1){ grid-column:1/span 2; }
#servicios .services-grid .service-card:nth-child(2){ grid-column:3/span 2; }
#servicios .services-grid .service-card:nth-child(3){ grid-column:5/span 2; }
#servicios .services-grid .service-card:nth-child(4){ grid-column:1/span 2; }
#servicios .services-grid .service-card:nth-child(5){ grid-column:3/span 2; }
#servicios .services-grid .service-card:nth-child(6){ grid-column:5/span 2; }
#servicios .services-grid .service-card:nth-child(8){ grid-column:4/span 2; }
#servicios .services-grid .service-card:nth-child(7){ grid-column:2 / span 2; }
@media(max-width:1024px){ #servicios .services-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } #servicios .services-grid > *{ grid-column:auto !important; } }
@media(max-width:640px){ #servicios .services-grid{ grid-template-columns:1fr; } }
#servicios .service-card{ padding:22px 22px 20px; }
#servicios .service-card h3{ font-size:1.15rem; }
#servicios .service-card p{ font-size:.9rem; }
#servicios .service-img{ aspect-ratio:4/3; }
#servicios .service-img img{ width:100%; height:100%; object-fit:cover; }
\n#servicios .card-plan .service-img{ background:#fff; }\n#servicios .card-plan .service-img img{ object-fit:contain; }\n



#servicios .card-ia .service-img{ background:#0d0b0a; }
#servicios .card-ia .service-img img{ object-fit:contain; }

#servicios .service-img video{ width:100%; height:100%; object-fit:cover; display:block; }
