/* ==========================================================================
   SamantaHerrera.com — Tema Visual (Dirección de Arte: Obsidian Assembly)
   PHP Puro + Apache2/PHP-FPM (Hestia)
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Paleta oscura de alta precisión con acento energético */
  --lime: #888888;
  --lime-soft: rgba(200, 241, 53, 0.12);
  --lime-border: rgba(200, 241, 53, 0.28);

  --bg-void: #000000;
  --darker: #1a1a1a;
  --dark: #0E1116;
  --card: #12161C;
  --card-elevated: #171C24;

  --white: #FFFFFF;
  --grey: #b3b3b3;
  --grey-soft: #94A3B8;
  --muted: #64748B;
  --line: rgba(244, 246, 248, 0.08);
  --line-strong: rgba(244, 246, 248, 0.16);

  /* Tipografía */
  --mono: 'JetBrains Mono', monospace;
  --body: 'Inter', sans-serif;

  /* Ritmo y espaciado */
  --container-max: 1200px;
  --section-pad-y: clamp(6rem, 12vw, 10rem);
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
}

body {
  background: radial-gradient(circle at 80% 0%, rgba(200, 241, 53, 0.045), transparent 45%), var(--darker);
  color: var(--white);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar sobria */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: rgba(200, 241, 53, 0.45);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--lime);
}

/* Cursor sutil solo en dispositivos con puntero fino */
.cursor,
.cursor-ring {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    width: 10px;
    height: 10px;
    background: var(--lime);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.12s var(--ease-editorial), background 0.2s ease, border 0.2s ease;
  }
  .cursor-ring {
    display: block;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(200, 241, 53, 0.45);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.24s var(--ease-editorial), opacity 0.25s ease;
    opacity: 0.65;
  }
}

/* ---------------- Navegación ---------------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 5vw;
  background: rgba(9, 11, 14, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease-editorial), background 0.3s ease;
}

nav.scrolled {
  padding: 0.85rem 5vw;
  background: rgba(5, 6, 7, 0.92);
  border-bottom-color: var(--line-strong);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 1.65rem;
  letter-spacing: 0.08em;
  color: var(--white);
  text-decoration: none;
}
.nav-logo span {
  color: var(--lime);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--grey);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--lime);
  transition: width 0.28s var(--ease-editorial);
}

.nav-links a:hover {
  color: var(--white);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--lime);
  color: var(--bg-void) !important;
  font-weight: 700 !important;
  padding: 0.55rem 1.35rem;
  border-radius: 0;
  transition: transform 0.2s var(--ease-editorial), box-shadow 0.25s ease !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 241, 53, 0.25) !important;
}
.nav-cta::after {
  display: none !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease-editorial), opacity 0.2s ease;
}

/* ---------------- Animaciones de entrada ---------------- */
@keyframes oaFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease-editorial), transform 0.75s var(--ease-editorial);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Botones y tipografía común ---------------- */
.btn-primary {
  background: var(--lime);
  color: var(--bg-void);
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.92rem 2.15rem;
  border-radius: 0;
  text-decoration: none;
  border: 1px solid var(--lime);
  cursor: pointer;
  transition: transform 0.22s var(--ease-editorial), box-shadow 0.25s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(200, 241, 53, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--white);
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.9rem 1.75rem;
  border-radius: 0;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s var(--ease-editorial);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ghost:hover {
  border-color: var(--lime-border);
  background: var(--lime-soft);
  transform: translateY(-2px);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--mono);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--grey);
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* ---------------- Hero ---------------- */
#hero {
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding: 120px 5vw 72px;
  position: relative;
  overflow: hidden;
  background: var(--bg-void);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-soft);
  padding: 0.4rem 0.9rem;
  border-radius: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 1.35rem;
  animation: oaFadeUp 0.7s var(--ease-editorial) both;
}

.hero-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.hero-title {
  font-family: var(--mono);
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.005em;
  animation: oaFadeUp 0.75s 0.08s var(--ease-editorial) both;
}

.hero-title .accent {
  color: var(--lime);
}

.hero-title .outline {
  -webkit-text-stroke: 1.1px var(--white);
  color: transparent;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--grey);
  max-width: 470px;
  margin: 1.6rem 0 2.2rem;
  animation: oaFadeUp 0.75s 0.16s var(--ease-editorial) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  animation: oaFadeUp 0.75s 0.24s var(--ease-editorial) both;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  animation: oaFadeUp 0.75s 0.32s var(--ease-editorial) both;
}

.stat-num {
  font-family: var(--mono);
  font-size: 2.35rem;
  color: var(--lime);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--grey-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.hero-image-wrapper {
  width: 100%;
  min-height: 500px;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  animation: oaFadeUp 0.85s 0.2s var(--ease-editorial) both;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 7, 0.12) 0%, rgba(5, 6, 7, 0.68) 100%);
}

/* ---------------- Secciones ---------------- */
#servicios,
#enfoque,
#porque,
#contacto {
  padding: var(--section-pad-y) 5vw;
  max-width: var(--container-max);
  margin: 0 auto;
}

#contacto {
  max-width: 900px;
  text-align: center;
}

#proceso,
#testimonios {
  padding: var(--section-pad-y) 5vw;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------------- Franja de Enfoque (nueva sección inspirada en referencia) ---------------- */
.enfoque-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.enfoque-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.75rem;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-editorial);
}

.enfoque-panel:hover {
  border-color: var(--lime-border);
  transform: translateY(-3px);
}

.enfoque-index {
  font-family: var(--mono);
  font-size: 1.25rem;
  color: var(--lime);
  margin-bottom: 0.6rem;
}

.enfoque-title {
  font-family: var(--mono);
  font-size: 1.45rem;
  margin-bottom: 0.55rem;
}

.enfoque-desc {
  font-size: 0.92rem;
  color: var(--grey);
  line-height: 1.65;
}

/* ---------------- Servicios ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-editorial), border-color 0.25s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--lime-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-editorial);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 50px;
  height: 50px;
  background: var(--lime-soft);
  border: 1px solid rgba(200, 241, 53, 0.16);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--lime);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-num {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-family: var(--mono);
  font-size: 3rem;
  color: rgba(244, 246, 248, 0.04);
  line-height: 1;
}

.service-title {
  font-family: var(--mono);
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.65rem;
}

.service-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--grey);
  margin-bottom: 1.2rem;
}

.service-segment {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.2rem;
}

.segment-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-soft);
}

.segment-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.tag {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  background: rgba(200, 241, 53, 0.07);
  color: var(--lime);
  padding: 0.25rem 0.75rem;
  border-radius: 0;
  border: 1px solid rgba(200, 241, 53, 0.16);
}

.service-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--white);
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  width: fit-content;
  margin-top: auto;
}

.service-toggle:hover,
.service-toggle[aria-expanded="true"] {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(200, 241, 53, 0.06);
}

.service-toggle svg {
  transition: transform 0.3s var(--ease-editorial);
}

.service-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.service-details {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
  transition: max-height 0.45s var(--ease-editorial), opacity 0.3s ease, margin-top 0.3s ease, padding-top 0.3s ease, border-color 0.3s ease, visibility 0s linear 0.45s;
}

.service-details.open {
  max-height: 600px;
  opacity: 1;
  visibility: visible;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top-color: var(--line);
  transition: max-height 0.45s var(--ease-editorial), opacity 0.3s ease, margin-top 0.3s ease, padding-top 0.3s ease, border-color 0.3s ease, visibility 0s;
}

.service-details-title {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.65rem;
}

.service-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-deliverables li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--grey);
}

.service-deliverables li::before {
  content: '✓';
  color: var(--lime);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------------- Proceso ---------------- */
.proceso-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.proceso-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  position: relative;
}

.step {
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: var(--darker);
  border: 1px solid var(--line);
  border-radius: 0;
}

.step-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--card);
  border: 1.5px solid var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--mono);
  font-size: 1.35rem;
  color: var(--lime);
}

.step-title {
  font-family: var(--mono);
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.65;
}

/* ---------------- Por qué elegirme ---------------- */
.porque-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: 2.25rem;
}

.porque-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.porque-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--lime);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.check svg {
  width: 12px;
  height: 12px;
}

.porque-item-title {
  font-weight: 600;
  font-size: 0.96rem;
  margin-bottom: 0.2rem;
}

.porque-item-desc {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.65;
}

.porque-visual {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 2.25rem;
}

.porque-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.porque-metric-row:last-child {
  border-bottom: none;
}

.pmr-label {
  font-size: 0.88rem;
  color: var(--grey);
}

.pmr-val {
  font-family: var(--mono);
  font-size: 1.8rem;
  color: var(--lime);
}

/* ---------------- Testimonios ---------------- */
.test-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.test-card {
  background: var(--darker);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 2rem;
  transition: transform 0.25s var(--ease-editorial), border-color 0.25s ease;
}

.test-card:hover {
  transform: translateY(-3px);
  border-color: var(--lime-border);
}

.stars {
  color: var(--lime);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.test-quote {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--grey);
  margin-bottom: 1.5rem;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.test-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--bg-void);
  flex-shrink: 0;
}

.test-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.test-company {
  font-size: 0.76rem;
  color: var(--grey-soft);
}

/* ---------------- Contacto ---------------- */
.contact-title {
  font-family: var(--mono);
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.contact-sub {
  color: var(--grey);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto 2.25rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1.45;
}

.field input,
.field textarea,
.field select {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--white);
  font-family: var(--body);
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0.9rem 1.15rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: none;
  appearance: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 241, 53, 0.12);
}

.field textarea {
  min-height: 130px;
}

.form-submit {
  margin-top: 0.65rem;
  display: flex;
  justify-content: center;
}

/* ---------------- Footer ---------------- */
footer {
  padding: 2.5rem 5vw;
  background: var(--bg-void);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--white);
}
.footer-logo span {
  color: var(--lime);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--grey-soft);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--lime);
}

.admin-link {
  font-size: 0.55rem !important;
  opacity: 0.35;
  transition: opacity 0.25s ease !important;
}
.admin-link:hover {
  opacity: 1;
  color: var(--lime) !important;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .enfoque-grid,
  .proceso-steps,
  .test-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-image-wrapper {
    display: none;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .enfoque-grid,
  .services-grid,
  .proceso-steps,
  .porque-grid,
  .test-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-void);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
  }

  .nav-links.open li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open li:last-child {
    border-bottom: none;
    margin-top: 1rem;
  }

  .nav-links.open a {
    display: block;
    width: 100%;
    padding: 1.1rem 1rem;
    font-size: 1.2rem;
    color: var(--white);
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 10000;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-kicker,
  .hero-title,
  .hero-sub,
  .hero-actions,
  .hero-stats,
  .hero-image-wrapper,
  .reveal,
  .service-card,
  .enfoque-panel,
  .test-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
/* ==========================================================================
   Overrides editoriales (brutalismo monocromático) — v6
   ========================================================================== */

/* Hairlines entre secciones principales */
#servicios,
#enfoque,
#porque,
#proceso,
#testimonios,
#contacto {
  border-top: 1px solid var(--line-strong);
}

/* Bordes de cards más visibles (de casi invisibles a presentes) */
.service-card,
.enfoque-panel,
.test-card,
.step,
.porque-visual,
.field input,
.field textarea,
.field select {
  border-color: var(--line-strong);
}

/* Botones con peso editorial: mayúsculas y tracking amplio */
.btn-primary,
.btn-ghost,
.service-toggle {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 1rem 2rem;
}

/* Títulos de sección: tracking cerrado, estilo display */
.section-title,
.hero-title,
.contact-title {
  letter-spacing: -0.015em;
}

/* Números y micro-metadata en mono con tracking editorial */
.stat-num,
.pmr-val,
.step-num,
.enfoque-index,
.service-num {
  letter-spacing: 0.02em;
}

/* Nav: subrayado hairline al hover más sobrio */
.nav-links a {
  letter-spacing: 0.14em;
}

/* Tags: más rectangulares y con tracking editorial */
.tag {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  font-size: 0.68rem;
}

/* ==========================================================================
   Overrides editoriales (brutalismo monocromático) — v6
   ========================================================================== */

/* Hairlines entre secciones principales */
#servicios,
#enfoque,
#porque,
#proceso,
#testimonios,
#contacto {
  border-top: 1px solid var(--line-strong);
}

/* Bordes de cards más visibles (de casi invisibles a presentes) */
.service-card,
.enfoque-panel,
.test-card,
.step,
.porque-visual,
.field input,
.field textarea,
.field select {
  border-color: var(--line-strong);
}

/* Botones con peso editorial: mayúsculas y tracking amplio */
.btn-primary,
.btn-ghost,
.service-toggle {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 1rem 2rem;
}

/* Títulos de sección: tracking cerrado, estilo display */
.section-title,
.hero-title,
.contact-title {
  letter-spacing: -0.015em;
}

/* Números y micro-metadata en mono con tracking editorial */
.stat-num,
.pmr-val,
.step-num,
.enfoque-index,
.service-num {
  letter-spacing: 0.02em;
}

/* Nav: subrayado hairline al hover más sobrio */
.nav-links a {
  letter-spacing: 0.14em;
}

/* Tags: más rectangulares y con tracking editorial */
.tag {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  font-size: 0.68rem;
}

/* ==========================================================================
   Textura y base tipográfica editorial — v7
   ========================================================================== */

/* Capa de grano fija sobre todo el sitio */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: screen;
}

/* Títulos con tracking ligeramente abierto, más editorial */
.hero-title,
.section-title,
.contact-title {
  letter-spacing: -0.02em;
  font-weight: 800;
}

/* El cuerpo respira más: interlineado amplio */
body {
  line-height: 1.7;
}

/* Los labels recuperan su función de “sello” sin gritar */
.section-label {
  font-weight: 600;
  letter-spacing: 0.22em;
  opacity: 0.8;
}

/* ==========================================================================
   Metadata tipográfica mono + numeración de secciones — v8
   ========================================================================== */

/* Numeración automática de secciones con CSS counters */
body { counter-reset: section; }
#servicios,
#enfoque,
#porque,
#proceso,
#testimonios,
#contacto { counter-increment: section; }

#servicios .section-label::before,
#enfoque .section-label::before,
#porque .section-label::before,
#proceso .section-label::before,
#testimonios .section-label::before,
#contacto .section-label::before {
  content: counter(section, decimal-leading-zero) " / ";
  color: var(--muted);
  margin-right: 0.4em;
}

/* Labels en monoespaciada, tracking editorial, con más presencia */
.section-label {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--white);
  opacity: 1;
}

/* Toda la metadata numérica en monoespaciada */
.stat-num,
.pmr-val,
.step-num,
.enfoque-index,
.service-num,
.tag {
  font-family: var(--mono);
  font-weight: 400;
}

/* Tags con tracking monoespaciado */
.tag {
  letter-spacing: 0.12em;
  font-size: 0.65rem;
  padding: 0.4rem 0.9rem;
}

/* ==========================================================================
   Hero como portada editorial — v10
   ========================================================================== */

/* La imagen del hero deja de ser un bloque y pasa a ser atmósfera de fondo */
.hero-image-wrapper { display: none; }

#hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: 160px 5vw 80px;
  align-items: flex-end;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.15) brightness(0.35);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-title {
  font-size: clamp(4.5rem, 13vw, 13rem);
  line-height: 0.84;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: 14ch;
}

.hero-sub {
  max-width: 520px;
  margin: 2rem 0 2.25rem;
  font-size: 1.05rem;
  color: var(--grey);
}

.hero-actions {
  margin-bottom: 2rem;
}

.hero-stats {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.18);
}

/* ==========================================================================
   Aplanado brutalista de secciones — v12
   ========================================================================== */

/* Quitamos el fondo de "tarjeta" y lo dejamos transparente */
.service-card,
.enfoque-panel,
.test-card,
.step,
.porque-visual {
  background: transparent;
  border-radius: 0;
  border: 1px solid var(--line-strong);
  padding: 2.5rem;
}

/* Hover sutil: solo cambia el borde, sin sombras */
.service-card:hover,
.enfoque-panel:hover,
.test-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--white);
}

/* Títulos de sección al estilo del hero */
.section-title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

/* El subtítulo de sección respira más */
.section-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--grey);
  max-width: 600px;
}

/* Los números de paso (01, 02...) más grandes y limpios */
.step-num {
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  display: block;
  font-size: 3rem;
  margin: 0 0 1rem 0;
  color: var(--white);
}

/* El icono del check se vuelve cuadrado, más agresivo */
.check {
  border-radius: 0;
  background: var(--white);
}

/* Botones primarios: sin fondo, solo borde blanco, hover invertido */
.btn-primary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
  border-radius: 0;
}

.btn-primary:hover {
  background: var(--white);
  color: var(--bg-void);
  transform: none;
}

/* El contenedor de la imagen del hero en el resto de páginas por si acaso */
.hero-image-wrapper {
  border-radius: 0;
}

/* ==========================================================================
   Grillas de periódico / Brutalismo suizo — v13
   ========================================================================== */

/* Quitamos el fondo gris de las secciones de proceso y testimonios para unificar todo en negro */
#proceso,
#testimonios {
  background: transparent;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

/* Colapsamos los gaps en las grillas para crear bloques unidos */
.services-grid,
.enfoque-grid,
.proceso-steps,
.test-grid {
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  margin-top: 3rem;
}

/* Ajustamos las tarjetas para que compartan bordes (estilo tabla/imprenta) */
.service-card,
.enfoque-panel,
.step,
.test-card {
  border-radius: 0;
  margin: 0;
  border-top: none;
  border-left: none;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 2.5rem 2rem;
}

/* El hover solo cambia el fondo sutilmente, sin mover los bloques */
.service-card:hover,
.enfoque-panel:hover,
.test-card:hover {
  border-color: var(--line-strong); /* Mantiene el borde original para no romper la grilla */
  background: rgba(255, 255, 255, 0.03);
  transform: none;
  box-shadow: none;
}

/* El icono del check ahora es un cuadro blanco sin curvas */
.check {
  border-radius: 0;
  background: var(--white);
  color: var(--bg-void);
}

/* ==========================================================================
   Navbar y Footer brutalistas — v14
   ========================================================================== */

/* Navbar: fondo negro sólido sin transparencias, borde inferior marcado */
nav {
  background: var(--bg-void);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--line-strong);
}

nav.scrolled {
  background: var(--bg-void);
  border-bottom-color: var(--white);
}

/* Enlaces del menú en monoespaciada para look de sistema */
.nav-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

/* Botón CTA del nav: cuadrado, borde blanco, hover invertido */
.nav-cta {
  background: transparent !important;
  color: var(--white) !important;
  border: 1px solid var(--white) !important;
  border-radius: 0 !important;
  padding: 0.6rem 1.5rem !important;
}

.nav-cta:hover {
  background: var(--white) !important;
  color: var(--bg-void) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Footer: alineación editorial y tipografía de sistema */
footer {
  border-top: 1px solid var(--line-strong);
  padding: 3rem 5vw;
}
.footer-logo {
  font-family: var(--mono);
  letter-spacing: 0.1em;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   Navbar y Footer brutalistas — v14
   ========================================================================== */

/* Navbar: fondo negro sólido sin transparencias, borde inferior marcado */
nav {
  background: var(--bg-void);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--line-strong);
}

nav.scrolled {
  background: var(--bg-void);
  border-bottom-color: var(--white);
}

/* Enlaces del menú en monoespaciada para look de sistema */
.nav-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

/* Botón CTA del nav: cuadrado, borde blanco, hover invertido */
.nav-cta {
  background: transparent !important;
  color: var(--white) !important;
  border: 1px solid var(--white) !important;
  border-radius: 0 !important;
  padding: 0.6rem 1.5rem !important;
}

.nav-cta:hover {
  background: var(--white) !important;
  color: var(--bg-void) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Footer: alineación editorial y tipografía de sistema */
footer {
  border-top: 1px solid var(--line-strong);
  padding: 3rem 5vw;
}
.footer-logo {
  font-family: var(--mono);
  letter-spacing: 0.1em;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   Formulario brutalista y detalles finales — v15
   ========================================================================== */

/* Formulario: sin cajas, solo líneas inferiores */
.contact-form {
  gap: 2rem;
}

.field input,
.field textarea,
.field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0.8rem 0;
  font-size: 1.1rem;
  color: var(--white);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--white);
  box-shadow: none;
}

.field label {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--grey-soft);
}

/* El botón de enviar hereda el estilo brutalista de .btn-primary */
.contact-form button,
.contact-form input[type="submit"] {
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  border-radius: 0;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-form button:hover,
.contact-form input[type="submit"]:hover {
  background: var(--white);
  color: var(--bg-void);
}

/* Imagen del hero un poco más visible (brillo subido) */
#hero::before {
  filter: grayscale(1) contrast(1.2) brightness(0.45);
  opacity: 0.65;
}

/* Detalle brutalista: color de selección de texto invertido */
::selection {
  background: var(--white);
  color: var(--bg-void);
}

/* ==========================================================================
   Catálogo brutalista — v16
   ========================================================================== */

/* Cabecera de página */
.page-header { padding: 160px 5vw 40px; max-width: 1200px; margin: 0 auto; }

/* Barra de filtros sin fondo, solo líneas horizontales */
.filter-bar {
  display: flex; gap: 20px; margin: 0 auto 40px;
  align-items: center; padding: 25px 5vw;
  border-bottom: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  max-width: 1200px; flex-wrap: wrap; position: relative; z-index: 50;
  background: transparent; border-radius: 0;
}

/* Selectores y botones del filtro: rectangulares, monoespaciados */
.dropdown-trigger {
  background: transparent; color: var(--white); padding: 12px 20px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 0;
  font-size: 0.8rem; font-weight: 500; min-width: 200px; text-align: center;
  text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--mono);
  transition: border-color 0.2s;
}
.dropdown-trigger:hover { border-color: var(--white); }

.dropdown-content {
  display: none; position: absolute; background: var(--bg-void); z-index: 200;
  padding: 20px; border: 1px solid var(--line-strong); min-width: 420px;
  margin-top: 5px; border-radius: 0; box-shadow: none;
  max-height: 500px; overflow-y: auto; column-width: 190px; column-gap: 30px;
}
.dropdown-select.open .dropdown-content { display: block; }
.dropdown-content label { color: var(--white); font-size: 0.85rem; font-family: var(--mono); display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; cursor: pointer; break-inside: avoid; }
.dropdown-content label input[type="checkbox"] { width: auto; margin-top: 3px; accent-color: var(--white); }

.btn-submit-filter {
  background: transparent; color: var(--white); padding: 12px 30px;
  border: 1px solid var(--white); cursor: pointer; font-weight: 500;
  text-transform: uppercase; border-radius: 0; margin-left: auto;
  font-family: var(--mono); letter-spacing: 0.1em;
  transition: background 0.2s, color 0.2s;
}
.btn-submit-filter:hover { background: var(--white); color: var(--bg-void); transform: none; box-shadow: none; }

.btn-clear-filter { color: var(--grey); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; padding: 12px 20px; }
.btn-clear-filter:hover { color: var(--white); }

/* Grilla del catálogo: junta las tarjetas y comparte bordes */
.catalogo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  padding: 0; max-width: 1200px; margin: 0 auto 40px;
  border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong);
}

.iframe-container {
  position: relative; border-radius: 0; overflow: hidden;
  transition: none; cursor: pointer; background: transparent; text-decoration: none;
  display: block; border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong); aspect-ratio: 9/16;
}
.iframe-container:hover { transform: none; border-color: var(--line-strong); box-shadow: none; background: rgba(255,255,255,0.03); }

/* Imágenes en blanco y negro, que cobran color al pasar el ratón */
.img-wrapper img { width: 100%; height: 100%; display: block; object-fit: cover; transition: filter 0.4s; filter: grayscale(1) contrast(1.1); }
.iframe-container:hover .img-wrapper img { transform: none; filter: grayscale(0) contrast(1); }

.card-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px 20px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); }
.card-project-name { font-family: var(--mono); font-size: 1.2rem; color: var(--white); margin-bottom: 10px; letter-spacing: 0.05em; }

.btn-view-live {
  display: block; width: 100%; text-align: center; background: transparent;
  color: var(--white); border: 1px solid var(--white); padding: 12px 0;
  font-weight: 500; text-transform: uppercase; font-size: 0.75rem;
  letter-spacing: 0.15em; transition: 0.2s; font-family: var(--mono);
}
.btn-view-live:hover { background: var(--white); color: var(--bg-void); }

/* Paginación unida, tipo tabla */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0; padding: 20px 5vw 80px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 48px; padding: 0 16px;
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--white); text-decoration: none; font-size: 0.85rem;
  font-weight: 500; border-radius: 0; font-family: var(--mono);
  margin-left: -1px;
}
.pagination a:hover { background: var(--white); color: var(--bg-void); }
.pagination .active { background: var(--white); color: var(--bg-void); font-weight: 700; border-color: var(--white); z-index: 1;}
.pagination .disabled { opacity: 0.3; pointer-events: none; }

/* Responsive para el catálogo */
@media (max-width: 900px) { .catalogo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .catalogo-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .filter-bar { flex-direction: column; align-items: stretch; }
  .dropdown-trigger { width: 100%; }
  .dropdown-content { min-width: auto; width: 100%; left: 0; column-width: auto; }
  .btn-submit-filter { margin-left: 0; }
}

/* ==========================================================================
   Blog brutalista — v17
   ========================================================================== */

/* Contenedor principal del blog */
.blog-container { max-width: 1200px; margin: 160px auto 60px; padding: 0 5vw; }

/* Título principal del blog al estilo portada */
.blog-title {
  font-family: var(--mono);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-align: left;
  margin-bottom: 3rem;
  font-weight: 800;
}

/* Grilla de artículos unida, sin espacios */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  margin-bottom: 3rem;
}

/* Tarjetas sin fondo, solo bordes compartidos */
.blog-card {
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: none;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

/* Imágenes en blanco y negro que cobran color al pasar el ratón */
.blog-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  transition: filter 0.4s;
}

.blog-card:hover .blog-card-img {
  filter: grayscale(0) contrast(1);
}

/* Texto de la tarjeta */
.blog-card-body { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }

.blog-card-title {
  font-family: var(--mono);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.blog-card-resumen { color: var(--grey); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; }

.blog-card-date {
  color: var(--grey-soft);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: auto; /* Empuja la fecha al fondo de la tarjeta */
}

/* Paginación unida, tipo tabla (reutiliza el estilo del catálogo) */
.blog-container .pagination {
  display: flex;
  justify-content: flex-start;
  gap: 0;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.blog-container .pagination a,
.blog-container .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 0;
  font-family: var(--mono);
  margin-left: -1px;
}

.blog-container .pagination a:hover {
  background: var(--white);
  color: var(--bg-void);
}

/* ==========================================================================
   Factor WOW: Marquee, cursores y micro-interacciones — v18
   ========================================================================== */

/* 1. Marquee infinito */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 1.5rem 0;
  background: var(--bg-void);
  display: flex;
}
.marquee-content {
  display: inline-block;
  animation: marquee 25s linear infinite;
  font-family: var(--mono);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--white);
}
.marquee-content span { margin: 0 2rem; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 2. Efecto zoom táctil en imágenes (Catálogo y Blog) */
.img-wrapper img, .blog-card-img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s !important;
}
.iframe-container:hover .img-wrapper img, 
.blog-card:hover .blog-card-img {
  transform: scale(1.06) !important;
}

/* 3. Ajuste para el cursor (por si acaso) */
.cursor, .cursor-ring {
  pointer-events: none !important;
  z-index: 99999 !important;
}

/* ==========================================================================
   Animaciones escalonadas y Parallax — v19
   ========================================================================== */

/* 1. Reveal Escalonado en las grillas (estilo baraja de cartas) */
.services-grid .reveal:nth-child(1),
.test-grid .reveal:nth-child(1),
.proceso-steps .reveal:nth-child(1),
.blog-grid .reveal:nth-child(1),
.enfoque-grid .reveal:nth-child(1) { transition-delay: 0.1s; }

.services-grid .reveal:nth-child(2),
.test-grid .reveal:nth-child(2),
.proceso-steps .reveal:nth-child(2),
.blog-grid .reveal:nth-child(2),
.enfoque-grid .reveal:nth-child(2) { transition-delay: 0.2s; }

.services-grid .reveal:nth-child(3),
.test-grid .reveal:nth-child(3),
.proceso-steps .reveal:nth-child(3),
.blog-grid .reveal:nth-child(3),
.enfoque-grid .reveal:nth-child(3) { transition-delay: 0.3s; }

.services-grid .reveal:nth-child(4),
.test-grid .reveal:nth-child(4),
.proceso-steps .reveal:nth-child(4),
.blog-grid .reveal:nth-child(4) { transition-delay: 0.4s; }

/* 2. Preparar la imagen del Hero para el Parallax del ratón */
#hero::before {
  /* El !important asegura que gane a otras reglas, y la escala evita que se vean bordes blancos al mover */
  transform: translate(var(--mouse-x, 0), var(--mouse-y, 0)) scale(1.05) !important;
  transition: transform 0.2s ease-out;
}

/* ==========================================================================
   Preloader y Footer Póster — v20
   ========================================================================== */

/* 1. Preloader */
#preloader {
  position: fixed; inset: 0; background: var(--bg-void); z-index: 999999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease;
  font-family: var(--mono); font-size: 1.5rem; letter-spacing: 0.3em; color: var(--white);
}

/* 2. Transición de carga de página */
body { opacity: 0; transition: opacity 0.6s ease; }
body.is-loaded { opacity: 1; }

/* 3. Footer Póster (ocupa casi toda la pantalla) */
footer {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 5vw;
  border-top: 1px solid var(--line-strong);
  margin-top: 6rem;
}

.footer-logo {
  font-family: var(--mono);
  font-size: clamp(4rem, 13vw, 15rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 4rem;
}
.footer-logo span {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
  border-top: 1px solid var(--line-strong);
  padding-top: 2rem;
  margin-bottom: 2rem;
}

.footer-links a {
  font-size: 1.1rem;
  font-family: var(--mono);
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: auto;
}

/* ==========================================================================
   Ajuste del Footer (Imponente pero usable) — v21
   ========================================================================== */

footer {
  min-height: auto; /* Le quitamos el 80vh para que no sea una pantalla entera */
  padding: 6rem 5vw 3rem;
  overflow: hidden; /* Evita que el texto se salga hacia los costados */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  font-size: clamp(3rem, 9vw, 10rem); /* Tamaño más contenido, máximo 160px */
  line-height: 0.85;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
  width: 100%;
  word-break: break-word; /* Por si acaso */
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
  border-top: 1px solid var(--line-strong);
  padding-top: 2rem;
  margin-bottom: 2rem;
}
