/* ═══════════════════════════════════════════════════════════════
   AGENTES IA — Página dedicada
   ═══════════════════════════════════════════════════════════════ */

/* Forzar fondo oscuro en toda la página */
body {
  background: var(--ink);
  color: #f5f3ee;
}

/* ── HERO ── */
.aai-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  padding: clamp(6rem, 12vw, 10rem) 0 clamp(5rem, 8vw, 8rem);
}

.aai-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.aai-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.6) brightness(0.28) contrast(1.1);
  animation: kenburns 28s ease-in-out infinite alternate;
}

.aai-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.55) 60%, transparent 100%),
    radial-gradient(ellipse at 20% 50%, rgba(217,32,56,0.18) 0%, transparent 55%);
}

.aai-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.aai-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.38);
}

.aai-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(217,32,56,0.6);
  animation: aidPulse 2.2s infinite;
  flex-shrink: 0;
}

.aai-hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.aai-hero-h1 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.aai-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.aai-hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.aai-hero-proof {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.aai-proof-tag {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 0.18rem 0.55rem;
  color: rgba(255,255,255,0.5);
}

/* Chat flotante hero */
.aai-hero-chat {
  position: absolute;
  right: clamp(2rem, 6vw, 8rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(15,15,15,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  overflow: hidden;
  width: 300px;
  backdrop-filter: blur(16px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
}

.aai-hchat-hdr {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
}

.aai-hchat-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 7px rgba(74,222,128,0.7);
  animation: chatDotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.aai-hchat-status {
  margin-left: auto;
  color: #4ade80;
  font-size: 0.6rem;
}

.aai-hchat-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.aai-hchat-msg {
  max-width: 85%;
  font-size: 0.78rem;
  line-height: 1.45;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
}

.aai-hchat-u {
  align-self: flex-end;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
  border-bottom-right-radius: 3px;
}

.aai-hchat-a {
  align-self: flex-start;
  background: rgba(217,32,56,0.1);
  border: 1px solid rgba(217,32,56,0.22);
  color: rgba(255,255,255,0.85);
  border-bottom-left-radius: 3px;
}

.aai-hchat-resolved {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: #4ade80;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.18);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

@media (max-width: 1100px) {
  .aai-hero-chat { display: none; }
}

/* ── STATS ── */
.aai-stats-section {
  background: var(--ink-2, #111);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: clamp(2.5rem, 4vw, 4rem) 0;
}

.aai-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.aai-stat-card {
  padding: 1.5rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.aai-stat-card:last-child { border-right: none; }

.aai-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.aai-stat-unit {
  font-size: 0.55em;
  color: rgba(217,32,56,0.7);
}

.aai-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .aai-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .aai-stat-card:nth-child(3) { border-right: none; }
}
@media (max-width: 600px) {
  .aai-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .aai-stat-card { border-right: 1px solid rgba(255,255,255,0.07) !important; }
  .aai-stat-card:nth-child(2n) { border-right: none !important; }
}

/* ── PROBLEMA ── */
.aai-problem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.aai-problem-img {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  background:
    linear-gradient(135deg, #1a0a0f 0%, #0d0d0d 60%, #1a0005 100%);
}

.aai-problem-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.5) brightness(0.6) contrast(1.1);
  animation: kenburns 24s ease-in-out infinite alternate;
}

.aai-problem-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(10,10,10,0.85) 100%);
}

.aai-problem-img-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(10,10,10,0.85);
  border: 1px solid rgba(217,32,56,0.3);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
}

.aai-stat-ico { font-size: 1.1rem; }

.aai-problem-content {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(3rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.aai-problem-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.aai-problem-content h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.aai-problem-content > p {
  color: rgba(10,10,10,0.62);
  font-size: 1rem;
  line-height: 1.65;
}

.aai-pain-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.aai-pain-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.aai-pain-x {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(217,32,56,0.1);
  border: 1px solid rgba(217,32,56,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.aai-pain-list li div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.aai-pain-list li strong {
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 600;
}

.aai-pain-list li span {
  font-size: 0.82rem;
  color: rgba(10,10,10,0.55);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .aai-problem {
    grid-template-columns: 1fr;
  }
  .aai-problem-img {
    height: 300px;
  }
}

/* ── SOLUCIÓN ── */
.aai-solution {
  background: var(--ink);
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.aai-sol-hdr {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(3rem, 5vw, 5rem);
}

.aai-sol-hdr h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0.75rem 0;
}

.aai-sol-hdr h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.aai-sol-hdr p {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  line-height: 1.65;
}

.aai-sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border-radius: 20px;
  overflow: hidden;
}

.aai-sol-card {
  background: rgba(255,255,255,0.02);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.3s;
}

.aai-sol-card:hover {
  background: rgba(255,255,255,0.05);
}

.aai-sol-icon {
  width: 48px; height: 48px;
  background: rgba(217,32,56,0.1);
  border: 1px solid rgba(217,32,56,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aai-sol-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.aai-sol-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .aai-sol-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .aai-sol-grid { grid-template-columns: 1fr; }
}

/* ── PROCESO ── */
.aai-process-section {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.aai-proc-hdr {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(3rem, 5vw, 5rem);
}

.aai-proc-hdr h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0.75rem 0;
}

.aai-proc-hdr h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.aai-proc-hdr p { color: rgba(10,10,10,0.55); font-size: 1rem; line-height: 1.65; }

.aai-proc-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.aai-proc-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.aai-proc-step::after {
  content: '→';
  position: absolute;
  top: 60px;
  right: -1rem;
  color: rgba(217,32,56,0.4);
  font-size: 1.2rem;
  z-index: 2;
}
.aai-proc-step:last-child::after { display: none; }

.aai-proc-n {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.aai-proc-img {
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1c1c1c 0%, #111 100%);
}

.aai-proc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) brightness(0.85) contrast(1.05);
  transition: filter 0.5s, transform 0.6s cubic-bezier(0.2,0,0,1);
  animation: slowZoom 20s ease-in-out infinite alternate;
}

.aai-proc-step:hover .aai-proc-img img {
  filter: grayscale(0) brightness(0.9) contrast(1.1);
  transform: scale(1.05);
}

.aai-proc-step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.aai-proc-step p {
  font-size: 0.85rem;
  color: rgba(10,10,10,0.55);
  line-height: 1.6;
  flex: 1;
}

.aai-proc-time {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  background: rgba(217,32,56,0.08);
  border: 1px solid rgba(217,32,56,0.2);
  border-radius: 999px;
  width: fit-content;
}

@media (max-width: 900px) {
  .aai-proc-steps { grid-template-columns: repeat(2, 1fr); }
  .aai-proc-step::after { display: none; }
}
@media (max-width: 600px) {
  .aai-proc-steps { grid-template-columns: 1fr; }
}

/* ── CANALES ── */
.aai-channels {
  background: var(--ink-2, #111);
  padding: clamp(4rem, 7vw, 7rem) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.aai-ch-hdr {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(3rem, 5vw, 4.5rem);
}

.aai-ch-hdr h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0.75rem 0;
}

.aai-ch-hdr h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.aai-ch-hdr p { color: rgba(255,255,255,0.5); font-size: 1rem; line-height: 1.65; }

.aai-ch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.aai-ch-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  transition: background 0.3s, border-color 0.3s, transform 0.3s cubic-bezier(0.2,0,0,1);
}

.aai-ch-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}

.aai-ch-wa {
  border-color: rgba(37,211,102,0.2);
  background: rgba(37,211,102,0.04);
}

.aai-ch-wa:hover {
  border-color: rgba(37,211,102,0.35);
  background: rgba(37,211,102,0.08);
}

.aai-ch-logo {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aai-ch-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.aai-ch-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
  flex: 1;
}

.aai-ch-badge {
  font-family: var(--font-mono);
  font-size: 0.57rem;
  padding: 0.18rem 0.5rem;
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.25);
  border-radius: 999px;
  color: #25d366;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: fit-content;
}

@media (max-width: 900px) {
  .aai-ch-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .aai-ch-grid { grid-template-columns: 1fr; }
}

/* ── CASOS DE USO ── */
.aai-cases {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.aai-cases-hdr {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(3rem, 5vw, 5rem);
}

.aai-cases-hdr h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0.75rem 0;
}

.aai-cases-hdr h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.aai-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.aai-case-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2,0,0,1), box-shadow 0.35s;
}

.aai-case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}

.aai-case-img {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0a0f 0%, #111 60%, #0d0d1a 100%);
}

.aai-case-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) brightness(0.75) contrast(1.05);
  transition: filter 0.5s, transform 0.6s cubic-bezier(0.2,0,0,1);
  animation: kenburns 22s ease-in-out infinite alternate;
}

.aai-case-card:hover .aai-case-img img {
  filter: grayscale(0) brightness(0.8) contrast(1.1);
  transform: scale(1.06);
}

.aai-case-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,0.75));
}

.aai-case-sector {
  position: absolute;
  bottom: 1rem; left: 1rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(217,32,56,0.85);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.aai-case-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.aai-case-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.aai-case-body > p {
  font-size: 0.85rem;
  color: rgba(10,10,10,0.58);
  line-height: 1.6;
}

.aai-case-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.aai-case-list li {
  font-size: 0.82rem;
  color: rgba(10,10,10,0.65);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}

.aai-case-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 0.75rem;
}

.aai-case-metric {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.aai-cm-val {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.aai-cm-lbl {
  font-size: 0.75rem;
  color: rgba(10,10,10,0.5);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .aai-cases-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ── DEMO ── */
.aai-demo-section {
  background: var(--ink);
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.aai-demo-hdr {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(3rem, 5vw, 5rem);
}

.aai-demo-hdr h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0.75rem 0;
}

.aai-demo-hdr h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.aai-demo-hdr p { color: rgba(255,255,255,0.5); font-size: 1rem; line-height: 1.65; }

.aai-demo-wrapper {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 5rem;
  align-items: center;
}

/* Teléfono */
.aai-demo-phone { display: flex; justify-content: center; }

.aai-phone-frame {
  width: 320px;
  background: #1a1a1a;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}

.aai-phone-notch {
  width: 100px; height: 24px;
  background: #0a0a0a;
  border-radius: 999px;
  margin: 0 auto 8px;
}

.aai-phone-screen {
  background: #0d0d0d;
  border-radius: 34px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.aai-phone-hdr {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.aai-phone-back {
  color: var(--red);
  font-size: 1rem;
  cursor: pointer;
}

.aai-phone-contact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.aai-phone-av {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(217,32,56,0.15);
  border: 1px solid rgba(217,32,56,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
}

.aai-phone-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.aai-phone-online {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: #4ade80;
}

.aai-phone-msgs {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

/* Mensajes del teléfono */
.aai-pm {
  max-width: 82%;
  font-size: 0.75rem;
  line-height: 1.45;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.aai-pm.aai-pm-visible {
  opacity: 1;
  transform: none;
}

.aai-pm.aai-pm-hide {
  opacity: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  transition: all 0.3s ease;
}

.aai-pm-u {
  align-self: flex-end;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.88);
  border-bottom-right-radius: 3px;
}

.aai-pm-a {
  align-self: flex-start;
  background: rgba(217,32,56,0.1);
  border: 1px solid rgba(217,32,56,0.22);
  color: rgba(255,255,255,0.88);
  border-bottom-left-radius: 3px;
}

.aai-pm-typing {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.65rem 0.8rem;
  background: rgba(217,32,56,0.08);
  border: 1px solid rgba(217,32,56,0.18);
  border-bottom-left-radius: 3px;
}

.aai-pm-typing span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(217,32,56,0.7);
  animation: chatDot 1.2s ease-in-out infinite;
}
.aai-pm-typing span:nth-child(2) { animation-delay: 0.2s; }
.aai-pm-typing span:nth-child(3) { animation-delay: 0.4s; }

.aai-pm-resolved {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  color: #4ade80;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.18);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.aai-pm-resolved.aai-pm-visible {
  opacity: 1;
}

/* Panel de pasos */
.aai-demo-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.aai-dstep {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.aai-dstep-n {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(217,32,56,0.1);
  border: 1px solid rgba(217,32,56,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--red);
  flex-shrink: 0;
}

.aai-dstep-body h4 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.aai-dstep-body p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .aai-demo-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ── COMPARACIÓN ── */
.aai-compare {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.aai-cmp-hdr {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(3rem, 5vw, 4.5rem);
}

.aai-cmp-hdr h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0.75rem 0;
}

.aai-cmp-hdr h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.aai-cmp-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(0,0,0,0.1);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
}

.aai-cmp-col { background: #fff; }

.aai-cmp-col-hdr {
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid rgba(0,0,0,0.08);
}

.aai-cmp-label-bad {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(10,10,10,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.aai-cmp-label-good {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.aai-cmp-after .aai-cmp-col-hdr {
  border-bottom-color: rgba(217,32,56,0.2);
  background: rgba(217,32,56,0.03);
}

.aai-cmp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  gap: 1rem;
}

.aai-cmp-row:last-child { border-bottom: none; }

.aai-cmp-metric {
  font-size: 0.82rem;
  color: rgba(10,10,10,0.5);
}

.aai-cmp-val-bad {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(10,10,10,0.45);
  text-align: right;
}

.aai-cmp-val-good {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  text-align: right;
}

@media (max-width: 700px) {
  .aai-cmp-table { grid-template-columns: 1fr; }
  .aai-cmp-row { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}

/* ── TECH ── */
.aai-tech-section {
  position: relative;
  background: var(--ink);
  padding: clamp(4rem, 7vw, 7rem) 0;
  overflow: hidden;
}

.aai-tech-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #0a0a14 0%, #0d0005 50%, #0a0a0a 100%);
}

.aai-tech-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.08) contrast(1.2);
  animation: kenburns 32s ease-in-out infinite alternate;
}

.aai-tech-section .container {
  position: relative;
  z-index: 1;
}

.aai-tech-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.aai-tech-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(217,32,56,0.08);
  border: 1px solid rgba(217,32,56,0.22);
  border-radius: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
}

.aai-tech-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.aai-tc {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background 0.3s, border-color 0.3s;
}

.aai-tc:hover {
  background: rgba(217,32,56,0.08);
  border-color: rgba(217,32,56,0.25);
}

.aai-tc-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.aai-tc-role {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .aai-tech-inner { grid-template-columns: 1fr; gap: 3rem; }
}

/* ── FAQ ── */
.aai-faq {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.aai-faq-hdr {
  max-width: 680px;
  margin: 0 auto clamp(3rem, 5vw, 4.5rem);
  text-align: center;
}

.aai-faq-hdr h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0.75rem 0;
}

.aai-faq-hdr h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.aai-faq-list {
  max-width: 800px;
  margin: 0 auto;
}

/* ── CTA FINAL ── */
.aai-cta-final {
  position: relative;
  background: var(--ink);
  padding: clamp(5rem, 9vw, 9rem) 0;
  overflow: hidden;
}

.aai-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #1a0005 0%, #0a0a0a 60%, #0d0d1a 100%);
}

.aai-cta-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.7) brightness(0.2) contrast(1.1);
  animation: kenburns 28s ease-in-out infinite alternate;
}

.aai-cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.7) 60%, transparent 100%),
              radial-gradient(ellipse at 20% 50%, rgba(217,32,56,0.2) 0%, transparent 55%);
}

.aai-cta-inner {
  position: relative;
  z-index: 2;
}

.aai-cta-content {
  max-width: 620px;
}

.aai-cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0.75rem 0 1rem;
}

.aai-cta-content h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.aai-cta-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.aai-cta-guarantee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
