/*
  AW-RiseCR · detalles v7.1
  Se carga después de awrise-performance-v4.css. No cambia el estilo base:
  agrega el menú de servicios, la grilla de servicios, tarjetas flotantes,
  nota a mano y las piezas de las páginas de servicio nuevas.
*/

/* ---------- Menú: Servicios desplegable ---------- */

.nav-group {
  position: relative;
}

.nav-drop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #aab8ca;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  transition: color 180ms ease;
}

.nav-drop:hover,
.nav-drop[aria-expanded="true"],
.nav-group.is-active .nav-drop {
  color: #fff;
}

.nav-drop svg {
  width: 14px;
  height: 14px;
  transition: transform 200ms ease;
}

.nav-drop[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 24px);
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 580px;
  padding: 10px;
  border: 1px solid rgba(177, 218, 255, 0.14);
  border-radius: 24px;
  background: rgba(7, 14, 28, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(1.3);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-menu::before {
  position: absolute;
  top: -24px;
  right: 0;
  left: 0;
  height: 24px;
  content: "";
}

.nav-group.is-open .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mg-header .site-nav .nav-menu a {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  color: #eaf5ff;
  font-size: 0.86rem;
}

.site-nav .nav-menu a::after {
  display: none;
}

.mg-header .site-nav .nav-menu a:hover,
.mg-header .site-nav .nav-menu a.is-active {
  background: rgba(70, 156, 255, 0.1);
}

.nav-menu a > span {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(180, 224, 255, 0.16);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(78, 182, 255, 0.19), rgba(100, 77, 255, 0.12));
  color: #83d8ff;
}

.nav-menu svg {
  width: 19px;
  height: 19px;
}

.nav-menu strong {
  font-weight: 650;
}

.nav-menu small {
  color: #7f93ab;
  font-size: 0.72rem;
  line-height: 1.35;
}

.nav-menu .nav-menu-product {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(186, 220, 255, 0.1);
  border-radius: 0 0 16px 16px;
}

@media (max-width: 820px) {
  .nav-group {
    border-bottom: 1px solid var(--line);
  }

  .nav-drop {
    width: 100%;
    justify-content: space-between;
    padding: 18px 4px;
    color: #fff;
    font-size: 1.05rem;
  }

  .nav-menu {
    position: static;
    display: none;
    grid-template-columns: 1fr;
    width: auto;
    margin: 0 0 12px;
    padding: 4px;
    border: 0;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-menu::before {
    display: none;
  }

  .nav-group.is-open .nav-menu {
    display: grid;
    transform: none;
  }

  .mg-header .site-nav .nav-menu a {
    padding: 10px;
    border-bottom: 0;
    font-size: 0.95rem;
  }

  .nav-menu .nav-menu-product {
    border-radius: 16px;
  }
}

/* ---------- Tarjetas flotantes (detalle de la referencia) ---------- */

.aw-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(195, 228, 255, 0.2);
  border-radius: 17px;
  background: rgba(12, 24, 46, 0.78);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14), 0 18px 44px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px) saturate(1.3);
  animation: aw-flota 6s ease-in-out infinite;
}

.aw-chip:nth-of-type(2n) {
  animation-delay: -3s;
}

.aw-chip > i {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(180, 224, 255, 0.16);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(78, 182, 255, 0.22), rgba(100, 77, 255, 0.14));
  color: #83d8ff;
  font-style: normal;
}

.aw-chip > i.is-whatsapp {
  background: rgba(37, 211, 102, 0.14);
  color: #4fe08a;
}

.aw-chip svg {
  width: 17px;
  height: 17px;
}

.aw-chip b {
  display: block;
  color: #f4f8ff;
  font-size: 0.74rem;
  line-height: 1.25;
}

.aw-chip small {
  display: block;
  color: #8ea3bc;
  font-size: 0.64rem;
  line-height: 1.3;
}

.aw-chip .aw-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  margin-left: 2px;
}

.aw-chip .aw-bars span {
  width: 5px;
  border-radius: 2px;
  background: linear-gradient(to top, #3aa2ff, #83d8ff);
}

.aw-chip .aw-bars span:nth-child(1) { height: 30%; }
.aw-chip .aw-bars span:nth-child(2) { height: 50%; }
.aw-chip .aw-bars span:nth-child(3) { height: 70%; }
.aw-chip .aw-bars span:nth-child(4) { height: 100%; }

.aw-chip.is-tl { top: 10%; left: 0; }
.aw-chip.is-tr { top: 16%; right: 0; }
.aw-chip.is-ml { top: 48%; left: -2%; }
.aw-chip.is-bl { bottom: 14%; left: 2%; }
.aw-chip.is-br { right: 0; bottom: 20%; }

@keyframes aw-flota {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .aw-chip {
    animation: none;
  }
}

@media (max-width: 600px) {
  .aw-chip {
    padding: 8px 11px 8px 8px;
  }

  .aw-chip > i {
    width: 28px;
    height: 28px;
  }

  .aw-chip small {
    display: none;
  }
}

/* Nota escrita a mano */
.aw-note {
  position: absolute;
  z-index: 5;
  top: 2%;
  right: 4%;
  margin: 0;
  color: #cfe9ff;
  font-family: "Caveat", "Segoe Print", cursive;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  transform: rotate(6deg);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.aw-note svg {
  width: 52px;
  height: 44px;
  margin: 4px 0 0 20px;
  color: #6ec8ff;
}

@media (max-width: 600px) {
  .aw-note {
    font-size: 1.3rem;
  }

  .aw-note svg {
    display: none;
  }
}

/* ---------- Portada: servicios categorizados ---------- */

.aw-services {
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .aw-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1050px) {
  .aw-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.aw-service {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--mg-line);
  border-radius: 28px;
  background: radial-gradient(circle at 100% 0, var(--service-glow, rgba(54, 137, 255, 0.18)), transparent 48%), var(--mg-panel);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09), 0 24px 70px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(22px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.aw-service:hover {
  border-color: var(--mg-line-bright);
  transform: translateY(-6px);
}

.aw-service .mg-card-icon {
  margin-bottom: 24px;
}

.aw-service h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.45rem;
}

.aw-service p {
  flex: 1;
  margin: 0 0 22px;
  font-size: 0.82rem;
  line-height: 1.6;
}

.aw-service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(186, 220, 255, 0.1);
}

.aw-price {
  color: #7f93ab;
  font-size: 0.7rem;
}

.aw-price b {
  display: block;
  color: #fff;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.aw-service-foot > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8fddff;
  font-size: 0.76rem;
  font-weight: 650;
}

.aw-service-foot b.aw-go {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(185, 224, 255, 0.18);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, color 0.3s ease;
}

.aw-service:hover b.aw-go {
  background: linear-gradient(135deg, #248df8, #665cf6);
  color: #fff;
}

.aw-service-web { --service-glow: rgba(54, 137, 255, 0.22); }
.aw-service-seo { --service-glow: rgba(68, 235, 204, 0.16); }
.aw-service-shop { --service-glow: rgba(140, 123, 255, 0.2); }
.aw-service-social { --service-glow: rgba(255, 120, 190, 0.14); }
.aw-service-soft { --service-glow: rgba(82, 245, 221, 0.14); }

/* Tarjeta "no sé cuál necesito" */
.aw-service-guide {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
}

.aw-service-guide .mg-card-icon {
  background: transparent;
}

/* ---------- Franja de producto propio ---------- */

.aw-product {
  position: relative;
  display: grid;
  gap: 30px;
  align-items: center;
  margin-top: 18px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(104, 222, 255, 0.28);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 0%, rgba(68, 224, 203, 0.18), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(100, 77, 255, 0.22), transparent 50%),
    rgba(12, 22, 42, 0.86);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 38px 100px rgba(0, 0, 0, 0.35);
}

.aw-product-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
}

.aw-product-art img {
  width: min(210px, 60%);
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5));
}

.aw-product-art .aw-chip.is-tr { top: 8%; right: 2%; }
.aw-product-art .aw-chip.is-bl { bottom: 8%; left: 2%; }

.aw-product h3 {
  margin: 12px 0 10px;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.aw-product p {
  max-width: 520px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.aw-product .button-row {
  margin-top: 24px;
}

.aw-product .aw-price {
  align-self: center;
}

@media (min-width: 900px) {
  .aw-product {
    grid-template-columns: 300px 1fr;
    padding: 20px 44px 20px 20px;
  }
}

/* ---------- Por qué AW-RiseCR ---------- */

.aw-why {
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .aw-why {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1050px) {
  .aw-why {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.aw-why .mg-glass-card {
  min-height: 0;
}

.aw-why .mg-glass-card h3 {
  font-size: 1.2rem;
}

/* ---------- Páginas de servicio ---------- */

.aw-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  color: #7f93ab;
  font-size: 0.74rem;
  list-style: none;
}

.aw-crumbs li + li::before {
  margin-right: 8px;
  color: #4d5f77;
  content: "/";
}

.aw-crumbs a:hover {
  color: #fff;
}

/* Arte de portada: pantallas de cristal sobre el fondo de ondas */
.aw-art {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
}

.aw-art::before {
  position: absolute;
  inset: 6% 0;
  z-index: 0;
  border-radius: 36px;
  background: url("glass-hero-bg-v2-optimized.webp") 70% 60% / cover;
  opacity: 0.85;
  mask-image: radial-gradient(ellipse at 60% 55%, #000 45%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 55%, #000 45%, transparent 78%);
  content: "";
}

.aw-screen {
  position: relative;
  z-index: 2;
  width: min(390px, 88%);
  padding: 16px;
  border: 1px solid rgba(195, 228, 255, 0.2);
  border-radius: 24px;
  background: rgba(10, 20, 40, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14), 0 40px 90px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px) saturate(1.3);
  color: #eaf5ff;
  font-size: 0.78rem;
}

.aw-screen-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
}

.aw-screen-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(186, 220, 255, 0.2);
}

.aw-screen-bar span {
  flex: 1;
  margin-left: 8px;
  padding: 5px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: #8ea3bc;
  font-size: 0.66rem;
}

/* SEO: resultados de búsqueda */
.aw-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(186, 220, 255, 0.14);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
}

.aw-search svg {
  width: 15px;
  height: 15px;
  color: #8ea3bc;
}

.aw-result {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
}

.aw-result.is-first {
  border: 1px solid rgba(110, 200, 255, 0.4);
  background: linear-gradient(135deg, rgba(58, 162, 255, 0.16), rgba(100, 77, 255, 0.1));
}

.aw-result small {
  display: block;
  color: #8ea3bc;
  font-size: 0.62rem;
}

.aw-result strong {
  display: block;
  margin: 2px 0;
  color: #8fd3ff;
  font-size: 0.86rem;
}

.aw-result em {
  color: #ffd17c;
  font-size: 0.66rem;
  font-style: normal;
  letter-spacing: 1px;
}

.aw-result.is-ghost i {
  display: block;
  height: 8px;
  margin-top: 6px;
  border-radius: 4px;
  background: rgba(186, 220, 255, 0.12);
}

.aw-result.is-ghost i:first-child {
  width: 40%;
}

.aw-result.is-ghost i:last-child {
  width: 75%;
}

.aw-map {
  position: relative;
  height: 90px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(115deg, transparent 46%, rgba(186, 220, 255, 0.12) 47% 49%, transparent 50%),
    linear-gradient(25deg, transparent 58%, rgba(186, 220, 255, 0.1) 59% 61%, transparent 62%),
    radial-gradient(circle at 30% 70%, rgba(68, 235, 204, 0.14), transparent 30%),
    rgba(255, 255, 255, 0.04);
}

.aw-map svg {
  position: absolute;
  top: 26%;
  left: 56%;
  width: 26px;
  height: 26px;
  color: #6ec8ff;
  filter: drop-shadow(0 6px 12px rgba(58, 162, 255, 0.5));
}

/* Tienda: producto + carrito */
.aw-shop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.aw-product-tile {
  padding: 8px;
  border: 1px solid rgba(186, 220, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.aw-product-tile i {
  display: block;
  aspect-ratio: 1;
  border-radius: 11px;
  background: linear-gradient(150deg, #3aa2ff, #665cf6);
}

.aw-product-tile:nth-child(2) i {
  background: linear-gradient(150deg, #52f5dd, #1683ff);
}

.aw-product-tile:nth-child(3) i {
  background: linear-gradient(150deg, #8c7bff, #ff78be);
}

.aw-product-tile:nth-child(4) i {
  background: linear-gradient(150deg, #ffd17c, #ff8a3d);
}

.aw-product-tile b {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
}

.aw-product-tile span {
  display: flex;
  justify-content: space-between;
  color: #8ea3bc;
  font-size: 0.66rem;
}

.aw-product-tile span em {
  padding: 0 7px;
  border-radius: 99px;
  background: linear-gradient(135deg, #248df8, #665cf6);
  color: #fff;
  font-style: normal;
}

/* Redes: post + calendario */
.aw-post i {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 209, 124, 0.6), transparent 30%),
    linear-gradient(150deg, #665cf6, #1683ff 60%, #52f5dd);
}

.aw-post-meta {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  color: #8ea3bc;
  font-size: 0.72rem;
}

.aw-post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.aw-post-meta svg {
  width: 14px;
  height: 14px;
}

.aw-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(186, 220, 255, 0.1);
  text-align: center;
}

.aw-week small {
  color: #6f829a;
  font-size: 0.6rem;
}

.aw-week i {
  aspect-ratio: 1;
  border: 1px dashed rgba(186, 220, 255, 0.2);
  border-radius: 7px;
}

.aw-week i.is-on {
  border: 0;
  background: linear-gradient(135deg, #248df8, #665cf6);
}

/* Software: tabla con estados */
.aw-table > div {
  display: grid;
  grid-template-columns: 1fr 40px 96px;
  gap: 8px;
  align-items: center;
  padding: 10px 6px;
}

.aw-table > div + div {
  border-top: 1px solid rgba(186, 220, 255, 0.08);
}

.aw-table .is-head {
  color: #6f829a;
  font-size: 0.64rem;
}

.aw-table em {
  font-style: normal;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.aw-status {
  justify-self: start;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.62rem;
  font-weight: 650;
  white-space: nowrap;
}

.aw-status.is-ok {
  border: 1px solid rgba(79, 224, 138, 0.4);
  color: #7ee6a5;
}

.aw-status.is-low {
  border: 1px dashed rgba(255, 209, 124, 0.55);
  color: #ffd17c;
}

.aw-status.is-out {
  border: 1px solid rgba(255, 120, 120, 0.45);
  color: #ff9a9a;
}

/* Tipos de servicio con precio */
.aw-variants {
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .aw-variants {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1050px) {
  .aw-variants {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.aw-variants .mg-glass-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.aw-variants .mg-glass-card h3 {
  font-size: 1.25rem;
}

.aw-variants .mg-glass-card p {
  flex: 1;
  margin-bottom: 20px;
}

.aw-variant-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(186, 220, 255, 0.1);
}

.aw-variant-foot a {
  color: #8fddff;
  font-size: 0.74rem;
  font-weight: 650;
  white-space: nowrap;
}

/* Cruces: "¿Necesitas...?" */
.aw-cross {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

@media (min-width: 800px) {
  .aw-cross {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.aw-cross a {
  display: grid;
  grid-template-columns: 46px 1fr 40px;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid rgba(104, 222, 255, 0.22);
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(36, 141, 248, 0.14), rgba(102, 92, 246, 0.08)), var(--mg-panel);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.aw-cross a:hover {
  border-color: var(--mg-line-bright);
  transform: translateY(-3px);
}

.aw-cross .mg-card-icon {
  width: 46px;
  height: 46px;
  margin: 0;
}

.aw-cross strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.aw-cross small {
  display: block;
  color: #8ea3bc;
  font-size: 0.76rem;
  line-height: 1.45;
}

.aw-cross b {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(185, 224, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #8fddff;
}

/* Beneficios en dos columnas con ilustración */
.aw-features {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 980px) {
  .aw-features {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}

.aw-feature-list {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(186, 220, 255, 0.1);
  list-style: none;
}

.aw-feature-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(186, 220, 255, 0.1);
}

.aw-feature-list .mg-card-icon {
  width: 46px;
  height: 46px;
  margin: 0;
}

.aw-feature-list h3 {
  margin: 2px 0 4px;
  color: #fff;
  font-size: 1.1rem;
}

.aw-feature-list p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

/* Precio a cotizar: filas tipo recibo */
.aw-quote {
  display: grid;
  margin: 0;
  padding: 6px 26px;
  border: 1px solid var(--mg-line);
  border-radius: 28px;
  background: var(--mg-panel);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.aw-quote > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
  align-items: baseline;
  padding: 18px 0;
}

.aw-quote > div + div {
  border-top: 1px dashed rgba(186, 220, 255, 0.14);
}

.aw-quote dt {
  color: #fff;
  font-weight: 650;
}

.aw-quote dd {
  grid-row: span 2;
  margin: 0;
  color: #8fddff;
  font-size: 0.8rem;
  font-weight: 650;
  text-align: right;
}

.aw-quote .aw-quote-note {
  grid-column: 1;
  color: #8ea3bc;
  font-size: 0.78rem;
}

.aw-two {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 980px) {
  .aw-two {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
  }
}

/* Las migas siguen la alineación del texto de la portada */
@media (max-width: 1019px) {
  .mg-subpage-copy .aw-crumbs,
  .mg-hero-copy .aw-crumbs {
    justify-content: center;
  }
}

/* Menú del celular: fondo casi opaco para que no se lea el texto de atrás */
@media (max-width: 820px) {
  .mg-header .site-nav {
    background: rgba(7, 14, 28, 0.985);
  }
}

/* Fotos reales dentro de las pantallas ilustradas */
.aw-product-tile img,
.aw-post img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 11px;
}

.aw-post img {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
}

.aw-result-foto {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
}

.aw-result-foto img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.aw-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.aw-item img {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 8px;
}

.mg-mini-project > span.aw-mini-thumb {
  flex: 0 0 auto;
  background-position: top center;
  background-size: cover;
}

/* ---------- Quiénes somos ---------- */

/* Editor de código en la portada: el sueño escrito como programa */
.aw-code {
  font-family: "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 0.74rem;
  line-height: 1.9;
}

.aw-code p {
  margin: 0;
  padding-left: 30px;
  text-indent: -30px;
  white-space: pre-wrap;
}

.aw-code p::before {
  display: inline-block;
  width: 30px;
  color: #4d5f77;
  text-indent: 0;
  content: attr(data-l);
}

.aw-code .k { color: #b39cff; }
.aw-code .s { color: #7ee6c8; }
.aw-code .c { color: #6f829a; }
.aw-code .f { color: #83d8ff; }

.aw-code .aw-cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: #83d8ff;
  animation: aw-parpadeo 1.1s steps(1) infinite;
}

@keyframes aw-parpadeo {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .aw-code .aw-cursor {
    animation: none;
  }
}

/* Línea de tiempo de la trayectoria */
.aw-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etapa;
}

.aw-timeline::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 21px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(110, 200, 255, 0.5), rgba(102, 92, 246, 0.25));
  content: "";
}

.aw-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  counter-increment: etapa;
}

.aw-timeline li::before {
  position: relative;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(116, 210, 255, 0.35);
  border-radius: 14px;
  background: #0b1426;
  color: #70d2ff;
  font-size: 0.72rem;
  font-weight: 750;
  content: "0" counter(etapa);
}

.aw-timeline .mg-glass-card {
  min-height: 0;
}

.aw-timeline .mg-glass-card > span {
  color: #6ed3ff;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.aw-timeline .mg-glass-card h3 {
  margin-top: 8px;
  font-size: 1.3rem;
}

.aw-timeline li.is-now::before {
  border: 0;
  background: linear-gradient(135deg, #248df8, #665cf6);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(58, 162, 255, 0.12);
}

/* Carta del fundador */
.aw-letter {
  position: relative;
}

.aw-letter blockquote {
  font-size: clamp(1.4rem, 5vw, 2.6rem);
}

.aw-sign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.aw-sign img {
  width: 54px;
  height: 54px;
  padding: 6px;
  border: 1px solid rgba(186, 220, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  object-fit: contain;
}

.aw-sign strong {
  display: block;
  color: #fff;
}

.aw-sign small {
  color: #8ea3bc;
  font-size: 0.74rem;
}

.aw-sign .aw-hand {
  margin-left: auto;
  color: #cfe9ff;
  font-family: "Caveat", "Segoe Print", cursive;
  font-size: 1.9rem;
  transform: rotate(-4deg);
}

@media (max-width: 600px) {
  .aw-sign .aw-hand {
    display: none;
  }
}

@media (min-width: 980px) {
  .aw-sticky {
    position: sticky;
    top: 120px;
  }
}

/* ---------- Botón de idioma ---------- */
.site-nav .aw-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(185, 224, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #cfe9ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.site-nav .aw-lang::after {
  display: none;
}

.site-nav .aw-lang svg {
  width: 15px;
  height: 15px;
  color: #83d8ff;
}

.site-nav .aw-lang:hover {
  border-color: var(--mg-line-bright);
  color: #fff;
}

@media (max-width: 820px) {
  .mg-header .site-nav .aw-lang {
    justify-content: center;
    margin-top: 16px;
    padding: 13px 16px;
    border: 1px solid rgba(185, 224, 255, 0.18);
    font-size: 0.9rem;
  }
}

/* ---------- Animación de apertura ---------- */

/* Tapa la página desde el primer instante mientras carga la animación.
   Si el JS no llega, se retira sola a los 6 segundos. */
html.aw-intro:not(.aw-intro-activa)::after {
  position: fixed;
  z-index: 2147483646;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(38, 112, 255, 0.2), transparent 42%), #050912;
  content: "";
  animation: aw-intro-seguro 0.4s ease 6s forwards;
}

@keyframes aw-intro-seguro {
  to { opacity: 0; visibility: hidden; }
}

html.aw-intro body {
  overflow: hidden;
}

#aw-intro {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(38, 112, 255, 0.22), transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(102, 92, 246, 0.14), transparent 50%),
    #050912;
  clip-path: inset(0 0 0% 0);
  cursor: pointer;
}

#aw-intro canvas {
  position: absolute;
  inset: 0;
}

.aw-intro-marca {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: -4vh;
  text-align: center;
}

.aw-intro-logo-caja {
  position: relative;
  width: min(230px, 52vw);
  aspect-ratio: 1;
}

.aw-intro-logo {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.aw-intro-scan {
  position: absolute;
  left: -8%;
  width: 116%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #bfe6ff, #fff, #bfe6ff, transparent);
  box-shadow: 0 0 18px 4px rgba(110, 200, 255, 0.55);
  opacity: 0;
}

.aw-intro-nombre {
  margin: 6px 0 0;
  color: #f4f8ff;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.aw-intro-nombre span {
  display: inline-block;
  opacity: 0;
}

.aw-intro-frase {
  margin: 0;
  color: #8ea3bc;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
}

.aw-intro-saltar {
  position: absolute;
  bottom: calc(26px + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  margin: 0;
  color: #4f6178;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-align: center;
}

/* ---------- Carrusel de proyectos automático ---------- */
/* Mientras avanza solo, el imán de posición se apaga para que el movimiento sea continuo */
.mg-home-projects.aw-auto {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

/* En computadora las tarjetas van en fila: las copias del carrusel sobran */
@media (min-width: 1020px) {
  .mg-home-projects .aw-clon {
    display: none;
  }
}

/* ---------- Portada comercial: titular, precio de referencia y casos ---------- */
/* Escala de títulos de todo el sitio: el H1 de cada héroe tiene el mismo tamaño
   en todas las páginas y los títulos de sección (H2) quedan un paso más abajo */
.mg-page .mg-home-copy h1,
.mg-page .mg-subpage-hero h1,
.mg-page .mg-hero-copy h1 {
  font-size: clamp(2.2rem, 9vw, 3rem);
  line-height: 1.02;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.mg-page .mg-heading h2 {
  font-size: clamp(1.75rem, 7.4vw, 2.2rem);
  line-height: 1.06;
}

.mg-page .mg-contact-panel h2 {
  font-size: clamp(1.75rem, 7.4vw, 2.2rem);
}

.mg-page .mg-story-panel blockquote {
  font-size: clamp(1.45rem, 6vw, 2.3rem);
}

@media (min-width: 700px) {
  .mg-page .mg-home-copy h1,
  .mg-page .mg-subpage-hero h1,
  .mg-page .mg-hero-copy h1 {
    font-size: clamp(3rem, 5vw, 3.9rem);
  }

  .mg-page .mg-heading h2,
  .mg-page .mg-contact-panel h2 {
    font-size: clamp(2.1rem, 3.4vw, 2.75rem);
  }
}

/* Una palabra larga en el titular no debe ensanchar la columna del héroe */
.mg-home-grid > *,
.mg-subpage-grid > *,
.mg-hero-grid > * {
  min-width: 0;
}

.aw-hero-price,
.aw-form-price {
  margin: 18px 0 0;
  color: #8ea3bc;
  font-size: 0.82rem;
  line-height: 1.5;
}

.mg-home-copy > .aw-hero-price {
  margin-top: 18px;
  font-size: 0.82rem;
}

.aw-hero-price b,
.aw-form-price b {
  color: #fff;
}

.aw-hero-price span {
  display: block;
  color: #6f849c;
  font-size: 0.74rem;
}

.aw-form-price {
  padding: 11px 14px;
  border: 1px solid rgba(183, 221, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.78rem;
}

.mg-contact-card label small {
  color: #6f849c;
  font-weight: 500;
}

.mg-home-project .mg-home-project-body p + p {
  margin-top: -10px;
}

.aw-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.aw-case-tags li {
  padding: 5px 9px;
  border: 1px solid rgba(120, 213, 255, 0.18);
  border-radius: 999px;
  color: #a9c4dc;
  font-size: 0.62rem;
  font-weight: 650;
}

.aw-contact-actions {
  position: relative;
}

/* ---------- Landing: diseño web en Costa Rica ---------- */
.aw-cross a.aw-cross-wide {
  grid-column: 1 / -1;
}

.aw-lp-price {
  display: grid;
  gap: 2px;
  max-width: 420px;
  margin: 20px auto 0;
  padding: 12px 16px;
  border: 1px solid rgba(104, 222, 255, 0.22);
  border-radius: 18px;
  background: rgba(36, 141, 248, 0.08);
  text-align: left;
}

.aw-lp-price span {
  color: #8ea3bc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aw-lp-price strong {
  color: #fff;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.aw-lp-price small {
  color: #8ea3bc;
  font-size: 0.8rem;
  line-height: 1.5;
}

.aw-lp-wa {
  margin: 16px 0 0;
  color: #8ea3bc;
  font-size: 0.85rem;
}

.aw-lp-wa a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #72d2ff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(114, 210, 255, 0.3);
  text-underline-offset: 3px;
}

.aw-lp-wa svg {
  width: 16px;
  height: 16px;
}

.aw-hero-price a {
  color: #72d2ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 1020px) {
  .aw-lp-price {
    margin-left: 0;
  }
}

.aw-lp-groups,
.aw-lp-benefits {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aw-lp-groups .mg-glass-card h3 {
  margin: 14px 0 12px;
}

.aw-lp-checks {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aw-lp-checks li {
  position: relative;
  padding-left: 22px;
  color: #b6c7d9;
  font-size: 0.9rem;
  line-height: 1.5;
}

.aw-lp-checks li::before {
  position: absolute;
  top: 0.55em;
  left: 2px;
  width: 9px;
  height: 5px;
  border-bottom: 2px solid #6fd3ff;
  border-left: 2px solid #6fd3ff;
  transform: rotate(-45deg);
  content: "";
}

.aw-lp-benefits li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--mg-line);
  border-radius: 20px;
  background: var(--mg-panel);
}

.aw-lp-benefits h3 {
  margin: 2px 0 4px;
  color: #fff;
  font-size: 1.02rem;
}

.aw-lp-benefits p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

@media (min-width: 700px) {
  .aw-lp-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mg-process-track.aw-process-6 {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 18px;
  }

  .mg-process-track.aw-process-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1020px) {
  .aw-lp-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mg-process-track.aw-process-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

.aw-form-note {
  color: #6f849c;
  font-size: 0.75rem;
}

.aw-lp-next {
  display: grid;
  align-content: start;
  gap: 14px;
}

.aw-lp-next ol {
  display: grid;
  gap: 14px;
  margin: 6px 0 4px;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}

.aw-lp-next li {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
  counter-increment: paso;
}

.aw-lp-next li::before {
  display: grid;
  grid-row: span 2;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(128, 209, 255, 0.2);
  border-radius: 11px;
  background: rgba(15, 35, 59, 0.88);
  color: #70d4ff;
  font-size: 0.7rem;
  content: "0" counter(paso);
}

.aw-lp-next li b {
  color: #fff;
}

.aw-lp-next li span,
.aw-lp-next p {
  margin: 0;
  color: #8ea3bc;
  font-size: 0.86rem;
}

.aw-thanks-hero {
  min-height: auto;
}

/* Plan recomendado: un solo precio en lugar del par pago inicial + mensualidad */
.mg-price-pair.aw-price-single {
  display: flex;
}

.aw-plan-note {
  margin: 14px 0 22px;
  color: #8ea3bc;
  font-size: 0.82rem;
  line-height: 1.55;
}

@media (min-width: 1020px) {
  .mg-hero-copy .aw-lp-price {
    margin-left: 0;
  }
}

/* Planes: negocios de referencia y mantenimiento con descripción */
.aw-plan-ref {
  margin: 0 0 14px;
  color: #8ea3bc;
  font-size: 0.78rem;
  line-height: 1.5;
}

.aw-plan-ref b {
  color: #cfe6f7;
  font-weight: 650;
}

.mg-plan-main .aw-plan-ref {
  margin: -8px 0 22px;
}

.aw-plan-disclaimer {
  margin: 14px 0 0;
  color: #7f93ab;
  font-size: 0.8rem;
  text-align: center;
}

.aw-maintenance p {
  margin: 10px 0 0;
  font-size: 0.86rem;
  line-height: 1.6;
}

.mg-maintenance-bar.aw-maintenance > div:last-child {
  grid-template-columns: 1fr;
}

.mg-maintenance-bar.aw-maintenance > div:last-child span {
  padding: 12px 14px;
  color: #b6c7d9;
  font-size: 0.78rem;
  text-align: left;
}

.aw-maintenance span small {
  display: block;
  margin-top: 3px;
  color: #8ea3bc;
  font-size: 0.74rem;
  line-height: 1.4;
}

@media (min-width: 1020px) {
  .mg-maintenance-bar.aw-maintenance {
    grid-template-columns: 1fr 1.1fr;
  }

  .mg-maintenance-bar.aw-maintenance > div:last-child {
    grid-template-columns: repeat(3, 1fr);
  }
}

.aw-plan-disclaimer a {
  color: #72d2ff;
  font-weight: 700;
  white-space: nowrap;
}

/* Propiedad de la web: aviso antes de los planes */
.aw-own {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(104, 222, 255, 0.22);
  border-radius: 28px;
  background: linear-gradient(120deg, rgba(36, 141, 248, 0.14), rgba(102, 92, 246, 0.08)), var(--mg-panel);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.aw-own h2 {
  margin: 10px 0 10px;
  color: #fff;
  font-size: clamp(1.75rem, 7.4vw, 2.2rem);
  line-height: 1.06;
}

.aw-own p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

.aw-own .aw-own-note {
  color: #6f849c;
  font-size: 0.75rem;
}

.aw-own-section + .mg-pricing {
  padding-top: 0;
}

@media (min-width: 900px) {
  .aw-own {
    grid-template-columns: 56px 1.3fr 1fr;
    align-items: center;
    gap: 28px;
    padding: 36px 40px;
  }

  .aw-own h2 {
    font-size: clamp(2.1rem, 3.4vw, 2.75rem);
  }

  .aw-own .aw-own-note {
    grid-column: 2 / -1;
  }
}

.mg-page .mg-section.aw-own-section {
  padding-top: 24px;
}

/* ---------- Aviso de cookies ---------- */
/* En celular queda encima de la barra inferior; en computadora, abajo a la izquierda */
.aw-cookies {
  position: fixed;
  z-index: 95;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 10px 10px 14px;
  border: 1px solid rgba(194, 226, 255, 0.18);
  border-radius: 16px;
  background: rgba(8, 16, 31, 0.95);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
}

.aw-cookies p {
  flex: 1;
  margin: 0;
  color: #b6c7d9;
  font-size: 0.76rem;
  line-height: 1.4;
}

.aw-cookies a {
  color: #72d2ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aw-cookies div {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}

.aw-cookies button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(183, 221, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #dceeff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.aw-cookies button[data-consent="granted"] {
  border-color: rgba(196, 235, 255, 0.25);
  background: linear-gradient(135deg, #248df8, #665cf6);
  color: #fff;
}

.aw-cookie-prefs {
  margin-top: 6px;
  padding: 10px 14px;
  border: 1px solid rgba(183, 221, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #dceeff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
}

@media (min-width: 700px) {
  .aw-cookies {
    right: auto;
    bottom: 20px;
    left: 22px;
    width: 400px;
  }
}

/* En celular el aviso ocupa el lugar de la barra inferior hasta que la persona elige */
@media (max-width: 699px) {
  .aw-cookies-open .mg-mobile-dock {
    visibility: hidden;
  }
}
