/* =========================================================================
   GUAYAIA.EC — DETALLE Y NEGOCIACIÓN DE SOLICITUDES (UX PRÉMIUM ANTIGRAVITY)
   Diseño con profundidad glassmorphism, tipografía de alta jerarquía,
   paleta oceánica GuayaIA, animación de apertura y micro-interacciones.
   ========================================================================= */

body.app-ready[data-app-view="request-detail"] #guayaiaRequestDetailContent {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* --- ANIMACIONES DE ENTRADA Y APERTURA FLUIDA --- */
@keyframes gnContainerOpen {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes gnFadeDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gnFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gnSlideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes gnSlideInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes gnLivePulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(8, 122, 85, 0.28);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(8, 122, 85, 0.05);
    transform: scale(1.12);
  }
}

@keyframes gnSignalPulse {
  0%, 100% {
    transform: scaleY(0.65);
    opacity: 0.55;
  }
  50% {
    transform: scaleY(1.2);
    opacity: 1;
    box-shadow: 0 0 16px rgba(32, 191, 228, 0.7);
  }
}

@keyframes gnEditorOpen {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- CONTENEDOR PRINCIPAL ESCULPIDO CON PROFUNDIDAD GLASSMORPHISM --- */
body.app-ready #guayaiaRequestDetailView > .wrap {
  position: relative !important;
  max-width: 1140px !important;
  margin: 20px auto 40px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.app-ready #guayaiaRequestDetailView > .wrap::before {
  display: none !important;
}

.gn-detail {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 36px 40px;
  color: #063f59;
  border: 1px solid rgba(32, 191, 228, 0.32) !important;
  border-radius: 28px !important;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 252, 254, 0.95) 50%, rgba(234, 248, 252, 0.92) 100%) !important;
  box-shadow: 0 28px 70px -14px rgba(6, 63, 89, 0.18), 0 8px 24px -4px rgba(8, 127, 167, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.95), inset 0 0 0 1px rgba(32, 191, 228, 0.16) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  animation: gnContainerOpen 0.44s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  overflow: hidden !important;
}

.gn-detail::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  border-radius: 28px 28px 0 0 !important;
  background: linear-gradient(90deg, #087fa7 0%, #20bfe4 48%, #087a55 100%) !important;
  box-shadow: 0 2px 14px rgba(32, 191, 228, 0.5) !important;
  opacity: 1 !important;
  z-index: 2 !important;
}

.gn-detail * {
  box-sizing: border-box;
}

.gn-detail button,
.gn-detail input,
.gn-detail textarea {
  font-family: inherit;
}

.gn-detail button {
  cursor: pointer;
}

.gn-detail button:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* --- BARRA SUPERIOR: BOTÓN VOLVER Y BADGE DE ESTADO --- */
.gn-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(8, 127, 167, 0.10);
  animation: gnFadeDown 0.36s 0.04s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(8, 127, 167, 0.18);
  border-radius: 99px;
  color: #063f59;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 8px rgba(6, 63, 89, 0.04);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.gn-back:hover {
  background: linear-gradient(135deg, #ffffff 0%, #eaf7fc 100%);
  border-color: #20bfe4;
  color: #087fa7;
  transform: translateX(-4px);
  box-shadow: 0 4px 14px rgba(32, 191, 228, 0.22);
}

.gn-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, rgba(8, 122, 85, 0.09) 0%, rgba(32, 191, 228, 0.14) 100%);
  color: #056645;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid rgba(8, 122, 85, 0.26);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 10px rgba(8, 122, 85, 0.08);
}

.gn-status i {
  width: 8px;
  height: 8px;
  background: #087a55;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(8, 122, 85, 0.25);
  animation: gnLivePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  flex-shrink: 0;
}

/* --- HEADER DE SOLICITUD: TIPOGRAFÍA DE GRAN IMPACTO --- */
.gn-detail .gn-header {
  position: relative !important;
  top: auto !important;
  inset: auto !important;
  height: auto !important;
  width: auto !important;
  transform: none !important;
  z-index: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 26px 0 28px;
  animation: gnFadeUp 0.4s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gn-detail .gn-header::before,
.gn-detail .gn-header::after {
  display: none !important;
}

.gn-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(8, 127, 167, 0.10) 0%, rgba(32, 191, 228, 0.16) 100%);
  color: #087fa7;
  border: 1px solid rgba(32, 191, 228, 0.34);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(32, 191, 228, 0.10);
}

.gn-kicker::before {
  content: "❖";
  font-size: 10px;
  color: #20bfe4;
}

.gn-header h1 {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: clamp(30px, 3.8vw, 44px) !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.035em !important;
  color: #042838 !important;
  margin: 14px 0 10px !important;
  text-wrap: balance;
}

.gn-header p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #4b7183;
  background: rgba(255, 255, 255, 0.65);
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(8, 127, 167, 0.10);
  margin: 0;
}

.gn-header p span {
  color: #20bfe4;
  font-weight: 900;
  margin: 0 2px;
}

/* --- CUADRÍCULA DE CONTENIDO: 2 COLUMNAS CON EQUILIBRIO PERFECTO --- */
.gn-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: start;
}

/* --- COLUMNA IZQUIERDA: REFERENCIA Y HECHOS --- */
.gn-reference {
  min-width: 0;
  padding: 0;
  animation: gnSlideInLeft 0.44s 0.14s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gn-description {
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 20px;
  color: #3b6072;
  white-space: pre-line;
  background: rgba(255, 255, 255, 0.7);
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(8, 127, 167, 0.12);
}

.gn-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.gn-media:empty {
  display: none;
}

.gn-media img,
.gn-media video {
  width: 100%;
  min-height: 260px;
  max-height: 520px;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid rgba(8, 127, 167, 0.22);
  box-shadow: 0 12px 32px -8px rgba(6, 63, 89, 0.14);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  background: #062b3a;
  cursor: zoom-in;
}

.gn-media img:hover,
.gn-media video:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 18px 40px -10px rgba(6, 63, 89, 0.22), 0 0 0 2px rgba(32, 191, 228, 0.45);
}

/* Stat Cards de Presupuesto y Categoría */
.gn-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  padding: 18px 22px;
  margin: 22px 0;
  border: 1px solid rgba(8, 127, 167, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 251, 254, 0.90) 100%);
  box-shadow: 0 6px 20px rgba(6, 63, 89, 0.04);
}

.gn-facts span {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #638596;
}

.gn-facts span:first-child b {
  font-family: 'Outfit', sans-serif !important;
  font-size: 26px !important;
  font-weight: 850 !important;
  color: #087a55 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 1px 2px rgba(8, 122, 85, 0.12);
}

.gn-facts span:not(:first-child) b {
  font-family: 'Outfit', sans-serif !important;
  font-size: 17px !important;
  font-weight: 750 !important;
  color: #087fa7 !important;
}

/* Acordeón de Detalles Estilizado */
.gn-more {
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(8, 127, 167, 0.14);
  box-shadow: 0 4px 16px rgba(6, 63, 89, 0.03);
  transition: all 0.25s ease;
  font-size: 13px;
  color: #4a6c7e;
}

.gn-more[open] {
  background: #ffffff;
  border-color: rgba(32, 191, 228, 0.32);
  box-shadow: 0 8px 24px rgba(6, 63, 89, 0.06);
}

.gn-more summary {
  cursor: pointer;
  color: #087fa7;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
  user-select: none;
  outline: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gn-more summary:hover {
  color: #055e7d;
}

.gn-more p {
  margin-top: 14px;
  line-height: 1.65;
  color: #3b5f71;
  font-size: 14px;
  white-space: pre-line;
  padding-top: 12px;
  border-top: 1px solid rgba(8, 127, 167, 0.08);
}

.gn-more small {
  display: block;
  font-size: 12px;
  color: #7997a6;
  margin-top: 10px;
  font-style: italic;
  line-height: 1.5;
}

.gn-more .request-detail-tools {
  margin-top: 15px;
}

/* --- COLUMNA DERECHA: TERMINAL DE OFERTA / CONVERSACIÓN (AURA CARD) --- */
.gn-conversation {
  min-width: 0;
  background: linear-gradient(165deg, #ffffff 0%, #f7fcfe 55%, #edf8fb 100%) !important;
  border: 1.5px solid rgba(32, 191, 228, 0.32) !important;
  border-radius: 24px !important;
  padding: 26px 28px !important;
  box-shadow: 0 22px 50px -12px rgba(6, 63, 89, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  position: relative;
  overflow: hidden;
  animation: gnSlideInRight 0.44s 0.16s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gn-conversation::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(32, 191, 228, 0.18) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.gn-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(8, 127, 167, 0.10);
}

.gn-heading h2 {
  font-family: 'Outfit', sans-serif !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #042d40 !important;
  margin: 0 !important;
}

.gn-count {
  background: linear-gradient(135deg, #087fa7 0%, #20bfe4 100%) !important;
  color: white !important;
  border-radius: 99px !important;
  padding: 4px 12px !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  box-shadow: 0 3px 10px rgba(8, 127, 167, 0.28) !important;
}

/* Tarjeta de propuesta */
.gn-proposal {
  padding: 18px 0;
  border-bottom: 1px solid rgba(8, 127, 167, 0.10);
}

.gn-proposal:first-of-type {
  padding-top: 0;
}

.gn-proposal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gn-person {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  min-width: 0;
}

.gn-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(140deg, #20bfe4, #087fa7);
  color: white;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(8, 127, 167, 0.25);
}

.gn-person b {
  display: block;
  font-size: 14px;
  color: #053b52;
}

.gn-person small {
  display: block;
  font-size: 11px;
  color: #6d8e9f;
  margin-top: 3px;
}

.gn-price {
  font-family: 'Outfit', sans-serif;
  font-size: 21px;
  font-weight: 850;
  color: #087fa7;
  white-space: nowrap;
}

.gn-proposal p {
  font-size: 13px;
  line-height: 1.55;
  color: #4b6f81;
  white-space: pre-line;
  margin: 10px 0 0;
}

.gn-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Botones de acción */
.gn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(8, 127, 167, 0.18);
  border-radius: 12px;
  background: #ffffff;
  color: #087fa7;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.01em;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.gn-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(8, 127, 167, 0.16);
  border-color: #20bfe4;
}

.gn-button:active {
  transform: translateY(0);
}

.gn-button.primary {
  background: linear-gradient(110deg, #087fa7 0%, #0994be 50%, #20bfe4 100%) !important;
  border: 0 !important;
  color: white !important;
  box-shadow: 0 8px 22px rgba(8, 127, 167, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.gn-button.primary:hover {
  box-shadow: 0 12px 28px rgba(8, 127, 167, 0.40), 0 0 14px rgba(32, 191, 228, 0.4) !important;
}

.gn-button.quiet {
  background: none;
  border: 0;
  color: #6f8d9b;
}

.gn-button.quiet:hover {
  color: #063f59;
  background: rgba(8, 127, 167, 0.05);
}

/* Botón destacado "Ofrecer mi servicio" */
.gn-offer {
  width: 100%;
  padding: 15px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 18px;
}

/* Estado Vacío / Espera de Oferta */
.gn-empty {
  padding: 26px 12px 30px;
  text-align: center;
}

.gn-signal {
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.gn-signal i {
  width: 6px;
  background: linear-gradient(180deg, #20bfe4 0%, #087fa7 100%);
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(32, 191, 228, 0.45);
  animation: gnSignalPulse 1.8s ease-in-out infinite;
}

.gn-signal i:nth-child(1) { height: 16px; animation-delay: -0.32s; }
.gn-signal i:nth-child(2) { height: 38px; animation-delay: 0s; }
.gn-signal i:nth-child(3) { height: 24px; animation-delay: 0.32s; }

.gn-empty h3 {
  font-family: 'Outfit', sans-serif !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #063f59 !important;
  margin: 0 0 8px !important;
}

.gn-empty p {
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: #638697 !important;
  margin: 0 auto !important;
  max-width: 320px !important;
}

/* Estado Listo / Acuerdo Confirmado */
.gn-ready {
  text-align: center;
  padding: 20px 12px;
}

.gn-ready-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d9f8ee, #b6f3dd);
  color: #009e78;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(0, 158, 120, 0.22);
}

.gn-ready h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #042d40;
  margin: 0 0 8px;
}

.gn-ready p {
  font-size: 13px;
  line-height: 1.6;
  color: #5c7f91;
  margin: 0 auto;
  max-width: 300px;
}

.gn-ready .gn-button {
  margin-top: 20px;
  display: flex;
  width: 100%;
}

/* Editor de Propuesta y Contraoferta */
.gn-editor {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(145deg, #eef9fd 0%, #e2f4fb 100%);
  border: 1px solid rgba(32, 191, 228, 0.28);
  box-shadow: 0 8px 24px rgba(6, 63, 89, 0.06);
  animation: gnEditorOpen 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gn-editor h3 {
  margin: 0 0 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #042d40;
}

.gn-editor label {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  font-size: 12px;
  color: #4b7082;
  font-weight: 750;
}

.gn-money-field {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(8, 127, 167, 0.22);
  border-radius: 12px;
  padding: 0 14px;
  box-shadow: 0 2px 8px rgba(6, 63, 89, 0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gn-money-field:focus-within {
  border-color: #20bfe4;
  box-shadow: 0 0 0 3px rgba(32, 191, 228, 0.2);
}

.gn-money-field i {
  font-style: normal;
  font-size: 20px;
  font-weight: 800;
  color: #087fa7;
}

.gn-money-field input {
  width: 100%;
  min-width: 0;
  border: 0 !important;
  background: none !important;
  padding: 14px 10px;
  font-size: 24px;
  font-weight: 800;
  color: #042d40;
  box-shadow: none !important;
  outline: none !important;
}

.gn-money-field small {
  font-size: 11px;
  font-weight: 800;
  color: #7a9cae;
}

.gn-editor textarea {
  width: 100%;
  resize: vertical;
  min-height: 80px;
  max-height: 200px;
  border: 1px solid rgba(8, 127, 167, 0.22);
  border-radius: 12px;
  padding: 13px;
  background: #ffffff;
  color: #063f59;
  font-size: 13px;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gn-editor textarea:focus {
  outline: none;
  border-color: #20bfe4;
  box-shadow: 0 0 0 3px rgba(32, 191, 228, 0.2);
}

.gn-editor p {
  font-size: 13px;
  line-height: 1.6;
  color: #4b6f81;
}

.gn-error {
  font-size: 12px;
  color: #a43224;
  background: #fff2ed;
  border: 1px solid #fed2c3;
  border-radius: 10px;
  padding: 11px 14px;
  line-height: 1.5;
  margin-top: 12px;
}

.gn-detail :focus-visible {
  outline: 2px solid #20bfe4;
  outline-offset: 3px;
}

/* --- RESPONSIVE BREAKPOINTS (320px, 360px, 390px, 412px, 430px, 768px, 1280px) --- */
@media (max-width: 860px) {
  body.app-ready #guayaiaRequestDetailView > .wrap {
    margin: 10px auto 26px !important;
  }
  .gn-detail {
    padding: 24px 20px 30px;
    border-radius: 22px !important;
  }
  .gn-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .gn-header {
    margin: 20px 0 22px;
  }
  .gn-header h1 {
    font-size: 28px !important;
  }
  .gn-media img,
  .gn-media video {
    min-height: 220px;
    max-height: 420px;
    height: auto;
    object-fit: contain;
  }
  .gn-conversation {
    padding: 22px 20px !important;
  }
  .gn-actions .gn-button.primary {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .gn-detail {
    padding: 16px 12px 24px;
    border-radius: 18px !important;
  }
  .gn-top {
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 12px;
  }
  .gn-back {
    padding: 6px 12px;
    font-size: 11.5px;
  }
  .gn-status {
    padding: 5px 11px;
    font-size: 10.5px;
  }
  .gn-header h1 {
    font-size: 23px !important;
  }
  .gn-facts {
    grid-template-columns: 1fr;
    padding: 14px 16px;
    gap: 10px;
  }
  .gn-facts span:first-child b {
    font-size: 22px !important;
  }
  .gn-media img,
  .gn-media video {
    min-height: 180px;
    max-height: 360px;
    height: auto;
    object-fit: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.app-ready #guayaiaRequestDetailView > .wrap,
  .gn-detail,
  .gn-top,
  .gn-header,
  .gn-reference,
  .gn-conversation,
  .gn-editor,
  .gn-signal i,
  .gn-status i {
    animation: none !important;
    transition: none !important;
  }
  .gn-button {
    transition: none !important;
  }
}

/* Opening belongs to the stable host, never to recreated snapshot content. */
#guayaiaRequestDetailContent[data-request-motion="single"] :is(.gn-detail,.gn-top,.gn-header,.gn-reference,.gn-conversation){animation:none!important;}


/* --- Lote 3: UX Prémium Vista Cliente Solicitud (.gn-stepper, .gn-exec-ribbon, .gn-media-showcase) --- */
.gn-top {
  padding-top: max(6px, env(safe-area-inset-top));
}
.gn-stepper {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(8, 127, 167, 0.14);
}
.gn-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: #6b8796;
  min-width: 0;
}
.gn-step b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 11px;
  background: #e1eef3;
  color: #3f6375;
}
.gn-step span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gn-step.is-done {
  color: #065a44;
}
.gn-step.is-done b {
  background: #087a55;
  color: #ffffff;
}
.gn-step.is-current {
  color: #054965;
  font-weight: 800;
}
.gn-step.is-current b {
  background: linear-gradient(135deg, #087fa7, #087a55);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(8, 127, 167, 0.3);
}
.gn-exec-ribbon {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(235, 249, 253, 0.92) 100%);
  border: 1px solid rgba(32, 191, 228, 0.25);
  box-shadow: 0 10px 26px rgba(6, 63, 89, 0.06);
}
.gn-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.gn-kpi-card {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(8, 127, 167, 0.12);
  min-width: 0;
}
.gn-kpi-card small {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #628495;
  margin-bottom: 3px;
}
.gn-kpi-card strong {
  display: block;
  font-size: 14.5px;
  font-weight: 850;
  color: #063f59;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gn-kpi-budget strong {
  font-size: 18px;
  color: #087a55;
}
.gn-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gn-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  border: 1px solid rgba(8, 127, 167, 0.24);
  background: #ffffff;
  color: #064e6b;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.gn-quick-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(8, 127, 167, 0.16);
}
.gn-quick-showroom {
  background: linear-gradient(135deg, #087a55, #087fa7);
  color: #ffffff;
  border-color: transparent;
}
.gn-media-showcase {
  margin: 14px 0 18px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(8, 127, 167, 0.14);
}
.gn-media-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 750;
  color: #087fa7;
  margin-bottom: 8px;
}
.gn-media-bar small {
  color: #6b8796;
  font-weight: 600;
}
.gn-media-showcase .gn-media {
  margin: 0 !important;
}
.gn-media-showcase .gn-media img,
.gn-media-showcase .gn-media video {
  min-height: 150px !important;
  max-height: 260px !important;
  object-fit: cover !important;
  border-radius: 14px !important;
}
@media (max-width: 720px) {
  .gn-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 10px;
  }
  .gn-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .gn-exec-ribbon {
    padding: 12px;
  }
  .gn-media-showcase .gn-media img,
  .gn-media-showcase .gn-media video {
    max-height: 210px !important;
  }
}
