/* home.css — estilos exclusivos de index.php */

/* ===== HERO ===== */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(11,16,34,.55), rgba(11,16,34,.72)),
    url('../../img/hero.png') center/cover no-repeat;
  position: relative;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(123,97,255,.18), rgba(94,194,255,.08));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: white;
  text-shadow: 0 4px 20px rgba(0,0,0,.4);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 2rem;
  max-width: 520px;
}

/* ===== WHY SECTION — COMPARADOR ===== */
.why-section {
  padding: 80px 0;
  background: #f8fafc;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.compare-box {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  user-select: none;
  touch-action: none;
}

.compare-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 3rem;
  gap: 1.25rem;
}

/* Nosotros: encima, clip-path revela de izquierda a derecha */
.panel-nosotros {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: white;
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

/* Otros: debajo, siempre visible */
.panel-otros {
  background: linear-gradient(135deg, #f8faff 0%, #eef4ff 100%);
  color: var(--text);
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.badge.premium { background: linear-gradient(90deg, #7b61ff, var(--a2x)); color: white; box-shadow: 0 4px 14px rgba(123,97,255,.35); }
.badge.basic   { background: #ffe0d6; color: #c0392b; }

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  font-weight: 600;
  font-size: .9rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

/* SVG icons */
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon.check { color: #22c55e; }
.icon.cross { color: #ef4444; }

/* Drag handle */
#compareSlider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 60px;
  height: 100%;
  z-index: 10;
  cursor: col-resize;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#compareSlider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--a3x), var(--a2x));
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0,0,0,.2);
}

.slider-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
}

.slider-line { display: none; }

.slider-thumb {
  width: 54px;
  height: 54px;
  background: white;
  border: 3px solid var(--a2x);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(94,194,255,.35);
  transition: transform .2s ease;
  z-index: 11;
}

.slider-thumb:hover,
#compareSlider:active .slider-thumb {
  transform: scale(1.15);
}

.drag-icon { width: 20px; height: 20px; color: var(--a2x); }

.slider-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .78rem;
  color: var(--muted);
  background: rgba(255,255,255,.95);
  padding: 5px 14px;
  border-radius: 50px;
  white-space: nowrap;
  pointer-events: none;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* ===== SERVICES GRID ===== */
.services-section {
  padding: 80px 0;
}

.services-section .section-title { margin-bottom: 2.5rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .service-btn {
    padding: 1.25rem 1rem;
    gap: .6rem;
    font-size: .9rem;
  }
  .service-icon {
    width: 44px;
    height: 44px;
  }
}

.service-btn {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .85rem;
  font-weight: 600;
  font-size: 1rem;
}

.service-btn:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: var(--a1);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(109,40,217,.1), rgba(59,130,246,.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--a1);
  flex-shrink: 0;
  transition: var(--transition);
}

.service-btn:hover .service-icon {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a1x), var(--a2x));
  color: white;
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(94,194,255,.35);
}

/* ===== DECORATIVE DIVIDER ===== */
.decor-divider {
  line-height: 0;
  overflow: hidden;
}

.divider-svg {
  width: 100%;
  height: 60px;
  display: block;
}

@media (max-width: 768px) {
  .compare-box   { height: 320px; }
  .compare-panel { padding: 1.5rem 2rem; }
  .feature-list  { font-size: .85rem; gap: .6rem; }
  .hero          { min-height: 70vh; }
  .why-section   { padding: 60px 0; }
  .services-section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .compare-box   { height: 280px; }
  .compare-panel { padding: 1.25rem 1.5rem; font-size: .85rem; }
  .feature-list  { gap: .5rem; font-size: .8rem; }
  .slider-thumb  { width: 44px; height: 44px; }
}
