/* =============================================
   EFECTO — Corporativo Efecto I
   Editorial design inspired by letterhead
   ============================================= */

:root {
  --magenta: #E6007E;
  --magenta-dark: #B8005F;
  --magenta-light: #FF1A8C;
  --black: #111111;
  --gray-900: #1A1A1A;
  --gray-700: #444444;
  --gray-500: #777777;
  --gray-300: #CCCCCC;
  --gray-100: #F5F5F5;
  --white: #FFFFFF;
  --font: 'Montserrat', system-ui, sans-serif;
  --max-width: 1200px;
  --header-h: 130px;
  --section-photo-width: min(100%, 480px);
  --section-photo-height: clamp(280px, 32vw, 360px);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--magenta);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--magenta-dark);
}

/* ---- Background elements ---- */

.skyline-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  color: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skyline-bg svg {
  width: 90%;
  max-width: 1400px;
  opacity: 0.7;
}

.geo-accent {
  position: fixed;
  bottom: 0;
  right: 0;
  width: min(45vw, 420px);
  height: min(45vw, 420px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
}

.geo-accent svg {
  width: 100%;
  height: 100%;
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(17, 17, 17, 0.08);
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}

.header-top {
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.location-tag {
  color: rgba(255, 255, 255, 0.85);
}

.toolbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.toolbar-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--magenta-light);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.header-contact a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.header-contact a:hover {
  color: var(--magenta-light);
}

.header-contact a:hover .toolbar-icon {
  color: var(--white);
}

.nav-bar {
  background: var(--white);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.65rem 0;
  position: relative;
}

.header-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--magenta) 0%, var(--magenta-dark) 50%, var(--magenta) 100%);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-logo img {
  height: 72px;
  width: auto;
  display: block;
}

.nav-title {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1.15;
  border-left: 2px solid var(--magenta);
  padding-left: 0.85rem;
}

.nav-title-line {
  display: block;
}

.nav-title-sub {
  color: var(--gray-500);
  font-weight: 600;
  font-size: 0.9em;
}

.nav-menu-label {
  display: none;
}

.nav-menu {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  background: var(--gray-100);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 4px;
  padding: 0.3rem;
}

.nav-links li {
  display: flex;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-700);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 0.95rem;
  border-radius: 3px;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--magenta);
  opacity: 0.8;
  transition: opacity var(--transition), color var(--transition);
}

.nav-icon svg {
  width: 16px;
  height: 16px;
}

.nav-links a:hover .nav-icon,
.nav-links a.active .nav-icon {
  opacity: 1;
  color: var(--magenta-dark);
}

.nav-links a:hover {
  color: var(--black);
  background: var(--white);
  box-shadow: 0 1px 4px rgba(17, 17, 17, 0.06);
}

.nav-links a.active {
  color: var(--black);
  background: var(--white);
  box-shadow: 0 1px 4px rgba(17, 17, 17, 0.08);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}

.nav-cta-item {
  margin-left: 0.35rem;
}

.nav-cta {
  background: var(--magenta) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.25rem !important;
  box-shadow: none !important;
  gap: 0.5rem;
}

.nav-cta .nav-icon {
  color: var(--white);
  opacity: 1;
}

.nav-cta:hover,
.nav-cta.active {
  background: var(--magenta-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 0, 126, 0.35) !important;
}

.nav-overlay {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--gray-100);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 4px;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
  z-index: 210;
  transition: border-color var(--transition), background var(--transition);
}

.nav-toggle:hover {
  background: var(--white);
  border-color: rgba(230, 0, 126, 0.35);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--magenta);
  color: var(--white);
  border-color: var(--magenta);
}

.btn-primary:hover {
  background: var(--magenta-dark);
  border-color: var(--magenta-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 0, 126, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-full {
  width: 100%;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--magenta);
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--gray-700);
  max-width: 52ch;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-300);
  border: 1px solid var(--gray-300);
}

.stat {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--magenta);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* ---- Sections ---- */

.section {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.section-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.section-grid.reverse {
  direction: rtl;
}

.section-grid.reverse > * {
  direction: ltr;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding-top: 0.5rem;
}

.section-label.light {
  color: rgba(255, 255, 255, 0.5);
}

.label-line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--magenta);
  flex-shrink: 0;
}

.section-label.light .label-line {
  background: var(--magenta-light);
}

.section-body h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.section-body .lead {
  font-size: 1.1rem;
  color: var(--gray-700);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.section-body p {
  color: var(--gray-700);
  margin-bottom: 1rem;
}

/* ---- Section with media ---- */

.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.section-split-reverse {
  direction: rtl;
}

.section-split-reverse > * {
  direction: ltr;
}

.section-split-main {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.section-media {
  position: relative;
  margin: 0 auto;
  width: var(--section-photo-width);
  flex-shrink: 0;
  padding: clamp(12px, 2vw, 18px);
  background-color: var(--white);
  background-image:
    linear-gradient(var(--magenta), var(--magenta)),
    linear-gradient(var(--magenta), var(--magenta)),
    linear-gradient(var(--magenta), var(--magenta)),
    linear-gradient(var(--magenta), var(--magenta));
  background-size: 40px 2px, 2px 40px, 40px 2px, 2px 40px;
  background-position:
    top 12px left 12px,
    top 12px left 12px,
    bottom 12px right 12px,
    bottom 12px right 12px;
  background-repeat: no-repeat;
  border: 1px solid rgba(17, 17, 17, 0.1);
  box-shadow:
    0 20px 50px rgba(17, 17, 17, 0.12),
    10px 10px 0 0 rgba(230, 0, 126, 0.16);
  transition: box-shadow var(--transition), transform var(--transition);
}

.section-split-reverse .section-media {
  box-shadow:
    0 20px 50px rgba(17, 17, 17, 0.12),
    -10px 10px 0 0 rgba(230, 0, 126, 0.16);
}

.section-media::before {
  content: '';
  position: absolute;
  inset: clamp(12px, 2vw, 18px);
  border: 1px solid rgba(17, 17, 17, 0.05);
  pointer-events: none;
  z-index: 2;
}

.section-media:hover {
  transform: translateY(-3px);
  box-shadow:
    0 24px 56px rgba(17, 17, 17, 0.14),
    12px 12px 0 0 rgba(230, 0, 126, 0.22);
}

.section-split-reverse .section-media:hover {
  box-shadow:
    0 24px 56px rgba(17, 17, 17, 0.14),
    -12px 12px 0 0 rgba(230, 0, 126, 0.22);
}

.section-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: var(--section-photo-height);
  display: block;
  object-fit: cover;
  object-position: center;
  background: var(--gray-100);
}

.section-header.centered {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header.centered .section-label {
  justify-content: center;
}

.section-header.centered h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin: 1rem 0;
}

.section-header.centered p {
  color: var(--gray-500);
  max-width: 50ch;
  margin: 0 auto;
}

/* ---- Services ---- */

.section-dark {
  position: relative;
  max-width: none;
  background: var(--black);
  color: var(--white);
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/foto-001.png') center / cover no-repeat;
  opacity: 0.4;
  z-index: 0;
}

.section-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.72) 45%,
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: 0;
}

.section-dark .section-header,
.section-dark .services-grid {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section-dark .section-header.centered p {
  color: rgba(255, 255, 255, 0.65);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.service-card {
  background: rgba(17, 17, 17, 0.82);
  backdrop-filter: blur(6px);
  padding: 2rem 1.75rem;
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--magenta);
  transition: height var(--transition);
}

.service-card:hover {
  background: rgba(34, 34, 34, 0.9);
}

.service-card:hover::before {
  height: 100%;
}

.service-card.featured {
  background: linear-gradient(135deg, rgba(26, 0, 16, 0.92) 0%, rgba(17, 17, 17, 0.88) 100%);
}

.service-card.featured::before {
  height: 100%;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 0, 126, 0.14);
  border: 1px solid rgba(230, 0, 126, 0.25);
  border-radius: 2px;
  margin-bottom: 1rem;
  color: var(--magenta-light);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(230, 0, 126, 0.22);
  border-color: rgba(230, 0, 126, 0.45);
  color: var(--white);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.service-card.wide {
  grid-column: span 2;
}

/* ---- Pillars ---- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 0, 126, 0.08);
  border-radius: 2px;
  margin-bottom: 1rem;
  color: var(--magenta);
}

.pillar-icon svg {
  width: 24px;
  height: 24px;
}

.pillar h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pillar p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ---- Contact ---- */

.section-contact {
  max-width: none;
  background: var(--gray-100);
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}

.contact-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 1rem 0;
  letter-spacing: -0.02em;
}

.contact-info > p {
  color: var(--gray-700);
  margin-bottom: 2rem;
}

.contact-details {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 2px;
  color: var(--magenta);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--gray-700);
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-item small {
  color: var(--gray-500);
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border-top: 3px solid var(--magenta);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--gray-700);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.9rem;
  border: 1px solid var(--gray-300);
  border-radius: 2px;
  background: var(--white);
  color: var(--black);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.12);
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

/* ---- Footer ---- */

.site-footer {
  position: relative;
  z-index: 1;
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(230, 0, 126, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(230, 0, 126, 0.06) 0%, transparent 35%);
  pointer-events: none;
}

.footer-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--magenta) 0%, var(--magenta-dark) 50%, var(--magenta) 100%);
}

.footer-main {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 5vw, 3.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  height: 120px;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.footer-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--magenta);
  display: inline-block;
}

.footer-links,
.footer-contact,
.footer-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  transition: color var(--transition), padding-left var(--transition);
}

.footer-links a:hover {
  color: var(--magenta-light);
  padding-left: 4px;
}

.footer-contact li,
.footer-meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.55;
}

.footer-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: 0.1rem;
  border-radius: 2px;
  background: rgba(230, 0, 126, 0.1);
  color: var(--magenta-light);
}

.footer-icon svg {
  width: 17px;
  height: 17px;
}

.footer-contact a,
.footer-meta a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact a:hover {
  color: var(--magenta-light);
}

.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--magenta-light);
}

/* ---- Legal pages ---- */

.legal-page {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem);
}

.legal-header {
  margin-bottom: 2rem;
}

.legal-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 1rem 0 0.5rem;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--black);
}

.legal-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--gray-700);
}

.legal-content p {
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.legal-content ul {
  margin: 0 0 1rem 1.25rem;
  color: var(--gray-700);
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content li::marker {
  color: var(--magenta);
}

.legal-back {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-300);
}

/* ---- Animations ---- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.hero-visual,
.hero-stats,
.service-card,
.pillar {
  animation: fadeUp 0.7s ease both;
}

.hero-visual { animation-delay: 0.1s; }
.hero-stats { animation-delay: 0.15s; }
.service-card:nth-child(2) { animation-delay: 0.05s; }
.service-card:nth-child(3) { animation-delay: 0.1s; }
.service-card:nth-child(4) { animation-delay: 0.15s; }

/* ---- Responsive ---- */

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card.wide {
    grid-column: span 2;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .section-split {
    grid-template-columns: 1fr;
  }

  .section-split-main {
    grid-template-columns: 1fr;
  }

  .section-split-reverse .section-media {
    order: -1;
  }

  .section-grid.reverse {
    direction: ltr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: span 2;
    max-width: none;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 100px;
  }

  .header-top-inner {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
    padding: 0.45rem 0;
  }

  .nav-logo img {
    height: 60px;
  }

  .nav-title {
    font-size: 0.7rem;
    padding-left: 0.65rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 199;
  }

  .nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 340px);
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 5.5rem 1.75rem 2rem;
    box-shadow: -8px 0 40px rgba(17, 17, 17, 0.12);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 200;
    overflow-y: auto;
  }

  .nav-menu.is-open {
    transform: translateX(0);
  }

  .nav-menu-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-300);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.8rem;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 4px;
    background: var(--gray-100);
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--white);
    border-color: rgba(230, 0, 126, 0.25);
  }

  .nav-cta-item {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .nav-cta {
    justify-content: center;
    border: none !important;
  }

  .nav-bar.menu-open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-bar.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-bar.menu-open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card.wide {
    grid-column: span 1;
  }

  .geo-accent {
    opacity: 0.06;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .section-media:hover {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---- Floating actions ---- */

.floating-actions {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.scroll-up {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
}

.scroll-up.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-up svg {
  width: 22px;
  height: 22px;
}

.scroll-up:hover {
  background: var(--magenta);
}

.scroll-up:focus-visible {
  outline: 3px solid rgba(230, 0, 126, 0.35);
  outline-offset: 3px;
}

.whatsapp-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-widget svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.whatsapp-widget:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
  color: var(--white);
}

.whatsapp-widget:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.4);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .floating-actions {
    right: 1rem;
    bottom: 1rem;
    gap: 50px;
  }

  .scroll-up {
    width: 44px;
    height: 44px;
  }

  .scroll-up svg {
    width: 20px;
    height: 20px;
  }

  .whatsapp-widget {
    width: 52px;
    height: 52px;
  }

  .whatsapp-widget svg {
    width: 26px;
    height: 26px;
  }
}
