/* ==========================================================================
   NovaChat - Componentes UI (White Mode, Badges, Mockup, Formularios)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Botones de Plataformas y Descarga (Hero, Barra y CTA)
   -------------------------------------------------------------------------- */
.platform-buttons-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.35rem;
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

.btn-store:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  color: var(--text-primary);
}

.btn-store-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-store-icon svg {
  width: 100%;
  height: 100%;
}

.btn-store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.btn-store-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.btn-store-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Botón Web Chat Destacado */
.btn-web-chat {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  color: #ffffff !important;
  border: 1px solid transparent;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-web-chat .btn-store-badge {
  color: rgba(255, 255, 255, 0.85);
}

.btn-web-chat .btn-store-name {
  color: #ffffff;
}

.btn-web-chat:hover {
  background: linear-gradient(135deg, #4338ca 0%, #2563eb 100%);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
  transform: translateY(-3px);
}

/* Badge de Versión en Hero */
.version-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.version-hero-badge:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.importance-pill {
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.importance-pill.high {
  background: #ffe4e6;
  color: #e11d48;
}

.importance-pill.medium {
  background: #fef3c7;
  color: #d97706;
}

.importance-pill.low {
  background: #e2e8f0;
  color: #475569;
}

/* --------------------------------------------------------------------------
   2. Smartphone Mockup 3D & Simulador Interactivo
   -------------------------------------------------------------------------- */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  perspective: 1200px;
}

.phone-mockup {
  width: 320px;
  height: 640px;
  background: #ffffff;
  border-radius: 46px;
  border: 10px solid #0f172a;
  box-shadow: var(--shadow-mockup);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}

/* Dynamic Island / Notch */
.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  background: #0f172a;
  border-radius: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}

.phone-camera {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1e293b;
  border: 1px solid #334155;
}

/* Barra de estado del móvil */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 4px 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  background: #ffffff;
  z-index: 40;
}

/* Pantalla del teléfono */
.phone-screen {
  flex: 1;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.phone-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.chat-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.chat-user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.chat-user-status {
  font-size: 0.72rem;
  color: var(--accent-emerald);
  font-weight: 500;
}

.chat-actions-mini svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* Mensajes en la pantalla */
.phone-messages-area {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.msg-bubble {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.35;
  position: relative;
  word-break: break-word;
  animation: slideUp 0.3s ease;
}

.msg-bubble.received {
  align-self: flex-start;
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.msg-bubble.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.25);
}

.msg-bubble.sent p {
  color: #ffffff;
}

.msg-time {
  font-size: 0.65rem;
  margin-top: 4px;
  text-align: right;
  opacity: 0.75;
}

/* Burbuja de Nota de Voz */
.voice-note-bubble {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 210px;
}

.play-voice-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.play-voice-btn svg {
  width: 14px;
  height: 14px;
}

.waveform-container {
  display: flex;
  align-items: center;
  gap: 2.5px;
  flex: 1;
  height: 20px;
}

.waveform-bar {
  width: 2.5px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  height: 8px;
  transition: height 0.2s ease;
}

.waveform-bar.active {
  background: #ffffff;
  animation: soundWave 0.8s ease-in-out infinite alternate;
}

.voice-speed-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
}

/* Sticker Animado en chat */
.sticker-chat-img {
  width: 90px;
  height: 90px;
  animation: floatSlow 3s ease-in-out infinite;
  display: block;
  margin: 0 auto;
}

/* Tarjetas Flotantes Parallax sobre el Mockup */
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 1rem;
  z-index: 100;
  pointer-events: auto;
  transition: transform 0.1s ease-out;
}

.floating-card-call {
  top: 14%;
  left: -48px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.call-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pulseGlow 1.5s infinite;
}

.floating-card-security {
  bottom: 22%;
  right: -55px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.floating-card-security svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.floating-card-sticker {
  top: 48%;
  left: -40px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
}

/* Controles de Simulador de Pestañas */
.mockup-tabs-selector {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.mockup-tab-btn {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mockup-tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mockup-tab-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.25);
}

/* --------------------------------------------------------------------------
   3. Tarjetas de Funcionalidades (6 Pilares)
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.1);
}

.feature-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.55;
}

.feature-badge {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   4. Sección de Plataformas Soportadas (Multi-Device)
   -------------------------------------------------------------------------- */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.platform-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

.platform-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.platform-card-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.platform-card-icon svg {
  width: 32px;
  height: 32px;
  color: var(--text-primary);
}

.platform-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.platform-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* --------------------------------------------------------------------------
   5. Sección de Soporte y Acercamiento con el Desarrollador (Landing Page)
   -------------------------------------------------------------------------- */
.dev-support-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-top: 1px solid var(--border);
}

.dev-support-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: center;
}

.dev-profile-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.dev-avatar-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.dev-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.dev-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.dev-lead-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.dev-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: #ecfdf5;
  color: #059669;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.4rem;
}

.dev-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulseGlow 2s infinite;
}

.dev-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dev-detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.dev-detail-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* Formulario de Soporte */
.support-form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.category-pill-radio {
  display: none;
}

.category-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-pill-radio:checked + .category-pill-label {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.btn-submit-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
  transition: all 0.25s ease;
}

.btn-submit-support:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

/* --------------------------------------------------------------------------
   6. Timeline de Versiones (releases.html)
   -------------------------------------------------------------------------- */
.releases-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-tab-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.filter-tab-btn svg {
  width: 18px;
  height: 18px;
}

.releases-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.release-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.release-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.release-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.release-card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.release-version-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.release-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  font-weight: 600;
}

.release-platform-badge svg {
  width: 14px;
  height: 14px;
}

.release-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.release-notes-list {
  list-style: none;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.release-notes-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.release-notes-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Modal de Versiones / Release Notes */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 2.2rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   7. Acordeón de FAQ (contact.html e index.html)
   -------------------------------------------------------------------------- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
}

.faq-chevron {
  transition: transform 0.3s ease;
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

/* --------------------------------------------------------------------------
   8. Media Queries para Componentes
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .features-grid, .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dev-support-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .features-grid, .platforms-grid {
    grid-template-columns: 1fr;
  }
  .floating-card {
    display: none;
  }
  .phone-mockup {
    width: 290px;
    height: 580px;
  }
  .platform-buttons-group {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-store {
    justify-content: center;
  }
}
