/* ═══════════════════════════════════════════════════════════════════
   LS DOMÓTICA — content-pages.css
   ------------------------------------------------------------------
   Estilos compartidos para las páginas de contenido estático/CMS:
   Movilidad Reducida, Especificaciones, Rutinas, Blog.
═══════════════════════════════════════════════════════════════════ */

/* Header común para páginas internas */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  background: radial-gradient(circle at 50% -20%, rgba(0, 149, 255, 0.1) 0%, transparent 60%);
  position: relative;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Skeletons */
.cms-skel {
  background: var(--surface-light);
  border-radius: 8px;
  animation: pulse 1.5s infinite ease-in-out;
}
.cms-skel-title { width: 60%; height: 48px; margin: 0 auto 16px; }
.cms-skel-text { width: 80%; height: 24px; margin: 0 auto 8px; }
.cms-skel-card { width: 100%; height: 200px; border-radius: 12px; }

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 0.3; }
  100% { opacity: 0.6; }
}

/* Layout Principal */
.page-content {
  padding: 0 0 100px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Grid genérico para Features/Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 0 20px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Secciones LS Lite vs LS Pro en contenido */
.comparison-section {
  padding: 60px 20px;
  background: rgba(255,255,255,0.01);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin: 40px 0;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.compare-card {
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}

.compare-lite {
  background: linear-gradient(180deg, rgba(0,149,255,0.05) 0%, transparent 100%);
}

.compare-pro {
  background: linear-gradient(180deg, rgba(255,215,0,0.05) 0%, transparent 100%);
}

.compare-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.compare-desc {
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog Específico */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  padding: 0 20px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.blog-card:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.blog-img-wrap {
  width: 100%;
  height: 220px;
  background: #0a0a0c;
  overflow: hidden;
  position: relative;
}

.blog-img-wrap::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-img {
  transform: scale(1.08);
}

.blog-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 16px;
}

/* Modal leer articulo (Modern overlay) */
.article-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 9999;
  overflow-y: auto;
  padding: 60px 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.article-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.article-close {
  position: fixed;
  top: 30px; right: 30px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  width: 50px; height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.article-close:hover {
  background: rgba(255,255,255,0.15);
  transform: rotate(90deg) scale(1.1);
  border-color: rgba(255,255,255,0.3);
}

.article-content {
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border-radius: 24px;
  max-width: 800px;
  width: 100%;
  padding: 40px;
  position: relative;
  margin: auto;
  transform: translateY(30px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.article-modal[aria-hidden="false"] .article-content {
  transform: translateY(0) scale(1);
}

.article-category {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.article-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 32px;
  color: #fff;
}

.article-img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.article-body p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.article-body h2, .article-body h3 {
  color: #fff;
  margin-top: 40px;
  margin-bottom: 16px;
  font-weight: 600;
}

.article-body ul, .article-body ol {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
  padding-left: 20px;
}

/* ═══════════════════════════════════════════════════════════════════
   SMART ASSISTANT - MOVILIDAD REDUCIDA
═══════════════════════════════════════════════════════════════════ */

.disability-selector {
  margin-bottom: 60px;
}

.selector-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #fff;
  font-weight: 700;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.profile-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  outline: none;
}

.profile-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.profile-card.active {
  background: linear-gradient(145deg, rgba(0, 149, 255, 0.15) 0%, rgba(0, 149, 255, 0.05) 100%);
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(0, 149, 255, 0.2);
  color: #fff;
}

.profile-card.active .profile-icon {
  color: var(--primary);
  transform: scale(1.1);
}

.profile-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.profile-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #fff;
}

.profile-card p {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* AI Assistant Area */
.ai-assistant-container {
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-top: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.5s ease-out;
}

.ai-assistant-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.ai-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 20px;
}

.ai-icon {
  font-size: 1.8rem;
  color: var(--primary);
  animation: pulseIcon 2s infinite;
}

.ai-title {
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ai-typing {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-style: italic;
  font-size: 1rem;
}

.ai-typing .dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.ai-typing .dot:nth-child(1) { animation-delay: -0.32s; }
.ai-typing .dot:nth-child(2) { animation-delay: -0.16s; }

.ai-intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  animation: slideUp 0.5s ease-out;
}

.solution-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.solution-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 16px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: left;
}

.solution-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--primary);
  font-size: 1.2rem;
}

.solution-list strong {
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@keyframes pulseIcon {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; text-shadow: 0 0 15px var(--primary); }
  100% { transform: scale(1); opacity: 0.8; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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