/* ===== Hexagonal — Vanilla CSS ===== */

:root {
  --bg: #ffffff;
  --bg-2: #f3f1ee;
  --ink: #4a4a4a;
  --ink-2: #8a8682;
  --line: #4a4a4a;
  --line-soft: rgba(74,74,74,0.18);
  --accent: #ec008c;
  --accent-ink: #ffffff;
  --display: 'Epilogue', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --maxw: 1440px;
  --pad: clamp(24px, 5vw, 80px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

.display { font-family: var(--mono); font-weight: 700; }
.mono {
  font-family: var(--mono);
  font-size: 23px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* Labels de sección */
.section-head .mono {
  font-size: 23px !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--ink-2) !important;
  display: block;
  margin-bottom: 12px;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ===== Contención de layout para secciones animadas ===== */
.proceso, .services, .hero {
  contain: layout style;
}

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--rd, 0ms);
}
.reveal.from-right { transform: translateX(40px); }
.reveal.from-bottom-strong { transform: translateY(90px);   opacity: 0; }
.reveal.is-in { opacity: 1; transform: none; }

/* ===== Custom Cursor ===== */
@media (pointer: fine) {
  body, a, button { cursor: none !important; }
}
.cursor-dot {
  width: 10px; height: 10px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s, opacity .2s, box-shadow .2s;
  will-change: left, top;
}
.cursor-ring {
  width: 40px; height: 40px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 56%, black 58%);
  mask-image: radial-gradient(circle at 50% 50%, transparent 56%, black 58%);
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .35s cubic-bezier(.2,.7,.2,1), height .35s cubic-bezier(.2,.7,.2,1), opacity .2s, background .2s;
  will-change: left, top;
}
.cursor-dot.is-hover  { width: 5px; height: 5px; }
.cursor-ring.is-hover { width: 50px; height: 50px; }
.cursor-dot.is-anim-zone {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 12px rgba(236,0,140,.6);
}
.cursor-ring.is-anim-zone {
  width: 52px;
  height: 52px;
  animation: cursorAnimHint 1.15s cubic-bezier(.2,.8,.25,1) infinite;
}
.cursor-dot.is-hidden, .cursor-ring.is-hidden { opacity: 0; }

@keyframes cursorAnimHint {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.12); }
}

/* Lluvia de letras — global */
.cta-l {
  display: inline-block;
  opacity: 0;
  transform: translateY(-100px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(.2,.7,.2,1);
  user-select: none;
}
.cta-l--in {
  opacity: 1;
  transform: translateY(0);
}

/* Partículas del cursor */
.cursor-particle {
  width: 7px; height: 7px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  animation: c-burst .65s ease-out forwards;
}
@keyframes c-burst {
  0%   { opacity: 1; transform: translate(-50%, -50%) translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(0); }
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px clamp(56px, 8vw, 140px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: none;
  transform: translateY(0);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), background .35s ease, opacity .35s ease, filter .35s ease;
  animation: navDrop .7s cubic-bezier(.2,.7,.2,1) both;
}
/* Fondo blanco al subir con scroll */
.nav.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
}
.nav.over-dark {
  background: transparent;
}
.nav.hidden {
  transform: translateY(-100%);
  opacity: 0;
  filter: blur(6px);
  animation: none;
}
/* ── Logo imagen ── */
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo .logo-img {
  width: 240px;
  height: 72px;
  object-fit: contain;
  object-position: left center;
}
.nav-logo .logo-white { display: block; }
.nav-logo .logo-dark  { display: none; }
.nav.scrolled .logo-white { display: none; }
.nav.scrolled .logo-dark  { display: block; }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  font-size: 17px;
  font-weight: 500;
  padding: 8px 20px;
  position: relative;
  overflow: hidden;
  animation: navIn .6s cubic-bezier(.2,.7,.2,1) both;
}
.nav-link:nth-child(1) { animation-delay: 0.45s; }
.nav-link:nth-child(2) { animation-delay: 0.55s; }
.nav-link:nth-child(3) { animation-delay: 0.65s; }
.nav-link:nth-child(4) { animation-delay: 0.75s; }
.nav-link:nth-child(5) { animation-delay: 0.85s; }
.nav-link::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.nav-link:hover::before { transform: scaleX(1); }
.nav-link.is-active { color: var(--accent) !important; }
.nav-link.is-active::before { transform: scaleX(1); background: var(--accent); }
.nav:not(.scrolled) .nav-link.is-active {
  text-shadow: 0 0 14px rgba(236,0,140,0.6), 0 1px 8px rgba(0,0,0,0.9);
}
/* Transparente = links blancos; scrolled = links oscuros */
.nav:not(.scrolled) .nav-link { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.9), 0 2px 20px rgba(0,0,0,0.8); }
.nav.scrolled .nav-link { color: var(--ink); text-shadow: none; }
.nav.over-dark .nav-link { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.9), 0 2px 20px rgba(0,0,0,0.8); }
/* Banda oscura en la parte superior cuando nav está sobre el hero */
.nav:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 70%, transparent 100%);
}
@keyframes navDrop {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes navIn {
  from { opacity: 0; transform: translateY(-16px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);     filter: blur(0); }
}

/* ===== Hero Slider ===== */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh; /* dynamic viewport — excluye chrome del navegador */
  min-height: 600px;
  overflow: hidden;
  background: #3d3d3d;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.slide-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4a4a4a, #3d3d3d 60%, #2d2d2d);
}
.slide-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(236,0,140,0.15), transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.06), transparent 40%);
}
.slide[data-index="2"] .slide-bg {
  filter: brightness(1.22) saturate(1.08);
}
.slide[data-index="2"] .slide-veil {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 55%, transparent 100%),
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
}
.slide-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
}
.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) clamp(100px, 14vh, 160px);
  color: #fff;
  max-width: 1440px;
  margin: 0 auto;
}
/* slide 1: typewriter (JS maneja el título, meta viene de izquierda) */
.slide[data-index="0"].is-active .slide-meta {
  animation: metaFromLeft 0.8s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: 0.5s;
}

/* slides 2+: título de izquierda, meta de derecha */
.slide:not([data-index="0"]).is-active .slide-title {
  animation: titleFromLeft 0.75s cubic-bezier(.2,.7,.2,1) both;
}
.slide:not([data-index="0"]).is-active .slide-meta {
  animation: metaFromRight 0.75s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: 0.2s;
}

@keyframes metaFromLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes titleFromLeft {
  from { opacity: 0; transform: translateX(-80px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes metaFromRight {
  from { opacity: 0; transform: translateX(80px); }
  to   { opacity: 1; transform: translateX(0); }
}
.slide-title {
  font-size: clamp(36px, 5.5vw,65px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 24px 0;
  max-width: 18ch;
}
.slide-title em { color: var(--accent); font-style: italic; }
.slide-meta { color: rgba(255,255,255,0.7); max-width: 56ch; font-size: 16px; }

.hero-controls {
  position: absolute;
  bottom: clamp(24px, 4vh, 48px);
  right: var(--pad);
  display: flex;
  gap: 12px;
  z-index: 100;
  pointer-events: auto;
}
.hero-btn {
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 100;
}
.hero-btn:hover { background: var(--accent); border-color: var(--accent); }
.hero-dots {
  position: absolute;
  bottom: clamp(40px, 5vh, 60px);
  left: var(--pad);
  display: flex;
  gap: 6px;
  z-index: 100;
  align-items: center;
  pointer-events: auto;
}
.hero-dot {
  width: 32px; height: 2px;
  background: rgba(255,255,255,0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .3s;
  pointer-events: auto;
  position: relative;
  z-index: 100;
}
.hero-dot.is-active { background: var(--accent); }

/* ===== Services (hover-reveal cards) ===== */
.services {
  padding-top: clamp(80px, 10vw, 160px);
  padding-bottom: clamp(80px, 10vw, 160px);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 64px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 400;
  font-family: var(--sans);
  margin: 12px 0 0 0;
  max-width: 40ch;
  line-height: 1.5;
  color: var(--ink-2);
  text-transform: none;
  letter-spacing: 0;
}
.section-head h2 em { color: var(--accent); font-style: italic; }
.blog .section-head h2,
.services .section-head h2 {
  font-family: var(--mono);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 8px 0 0;
}
.blog .section-head h2 em,
.services .section-head h2 em { font-style: normal; color: var(--accent); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  perspective: 1100px;
  position: relative;
  overflow: visible;
}

.hover-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  perspective: 900px;
  z-index: 1;
  transition: transform 0.48s cubic-bezier(.2,.8,.25,1), z-index 0s 0.48s;
}

/* ── Al hacer hover: la tarjeta se ilumina levemente ── */
.hover-card:hover {
  transform: scale(1.03);
  z-index: 10;
  transition: transform 0.48s cubic-bezier(.2,.8,.25,1);
}

/* ── Retrovisores: tarjetas laterales rotadas en 3D ── */
.service-grid .hover-card:first-child {
  transform: rotateY(18deg) scaleX(0.78);
  transform-origin: right center;
}
.service-grid .hover-card:nth-child(3) {
  transform: rotateY(-18deg) scaleX(0.78);
  transform-origin: left center;
}
.service-grid .hover-card:first-child:hover {
  transform: rotateY(0deg) scale(1.03);
  transform-origin: left center;
}
.service-grid .hover-card:nth-child(3):hover {
  transform: rotateY(0deg) scale(1.03);
  transform-origin: right center;
}
.hover-img {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #5b5b5b, #3d3d3d);
}
.hover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(61,61,61,0.25), rgba(61,61,61,0.55));
  transition: background .4s ease;
  pointer-events: none;
}
.hover-num {
  position: absolute;
  top: 24px; left: 24px;
  color: #fff; z-index: 2;
}
.hover-title-wrap {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(8,6,18,0.35);
  z-index: 2;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}
.hover-card:hover .hover-title-wrap {
  opacity: 0;
  transform: translateY(-16px) scale(0.95);
}
.hover-title {
  font-size: clamp(20px, 2vw, 30px);
  margin: 0;
  letter-spacing: -0.02em;
  text-align: center;
  color: #fff;
  line-height: 1.1;
}
.hover-info {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 3;
  opacity: 0;
  text-align: center;
  transform: translateY(32px);
  transition: opacity 0.38s ease, transform 0.42s cubic-bezier(.2,.8,.25,1);
  background: rgba(8,6,18,0.82);
}
/* hover-info permanece oculto dentro de la tarjeta — se proyecta en el panel central */
.hover-card:hover .hover-info {
  opacity: 0;
  transform: translateY(32px);
}
.hover-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
}
.hover-points {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hover-points li {
  font-size: 12.5px;
  color: rgba(255,255,255,0.85);
  padding-left: 0;
  position: relative;
  text-align: center;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.hover-points li::before {
  display: none;
}
.hover-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.3);
  margin-top: 6px;
}

/* ── Panel central — ocupa las 3 tarjetas, columna centrada ── */
.svc-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(20px) scale(0.97);
  width: clamp(300px, 44vw, 520px);
  padding: 36px 44px;
  background: rgba(34, 34, 38, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  box-shadow: 0 28px 80px rgba(0,0,0,0.42);
  transition: opacity 0.32s ease, transform 0.38s cubic-bezier(.2,.8,.25,1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.svc-panel.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0) scale(1);
  pointer-events: auto;
}

.svc-panel.is-hiding {
  opacity: 0;
  transform: translate(-50%, -50%) translateY(10px) scale(0.97);
  pointer-events: none;
}

.svc-panel-title {
  display: block;
  position: relative;
  font-family: var(--mono);
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 0;
  padding-bottom: 18px;
}
.svc-panel-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 44px;
  height: 1px;
  background: var(--accent);
  transform: translateX(-50%);
}

/* Descripción — texto grande centrado */
.svc-panel .hover-desc {
  font-family: var(--sans);
  font-size: clamp(14px, 1.1vw, 15.5px);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0;
  color: rgba(255,255,255,0.82);
  margin: 0;
  max-width: 48ch;
}

/* Bullets en color acento */
.svc-panel .hover-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  width: min(100%, 380px);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.svc-panel .hover-points li {
  position: relative;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0;
  line-height: 1.45;
  text-shadow: none;
  padding: 11px 0 11px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  text-align: left;
}
.svc-panel .hover-points li::before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}


/* CTA — centrado */
.svc-panel .hover-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.2s;
}
.svc-panel .hover-cta:hover {
  color: var(--accent);
}

/* ===== Proceso ===== */
.proceso {
  background: #0e0e0e;
  padding: clamp(80px, 10vw, 140px) 0;
}
.proceso-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: center;
}
.proceso-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.proceso-label {
  font-size: 23px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-family: var(--mono);
  text-transform: uppercase;
  font-weight: 500;
  display: block;
  margin-bottom: 12px;
}
.proceso-title {
  font-family: var(--mono);
  font-size: clamp(36px, 5vw, 38px);
  font-weight: 700;
  color: #fff;
  line-height: 1.06;
  margin: 0;
}
.proceso-title em { font-style: normal; color: var(--accent); }
.proceso-desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.45);
  margin: 0;
}
/* Columnas escalonadas derecha */
.proceso-right {
  display: flex;
  gap: 14px;
}
.proceso-col-a,
.proceso-col-b {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.proceso-col-b { margin-top: 48px; }
.proceso-card {
  position: relative;
  user-select: none;
  cursor: grab;
  will-change: transform;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .25s;
}
.proceso-card:hover { border-color: rgba(236,0,140,0.4); }
.proceso-card--accent { background-color: rgba(236,0,140,0.08); border-color: rgba(236,0,140,0.2); }
.pcard-num {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.pcard-name {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}
.pcard-desc {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  margin: 0;
  flex: 1;
}
@media (max-width: 960px) {
  .proceso-inner { grid-template-columns: 1fr; }
  .proceso-col-b { margin-top: 32px; }
}
@media (max-width: 560px) {
  .proceso-right { flex-direction: column; }
  .proceso-col-b { margin-top: 0; }
}

/* ===== Blog / Projects (asymmetric grid) ===== */
.blog {
  padding-top: clamp(80px, 10vw, 160px);
  padding-bottom: clamp(80px, 10vw, 160px);
}
.blog-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
/* ── Blog editorial profesional ── */

/* Destacado */
.bl-featured {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 3px;
  margin-bottom: 20px;
  text-decoration: none;
  color: #fff;
}
.bl-featured-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.9s cubic-bezier(.2,.8,.25,1);
  filter: brightness(0.5) saturate(0.7);
}
.bl-featured:hover .bl-featured-bg {
  transform: scale(1.04);
  filter: brightness(0.6) saturate(0.85);
}
.bl-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(6,3,16,0.97) 0%,
    rgba(6,3,16,0.55) 45%,
    transparent 100%
  );
}
.bl-featured-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(28px, 4vw, 56px);
}
.bl-featured-cat {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.bl-featured-title {
  font-family: var(--display);
  font-size: clamp(22px, 3.2vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 14px;
  color: #fff;
  max-width: 22ch;
}
.bl-featured-exc {
  font-size: clamp(13px, 1vw, 15px);
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  margin: 0 0 18px;
  max-width: 52ch;
}
.bl-featured-meta {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
}

/* Secundarios */
.bl-secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bl-secondary {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 3px;
}
.bl-sec-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  filter: brightness(0.75) saturate(0.7);
  transition: transform 0.6s cubic-bezier(.2,.8,.25,1), filter 0.5s ease;
  border-radius: 3px 3px 0 0;
}
.bl-secondary:hover .bl-sec-img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1);
}
.bl-sec-body {
  padding: 18px 20px 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
  border-radius: 0 0 3px 3px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  transition: background 0.3s;
}
.bl-secondary:hover .bl-sec-body {
  background: rgba(236,0,140,0.04);
  border-color: rgba(236,0,140,0.15);
}
.bl-sec-cat {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.bl-sec-title {
  font-family: var(--display);
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: color 0.3s;
}
.bl-secondary:hover .bl-sec-title { color: var(--accent); }
.bl-sec-date {
  font-size: 10px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.06em;
  margin-top: auto;
  padding-top: 10px;
}

/* ===== Testimonios ===== */
.testi {
  background: #fff;
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--line-soft);
}
.testi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.testi-title {
  font-size: clamp(30px, 4vw, 38px);
  color: var(--ink);
  margin: 0;
  line-height: 1.08;
}
.testi-title em { color: var(--accent); font-style: normal; }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line-soft);
}
.testi-card {
  padding: 0;
  perspective: 1200px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-soft);
  background: #fff;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  position: relative;
}
.testi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  z-index: 2;
}
.testi-card:hover { background: #fafafa; }
.testi-card:hover::before { transform: scaleX(1); }
.testi-card.flipped .testi-inner { transform: rotateY(180deg); }

/* 3D flip inner */
.testi-inner {
  position: relative;
  width: 100%;
  min-height: 280px;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(.4,0,.2,1);
}
.testi-front,
.testi-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testi-front {
  background: #fff;
}
.testi-back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, #0e0e0e 0%, #1a0a14 60%, #0e0e0e 100%);
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  overflow: hidden;
}
.testi-back::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  right: 16px;
  font-size: 120px;
  font-family: Georgia, serif;
  color: rgba(236,0,140,0.08);
  line-height: 1;
  pointer-events: none;
}
.testi-back-icon {
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
}
.testi-back-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ec008c;
  box-shadow: 0 0 0 5px rgba(236,0,140,0.12), 0 8px 24px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
}
.testi-back-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.testi-back-divider {
  width: 28px;
  height: 1px;
  background: rgba(236,0,140,0.5);
  position: relative;
  z-index: 1;
}
.testi-back-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.testi-back-company {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.testi-back-msg {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  margin: 4px 0 0;
  max-width: 18ch;
  position: relative;
  z-index: 1;
}

/* Letras que caen en testimonio */
.testi-quote span {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(.4,0,.8,1), opacity 0.35s ease;
  transition-delay: var(--ld, 0ms);
}
.testi-card.letters-falling .testi-front .testi-quote span {
  transform: translateY(50px) rotate(8deg);
  opacity: 0;
}
.testi-card:last-child { border-right: none; }
.testi-front::before {
  content: '\201C';
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 72px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.15;
  display: block;
  margin-bottom: -16px;
}
.testi-stars {
  color: #c8a96e;
  font-size: 12px;
  letter-spacing: 4px;
}
.testi-quote {
  font-size: 13.5px;
  line-height: 1.85;
  color: #3a3a3a;
  margin: 0;
  flex: 1;
  font-style: italic;
}
.testi-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
}
.testi-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e8e4e0;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  border: 1.5px solid var(--line-soft);
}
.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.testi-name {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.testi-company {
  font-size: 11px;
  color: var(--accent);
  font-family: var(--mono);
  letter-spacing: 0.05em;
  margin-top: 3px;
  opacity: 0.85;
}
@media (max-width: 900px) {
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-card:nth-child(2) { border-right: none; }
  .testi-card:nth-child(3) { border-top: 1px solid var(--line-soft); }
  .testi-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .testi-grid { grid-template-columns: 1fr; }
  .testi-card { border-right: none; border-top: 1px solid var(--line-soft); }
}

/* ===== CTA Section ===== */
.cta-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  overflow: hidden;
}
.cta-img {
  position: relative;
  overflow: hidden;
}
.cta-inner {
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: clamp(64px, 8vw, 110px) clamp(48px, 6vw, 96px);
  border-left: 1px solid rgba(255,255,255,0.06);
}
.cta-eyebrow {
  font-size: 23px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.cta-title {
  font-size: clamp(36px, 4vw, 38px);
  color: #fff;
  margin: 0;
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.cta-sub {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255,255,255,0.4);
  margin: 0;
  max-width: 34ch;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  position: relative;
  gap: 16px;
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  align-self: flex-start;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--accent);
  transition: color .2s, gap .2s;
}
.cta-btn:hover { color: var(--accent); gap: 22px; }
@media (max-width: 700px) {
  .cta-section { grid-template-columns: 1fr; }
  .cta-img { min-height: 260px; }
}

/* ===== Footer ===== */
.footer {
  background: #3d3d3d;
  color: #fff;
  padding: 80px 0 24px 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.1fr 1.1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-logo {
  display: block;
  width: 280px;
  height: 84px;
  margin-left: 36px;
}
.footer-logo .logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}
.footer-tag {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  max-width: 32ch;
}
.footer h4 {
  color: rgba(255,255,255,0.55);
  margin: 0 0 16px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 15px; }
.footer address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}
.footer-mail, .footer-phone {
  display: inline-block;
  font-size: 18px;
  font-family: var(--display);
}
.footer-phone { color: #fff; }
.footer-phone:hover { color: var(--accent); }
.footer-mail-block { display: flex; flex-direction: column; gap: 8px; }
.footer-social { display: flex; gap: 14px; margin-top: 28px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(239,234,224,0.85);
  transition: background .2s, color .2s, border-color .2s;
}
.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.footer-bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.footer-bottom div { display: flex; gap: 24px; }
.footer-bottom a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease, letter-spacing 0.25s ease;
}
.footer-bottom a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(.2,.8,.25,1);
}
.footer-bottom a:hover {
  color: #fff;
}
.footer-bottom a:hover::after { transform: scaleX(1); }

/* ===== Hamburger & Mobile Menu ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 36px;
  height: 2px;
  background: #fff;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .25s ease, width .35s ease;
}
.nav.scrolled .nav-hamburger span { background: var(--ink); }
.nav-hamburger span:nth-child(2) { width: 24px; }
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); width: 36px; }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); width: 36px; }

/* Backdrop oscuro */
.nav-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 148;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.nav-mobile-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Panel lateral */
.nav-mobile {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(520px, 100vw);
  background: #07050f;
  border-left: 1px solid rgba(236,0,140,0.18);
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px clamp(40px, 7vw, 72px) 60px;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform .55s cubic-bezier(.77,0,.18,1);
}
.nav-mobile.is-open {
  pointer-events: auto;
  transform: translateX(0);
}

/* Línea magenta vertical decorativa */
.nav-mobile::before {
  content: '';
  position: absolute;
  left: 0; top: 15%; bottom: 15%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .4s ease .3s;
}
.nav-mobile.is-open::before { opacity: 1; }

.nav-mobile-close {
  position: absolute;
  top: 24px; right: clamp(20px, 5vw, 32px);
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s;
}
.nav-mobile-close:hover { border-color: var(--accent); color: var(--accent); }

/* Label pequeño */
.nav-mobile-label { display: none; }

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.nav-mobile-link {
  font-family: var(--mono);
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  padding: 10px 0;
  position: relative;
  display: block;
  width: 100%;
  opacity: 0;
  transform: translateX(28px);
  transition: color .25s ease, opacity .4s ease, transform .4s cubic-bezier(.2,.8,.25,1);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-mobile-link:first-child { border-top: 1px solid rgba(255,255,255,0.06); }
.nav-mobile.is-open .nav-mobile-link:nth-child(1) { opacity:1; transform:translateX(0); transition-delay:.18s; }
.nav-mobile.is-open .nav-mobile-link:nth-child(2) { opacity:1; transform:translateX(0); transition-delay:.25s; }
.nav-mobile.is-open .nav-mobile-link:nth-child(3) { opacity:1; transform:translateX(0); transition-delay:.32s; }
.nav-mobile.is-open .nav-mobile-link:nth-child(4) { opacity:1; transform:translateX(0); transition-delay:.39s; }
.nav-mobile.is-open .nav-mobile-link:nth-child(5) { opacity:1; transform:translateX(0); transition-delay:.46s; }
.nav-mobile-link:hover { color: #fff; }
.nav-mobile-link.is-active { color: var(--accent); }

.nav-mobile-foot {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  opacity: 0;
  transition: opacity .4s ease .5s;
}
.nav-mobile-foot span { display: block; }
.nav-mobile-foot span:first-child { color: var(--accent); }
.nav-mobile.is-open .nav-mobile-foot { opacity: 1; }

/* ===== Responsive ===== */

/* ── 1200px — Ajustes menores de layout ── */
@media (max-width: 1200px) {
  .footer-logo { margin-left: 0; width: 220px; height: 66px; }
  .svc-panel { width: clamp(330px, 42vw, 500px); padding: 40px 44px; }
  /* Footer: columnas equilibradas a este ancho */
  .footer-top {
    grid-template-columns: 1.4fr 0.9fr 0.65fr 1.0fr;
    gap: 32px;
  }
}

/* ── 1050px — Testimonios a 2 columnas ── */
@media (max-width: 1050px) {
  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    border: none;
    background: transparent;
  }
  .testi-card,
  .testi-card:nth-child(2),
  .testi-card:last-child {
    border: 1px solid var(--line-soft);
    border-right: 1px solid var(--line-soft);
    background: #fff;
  }
}

/* ── 900px — Tablet horizontal ── */
@media (max-width: 900px) {

  /* Nav */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav { padding: 20px clamp(20px, 5vw, 48px); }
  .nav-logo .logo-img { width: 180px; height: 54px; }

  /* Hero */
  .slide-content {
    padding-bottom: clamp(80px, 12vh, 120px);
  }
  .hero-controls { bottom: clamp(20px, 3vh, 36px); }
  .hero-dots    { bottom: clamp(30px, 4vh, 48px); }

  /* Services — quitar 3D, ocultar panel flotante */
  .service-grid {
    grid-template-columns: 1fr;
    perspective: none;
    gap: 12px;
  }
  .service-grid .hover-card:first-child,
  .service-grid .hover-card:nth-child(3) {
    transform: none !important;
    transform-origin: center;
  }
  .hover-card { aspect-ratio: 16 / 9; }
  /* En móvil mostrar info dentro de la tarjeta al hover */
  .hover-card:hover .hover-title-wrap { opacity: 0; }
  .hover-card:hover .hover-info { opacity: 1; transform: scale(1); }
  /* Ocultar el panel flotante central */
  .svc-panel { display: none !important; }

  /* Section head */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 40px;
  }

  /* Blog secundarios — 2 columnas */
  .bl-secondary-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .bl-featured { aspect-ratio: 16 / 9; }
  /* Testimonios */
  .testi-header { flex-direction: column; align-items: flex-start; gap: 20px; }

  /* Footer — logo arriba a todo ancho, 3 columnas info debajo */
  .footer-top {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  .footer-top > div:first-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-top > div:first-child .footer-tag { max-width: 40ch; }
  .footer-logo {
    margin: 0 auto;
    width: 260px;
    height: 78px;
  }
  .footer-logo .logo-img { object-position: center center; }
}

/* ── 700px — Tablet vertical / móvil grande ── */
@media (max-width: 700px) {

  /* Nav compacto */
  .nav { padding: 16px clamp(16px, 4vw, 32px); }
  .nav-logo .logo-img { width: 160px; height: 48px; }

  /* Hero */
  .slide-title { font-size: clamp(30px, 8vw, 46px); }
  .slide-meta  { font-size: 14px; }
  .hero-btn    { width: 40px; height: 40px; }

  /* Services */
  .hover-card { aspect-ratio: 4 / 3; }

  /* Blog featured más corto */
  .bl-featured { aspect-ratio: 4 / 3; }
  .bl-featured-content { padding: clamp(20px, 4vw, 36px); }

  /* Blog secundarios — 1 columna */
  .bl-secondary-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Proceso — ya tiene query en 960px; sólo ajuste padding */
  .proceso { padding: clamp(60px, 8vw, 100px) 0; }

  /* CTA Section — ya tiene query en 700px */
  .cta-section { grid-template-columns: 1fr; }
  .cta-img     { min-height: 220px; }

  /* Testimonios */
  .testi-title { font-size: clamp(24px, 5vw, 32px); }

  /* Footer */
  .footer { padding: 56px 0 20px; }
  .footer-mail, .footer-phone { font-size: 15px; }
}

/* ── Footer solo 561–700px ── */
@media (min-width: 561px) and (max-width: 700px) {

  .footer-top {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 24px 20px;
  }

  /* Logo — fila 1 completa, centrada */
  .footer-top > div:first-child {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .footer-logo { width: 280px; height: 84px; margin: 0 auto 10px; }
  .footer-tag { font-size: 13px; max-width: 34ch; text-align: center; }

  /* Ubicación — fila 2 col 1, centrada */
  .footer-top > div:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.08);
    padding-right: 16px;
  }
  .footer-top > div:nth-child(2) address { text-align: center; font-style: normal; }

  /* Contacto — fila 2 col 2, centrada */
  .footer-top > div:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 16px;
  }
  .footer-mail-block { display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .footer-social { justify-content: center; }

  /* Navegación — fila 3 completa, links en horizontal */
  .footer-top > div:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 3;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    text-align: center;
  }
  .footer-top > div:nth-child(3) h4 { display: none; }
  .footer-top > div:nth-child(3) ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .footer-top > div:nth-child(3) ul li a { font-size: 13px; opacity: 0.7; }

  .footer-top h4 { font-size: 10px; letter-spacing: 0.08em; margin-bottom: 10px; }
  .footer-mail, .footer-phone { font-size: 13px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-bottom div { gap: 16px; justify-content: center; }
}

/* ── 560px — Móvil estándar ── */
@media (max-width: 560px) {

  /* Nav */
  .nav { padding: 14px 20px; }
  .nav-logo .logo-img { width: 140px; height: 42px; }

  /* Hero */
  .slide-title { font-size: clamp(26px, 8vw, 40px); max-width: 100%; }
  .slide-meta  { font-size: 13px; max-width: 100%; }
  .hero-controls { gap: 8px; }
  .hero-btn { width: 36px; height: 36px; }
  .hero-dot { width: 24px; }

  /* Services */
  .hover-card { aspect-ratio: 3 / 2; }
  .services { padding-top: clamp(56px, 8vw, 100px); padding-bottom: clamp(56px, 8vw, 100px); }

  /* Blog featured */
  .bl-featured { aspect-ratio: 1 / 1; border-radius: 2px; }
  .bl-featured-title { font-size: clamp(20px, 6vw, 28px); }

  /* Blog secundarios */
  .bl-secondary-grid { grid-template-columns: 1fr; }

  /* Proceso */
  .proceso-right { flex-direction: column; }
  .proceso-col-b { margin-top: 0; }
  .proceso-title { font-size: clamp(28px, 7vw, 36px); }

  /* Testimonios — 1 columna */
  .testi-grid { grid-template-columns: 1fr; }
  .testi-card { border-right: none; border-top: 1px solid var(--line-soft); }
  .testi-card:first-child { border-top: none; }
  .testi-inner { min-height: 220px; }

  /* CTA */
  .cta-inner { padding: 48px 24px; }
  .cta-title { font-size: clamp(28px, 7vw, 36px); }

  /* Footer — rediseño móvil */
  .footer { padding: 48px 0 16px; }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  /* Logo + tagline — fila completa centrada */
  .footer-top > div:first-child {
    grid-column: 1 / -1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .footer-logo { width: 160px; height: 48px; margin: 0 auto 12px; }
  .footer-tag { font-size: 13px; max-width: 32ch; text-align: center; }

  /* Ubicación y Navegación — 2 columnas */
  .footer-top > div:nth-child(2) { padding-right: 16px; border-right: 1px solid rgba(255,255,255,0.08); }
  .footer-top > div:nth-child(3) { padding-left: 20px; }

  /* Contacto — fila completa */
  .footer-top > div:nth-child(4) {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .footer-mail-block { display: flex; flex-direction: column; gap: 4px; }
  .footer-mail, .footer-phone { font-size: 13px; }
  .footer-top h4 { font-size: 10px; margin-bottom: 12px; }

  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-bottom div { gap: 16px; justify-content: center; }

  /* Tipografía general */
  .section-head .mono { font-size: 18px !important; }
}

/* ── 400px — Móvil pequeño ── */
@media (max-width: 400px) {

  /* Nav */
  .nav-logo .logo-img { width: 120px; height: 36px; }

  /* Hero */
  .slide-title { font-size: clamp(22px, 9vw, 32px); }
  .hero-controls { gap: 6px; }
  .hero-btn { width: 32px; height: 32px; }

  /* Blog featured */
  .bl-featured { aspect-ratio: 3 / 4; }
  .bl-featured-title { font-size: 20px; }
  .bl-featured-exc  { display: none; }

  /* Proceso */
  .pcard-name { font-size: 13px; }
  .pcard-desc { font-size: 12px; }

  /* Testimonios */
  .testi-quote { font-size: 13px; }
  .testi-inner { min-height: 200px; }

  /* CTA */
  .cta-title  { font-size: clamp(24px, 8vw, 30px); }
  .cta-inner  { padding: 36px 20px; }

  /* Footer */
  .footer-mail, .footer-phone { font-size: 14px; }
  .footer { padding: 44px 0 16px; }
}

/* ── Accesibilidad: prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
