body.page-editorial {
  background-color: var(--color-editorial-bg);
  color: var(--color-dark);
}

.editorial-section {
  padding: 4.5rem 0 6rem 0;
}

.editorial-kicker-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
}

.editorial-kicker {
  color: var(--color-editorial-red);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.editorial-title {
  color: var(--color-dark);
  max-width: 900px;
  margin-bottom: 2.5rem;
}

/* ==========================================================
   LADRILLO TIPOGRÁFICO SUIZO (SVG)
   ========================================================== */
.editorial-title-brick {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  margin: 0 0 2.5rem 0;
}

.editorial-title-brick svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.editorial-title-brick text {
  font-family: 'Cabinet Grotesk', system-ui, sans-serif;
  text-transform: uppercase;
}

.editorial-title-brick .brick-top { font-weight: 900; font-size: 74px; fill: var(--color-dark); }
.editorial-title-brick .brick-mid { font-weight: 800; font-size: 64px; fill: var(--color-editorial-red); }
.editorial-title-brick .brick-bot { font-weight: 900; font-size: 84px; fill: var(--color-dark); }
.editorial-title-brick .brick-h2-text { font-weight: 900; font-size: 60px; fill: var(--color-dark); }
.editorial-title-brick .brick-h2-red { font-weight: 900; font-size: 60px; fill: var(--color-editorial-red); }

/* ==========================================================
   BARRA SIMULADORA DE GOOGLE
   ========================================================== */
.google-mockup-container {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 1000px;
  margin: 2.5rem 0 3.5rem 0;
}

.google-logo {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  user-select: none;
  flex-shrink: 0;
}

.g-blue   { color: #4285F4; }
.g-red    { color: #EA4335; }
.g-yellow { color: #FBBC05; }
.g-green  { color: #34A853; }

.google-search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #dcd9d0;
  border-radius: 50px;
  height: 56px;
  padding: 0 22px 0 26px;
  box-shadow: 0 6px 20px rgba(26, 26, 26, 0.06);
  overflow: hidden;
}

.typing-wrapper {
  position: relative;
  height: 24px;
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.typing-phrase {
  position: absolute;
  left: 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(0.88rem, 1.9vw, 1.05rem);
  font-weight: 700;
  color: var(--color-dark);
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid var(--color-editorial-red);
  width: 0;
  opacity: 0;
}

.phrase-1 { animation: type1 12s steps(21, end) infinite, blinkCursor 0.7s step-end infinite; }
.phrase-2 { animation: type2 12s steps(39, end) infinite, blinkCursor 0.7s step-end infinite; }
.phrase-3 { animation: type3 12s steps(18, end) infinite, blinkCursor 0.7s step-end infinite; }

@keyframes type1 {
  0%        { width: 0; opacity: 1; }
  12%, 26%  { width: 21ch; opacity: 1; }
  32%       { width: 0; opacity: 1; }
  33%, 100% { width: 0; opacity: 0; }
}

@keyframes type2 {
  0%, 33%   { width: 0; opacity: 0; }
  34%       { width: 0; opacity: 1; }
  48%, 60%  { width: 39ch; opacity: 1; }
  65%       { width: 0; opacity: 1; }
  66%, 100% { width: 0; opacity: 0; }
}

@keyframes type3 {
  0%, 66%   { width: 0; opacity: 0; }
  67%       { width: 0; opacity: 1; }
  78%, 92%  { width: 18ch; opacity: 1; }
  99%       { width: 0; opacity: 1; }
  100%      { width: 0; opacity: 0; }
}

@keyframes blinkCursor {
  0%, 100% { border-color: transparent; }
  50%      { border-color: var(--color-editorial-red); }
}

.search-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 12px;
  flex-shrink: 0;
}

/* ==========================================================
   TARJETAS EDITORIALES CON BORDE IZQUIERDO ROJO
   ========================================================== */
.editorial-boxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.editorial-box {
  background-color: var(--color-editorial-box);
  border-left: 6px solid var(--color-editorial-red);
  border-radius: 6px;
  padding: 2.2rem 2.4rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.editorial-box h3 {
  color: var(--color-dark);
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

.editorial-box p {
  color: var(--color-dark);
  font-size: 1.08rem;
  line-height: 1.55;
  font-weight: 400;
}

.editorial-box-featured {
  background-color: var(--color-editorial-box);
  border-left: 7px solid var(--color-editorial-red);
  border-radius: 6px;
  padding: 2.6rem 3rem;
  margin: 3rem 0;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.editorial-box-featured p {
  color: var(--color-dark);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  font-weight: 400;
}

@keyframes unfurlFlag {
  0%   { clip-path: inset(0 100% 0 0); opacity: 0.4; }
  100% { clip-path: inset(0 0 0 0); opacity: 1; }
}

.editorial-box-featured,
.editorial-box {
  animation: unfurlFlag 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.editorial-boxes-grid .editorial-box:nth-child(1) { animation-delay: 0.15s; }
.editorial-boxes-grid .editorial-box:nth-child(2) { animation-delay: 0.35s; }
.editorial-boxes-grid .editorial-box:nth-child(3) { animation-delay: 0.55s; }

/* ==========================================================
   SECCIÓN DEMO MAPS: MÓVIL 3D FLOTANTE Y ANIMADO
   ========================================================== */
.maps-showcase-section {
  margin-top: 5rem;
  padding-top: 4rem;
  padding-bottom: 6rem;
  border-top: 2px solid #dcd9d0;
  perspective: 1000px;
  width: 100%;
}

.maps-showcase-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 5.5rem;
  align-items: center;
  width: 100%;
  max-width: 1336px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.maps-showcase-copy .editorial-kicker {
  display: block;
  margin-bottom: 1rem;
}

.showcase-headline {
  font-family: 'Cabinet Grotesk', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  line-height: 0.98;
  color: var(--color-dark);
  margin-bottom: 1.8rem;
}

.showcase-headline .highlight-red { color: var(--color-editorial-red); }

.showcase-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #333333;
  max-width: 620px;
  margin-bottom: 2.2rem;
}

.maps-phone-wrapper {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.avega-phone {
  position: relative;
  width: 330px;
  height: 620px;
  background: var(--color-dark);
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 35px 70px rgba(26, 26, 26, 0.28), 0 0 0 2px #333333;
  transform: rotateY(12deg) rotateX(8deg) rotateZ(-2deg);
  transform-style: preserve-3d;
  animation: phoneFloat3D 6s ease-in-out infinite;
}

@keyframes phoneFloat3D {
  0%, 100% { transform: rotateY(12deg) rotateX(8deg) rotateZ(-2deg) translateY(0); }
  50%      { transform: rotateY(8deg) rotateX(4deg) rotateZ(-1deg) translateY(-12px); }
}

.avega-phone__island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  background: #0d0d0d;
  border-radius: 999px;
  z-index: 20;
}

.avega-phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #EAE7DF;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.avega-map {
  position: absolute;
  inset: 0;
  background-color: #E5E1D6;
  background-image: radial-gradient(#cfc9ba 1px, transparent 1px);
  background-size: 18px 18px;
}

.avega-map__road {
  position: absolute;
  background: #F5F3EC;
  box-shadow: 0 0 0 1px #d6d1c4;
}

.road-1 { width: 140%; height: 14px; top: 34%; left: -20%; transform: rotate(-14deg); }
.road-2 { width: 12px; height: 120%; top: -10%; left: 54%; transform: rotate(12deg); }
.road-3 { width: 130%; height: 10px; top: 52%; left: -10%; transform: rotate(8deg); }

.avega-pin.pin-comp {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #8c887e;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.avega-pin-you {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
}

.avega-pin-you__pulse {
  width: 18px;
  height: 18px;
  background: var(--color-editorial-red);
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(217, 32, 39, 0.6);
  animation: mapPulse 2.2s infinite;
}

.avega-pin-you__badge {
  margin-top: 5px;
  background: var(--color-dark);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

@keyframes mapPulse {
  0%   { box-shadow: 0 0 0 0 rgba(217, 32, 39, 0.65); }
  70%  { box-shadow: 0 0 0 16px rgba(217, 32, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 32, 39, 0); }
}

.avega-map-search {
  position: relative;
  z-index: 10;
  margin: 52px 14px 0 14px;
  background: #ffffff;
  border-radius: 999px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(26, 26, 26, 0.12);
}

.avega-map-search__terms {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-dark);
}

.avega-map-toast {
  position: relative;
  z-index: 12;
  margin: auto 14px 10px 14px;
  background: var(--color-dark);
  color: #ffffff;
  border-left: 4px solid var(--color-editorial-red);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  animation: toastFloat 4.5s ease-in-out infinite;
}

.avega-map-toast__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--color-editorial-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avega-map-toast__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.avega-map-toast__text strong { font-size: 0.8rem; font-weight: 700; }
.avega-map-toast__text span { font-size: 0.7rem; color: #cfccc4; }

@keyframes toastFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.avega-map-sheet {
  position: relative;
  z-index: 10;
  background: #F5F3EC;
  border-radius: 22px 22px 0 0;
  padding: 10px 14px 18px 14px;
  box-shadow: 0 -8px 24px rgba(26, 26, 26, 0.1);
}

.avega-map-sheet__grab {
  width: 36px;
  height: 4px;
  background: #cfc9ba;
  border-radius: 99px;
  margin: 0 auto 10px auto;
}

.avega-map-sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: #555;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.live-dot {
  color: var(--color-editorial-red);
  display: flex;
  align-items: center;
  gap: 5px;
}

.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-editorial-red);
  display: inline-block;
}

.avega-map-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.avega-result-row.is-you {
  background: #ffffff;
  border: 2px solid var(--color-editorial-red);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 14px rgba(217, 32, 39, 0.12);
  animation: climbToTop 5s cubic-bezier(0.77, 0, 0.175, 1) infinite;
  position: relative;
  z-index: 5;
}

@keyframes climbToTop {
  0%, 25%, 100% {
    transform: translateY(115px) scale(0.97);
    background: #f0ede6;
    border-color: #b5b0a1;
  }
  50% {
    transform: translateY(0) scale(1);
    background: #ffffff;
    border-color: var(--color-editorial-red);
    box-shadow: 0 10px 25px rgba(217, 32, 39, 0.25);
  }
  85% {
    transform: translateY(0) scale(1);
    background: #ffffff;
    border-color: var(--color-editorial-red);
    box-shadow: 0 6px 14px rgba(217, 32, 39, 0.12);
  }
}

.rank-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--color-editorial-red);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: changeNumber 5s infinite;
}

@keyframes changeNumber {
  0%, 25%   { content: "5"; background: #777; }
  50%, 100% { content: "1"; background: var(--color-editorial-red); }
}

.result-info { flex: 1; }
.result-info strong { display: block; font-size: 0.88rem; color: var(--color-dark); }
.result-meta { font-size: 0.74rem; color: #555; display: flex; align-items: center; gap: 4px; }
.result-meta .score { font-weight: 700; color: var(--color-dark); }
.result-meta .stars { color: #FBBC05; letter-spacing: 1px; }

.top-tag {
  background: var(--color-dark);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 7px;
  border-radius: 5px;
  letter-spacing: 0.05em;
  animation: fadeInTag 5s infinite;
}

@keyframes fadeInTag {
  0%, 30%   { opacity: 0; transform: scale(0.8); }
  50%, 100% { opacity: 1; transform: scale(1); }
}

.avega-result-row.is-ghost {
  background: #EAE7DF;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.75;
}

.rank-num { width: 24px; text-align: center; font-size: 0.78rem; font-weight: 700; color: #888; }
.ghost-lines { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.ghost-lines .line-l { width: 72%; height: 8px; background: #d2cec2; border-radius: 4px; }
.ghost-lines .line-s { width: 45%; height: 6px; background: #dcd8cd; border-radius: 4px; }

/* ==========================================================
   ADAPTACIÓN RESPONSIVE DE PÁGINAS INTERIORES
   ========================================================== */
@media (max-width: 1024px) {
  .maps-showcase-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .maps-phone-wrapper {
    width: 100%;
    margin-bottom: 1rem;
  }

  .avega-phone {
    transform: none !important;
    animation: none;
  }

  .maps-showcase-copy {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .showcase-lead {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .editorial-section {
    padding: 2.5rem 0 4rem 0;
  }

  .google-mockup-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .google-search-bar {
    width: 100%;
    padding: 0 16px;
  }

  .editorial-box-featured,
  .editorial-box {
    padding: 1.5rem 1.25rem;
    margin: 1.8rem 0;
    width: 100%;
  }

  .editorial-boxes-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .avega-phone {
    width: 295px;
    height: 580px;
  }
}

/* ==========================================================
   CORRECCIÓN DE ALTURA PARA LAS TARJETAS EDITORIALES
   ========================================================== */
.editorial-boxes-grid {
  align-items: stretch; /* Fuerza a que todas las columnas midan lo mismo de alto */
}

.editorial-box {
  display: flex;
  flex-direction: column;
  height: 100%; /* Obliga a la caja a rellenar toda la celda del grid */
}

/* ==========================================================
   ESTILOS DE LA RÉPLICA EN CÓDIGO PURO (ESTILO LOCALO)
   ========================================================== */
.localo-replica-stage {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 2.5rem auto 3rem auto;
  background-color: #F5F3EC;
  border: 1px solid #dcd9d0;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(26, 26, 26, 0.06);
  overflow: hidden;
}

/* Barra de búsqueda superior interna */
.replica-search-box {
  background: #ffffff;
  border: 1px solid #d4d0c5;
  border-radius: 999px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.replica-search-icon {
  font-size: 0.85rem;
}

.replica-search-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-dark);
}

/* Contenedor de las filas */
.replica-results-container {
  position: relative;
  height: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Estilo base de cada tarjeta de resultado */
.replica-row {
  position: absolute;
  left: 0;
  right: 0;
  height: 62px;
  background: #ffffff;
  border: 1px solid #e0dcd0;
  border-radius: 8px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Número de posición (1, 2, 3) */
.replica-num {
  width: 26px;
  height: 26px;
  background: #e5e1d6;
  color: var(--color-dark);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.replica-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.replica-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.replica-content p em {
  font-style: normal;
  font-size: 0.75rem;
  color: #888888;
  font-weight: 400;
}

/* Líneas simuladas para la competencia (CORREGIDO EL HEIGHT) */
.replica-title-line {
  height: 9px;
  background: #d8d4c9;
  border-radius: 4px;
  margin-bottom: 2px;
}
.w-60 { width: 60%; }
.w-75 { width: 75%; }

.replica-sub-line {
  font-size: 0.8rem;
  color: #FBBC05; /* Color estrella Google Maps */
  letter-spacing: 1px;
}
.replica-sub-line em {
  font-style: normal;
  color: #666666;
  font-size: 0.75rem;
  margin-left: 6px;
  letter-spacing: normal;
}

/* Iconos de acción derecha (Direcciones y Web como en Google Maps) */
.replica-actions {
  display: flex;
  gap: 10px;
}

.r-icon {
  width: 32px;
  height: 32px;
  background: #f0ede6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #4285F4; /* Azul Google */
}

/* --- ANIMACIÓN SINCRONIZADA: ESCALADA 3 -> 2 -> 1 --- */

.item-pos-3 {
  top: 0;
  animation: animRowA 6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes animRowA {
  0%, 52%, 100% { transform: translateY(0); opacity: 0.7; }
  62%, 88%      { transform: translateY(74px); opacity: 0.7; }
}

/* Competidor A: cambia de número 1 a 2 al bajar */
.item-pos-3 .replica-num::after {
  content: "1";
  animation: countRowA 6s infinite;
}

@keyframes countRowA {
  0%, 56%, 100% { content: "1"; }
  58%, 88%      { content: "2"; }
}


.item-pos-2 {
  top: 74px;
  animation: animRowB 6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes animRowB {
  0%, 22%, 100% { transform: translateY(0); opacity: 0.7; }
  32%, 88%      { transform: translateY(74px); opacity: 0.7; }
}

/* Competidor B: cambia de número 2 a 3 al bajar */
.item-pos-2 .replica-num::after {
  content: "2";
  animation: countRowB 6s infinite;
}

@keyframes countRowB {
  0%, 26%, 100% { content: "2"; }
  28%, 88%      { content: "3"; }
}


.item-pos-hero {
  top: 0;
  border: 2px solid var(--color-editorial-red);
  box-shadow: 0 8px 22px rgba(217, 32, 39, 0.15);
  z-index: 10;
  animation: moveHeroSteps 6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes moveHeroSteps {
  0%, 22%, 100% {
    transform: translateY(148px);
    border-color: #dcd9d0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  }
  32%, 52% {
    transform: translateY(74px);
    border-color: #e07a7e;
    box-shadow: 0 6px 16px rgba(217, 32, 39, 0.1);
  }
  62%, 88% {
    transform: translateY(0);
    border-color: var(--color-editorial-red);
    box-shadow: 0 10px 24px rgba(217, 32, 39, 0.22);
  }
}

.hero-num {
  background: var(--color-editorial-red) !important;
  color: #ffffff !important;
}

/* Sincronización del número de tu tarjeta principal (3 -> 2 -> 1) */
.item-pos-hero .replica-num::after {
  content: "3";
  animation: countRank 6s infinite;
}

@keyframes countRank {
  0%, 26%, 100% { content: "3"; }
  28%, 56%      { content: "2"; }
  58%, 88%      { content: "1"; }
}

.active-dir, .active-web {
  background: #e8f0fe;
  color: #1a73e8;
}
/* ==========================================================
   ESTILOS DEL CONTENEDOR DOBLE (50% / 50%)
   ========================================================== */
.editorial-dual-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 1336px;
  margin: 2.5rem auto 3rem auto;
  align-items: stretch;
}

.editorial-dual-stage .localo-replica-stage {
  max-width: 100%;
  margin: 0;
  height: 100%;
  box-sizing: border-box;
}

/* ==========================================================
   ESTILOS DE LA RÉPLICA DE ANIMACIÓN (IZQUIERDA)
   ========================================================== */
.localo-replica-stage {
  position: relative;
  width: 100%;
  background-color: #F5F3EC;
  border: 1px solid #dcd9d0;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(26, 26, 26, 0.06);
  overflow: hidden;
}

.replica-search-box {
  background: #ffffff;
  border: 1px solid #d4d0c5;
  border-radius: 999px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.replica-search-icon {
  font-size: 0.85rem;
}

.replica-search-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-dark);
}

.replica-results-container {
  position: relative;
  height: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.replica-row {
  position: absolute;
  left: 0;
  right: 0;
  height: 62px;
  background: #ffffff;
  border: 1px solid #e0dcd0;
  border-radius: 8px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.replica-num {
  width: 26px;
  height: 26px;
  background: #e5e1d6;
  color: var(--color-dark);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.replica-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.replica-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.replica-content p em {
  font-style: normal;
  font-size: 0.75rem;
  color: #888888;
  font-weight: 400;
}

.replica-title-line {
  height: 9px;
  background: #d8d4c9;
  border-radius: 4px;
  margin-bottom: 2px;
}
.w-60 { width: 60%; }
.w-75 { width: 75%; }

.replica-sub-line {
  font-size: 0.8rem;
  color: #FBBC05;
  letter-spacing: 1px;
}

.replica-actions {
  display: flex;
  gap: 10px;
}

.r-icon {
  width: 32px;
  height: 32px;
  background: #f0ede6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #4285F4;
}

/* Animaciones y saltos de posición */
.item-pos-3 {
  top: 0;
  animation: animRowA 6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes animRowA {
  0%, 52%, 100% { transform: translateY(0); opacity: 0.7; }
  62%, 88%      { transform: translateY(74px); opacity: 0.7; }
}
.item-pos-3 .replica-num::after {
  content: "1";
  animation: countRowA 6s infinite;
}
@keyframes countRowA {
  0%, 56%, 100% { content: "1"; }
  58%, 88%      { content: "2"; }
}

.item-pos-2 {
  top: 74px;
  animation: animRowB 6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes animRowB {
  0%, 22%, 100% { transform: translateY(0); opacity: 0.7; }
  32%, 88%      { transform: translateY(74px); opacity: 0.7; }
}
.item-pos-2 .replica-num::after {
  content: "2";
  animation: countRowB 6s infinite;
}
@keyframes countRowB {
  0%, 26%, 100% { content: "2"; }
  28%, 88%      { content: "3"; }
}

.item-pos-hero {
  top: 0;
  border: 2px solid var(--color-editorial-red);
  box-shadow: 0 8px 22px rgba(217, 32, 39, 0.15);
  z-index: 10;
  animation: moveHeroSteps 6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes moveHeroSteps {
  0%, 22%, 100% {
    transform: translateY(148px);
    border-color: #dcd9d0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  }
  32%, 52% {
    transform: translateY(74px);
    border-color: #e07a7e;
    box-shadow: 0 6px 16px rgba(217, 32, 39, 0.1);
  }
  62%, 88% {
    transform: translateY(0);
    border-color: var(--color-editorial-red);
    box-shadow: 0 10px 24px rgba(217, 32, 39, 0.22);
  }
}
.hero-num {
  background: var(--color-editorial-red) !important;
  color: #ffffff !important;
}
.item-pos-hero .replica-num::after {
  content: "3";
  animation: countRank 6s infinite;
}
@keyframes countRank {
  0%, 26%, 100% { content: "3"; }
  28%, 56%      { content: "2"; }
  58%, 88%      { content: "1"; }
}
.active-dir, .active-web {
  background: #e8f0fe;
  color: #1a73e8;
}

/* ==========================================================
   CAJA DE RESEÑAS REALES (DERECHA)
   ========================================================== */
.avega-reviews-box {
  background-color: #F5F3EC;
  border: 1px solid #dcd9d0;
  border-left: 6px solid var(--color-dark);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(26, 26, 26, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.reviews-box-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2dfd7;
}

.google-mini-badge {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: 1px solid #dcd9d0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #4285F4;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.reviews-title-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reviews-title-info strong {
  font-size: 0.95rem;
  color: var(--color-dark);
}

.reviews-title-info span {
  font-size: 0.8rem;
  color: #FBBC05;
}

.reviews-title-info span strong {
  color: var(--color-dark);
}

.reviews-title-info span em {
  font-style: normal;
  color: #666666;
  font-weight: 400;
}

.review-testimonial-card {
  background: #ffffff;
  border: 1px solid #e0dcd0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 34px;
  height: 34px;
  background: var(--color-editorial-red);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-author div {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  font-size: 0.85rem;
  color: var(--color-dark);
}

.review-time {
  font-size: 0.72rem;
  color: #777777;
}

.review-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #333333;
  margin: 0;
  font-style: italic;
}

.review-footer-action {
  display: flex;
  justify-content: flex-end;
}

.verified-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #34A853;
  background: #e6f4ea;
  padding: 3px 8px;
  border-radius: 4px;
}

.interactive-review-prompt {
  background: #ffffff;
  border: 1px dashed #c5c0b4;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.interactive-review-prompt span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-dark);
}

.btn-write-review {
  background: var(--color-editorial-red);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-write-review:hover {
  opacity: 0.85;
}

/* Responsive para pantallas medianas y móviles */
@media (max-width: 960px) {
  .editorial-dual-stage {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
.technical-section-spacing {
  margin-top: 4rem;
  margin-bottom: 3rem;
}

.technical-header {
  margin-bottom: 1.5rem;
  border-left: 5px solid var(--color-editorial-red);
  padding-left: 16px;
}

.technical-subtitle {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-editorial-red);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.technical-main-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}