/* Recepcionista virtual de Ambigram — card en Actualidad */

.amg-recv {
  position: relative;
  isolation: isolate;
  margin: 0 0 2.5rem;
  border-radius: 1.75rem;
  overflow: hidden;
  min-height: 22rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.08),
    0 25px 80px -20px rgba(15, 23, 42, 0.85),
    0 0 60px -10px rgba(34, 211, 238, 0.15);
}

.amg-recv__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--amg-recv-bg);
  background-size: cover;
  background-position: center right;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
}

.amg-recv__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      105deg,
      rgba(8, 10, 22, 0.92) 0%,
      rgba(12, 14, 32, 0.82) 42%,
      rgba(15, 18, 40, 0.55) 68%,
      rgba(15, 18, 40, 0.35) 100%
    ),
    radial-gradient(ellipse 70% 80% at 85% 40%, rgba(168, 85, 247, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(34, 211, 238, 0.12), transparent 50%);
}

.amg-recv__glow {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border-radius: 9999px;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 1;
  animation: amg-recv-float 8s ease-in-out infinite;
}

.amg-recv__glow--a {
  top: -4rem;
  left: -3rem;
  background: rgb(34 211 238 / 0.35);
}

.amg-recv__glow--b {
  bottom: -5rem;
  right: 20%;
  background: rgb(168 85 247 / 0.4);
  animation-delay: -3s;
}

@keyframes amg-recv-float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(12px, -10px);
  }
}

.amg-recv__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  padding: 1.75rem 1.75rem 1.85rem;
  align-items: center;
}

@media (max-width: 860px) {
  .amg-recv__inner {
    grid-template-columns: 1fr;
    padding: 1.35rem;
  }
  .amg-recv__bg {
    background-position: 70% center;
  }
  .amg-recv__veil {
    background: linear-gradient(
      180deg,
      rgba(8, 10, 22, 0.94) 0%,
      rgba(12, 14, 32, 0.88) 55%,
      rgba(15, 18, 40, 0.72) 100%
    );
  }
}

.amg-recv__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(165 243 252);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.28);
  margin: 0 0 0.9rem;
}

.amg-recv__kicker-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: rgb(34 211 238);
  box-shadow: 0 0 10px rgb(34 211 238);
  animation: amg-recv-pulse 1.6s ease-in-out infinite;
}

@keyframes amg-recv-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.amg-recv__title {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}

.amg-recv__title span {
  background: linear-gradient(90deg, rgb(165 243 252), rgb(196 181 253), rgb(251 207 232));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.amg-recv__text {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgb(203 213 225);
}

.amg-recv__text strong {
  color: #fff;
  font-weight: 600;
}

.amg-recv__panel {
  position: relative;
  border-radius: 1.35rem;
  padding: 1.35rem 1.25rem 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
}

.amg-recv__status {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: rgb(148 163 184);
  min-height: 1.2em;
}

.amg-recv__mic-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
}

.amg-recv__ring {
  position: absolute;
  inset: -10px;
  border-radius: 9999px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  animation: amg-recv-ring 2.4s ease-out infinite;
  pointer-events: none;
  opacity: 0;
}

.amg-recv.is-live .amg-recv__ring {
  opacity: 1;
}

.amg-recv__ring--2 {
  inset: -20px;
  animation-delay: 0.8s;
  border-color: rgba(168, 85, 247, 0.35);
}

@keyframes amg-recv-ring {
  0% {
    transform: scale(0.92);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

.amg-recv__mic {
  position: relative;
  z-index: 1;
  width: 5.5rem;
  height: 5.5rem;
  border: 0;
  border-radius: 9999px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(145deg, rgb(124 58 237), rgb(6 182 212));
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.08),
    0 12px 40px rgba(124, 58, 237, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.amg-recv__mic:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.12),
    0 16px 48px rgba(6, 182, 212, 0.4);
}

.amg-recv__mic:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.amg-recv.is-live .amg-recv__mic {
  background: linear-gradient(145deg, rgb(220 38 38), rgb(249 115 22));
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.08),
    0 12px 40px rgba(220, 38, 38, 0.45);
}

.amg-recv__mic svg {
  width: 2rem;
  height: 2rem;
  display: block;
  margin: 0 auto;
}

.amg-recv__mic-label {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.amg-recv__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.amg-recv__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgb(226 232 240);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.amg-recv__btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.amg-recv__btn[hidden] {
  display: none !important;
}

.amg-recv__err {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 0.85rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgb(254 202 202);
  background: rgba(127, 29, 29, 0.45);
  border: 1px solid rgba(248, 113, 113, 0.35);
  text-align: center;
}

.amg-recv__err[hidden] {
  display: none !important;
}

.amg-recv__lines,
.amg-recv [data-recv-lines] {
  display: none !important;
}

/* Fuera del tipado denso del artículo */
.amg-prose .amg-recv,
.amg-prose-cols .amg-recv {
  max-width: none;
  width: 100%;
}

html[data-mode='light'] .amg-recv__title {
  color: #0f172a;
}

html[data-mode='light'] .amg-recv__text {
  color: rgb(51 65 85);
}

html[data-mode='light'] .amg-recv__veil {
  background: linear-gradient(
    105deg,
    rgba(248, 250, 252, 0.94) 0%,
    rgba(241, 245, 249, 0.85) 45%,
    rgba(15, 23, 42, 0.35) 100%
  );
}

/* Hero contacto: 3/12 recepcionista + 9/12 imagen (sin depender de utilidades Tailwind purgadas) */
.amg-contacto-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.amg-contacto-hero__recv {
  min-width: 0;
  min-height: 0;
}

.amg-contacto-hero__shot {
  min-width: 0;
}

@media (min-width: 1024px) {
  .amg-contacto-hero {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: 1.25rem;
  }

  .amg-contacto-hero__recv {
    order: 1;
  }

  .amg-contacto-hero__shot {
    order: 2;
  }
}

@media (max-width: 1023px) {
  .amg-contacto-hero__shot {
    order: 1;
  }

  .amg-contacto-hero__recv {
    order: 2;
  }
}

/* Columna estrecha en /contacto (3/12 escritorio); en móvil controles más grandes */
.amg-recv--contacto {
  margin: 0;
  min-height: 100%;
  height: 100%;
  border-radius: 1.25rem;
}

.amg-recv--contacto .amg-recv__inner {
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 1rem 0.85rem 1.1rem;
  height: 100%;
  align-content: space-between;
}

.amg-recv--contacto .amg-recv__bg {
  background-position: 65% center;
}

.amg-recv--contacto .amg-recv__veil {
  background: linear-gradient(
    180deg,
    rgba(8, 10, 22, 0.88) 0%,
    rgba(12, 14, 32, 0.78) 45%,
    rgba(15, 18, 40, 0.7) 100%
  );
}

/* Móvil / tablet: micrófono y botones grandes y legibles */
@media (max-width: 1023px) {
  .amg-recv--contacto {
    min-height: 22rem;
  }

  .amg-recv--contacto .amg-recv__inner {
    gap: 1rem;
    padding: 1.15rem 1rem 1.25rem;
  }

  .amg-recv--contacto .amg-recv__title {
    font-size: 1.45rem;
    line-height: 1.2;
  }

  .amg-recv--contacto .amg-recv__text {
    font-size: 0.95rem;
    margin-top: 0.45rem;
    line-height: 1.45;
  }

  .amg-recv--contacto .amg-recv__panel {
    padding: 1.1rem 0.9rem 1.15rem;
  }

  .amg-recv--contacto .amg-recv__status {
    font-size: 0.9rem;
  }

  .amg-recv--contacto .amg-recv__mic {
    width: 5.75rem;
    height: 5.75rem;
  }

  .amg-recv--contacto .amg-recv__mic svg {
    width: 2.15rem;
    height: 2.15rem;
  }

  .amg-recv--contacto .amg-recv__mic-label {
    font-size: 1rem;
    font-weight: 600;
  }

  .amg-recv--contacto .amg-recv__actions {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.35rem;
  }

  .amg-recv--contacto .amg-recv__btn {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.7rem 1.15rem;
    min-height: 2.75rem;
    border-radius: 9999px;
  }
}

/* Escritorio: compacto en la columna 3/12 */
@media (min-width: 1024px) {
  .amg-recv--contacto .amg-recv__title {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  .amg-recv--contacto .amg-recv__text {
    font-size: 0.75rem;
    margin-top: 0.35rem;
    line-height: 1.4;
  }

  .amg-recv--contacto .amg-recv__panel {
    padding: 0.85rem 0.65rem 0.95rem;
  }

  .amg-recv--contacto .amg-recv__mic {
    width: 3.75rem;
    height: 3.75rem;
  }

  .amg-recv--contacto .amg-recv__mic svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  .amg-recv--contacto .amg-recv__mic-label {
    font-size: 0.8rem;
  }

  .amg-recv--contacto .amg-recv__actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
  }

  .amg-recv--contacto .amg-recv__btn {
    font-size: 0.68rem;
    padding: 0.35rem 0.55rem;
  }
}

