/* ============================================
   Tema "Tony López" — identidad de marca personal
   Solo lo carga el inicio (index.html), encima de styles.css.
   Referencia visual: "soy tony.png" — sans geométrica bold,
   firma manuscrita solo como marca, negro-azul + azul eléctrico.
   ============================================ */

.tema-tony {
  --negro: #05070D;
  --negro-sup: #0B1020;
  --borde: #1A2338;
  --gris: #9BA6BC;
  --azul: #1F6BFF;
  --azul-claro: #4D8DFF;
  --brillo: 0 0 0 1px rgba(77, 141, 255, 0.55), 0 0 28px rgba(31, 107, 255, 0.55), 0 0 64px rgba(31, 107, 255, 0.25);
  --radio: 16px;
  font-family: 'Montserrat', sans-serif;
}

/* Una sola familia en toda la página (la firma es imagen, no fuente) */
.tema-tony *:not(svg):not(path) {
  font-family: 'Montserrat', sans-serif !important;
}

.tema-tony h1,
.tema-tony h2,
.tema-tony h3 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.tema-tony h3 {
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tema-tony .etiqueta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.tema-tony .subtitulo {
  font-size: 19px;
  line-height: 1.6;
}

/* Títulos de sección + subrayado curvo azul (el "swoosh" de la marca) */
.tema-tony .titulo-seccion {
  font-size: clamp(32px, 4.4vw, 56px);
  padding-bottom: 30px;
}

.tema-tony .titulo-seccion::after {
  width: 140px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 14'%3E%3Cpath d='M3 11 C 40 3, 100 1, 137 6' fill='none' stroke='%231F6BFF' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 0 6px rgba(31, 107, 255, 0.8));
}

/* Sin franjas de color entre secciones: un solo fondo continuo */
.tema-tony .section-fade-top::before {
  display: none;
}

/* La línea vertical decorativa del diseño anterior ya no aporta: pantalla limpia */
.tema-tony .linea-flujo,
.tema-tony .nodo-linea {
  display: none;
}

/* ============ BOTONES: píldora con brillo ============ */
.tema-tony .btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 17px 32px;
}

.tema-tony .btn-primario {
  background: linear-gradient(180deg, #3A80FF 0%, var(--azul) 55%, #1557E0 100%);
  box-shadow: var(--brillo);
}

.tema-tony .btn-primario:hover {
  background: linear-gradient(180deg, #4D8DFF 0%, #2A74FF 55%, #1A5EEB 100%);
  box-shadow: 0 0 0 1px rgba(120, 170, 255, 0.8), 0 0 36px rgba(31, 107, 255, 0.75), 0 0 90px rgba(31, 107, 255, 0.35);
}

.tema-tony .btn-secundario {
  border: 1px solid rgba(155, 166, 188, 0.35);
  background: rgba(255, 255, 255, 0.02);
}

.tema-tony .btn-secundario:hover {
  border-color: var(--azul-claro);
  background: rgba(31, 107, 255, 0.08);
}

.tema-tony .btn-header {
  padding: 11px 22px;
  font-size: 14px;
}

/* ============ NAV ============ */
.tema-tony .nav.scrolled {
  background: rgba(5, 7, 13, 0.78);
}

.tema-tony .nav-logo img {
  height: 40px;
  filter: none;
}

.tema-tony .nav-logo {
  transition: opacity 300ms var(--ease);
}

@media (min-width: 901px) {
  .tema-tony.inicio .nav:not(.scrolled) .nav-logo {
    opacity: 0;
    pointer-events: none;
  }
}

.tema-tony .nav-links a {
  font-size: 14px;
  font-weight: 500;
}

/* ============ HERO CON VIDEO ============ */
.tema-tony .hero--video {
  min-height: 100vh;
  min-height: 100svh;
  justify-content: flex-start;
  background: var(--negro);
}

.tema-tony .hero--video .haces,
.tema-tony .hero--video .vineta {
  display: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

/* Legibilidad del texto + fundido con la sección siguiente */
.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.92) 0%, rgba(5, 7, 13, 0.7) 32%, rgba(5, 7, 13, 0.1) 58%, transparent 70%),
    linear-gradient(to top, var(--negro) 0%, transparent 22%);
}

.tema-tony .hero--video .hero-inner {
  max-width: var(--max-width);
  text-align: left;
  align-items: flex-start;
}

.tema-tony .hero--video .hero-inner > * {
  max-width: 600px;
}

.hero-firma {
  width: 150px;
  margin: 0 0 8px -6px;
}

.tema-tony .hero--video .hero-titulo {
  font-size: clamp(40px, 4.6vw, 70px);
  max-width: 600px;
  margin: 0 0 18px;
  text-wrap: balance;
}

.hero-titulo .acento {
  color: var(--azul-claro);
  text-shadow: 0 0 40px rgba(31, 107, 255, 0.45);
}

.hero-swoosh {
  display: block;
  width: min(420px, 80%);
  height: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 8px rgba(31, 107, 255, 0.9));
}

.tema-tony .hero--video .hero-typewriter {
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 500;
  margin: 18px 0 16px;
}

.tema-tony .hero--video .hero-typewriter-palabra {
  font-weight: 700;
}

.tema-tony .hero--video .hero-sub {
  font-size: 18px;
  margin: 0 0 36px;
  text-align: left;
}

.tema-tony .hero--video .hero-inner > .hero-botones {
  justify-content: flex-start;
  max-width: none;
}

/* Celular: el video vertical llena la pantalla y el texto va en la parte baja */
@media (max-width: 900px) {
  .tema-tony .hero--video {
    align-items: flex-start;
    padding-top: 50svh;
    padding-bottom: 56px;
  }
  .hero-video {
    bottom: auto;
    height: 64svh;
  }
  .hero-video video {
    object-position: center top;
  }
  .hero-video::after {
    background: linear-gradient(to bottom, transparent 55%, rgba(5, 7, 13, 0.8) 80%, var(--negro) 100%);
  }
  .tema-tony .hero--video .hero-inner,
  .tema-tony .hero--video .hero-sub {
    text-align: center;
    align-items: center;
  }
  .tema-tony .hero--video .hero-titulo {
    margin-inline: auto;
    font-size: clamp(32px, 8.4vw, 46px);
  }
  .hero-firma {
    display: none;
  }
  .hero-swoosh {
    margin-inline: auto;
  }
  .tema-tony .hero--video .hero-botones {
    justify-content: center;
  }
}

/* ============ HERO SIN VIDEO (bootcamp, marketing, humania) ============ */
.tema-tony .hero:not(.hero--video) .hero-titulo {
  font-size: clamp(40px, 6.4vw, 88px);
  max-width: 15ch;
}

.tema-tony .hero:not(.hero--video) .hero-titulo::after {
  content: "";
  display: block;
  width: min(360px, 70%);
  height: 18px;
  margin: 22px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 22'%3E%3Cpath d='M4 18 C 120 4, 300 2, 416 9' fill='none' stroke='%231F6BFF' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 0 8px rgba(31, 107, 255, 0.9));
}

.tema-tony .hero:not(.hero--video) .vineta {
  background: radial-gradient(ellipse 70% 60% at center, rgba(5, 7, 13, 0.7) 0%, rgba(5, 7, 13, 0.3) 55%, transparent 80%);
}

/* ============ TARJETAS ============ */
.tema-tony .tarjeta,
.tema-tony .quiz-card {
  background: linear-gradient(180deg, rgba(20, 28, 50, 0.7) 0%, rgba(11, 16, 32, 0.7) 100%);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease), transform 300ms var(--ease);
}

.tema-tony .tarjeta:hover {
  border-color: rgba(77, 141, 255, 0.5);
  box-shadow: 0 0 40px rgba(31, 107, 255, 0.18);
  transform: translateY(-4px);
}

.tema-tony .tarjeta h3,
.tema-tony .soluciones .tarjeta h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.tema-tony .tarjeta p {
  color: var(--gris);
}

/* ============ HISTORIA ============ */
.tema-tony .historia h2 {
  font-size: clamp(32px, 4.4vw, 56px);
}

.tema-tony .historia {
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(31, 107, 255, 0.08), transparent 70%), var(--negro);
}

.tema-tony .historia p.destacado {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--blanco);
}

.tema-tony .historia p.destacado::after {
  content: "";
  display: block;
  width: 120px;
  height: 12px;
  margin: 14px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 14'%3E%3Cpath d='M3 11 C 40 3, 100 1, 137 6' fill='none' stroke='%231F6BFF' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 0 6px rgba(31, 107, 255, 0.8));
}

.tema-tony .sobre-mi-texto p.destacado {
  font-weight: 700;
  color: var(--blanco);
  border-left: 3px solid var(--azul);
  padding-left: 20px;
}

/* ============ TERMÓMETRO ============ */
.tema-tony .quiz-pregunta {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.tema-tony .quiz-opcion {
  border-radius: 12px;
  font-weight: 500;
}

.tema-tony .quiz-opcion:hover {
  border-color: var(--azul-claro);
  box-shadow: 0 0 20px rgba(31, 107, 255, 0.2);
}

.tema-tony .quiz-campo input,
.tema-tony .quiz-campo textarea {
  border-radius: 12px;
}

.tema-tony .quiz-progress {
  border-radius: 999px;
  overflow: hidden;
}

.tema-tony .resultado-cifra {
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 0 40px rgba(31, 107, 255, 0.5);
}

/* ============ CÓMO TRABAJO ============ */
.tema-tony .proceso-numero {
  font-weight: 800;
  color: var(--azul-claro);
  text-shadow: 0 0 30px rgba(31, 107, 255, 0.6);
}

.tema-tony .proceso-paso h3 {
  font-weight: 700;
}

/* ============ SOBRE MÍ ============ */
.tema-tony .sobre-mi-grid {
  grid-template-columns: 400px 1fr;
}

.tema-tony .sobre-mi-foto {
  aspect-ratio: 4 / 5;
  border-radius: var(--radio);
  border: 1px solid rgba(77, 141, 255, 0.35);
  box-shadow: 0 0 60px rgba(31, 107, 255, 0.22);
}

/* ============ CIERRE ============ */
.tema-tony .cierre h2 {
  font-size: clamp(32px, 4.4vw, 52px);
}

/* ============ FAQ / FORMULARIO / PIE ============ */
.tema-tony .faq-pregunta {
  font-weight: 600;
}

.tema-tony .proyecto-form {
  border-radius: var(--radio);
}

.tema-tony .pie img {
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .tema-tony .tarjeta:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .tema-tony .sobre-mi-grid {
    grid-template-columns: 1fr;
  }
  .tema-tony .sobre-mi-foto {
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  .tema-tony .btn {
    font-size: 15px;
    padding: 16px 20px;
  }
}

/* ============ HUMANIA (/humania/) ============ */
.hm-logo {
  width: min(300px, 70vw);
  height: auto;
  margin-bottom: 28px;
}

.hm-ya-cliente {
  margin-top: 28px;
  font-size: 15px;
  color: var(--gris);
}

.hm-ya-cliente a {
  font-weight: 700;
}

/* Instructivo: 4 pasos con flechas */
.hm-pasos {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr 32px 1fr;
  align-items: stretch;
  margin-top: 56px;
}

.hm-paso {
  position: relative;
  padding: 28px 24px;
  background: linear-gradient(180deg, rgba(20, 28, 50, 0.7) 0%, rgba(11, 16, 32, 0.7) 100%);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
}

.hm-paso--tu {
  border-color: rgba(77, 141, 255, 0.6);
  box-shadow: 0 0 40px rgba(31, 107, 255, 0.22);
}

.hm-paso-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  font-weight: 800;
  background: var(--azul);
  box-shadow: 0 0 20px rgba(31, 107, 255, 0.6);
}

.hm-paso h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.hm-paso p {
  font-size: 15px;
  color: var(--gris);
}

.hm-flecha {
  align-self: center;
  justify-self: center;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--azul-claro);
  border-right: 2px solid var(--azul-claro);
  transform: rotate(45deg);
  filter: drop-shadow(0 0 6px rgba(31, 107, 255, 0.8));
}

.hm-filosofia {
  max-width: none;
  margin-top: 64px;
  text-align: center;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.hm-filosofia span {
  color: var(--azul-claro);
}

/* Panel: maqueta + funciones */
.hm-panel-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  margin-top: 56px;
}

.hm-mock {
  padding: 20px;
  background: #F7F9FC;
  color: #0A0A0B;
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(77, 141, 255, 0.35), 0 30px 90px rgba(31, 107, 255, 0.28);
}

.hm-mock-barra {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid #E3E8F0;
}

.hm-mock-barra span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D5DBE6;
}

.hm-mock-barra strong {
  margin-left: 12px;
  font-size: 18px;
  font-weight: 800;
}

.hm-mock-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.hm-mock-filtros span {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  background: #EAEEF5;
  color: #4A5568;
}

.hm-mock-filtros span.activo {
  background: var(--azul);
  color: #FFFFFF;
}

.hm-mock-lista {
  list-style: none;
}

.hm-mock-lista li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid #EDF0F5;
}

.hm-mock-lista i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  background: #1B2A4A;
}

.hm-mock-lista b {
  font-size: 15px;
}

.hm-mock-lista em {
  grid-column: 2;
  font-style: normal;
  font-size: 13px;
  color: #6B7280;
}

.hm-mock-lista .chip {
  grid-row: span 2;
  grid-column: 3;
  grid-row-start: 1;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
}

.chip--caliente { background: #FDE2E2; color: #B42318; }
.chip--tibio { background: #FEF0C7; color: #93370D; }
.chip--frio { background: #E0EAFF; color: #1F4FC4; }
.chip--cita { background: #D1FADF; color: #05603A; }

.hm-mock-nota {
  margin-top: 12px;
  font-size: 11px;
  color: #9AA3B2;
  text-align: right;
  max-width: none;
}

.hm-funciones {
  list-style: none;
  display: grid;
  gap: 28px;
}

.hm-funciones li {
  padding-left: 20px;
  border-left: 2px solid var(--azul);
}

.hm-funciones h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.hm-funciones p {
  color: var(--gris);
}

.hm-cierre-botones {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 1000px) {
  .hm-pasos {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 520px;
    margin-inline: auto;
  }
  .hm-flecha {
    transform: rotate(135deg);
  }
  .hm-panel-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* Elementos que antes usaban la serif/mono en peso normal: en Montserrat necesitan cuerpo */
.tema-tony .bootcamp-texto p.destacado,
.tema-tony .anatomia-paso strong,
.tema-tony .embudo-nombre {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tema-tony .plan .plan-precio,
.tema-tony .precio-cifra,
.tema-tony .resultado-dato-valor,
.tema-tony .nivel-plan {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tema-tony .plan .plan-precio small {
  font-weight: 600;
  letter-spacing: 0;
}

/* ============ AGENTES: etiqueta de producto con ícono ============ */
.hm-producto {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: -8px 0 24px;
  padding: 8px 18px 8px 8px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid var(--borde);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.hm-icono {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  color: #FFFFFF;
  background: var(--azul);
  box-shadow: 0 0 18px rgba(31, 107, 255, 0.6);
}

/* WhatsApp lleva su verde para reconocerse al instante */
.hm-producto--wa .hm-icono,
.hm-cruce-tarjeta--wa .hm-icono {
  background: #25D366;
  box-shadow: 0 0 18px rgba(37, 211, 102, 0.45);
}

.hm-icono--grande {
  width: 56px;
  height: 56px;
}

.hm-icono--grande svg {
  width: 28px;
  height: 28px;
}

/* Tarjeta que cruza a la otra página de agentes */
.hm-cruce {
  padding-block: 0 clamp(40px, 6vw, 80px);
}

.hm-cruce-tarjeta {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 32px;
  color: var(--blanco);
  background: linear-gradient(180deg, rgba(20, 28, 50, 0.7) 0%, rgba(11, 16, 32, 0.7) 100%);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease), transform 300ms var(--ease);
}

.hm-cruce-tarjeta:hover {
  border-color: rgba(77, 141, 255, 0.55);
  box-shadow: 0 0 40px rgba(31, 107, 255, 0.2);
  transform: translateY(-3px);
}

.hm-cruce-texto {
  flex: 1;
}

.hm-cruce-texto .etiqueta {
  margin-bottom: 6px;
}

.hm-cruce-texto strong {
  display: block;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.35;
}

.hm-cruce-flecha {
  font-size: 28px;
  color: var(--azul-claro);
  transition: transform 240ms var(--ease);
}

.hm-cruce-tarjeta:hover .hm-cruce-flecha {
  transform: translateX(6px);
}

/* Maqueta de llamada */
.hm-transcripcion {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.hm-transcripcion li {
  max-width: 85%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
  border-radius: 14px;
}

.hm-transcripcion b {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}

.hm-transcripcion .agente {
  background: #E8F0FF;
  color: #0B2A6B;
  border-bottom-left-radius: 4px;
}

.hm-transcripcion .cliente {
  justify-self: end;
  background: #EEF0F4;
  color: #1F2937;
  border-bottom-right-radius: 4px;
}

.hm-resumen {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E3E8F0;
}

.hm-resumen .chip {
  flex-shrink: 0;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
}

.hm-resumen p {
  font-size: 14px;
  color: #374151;
}

.hm-nota-planes {
  max-width: none;
  margin-top: 32px;
  text-align: center;
  color: var(--gris);
}

.hm-nota-planes strong {
  color: var(--blanco);
}

@media (max-width: 640px) {
  .hm-cruce-tarjeta {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .hm-cruce-flecha {
    display: none;
  }
}

/* Con 6 links en el menú del inicio, la hamburguesa entra antes */
@media (max-width: 1180px) {
  .tema-tony.inicio .nav-links {
    display: none;
  }
  .tema-tony.inicio .nav-toggle {
    display: inline-block;
  }
  .tema-tony.inicio .nav-panel {
    display: block;
  }
}

/* ============ AGENTES DE VOZ: pantalla de llamada ============ */
.hm-llamada {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.hm-llamada-pantalla {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px 32px;
  text-align: center;
  border-radius: 32px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 30%, rgba(31, 107, 255, 0.28), transparent 70%),
    linear-gradient(180deg, #0E1630 0%, #070B18 100%);
  border: 1px solid rgba(77, 141, 255, 0.35);
  box-shadow: 0 30px 90px rgba(31, 107, 255, 0.28);
}

.hm-llamada-estado {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #4ADE80;
}

.hm-llamada-estado i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 10px #4ADE80;
  animation: parpadeoLlamada 1.6s ease-in-out infinite;
}

.hm-llamada-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  margin: 28px 0 18px;
}

.hm-llamada-foto {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  color: #FFFFFF;
  background: var(--azul);
  box-shadow: 0 0 40px rgba(31, 107, 255, 0.7);
}

.hm-llamada-foto svg {
  width: 38px;
  height: 38px;
}

.hm-anillo {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 2px solid rgba(77, 141, 255, 0.6);
  animation: anilloLlamada 2.4s ease-out infinite;
}

.hm-anillo--2 {
  animation-delay: 1.2s;
}

.hm-llamada-nombre {
  font-size: 22px;
  font-weight: 800;
}

.hm-llamada-numero {
  margin-top: 4px;
  font-size: 14px;
  color: var(--gris);
}

/* Onda de voz */
.hm-onda {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 56px;
  margin: 26px 0 10px;
}

.hm-onda span {
  width: 4px;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--azul-claro), var(--azul));
  box-shadow: 0 0 8px rgba(31, 107, 255, 0.6);
  transform-origin: center;
  animation: ondaVoz 1.1s ease-in-out infinite;
}

.hm-onda span:nth-child(5n+1) { animation-delay: -0.9s; }
.hm-onda span:nth-child(5n+2) { animation-delay: -0.3s; }
.hm-onda span:nth-child(5n+3) { animation-delay: -0.7s; }
.hm-onda span:nth-child(5n+4) { animation-delay: -0.1s; }
.hm-onda span:nth-child(5n)   { animation-delay: -0.5s; }
.hm-onda span:nth-child(3n)   { animation-duration: 0.9s; }
.hm-onda span:nth-child(4n)   { animation-duration: 1.3s; }

.hm-subtitulo {
  max-width: 32ch;
  min-height: 3em;
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
  color: #C9D6F2;
}

.hm-llamada-botones {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
}

.hm-boton-llamada {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.hm-boton-llamada--colgar {
  width: 64px;
  height: 64px;
  background: #E5484D;
  box-shadow: 0 0 24px rgba(229, 72, 77, 0.5);
}

/* Resumen que queda al colgar */
.hm-llamada-resumen {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #F7F9FC;
  color: #0A0A0B;
}

.hm-llamada-resumen-titulo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hm-llamada-resumen-titulo strong {
  font-size: 15px;
  font-weight: 800;
}

.hm-llamada-resumen .chip {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
}

.hm-llamada-resumen dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hm-llamada-resumen dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B7280;
}

.hm-llamada-resumen dd {
  font-size: 14px;
  font-weight: 600;
}

@keyframes ondaVoz {
  0%, 100% { transform: scaleY(0.18); }
  50% { transform: scaleY(1); }
}

@keyframes anilloLlamada {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}

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

@media (prefers-reduced-motion: reduce) {
  .hm-onda span,
  .hm-anillo,
  .hm-llamada-estado i {
    animation: none;
  }
  .hm-onda span:nth-child(odd) { transform: scaleY(0.6); }
  .hm-onda span:nth-child(even) { transform: scaleY(0.3); }
}

.hm-llamada-resumen .chip {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Voz: teléfono y lista como un solo bloque centrado, alineados arriba */
.hm-panel-grid--voz {
  grid-template-columns: 400px minmax(0, 480px);
  justify-content: center;
  align-items: center;
  gap: 72px;
}

.hm-panel-grid--voz .hm-llamada {
  margin: 0;
}

.hm-panel-grid--voz .hm-funciones {
  gap: 32px;
}

@media (max-width: 1000px) {
  .hm-panel-grid--voz {
    grid-template-columns: minmax(0, 420px);
    gap: 48px;
  }
}

/* ============ NAV: dos botones (Entrar a HumanIA + CTA) ============ */
.nav-acciones {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* En tableta la barra no alcanza para los dos: "Entrar" vive en el menú */
@media (max-width: 900px) {
  .nav .btn-entrar {
    display: none;
  }
}

/* En el menú móvil los botones van apilados */
.nav-panel .btn + .btn {
  margin-top: 12px;
}
