/* =========================
   ASSISTANTS.CSS
   Estilos específicos para la página de Asistentes Inteligentes
   Consistente con styles.css del index
   ========================= */

/* =========================
   HERO ASSISTANTS
   Extiende .hero--new de styles.css
   ========================= */

.hero--assistants {
  min-height: 600px;
  padding: 120px 0 80px;
}

.hero--assistants .hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Kicker / Pill - igual que badges del index */
.hero--assistants .hero-kicker {
  margin: 0;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.85);
}

.hero--assistants .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--white);
  backdrop-filter: blur(8px);
}

/* Título - Bold como section-title */
.hero--assistants .hero-title-new {
  font-size: clamp(36px, 9vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  margin: 0;
  letter-spacing: -0.02em;
}

.hero--assistants .hero-title-new span {
  font-weight: 800;
}

/* Subtítulo - IGUAL que .hero-subtitle del index */
.hero--assistants .hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 480px;
}

.hero--assistants .hero-subtitle strong {
  font-weight: 700;
  color: var(--white);
}

/* CTA del hero */
.hero--assistants .hero-cta {
  margin-top: 24px;
}

/* Botones Hero - Extienden .btn de styles.css */
/* Blanco con borde naranja, hover naranja */
.hero--assistants .btn-primary {
  background: var(--white);
  color: var(--gold-600);
  border: 2px solid var(--gold-600);
}

.hero--assistants .btn-primary:hover {
  background: var(--gold-600);
  color: var(--texto);
  border-color: var(--gold-600);
}

.hero--assistants .btn-ghost {
  background: #3C48BA;
  color: var(--white);
  border: 2px solid #3C48BA;
}

.hero--assistants .btn-ghost:hover {
  background: var(--white);
  color: #3C48BA;
  border-color: #3C48BA;
}

/* Flecha animada - ajustada para verse sin scroll */
.hero-arrow {
  margin-top: -80px;
  display: flex;
  justify-content: center;
  margin-bottom: -24px;
}

.hero-arrow-icon {
  width: 120px;
  height: 120px;
  color: var(--gold-600);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 4px;
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(12px);
  }
  60% {
    transform: translateY(6px);
  }
}

/* Glass Card del Hero */
.hero--assistants .hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.glass-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin-top: 24px;
}

.glass-card__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 16px;
}

.glass-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.glass-card__list li {
  position: relative;
  padding-left: 24px;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.glass-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-600);
  font-weight: 700;
}

/* =========================
   SECCIONES - Consistente con index
   ========================= */

.section--soft {
  background: var(--gray-light);
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
}

/* Títulos grandes - Estilo similar al index */
.section-head .section-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--violet-500);
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
}

/* Palabras destacadas en bold */
.section-head .section-title strong,
.section-head .section-title b {
  font-weight: 800;
}

.section-head .section-subtitle {
  font-size: var(--fs-base);
  font-weight: 400;
  color: var(--texto);
  line-height: 1.65;
  margin: 0;
  opacity: 0.85;
}

/* =========================
   QUÉ ES - Content Grid
   ========================= */

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.content-block p {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--texto);
  margin: 0;
}

.bullets {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bullets li {
  position: relative;
  padding-left: 24px;
  font-size: var(--fs-sm);
  color: var(--texto);
  line-height: 1.6;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--violet-500);
  border-radius: 50%;
}

/* Note Card - Similar a cards del index */
.note-card {
  background: linear-gradient(135deg, rgba(109, 123, 255, 0.04) 0%, rgba(46, 68, 112, 0.04) 100%);
  border: 1px solid rgba(109, 123, 255, 0.12);
  border-left: 3px solid var(--violet-500);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-top: 70px;
}

.note-card p {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--texto);
  margin: 0;
}

.note-card strong {
  color: var(--brand-mixed);
}

#que-es {
  padding-bottom: 100px;
}

/* =========================
   PARA QUÉ - Cards 3 columnas
   ========================= */

#para-que {
  padding: 80px 0 100px;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.mini-card {
  background: var(--white);
  border: 1px solid rgba(46, 68, 112, 0.15);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition-base);
}

.mini-card:hover {
  border-color: var(--gold-600);
  box-shadow: 0 8px 24px rgba(253, 193, 52, 0.2);
  transform: translateY(-4px);
}

.mini-card h3 {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--brand-mixed);
  margin: 0 0 10px;
}

.mini-card p {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--texto);
  margin: 0;
  opacity: 0.85;
}

/* =========================
   TIPOS DE ASISTENTES - TABS
   Diseño moderno con pestañas
   ========================= */

/* Navegación de Tabs */
.tabs-nav {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-lg);
  border-bottom: 2px solid rgba(46, 68, 112, 0.1);
  padding-bottom: 0;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-bottom: -2px;
}

.tab-btn:hover {
  background: rgba(109, 123, 255, 0.04);
}

.tab-btn.active {
  border-bottom-color: var(--violet-500);
  background: rgba(109, 123, 255, 0.06);
}

.tab-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(46, 68, 112, 0.1);
  color: var(--brand-mixed);
  font-size: var(--fs-sm);
  font-weight: 700;
  border-radius: 50%;
  transition: all var(--transition-base);
}

.tab-btn.active .tab-num {
  background: var(--violet-500);
  color: var(--white);
}

.tab-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--texto);
  transition: all var(--transition-base);
}

.tab-btn.active .tab-label {
  color: var(--violet-500);
}

/* Contenido de Tabs */
.tabs-content {
  background: var(--white);
  border: 1px solid rgba(46, 68, 112, 0.12);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 4px 24px rgba(46, 68, 112, 0.06);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

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

/* Grid del contenido */
.tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.tab-info h4 {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--violet-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}

.tab-info h4:not(:first-child) {
  margin-top: 24px;
}

.tab-info p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--texto);
  margin: 0;
}

.tab-example h4 {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--violet-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
}

/* Chat Box - Simulación de conversación */
.chat-box {
  background: linear-gradient(135deg, rgba(109, 123, 255, 0.04) 0%, rgba(46, 68, 112, 0.04) 100%);
  border: 1px solid rgba(109, 123, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.chat-msg--user {
  align-self: flex-end;
  background: var(--violet-500);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-msg--bot {
  align-self: flex-start;
  background: var(--white);
  color: var(--texto);
  border: 1px solid rgba(109, 123, 255, 0.15);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* =========================
   CÓMO TRABAJAMOS - Steps
   ========================= */

#como {
  padding: 80px 0 100px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background: var(--gold-600);
  color: var(--texto);
  font-size: var(--fs-xl);
  font-weight: 700;
  border-radius: 50%;
}

.step h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--brand-mixed);
  margin: 0 0 8px;
}

.step p {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--texto);
  margin: 0;
  opacity: 0.85;
}

/* Línea conectora entre steps */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(50% + 36px);
  width: calc(100% - 72px);
  height: 2px;
  background: linear-gradient(90deg, var(--gold-600) 0%, rgba(253, 193, 52, 0.3) 100%);
}

/* =========================
   FAQ ASSISTANTS
   Usa mismos estilos que index (styles.css)
   ========================= */

#faq .faqs-container {
  max-width: 800px;
  margin: 0 auto;
}

/* =========================
   CONTACTO ASSISTANTS
   ========================= */

#contacto.section--soft {
  text-align: center;
}

#contacto .section-head {
  margin-bottom: var(--space-lg);
}

#contacto .hero-cta {
  justify-content: center;
}

/* Botones contacto - Violeta */
#contacto .btn-primary {
  background: var(--violet-500);
  color: var(--white);
  border: 2px solid var(--violet-500);
  box-shadow: 0 4px 16px rgba(109, 123, 255, 0.3);
}

#contacto .btn-primary:hover {
  background: var(--white);
  color: var(--violet-500);
  border: 2px solid var(--violet-500);
}

#contacto .btn-ghost {
  background: transparent;
  color: var(--violet-500);
  border: 2px solid var(--violet-500);
}

#contacto .btn-ghost:hover {
  background: var(--violet-500);
  color: var(--white);
}

/* =========================
   OCULTAR CTA FLOTANTE EN ASSISTANTS
   Ya estamos en la página de detalle
   ========================= */

.section-float-cta {
  display: none !important;
}

/* =========================
   RESPONSIVE ASSISTANTS
   Siguiendo los breakpoints del index
   ========================= */

@media (max-width: 1024px) {
  .hero--assistants .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* En mobile: título/subtítulo primero, luego glass card */
  .hero--assistants .hero-visual {
    order: 1;
  }

  .glass-card {
    max-width: 100%;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .tab-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 899px) {
  .hero--assistants {
    padding: 120px 0 60px;
  }

  .hero--assistants .hero-title-new {
    font-size: clamp(40px, 7vw, 64px);
  }

  .hero--assistants .hero-subtitle {
    font-size: 17px;
    max-width: 100%;
  }

  .hero-arrow {
    margin-top: 16px;
    margin-bottom: -16px;
  }

  .hero-arrow-icon {
    width: 80px;
    height: 80px;
    stroke-width: 2.5;
  }

  /* Note card transición */
  .note-card {
    margin-top: 50px;
  }

  /* Secciones padding intermedio */
  #que-es {
    padding-bottom: 80px;
  }

  #para-que {
    padding: 60px 0 80px;
  }

  #como {
    padding: 60px 0 80px;
  }
}

@media (max-width: 768px) {
  .hero--assistants {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero--assistants .hero-title-new {
    font-size: clamp(36px, 9vw, 52px);
    margin-bottom: 20px;
  }

  .hero--assistants .hero-subtitle {
    font-size: 16px;
    line-height: 1.5;
    max-width: 100%;
  }

  .hero--assistants .hero-subtitle br {
    display: none;
  }

  .hero--assistants .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero--assistants .btn-primary,
  .hero--assistants .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  /* Note card - transición intermedia */
  .note-card {
    margin-top: 40px;
  }

  .cards-3 {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .mini-card p {
    font-size: var(--fs-xs);
  }

  /* Tabs responsive */
  .tabs-nav {
    flex-wrap: wrap;
    gap: 6px;
  }

  .tab-btn {
    flex: 1 1 calc(50% - 6px);
    padding: 12px 16px;
    justify-content: center;
  }

  .tab-label {
    font-size: var(--fs-xs);
  }

  .tabs-content {
    padding: 24px;
  }

  .tab-info h4 {
    font-size: 11px;
  }

  .tab-info p {
    font-size: var(--fs-xs);
  }

  .tab-example h4 {
    font-size: 11px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-md);
    text-align: left;
  }

  .step-num {
    margin: 0;
    width: 48px;
    height: 48px;
    font-size: var(--fs-lg);
  }

  .step h3,
  .step p {
    grid-column: 2;
  }

  .step h3 {
    margin-bottom: 4px;
    font-size: var(--fs-sm);
  }

  .step p {
    font-size: var(--fs-xs);
  }

  /* FAQ section padding */
  #faq.section {
    padding: 48px 0;
  }

  /* Sección títulos más pequeños */
  .section-head .section-title {
    font-size: var(--fs-2xl);
  }

  /* Contacto section */
  #contacto.section--soft {
    padding: 48px 0 60px;
  }
}

@media (max-width: 600px) {
  .hero--assistants {
    padding: 96px 0 48px;
  }

  .hero--assistants .container {
    padding-inline: 20px;
  }

  .hero--assistants .hero-inner {
    gap: 24px;
  }

  .hero--assistants .hero-title-new {
    font-size: clamp(28px, 10vw, 42px);
    line-height: 1.1;
    margin-top: 16px;
    margin-bottom: 12px;
  }

  .hero--assistants .hero-subtitle {
    font-size: 14px;
    line-height: 1.55;
  }

  .hero--assistants .btn-primary,
  .hero--assistants .btn-ghost {
    padding: 14px 24px;
    font-size: var(--fs-sm);
  }

  /* Hero arrow más chica */
  .hero-arrow {
    margin-top: 8px;
    margin-bottom: -12px;
  }

  .hero-arrow-icon {
    width: 60px;
    height: 60px;
    stroke-width: 2;
  }

  /* Section head */
  .section-head .section-title {
    font-size: clamp(22px, 6vw, 28px);
  }

  .section-head .section-subtitle {
    font-size: var(--fs-sm);
    line-height: 1.5;
  }

  /* Texto de content-block igual al subtítulo */
  .content-block p {
    font-size: var(--fs-sm);
    line-height: 1.6;
  }

  .bullets {
    margin-top: 12px;
    gap: 8px;
  }

  .bullets li {
    font-size: var(--fs-xs);
    padding-left: 20px;
  }

  .bullets li::before {
    width: 6px;
    height: 6px;
    top: 7px;
  }

  /* Mini cards */
  .mini-card {
    padding: 20px 16px;
  }

  .mini-card h3 {
    font-size: var(--fs-base);
    margin-bottom: 6px;
  }

  .mini-card p {
    font-size: var(--fs-xs);
    line-height: 1.5;
  }

  /* Tabs mobile pequeño */
  .tabs-nav {
    flex-direction: column;
    gap: 4px;
    border-bottom: none;
  }

  .tab-btn {
    flex: none;
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    border-bottom: none;
    border-left: 3px solid transparent;
    border-radius: var(--radius-md);
    background: rgba(46, 68, 112, 0.03);
  }

  .tab-btn.active {
    border-left-color: var(--violet-500);
    border-bottom-color: transparent;
    background: rgba(109, 123, 255, 0.08);
  }

  .tab-num {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .tab-label {
    font-size: 13px;
  }

  .tabs-content {
    padding: 18px 14px;
  }

  .tab-info h4,
  .tab-example h4 {
    font-size: 10px;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
  }

  .tab-info h4:not(:first-child) {
    margin-top: 18px;
  }

  .tab-info p {
    font-size: 13px;
    line-height: 1.55;
  }

  .chat-box {
    padding: 14px;
    gap: 10px;
  }

  .chat-msg {
    max-width: 92%;
    font-size: 12px;
    padding: 10px 12px;
  }

  /* Note card */
  .note-card {
    padding: 16px 18px;
    margin-top: 24px;
  }

  .note-card p {
    font-size: var(--fs-xs);
  }

  /* Steps más compactos */
  .step {
    gap: 12px;
  }

  .step-num {
    width: 40px;
    height: 40px;
    font-size: var(--fs-base);
  }

  .step h3 {
    font-size: var(--fs-sm);
  }

  .step p {
    font-size: 12px;
    line-height: 1.5;
  }

  /* Secciones padding */
  #que-es {
    padding-bottom: 48px;
  }

  #para-que {
    padding: 40px 0 48px;
  }

  #como {
    padding: 40px 0 48px;
  }

  #faq.section {
    padding: 40px 0;
  }

  #contacto.section--soft {
    padding: 40px 0 48px;
  }

  #contacto .section-head {
    margin-bottom: var(--space-md);
  }

  #contacto .btn-primary,
  #contacto .btn-ghost {
    padding: 12px 20px;
    font-size: var(--fs-sm);
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero--assistants {
    padding: 88px 0 40px;
  }

  .hero--assistants .container {
    padding-inline: 16px;
  }

  .hero--assistants .hero-inner {
    gap: 20px;
  }

  .hero--assistants .hero-title-new {
    font-size: clamp(24px, 9vw, 36px);
    margin-left: 0;
    margin-top: 12px;
    margin-bottom: 10px;
  }

  .hero--assistants .hero-subtitle {
    font-size: 13px;
    line-height: 1.5;
  }

  .hero--assistants .btn-primary,
  .hero--assistants .btn-ghost {
    padding: 12px 20px;
    font-size: 13px;
  }

  .hero-arrow-icon {
    width: 50px;
    height: 50px;
  }

  .glass-card {
    padding: 18px 20px;
  }

  .glass-card__title {
    font-size: var(--fs-sm);
    margin-bottom: 12px;
  }

  .glass-card__list {
    gap: 10px;
  }

  .glass-card__list li {
    font-size: 12px;
    padding-left: 20px;
  }

  /* Section head más compacto */
  .section-head {
    margin-bottom: var(--space-lg);
  }

  .section-head .section-title {
    font-size: clamp(20px, 5.5vw, 24px);
    margin-bottom: 8px;
  }

  .section-head .section-subtitle {
    font-size: 13px;
  }

  /* Content más compacto */
  .content-block p {
    font-size: 13px;
  }

  .bullets li {
    font-size: 12px;
  }

  /* Note card */
  .note-card {
    padding: 14px 16px;
  }

  .note-card p {
    font-size: 12px;
  }

  /* Mini cards */
  .mini-card {
    padding: 16px 14px;
  }

  .mini-card h3 {
    font-size: var(--fs-sm);
  }

  .mini-card p {
    font-size: 12px;
  }

  /* Tabs más compactos */
  .tab-btn {
    padding: 10px 12px;
  }

  .tab-num {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .tab-label {
    font-size: 12px;
  }

  .tabs-content {
    padding: 16px 12px;
  }

  .tab-info h4,
  .tab-example h4 {
    font-size: 9px;
  }

  .tab-info p {
    font-size: 12px;
  }

  .chat-msg {
    font-size: 11px;
    padding: 8px 10px;
  }

  /* Steps */
  .step-num {
    width: 36px;
    height: 36px;
    font-size: var(--fs-sm);
  }

  .step h3 {
    font-size: 13px;
  }

  .step p {
    font-size: 11px;
  }

  /* Secciones */
  #que-es {
    padding-bottom: 40px;
  }

  #para-que {
    padding: 32px 0 40px;
  }

  #como {
    padding: 32px 0 40px;
  }

  #faq.section {
    padding: 32px 0;
  }

  #contacto.section--soft {
    padding: 32px 0 40px;
  }

  #contacto .btn-primary,
  #contacto .btn-ghost {
    padding: 11px 18px;
    font-size: 13px;
  }
}
