/* ===== FONTS (self-hosted) ===== */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/libre-baskerville.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/libre-baskerville-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/raleway.woff2') format('woff2');
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Raleway', sans-serif;
  background: #0D1B2A;
  color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== VARIABLES ===== */
:root {
  --gold: #B8975A;
  --gold-light: #D4B87A;
  --dark: #0D1B2A;
  --dark-alt: #091724;
  --dark-card: #112236;
  --dark-lighter: #162A3E;
  --text-muted: rgba(255,255,255,0.6);
  --text-body: rgba(255,255,255,0.8);
  --max-w: 1200px;
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'Raleway', system-ui, sans-serif;
  /* Easing curves — Emil/Kowalski playbook */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ===== UTILITY ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  border: 1px solid rgba(184,151,90,0.4);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

/* ===== FADE-IN ANIMATION ===== */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 60ms; }
.delay-2 { transition-delay: 120ms; }
.delay-3 { transition-delay: 180ms; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out);
  background: rgba(13, 27, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-top: 2px;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 200ms var(--ease-out);
  position: relative;
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: #fff; }
  .nav a:hover::after { width: 100%; }
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 260ms var(--ease-out);
}
.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold) !important;
  border: 1px solid var(--gold);
  padding: 8px 20px;
  border-radius: 6px;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover { background: var(--gold); color: var(--dark) !important; }
}
.nav-cta:active { transform: scale(0.97); }
.nav-cta::after { display: none !important; }
.menu-toggle { display: none; color: #fff; font-size: 1.5rem; }



/* Form status messages */
.form-status { margin-top: 14px; font-size: 0.88rem; text-align: center; min-height: 1.2em; line-height: 1.5; }
.form-status.success { color: #7DD89C; }
.form-status.error { color: #E88C8C; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  display: flex;
  gap: 4px;
  margin-left: 24px;
  padding: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
}
.lang-btn {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 5px 11px;
  border-radius: 999px;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .lang-btn:hover { color: #fff; }
}
.lang-btn:active { transform: scale(0.94); }
.lang-btn.active {
  background: var(--gold);
  color: var(--dark);
}
@media (max-width: 768px) {
  .lang-switcher { margin-left: auto; margin-right: 12px; }
  .lang-btn { font-size: 0.68rem; padding: 4px 9px; }
}

/* ===== HERO - editorial journal ===== */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
/* Film grain */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
/* Ghost italic ampersand ornament */
.hero-ornament {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26rem, 48vw, 54rem);
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: rgba(184,151,90,0.045);
  top: 46%;
  right: -6%;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 96px;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeRise 550ms var(--ease-out) 40ms forwards;
}
.eyebrow-mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--gold-light);
  letter-spacing: 0.01em;
}
.eyebrow-sep {
  display: inline-block;
  width: 28px; height: 1px;
  background: rgba(184,151,90,0.5);
  align-self: center;
}
.eyebrow-text {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 5.6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
  max-width: 15ch;
  opacity: 0;
  animation: fadeRise 600ms var(--ease-out) 100ms forwards;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
}

.hero-rule {
  width: 88px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 32px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: ruleIn 500ms var(--ease-out) 220ms forwards;
}

.hero-subtitle {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 38ch;
  margin-bottom: 0;
  opacity: 0;
  animation: fadeRise 600ms var(--ease-out) 180ms forwards;
}
.hero-subtitle em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  color: #fff;
}

/* Appointment card */
.hero-appointment {
  border: 1px solid rgba(184,151,90,0.28);
  padding: 38px 34px 32px;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
  opacity: 0;
  animation: fadeRise 650ms var(--ease-out) 260ms forwards;
}
.hero-appointment::before,
.hero-appointment::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
}
.hero-appointment::before {
  top: -1px; left: -1px;
  border-top: 1px solid var(--gold-light);
  border-left: 1px solid var(--gold-light);
}
.hero-appointment::after {
  bottom: -1px; right: -1px;
  border-bottom: 1px solid var(--gold-light);
  border-right: 1px solid var(--gold-light);
}
.appointment-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.appointment-kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  color: #fff;
  font-weight: 400;
}
.appointment-timestamp {
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.form-group { margin-bottom: 18px; }
.form-input {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  border-radius: 0;
  color: #fff;
  font-size: 0.92rem;
  font-family: var(--sans);
  font-weight: 400;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
  outline: none;
}
.form-input:focus { border-color: var(--gold); }
.form-input::placeholder {
  color: rgba(255,255,255,0.35);
  font-weight: 300;
}
textarea.form-input {
  resize: vertical;
  min-height: 70px;
  padding: 10px 0;
  line-height: 1.5;
}
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='rgba(212,184,122,0.7)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 20px;
}
select.form-input option { background: var(--dark); color: #fff; }

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border: none;
  border-radius: 2px;
  margin-top: 14px;
  transition: background 220ms var(--ease-out), letter-spacing 260ms var(--ease-out), transform 160ms var(--ease-out);
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .form-submit:hover {
    background: var(--gold-light);
    letter-spacing: 0.26em;
  }
}
.form-submit:active { transform: scale(0.98); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}
.footer-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  flex-shrink: 0;
}

/* Standalone button kept for CTA section lower on the page */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 4px;
  transition: background 220ms var(--ease-out), transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,151,90,0.25); }
}
.btn-primary:active { transform: translateY(0) scale(0.97); box-shadow: 0 4px 14px rgba(184,151,90,0.18); }

/* Hero entrance animations */
@keyframes fadeRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ruleIn {
  to { opacity: 1; transform: scaleX(1); }
}

/* ===== SECTORES - alternate dark + subtle dot texture ===== */
.sectores {
  padding: 50px 0 100px;
  position: relative;
  background: var(--dark-alt);
  background-image: radial-gradient(rgba(184,151,90,0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}
.sectores::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(9,23,36,0.6) 0%, transparent 30%, transparent 70%, rgba(9,23,36,0.6) 100%);
  pointer-events: none;
}
.cards-container {
  display: flex;
  gap: 16px;
  height: 540px;
  margin-top: 48px;
}
.card {
  flex: 1;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: flex 500ms var(--ease-in-out), opacity 400ms var(--ease-out);
  opacity: 1;
}
.cards-container:hover .card:not(:hover) {
  flex: 0;
  opacity: 0;
  overflow: hidden;
  min-width: 0;
}
.cards-container:hover .card:hover {
  flex: 10;
}
.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: background-image 500ms var(--ease-out);
  filter: grayscale(100%) contrast(1.05) brightness(1);
}
.card-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,0.72) 0%, rgba(184,151,90,0.55) 100%);
  mix-blend-mode: multiply;
  z-index: 1;
  pointer-events: none;
}
.card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.78) 0%, rgba(13,27,42,0.32) 45%, rgba(13,27,42,0.05) 100%);
  z-index: 2;
}
.card-number {
  position: absolute;
  top: 20px; left: 24px;
  font-family: var(--serif);
  font-size: 72px;
  color: rgba(255,255,255,0.08);
  z-index: 1;
}
.card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.15;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  transition: flex-wrap 400ms var(--ease-out);
}
.cards-container:hover .card:hover .card-tags {
  flex-wrap: nowrap;
}
.tag {
  padding: 6px 14px;
  border: 1px solid rgba(184,151,90,0.4);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold);
  background: rgba(184,151,90,0.08);
  cursor: pointer;
  transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 160ms var(--ease-out);
  white-space: nowrap;
  user-select: none;
}
.tag.active {
  background: rgba(184,151,90,0.22);
  border-color: var(--gold);
  color: #fff;
}
.tag:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .tag:hover {
    background: rgba(184,151,90,0.22);
    border-color: var(--gold);
    color: #fff;
  }
}
.card-description {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-body);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 400ms var(--ease-out), opacity 300ms var(--ease-out);
}
.cards-container:hover .card:hover .card-description {
  max-height: 120px;
  opacity: 1;
}

/* ===== SERVICES - editorial index ===== */
.services {
  padding: 70px 0 140px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.services .container { position: relative; z-index: 1; }

.services-header {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 96px;
  align-items: end;
  margin-bottom: 0;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.services-kicker {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
}
.services-kicker .mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--gold-light);
}
.services-kicker .sep {
  display: inline-block;
  width: 28px; height: 1px;
  background: rgba(184,151,90,0.5);
  align-self: center;
}
.services-kicker .label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.services-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.6vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 14ch;
  margin: 0;
}
.services-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
}
.services-lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 42ch;
  padding-bottom: 8px;
}

.service-row {
  display: grid;
  grid-template-columns: 100px 1fr 40px;
  column-gap: 36px;
  row-gap: 0;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: background 260ms var(--ease-out);
  position: relative;
}
@media (hover: hover) and (pointer: fine) {
  .service-row:hover {
    background: linear-gradient(90deg, transparent 0%, rgba(184,151,90,0.03) 50%, transparent 100%);
  }
  .service-row:hover .service-num { color: var(--gold-light); }
  .service-row:hover .service-arrow { color: var(--gold-light); transform: translateX(4px); }
}
.service-row.open {
  background: linear-gradient(90deg, transparent 0%, rgba(184,151,90,0.04) 50%, transparent 100%);
}
.service-row.open .service-num { color: var(--gold-light); }
.service-row.open .service-arrow { transform: rotate(90deg); color: var(--gold-light); }

.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1;
  color: rgba(184,151,90,0.4);
  transition: color 260ms var(--ease-out);
  padding-top: 2px;
}
.service-body { padding-top: 0; }
.service-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.2;
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}
.service-brief {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-body);
  max-width: 62ch;
  margin: 0;
}
.service-arrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3.6rem;
  color: rgba(184,151,90,0.7);
  padding-top: 0;
  transition: transform 400ms var(--ease-out), color 220ms var(--ease-out);
  text-align: center;
  line-height: 1;
  align-self: center;
}

.service-details {
  grid-column: 2 / 3;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 420ms var(--ease-out);
  overflow: hidden;
}
.service-row.open .service-details { grid-template-rows: 1fr; }
.service-details > div {
  min-height: 0;
  padding-top: 6px;
  padding-bottom: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 320ms var(--ease-out) 80ms, transform 320ms var(--ease-out) 80ms;
}
.service-row.open .service-details > div {
  opacity: 1;
  transform: translateY(0);
}
.included-label {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.included-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.included-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.included-list li {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-body);
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}
.included-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* ===== PROCESSO - editorial steps ===== */
.processo {
  padding: 70px 0 140px;
  position: relative;
  background: var(--dark-alt);
  overflow: hidden;
}
.processo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.processo .container { position: relative; z-index: 1; }
.processo-header {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 96px;
  align-items: end;
  margin-bottom: 80px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.processo-kicker {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
}
.processo-kicker .mark { font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--gold-light); }
.processo-kicker .sep { display: inline-block; width: 28px; height: 1px; background: rgba(184,151,90,0.5); align-self: center; }
.processo-kicker .label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.processo-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.6vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin: 0;
}
.processo-title em { font-style: italic; color: var(--gold-light); font-weight: 400; }
.processo-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 42ch;
  padding-bottom: 8px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(184,151,90,0.15) 100%);
  z-index: 0;
}
.step {
  position: relative;
  padding-top: 0;
  z-index: 1;
}
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 3rem;
  line-height: 1;
  color: var(--gold-light);
  background: var(--dark-alt);
  display: inline-block;
  padding-right: 12px;
  margin-bottom: 22px;
  margin-left: -4px;
  position: relative;
  top: -8px;
}
.step-body {}
.step-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
.step-desc {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
}

/* ===== SOBRE - editorial portrait (LIGHT THEME) ===== */
.sobre {
  padding: 70px 0 120px;
  background: #F8F9FA;
  position: relative;
  overflow: hidden;
  color: var(--dark);
  --sobre-hairline: rgba(13,27,42,0.1);
  --sobre-gold: #9A7A42;
  --sobre-text-body: rgba(13,27,42,0.78);
  --sobre-text-muted: rgba(13,27,42,0.55);
}
.sobre::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.sobre .container { position: relative; z-index: 1; }
.sobre-header {
  margin-bottom: 80px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--sobre-hairline);
}
.sobre-kicker {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
}
.sobre-kicker .label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sobre-gold);
}
.sobre-h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.6vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin: 0;
  color: var(--dark);
}
.sobre-h2 em { font-style: italic; color: var(--sobre-gold); font-weight: 400; }

.sobre-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 96px;
  align-items: start;
}

.portrait { position: relative; align-self: start; }
.portrait-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.02);
}
.portrait-frame::before,
.portrait-frame::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  z-index: 2;
}
.portrait-frame::before {
  top: -1px; left: -1px;
  border-top: 1px solid var(--sobre-gold);
  border-left: 1px solid var(--sobre-gold);
}
.portrait-frame::after {
  bottom: -1px; right: -1px;
  border-bottom: 1px solid var(--sobre-gold);
  border-right: 1px solid var(--sobre-gold);
}

.sobre-text { padding-top: 8px; }
.sobre-text .sobre-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--sobre-gold);
  margin: 0 0 36px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
}
.sobre-text .sobre-role::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.sobre-text p {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--sobre-text-body);
  margin: 0 0 26px;
  max-width: 58ch;
}
.sobre-text p em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--dark);
}

.pull-quote {
  position: relative;
  margin: 48px 0;
  padding: 28px 0 28px 40px;
  border-left: 1px solid var(--gold);
}
.pull-quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  line-height: 1.5;
  color: var(--dark);
  max-width: 50ch;
  margin: 0;
}
.pull-quote blockquote::before {
  content: '\201C';
  position: absolute;
  left: 10px;
  top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 4rem;
  line-height: 1;
  color: rgba(184,151,90,0.35);
}

/* ===== CTA - editorial closer ===== */
.cta-section {
  padding: 60px 0 140px;
  position: relative;
  background: var(--dark-alt);
  overflow: hidden;
  text-align: left;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-inner {
  max-width: 900px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.cta-kicker {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
}
.cta-kicker .mark { font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--gold-light); }
.cta-kicker .sep { display: inline-block; width: 28px; height: 1px; background: rgba(184,151,90,0.5); align-self: center; }
.cta-kicker .label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.cta-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.6vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin: 0 0 24px;
}
.cta-title em { font-style: italic; color: var(--gold-light); font-weight: 400; }
.cta-lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 50ch;
  margin: 0 0 40px;
}
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold);
  transition: color 220ms var(--ease-out), letter-spacing 260ms var(--ease-out), border-color 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cta-link:hover {
    color: #fff;
    letter-spacing: 0.26em;
    border-bottom-color: var(--gold-light);
  }
  .cta-link:hover .cta-arrow { transform: translateX(6px); }
}
.cta-link:active { opacity: 0.9; }
.cta-arrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0;
  display: inline-block;
  transition: transform 260ms var(--ease-out);
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px 0 24px;
  background: #070F19;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .logo-name { margin-bottom: 4px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); margin-top: 12px; line-height: 1.6; max-width: 320px; }
.footer-brand .social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
  transition: color 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .footer-brand .social-link:hover { color: var(--gold-light); }
}
.footer h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-body);
  padding: 4px 0;
  transition: color 200ms var(--ease-out);
}
.footer-links a:hover { color: var(--gold); }
.footer-contact a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-body);
  padding: 4px 0;
  transition: color 200ms var(--ease-out);
}
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-title { max-width: none; }
  .hero-ornament { font-size: 30rem; right: -20%; opacity: 0.5; }
  .hero-appointment { max-width: 520px; }
  .sobre { padding: 100px 0; }
  .sobre-grid { grid-template-columns: 1fr; gap: 56px; }
  .portrait { max-width: 420px; }
  .processo { padding: 100px 0; }
  .processo-header { grid-template-columns: 1fr; gap: 32px; }
  .processo-lead { padding-bottom: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .cta-section { padding: 100px 0 120px; }

  /* Services: editorial list on tablet */
  .services { padding: 100px 0; }
  .services-header { grid-template-columns: 1fr; gap: 32px; }
  .services-lead { padding-bottom: 0; }
  .service-row {
    grid-template-columns: 72px 1fr 28px;
    gap: 24px;
    padding: 26px 0;
  }
  .service-num { font-size: 2rem; padding-top: 6px; }
  .service-details { grid-column: 1 / 4; }
  .included-list { grid-template-columns: 1fr; gap: 12px; }
  .service-arrow { padding-top: 10px; font-size: 1.1rem; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: block; }

  .hero { padding: 120px 0 80px; }
  .hero-title { font-size: clamp(2.3rem, 10vw, 3rem); }
  .hero-appointment { padding: 28px 24px 26px; }
  .appointment-header { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Sector cards: show all cards expanded, all tags visible, no hover-collapse */
  .cards-container { flex-direction: column; height: auto; gap: 20px; }
  .card {
    height: auto;
    min-height: 600px;
    flex: none !important;
    opacity: 1 !important;
  }
  .cards-container:hover .card:not(:hover) { flex: none !important; opacity: 1 !important; }
  .cards-container:hover .card:hover { flex: none !important; }
  .card-content { padding: 24px 24px 36px 24px; gap: 8px; }
  /* Medium grey — gradient starts at title line */
  .card-bg::after {
    background: linear-gradient(to top,
      rgba(70,78,86,0.70) 0%,
      rgba(70,78,86,0.62) 36%,
      rgba(70,78,86,0.25) 48%,
      rgba(70,78,86,0) 62%);
  }
  /* Slight background panel behind tags/desc for extra contrast */
  .tag {
    background: rgba(184,151,90,0.18);
    border-color: rgba(184,151,90,0.55);
  }
  .card-tags { flex-wrap: wrap !important; gap: 6px; }
  .cards-container:hover .card:hover .card-tags { flex-wrap: wrap !important; }
  .tag { font-size: 0.75rem; padding: 5px 12px; }
  .card-description {
    max-height: none !important;
    opacity: 1 !important;
    font-size: 0.92rem;
    min-height: 72px;
    display: flex;
    align-items: flex-end;
  }
  .cards-container:hover .card:hover .card-description { max-height: none; min-height: 72px; }
  /* Fix card-content layout: title + tags pinned */
  .card-tags { min-height: 56px; align-content: flex-start; }

  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ===== Reduced motion accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up {
    opacity: 1;
    transform: none;
  }
  .hero-eyebrow,
  .hero-title,
  .hero-rule,
  .hero-subtitle,
  .hero-appointment {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .cards-container:hover .card:not(:hover) { flex: 1; opacity: 1; }
  .cards-container:hover .card:hover { flex: 1; }
}
