/* ==========================================================================
   WEBFACTOR STUDIO - CSS ESPECÍFICO DE INDEX.HTML
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO SECTION DE ALTO IMPACTO (Solo index)
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-section {
    padding-top: calc(var(--nav-height) + 5rem);
    padding-bottom: 6rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.95fr;
    gap: 4rem;
  }
}

.hero-content { text-align: center; }

@media (min-width: 992px) {
  .hero-content { text-align: left; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: #34d399;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: pulse-border 2.5s infinite;
}

.badge-dot {
  width: 8px; height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

.hero-title { margin-bottom: 1.4rem; }

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 580px;
}

@media (max-width: 991px) {
  .hero-desc { margin-left: auto; margin-right: auto; }
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

@media (min-width: 576px) {
  .hero-cta-group { flex-direction: row; justify-content: center; }
  .hero-cta-group .btn { width: auto; }
}

@media (max-width: 575px) {
  .hero-cta-group .btn { width: 100%; }
}

@media (min-width: 992px) {
  .hero-cta-group { justify-content: flex-start; }
}

/* Stats hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 0.6rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    padding-top: 2rem;
  }
}

.stat-item { text-align: center; }

@media (min-width: 992px) { .stat-item { text-align: left; } }

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

@media (min-width: 992px) { .stat-number { justify-content: flex-start; } }

.stat-label { font-size: clamp(0.72rem, 1.8vw, 0.82rem); color: var(--text-muted); margin-top: 0.3rem; }

/* Tarjeta visual hero */
.hero-visual-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.8rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition-normal);
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) { .hero-visual-card { padding: 1rem; } }

.hero-visual-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
}

.mockup-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem 0.8rem 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.8rem;
}

.window-dots { display: flex; gap: 5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.device-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 3px;
}

.device-btn {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.device-btn.active { background: var(--primary); color: #ffffff; }

.mockup-url-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  flex: 1;
  margin-left: 0.6rem;
}

.mockup-url-bar::before { content: '🔒'; font-size: 0.65rem; opacity: 0.7; flex-shrink: 0; }

.mockup-url-bar span {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
  letter-spacing: 0.01em;
}

.hero-mockup-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #0b0f19;
  aspect-ratio: 16 / 10;
}

.hero-mockup-frame img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

/* Insignia flotante */
.floating-feature-tag {
  position: static;
  margin-top: 0.8rem;
  width: 100%;
  justify-content: center;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #10b981;
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .floating-feature-tag {
    position: absolute;
    bottom: -15px; left: 20px;
    margin-top: 0;
    width: auto;
    animation: float-slow 4s ease-in-out infinite;
  }
}

.floating-feature-tag .icon-pulse { color: #10b981; font-size: 1rem; }
.floating-feature-tag span { font-size: 0.8rem; font-weight: 700; color: #ffffff; white-space: nowrap; }

/* Showcase scroll (hero mockup) */
.showcase-scroll-wrapper { cursor: grab; user-select: none; }
.showcase-scroll-wrapper:active { cursor: grabbing; }

.showcase-scroll-img {
  width: 100% !important;
  height: auto !important;
  min-height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transform: translateY(0);
  animation: scrollShowcase 12s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  will-change: transform;
}

@keyframes scrollShowcase {
  0%, 15% { transform: translateY(0%); }
  85%, 100% { transform: translateY(calc(-100% + (100vw * 10 / 16))); }
}

@media (min-width: 768px) {
  @keyframes scrollShowcase {
    0%, 15% { transform: translateY(0%); }
    85%, 100% { transform: translateY(calc(-100% + 310px)); }
  }
}

@media (max-width: 767px) {
  @keyframes scrollShowcase {
    0%, 15% { transform: translateY(0%); }
    85%, 100% { transform: translateY(calc(-100% + 220px)); }
  }
}

.showcase-scroll-wrapper:hover .showcase-scroll-img { animation-play-state: paused; }
.showcase-scroll-wrapper.is-paused .showcase-scroll-img { animation-play-state: paused !important; }

.showcase-scroll-hint {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
  z-index: 4;
  transition: opacity var(--transition-fast);
}

.scroll-hint-icon { color: var(--secondary); animation: bounceVertical 1.6s ease-in-out infinite; }

.showcase-scroll-toggle {
  position: absolute;
  bottom: 12px; right: 12px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  cursor: pointer;
  z-index: 5;
  transition: all var(--transition-fast);
}

.showcase-scroll-toggle:hover { background: var(--primary); border-color: var(--primary); transform: scale(1.1); }

/* --------------------------------------------------------------------------
   TRUST PILLS & BOTONES HERO
   -------------------------------------------------------------------------- */
.friendly-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
  margin-bottom: 2rem;
  justify-content: center;
}

@media (min-width: 992px) { .friendly-hero-actions { justify-content: flex-start; } }

.trust-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
  justify-content: center;
}

@media (min-width: 992px) { .trust-pills-row { justify-content: flex-start; } }

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: #e2e8f0;
}

.trust-pill-icon { font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   BANNER DE TECNOLOGÍAS (tech-banner)
   -------------------------------------------------------------------------- */
.tech-banner {
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 20, 31, 0.3);
}

.tech-banner-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem 1.4rem;
}

@media (min-width: 768px) { .tech-grid { gap: 1.5rem 2.5rem; } }

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  opacity: 0.7;
}

.tech-item:hover { color: #ffffff; opacity: 1; transform: translateY(-2px); }
.tech-item svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   SECCIÓN ¿POR DÓNDE EMPEZAMOS? (friendly-paths)
   -------------------------------------------------------------------------- */
.friendly-paths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) { .friendly-paths-grid { grid-template-columns: repeat(2, 1fr); } }

.friendly-path-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.friendly-path-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(99, 102, 241, 0.15);
}

.friendly-path-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
  width: fit-content;
}

.friendly-path-card.highlight {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.friendly-path-card.highlight .friendly-path-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.friendly-path-icon { font-size: 2.2rem; margin-bottom: 0.8rem; }
.friendly-path-title { font-size: 1.25rem; font-weight: 700; color: #ffffff; margin-bottom: 0.6rem; }
.friendly-path-desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 1.2rem; }

.friendly-path-for {
  font-size: 0.82rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.4rem;
  border-left: 2.5px solid var(--secondary);
}

.friendly-path-action {
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* --------------------------------------------------------------------------
   PASOS SIMPLES (3 etapas)
   -------------------------------------------------------------------------- */
.simple-steps-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) { .simple-steps-container { grid-template-columns: repeat(3, 1fr); } }

.simple-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  position: relative;
  text-align: center;
}

.simple-step-number {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem auto;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.simple-step-title { font-size: 1.15rem; font-weight: 700; color: #ffffff; margin-bottom: 0.6rem; }
.simple-step-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* --------------------------------------------------------------------------
   BLOQUE CONCIERGE / ASISTENCIA HUMANA
   -------------------------------------------------------------------------- */
.concierge-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1.5px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-glow);
}

@media (min-width: 768px) {
  .concierge-card {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    padding: 2.5rem 2.8rem;
  }
}

.concierge-info { display: flex; flex-direction: column; gap: 0.6rem; max-width: 580px; }

.concierge-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: center;
}

@media (min-width: 768px) { .concierge-header { justify-content: flex-start; } }

.concierge-avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #10b981; }
.concierge-title { font-size: 1.35rem; font-weight: 700; color: #ffffff; }
.concierge-desc { font-size: 0.95rem; color: #cbd5e1; line-height: 1.6; }

/* --------------------------------------------------------------------------
   SERVICIOS GRID (preview en index)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
}

@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(99, 102, 241, 0.15);
}

.service-card:hover::before { opacity: 1; }

.service-icon-wrap {
  width: 58px; height: 58px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  color: var(--secondary);
  font-size: 1.5rem;
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon-wrap {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.service-title { margin-bottom: 0.8rem; }
.service-desc { font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.4rem; flex-grow: 1; }

.service-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.service-feature svg { width: 16px; height: 16px; color: #10b981; flex-shrink: 0; }

.service-card-action {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition-fast);
}

.service-card:hover .service-card-action { gap: 0.7rem; color: #a5b4fc; }

/* ==========================================================================
   CLASES EXTRAÍDAS DE ESTILOS INLINE (INDEX.HTML)
   ========================================================================== */
.concierge-actions { display: flex; flex-direction: column; gap: 0.8rem; width: 100%; max-width: 320px; }
.cobertura-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.cobertura-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.5rem; }
.cobertura-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.cobertura-city { font-size: 1.15rem; color: #ffffff; margin-bottom: 0.4rem; }
.cobertura-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.cobertura-note { text-align: center; margin-top: 2rem; }
.cobertura-note-text { font-size: 0.9rem; color: #94a3b8; }
