/* ==========================================================================
   LS DOMOTICA - servicios.css
   --------------------------------------------------------------------------
   Soluciones: estética LS vibrante con contenido claro.
========================================================================== */

.services {
  position: relative;
  /* Padding más compacto arriba para que, al saltar desde el CTA "Cotiza LS",
     se vean tanto el título como las 2 cards completas sin scroll extra.    */
  padding: 56px 0 96px;
  scroll-margin-top: var(--nav-height);
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(0, 149, 255, 0.08), transparent 68%),
    radial-gradient(760px 420px at 100% 38%, rgba(168, 85, 247, 0.07), transparent 70%),
    var(--bg);
}

.services-header {
  max-width: 900px;
  margin-inline: auto;
  /* Header más compacto: el separador grande original (~64px) hacía que las
     cards quedaran fuera del viewport en pantallas de 720-800px de alto.   */
  margin-bottom: 2.25rem;
}

.services-header h2 {
  /* Bajamos un punto el tamaño máximo para evitar que el bloque del header
     ocupe más de 1/3 del viewport y empuje las cards fuera de pantalla.    */
  font-size: clamp(1.75rem, 3.1vw, 2.45rem) !important;
  margin-bottom: .75rem !important;
}

.services-header .section-sub {
  font-size: .98rem;
  line-height: 1.55;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch;
}

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100%;
  padding: 36px 32px 32px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.024)),
    rgba(10, 15, 27, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  transition: transform var(--t-normal), border-color var(--t-normal), box-shadow var(--t-normal);
}

.svc-card::before {
  content: '';
  position: absolute;
  top: -90px;
  right: -95px;
  width: 270px;
  height: 270px;
  z-index: -1;
  opacity: 0.62;
  filter: blur(44px);
  background: radial-gradient(circle, rgba(0, 149, 255, 0.34) 0%, transparent 68%);
  transition: opacity var(--t-normal);
}

.svc-pro::before {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.36) 0%, transparent 68%);
}

.svc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.36);
  box-shadow: 0 30px 90px rgba(0, 149, 255, 0.18);
}

.svc-card:hover::before {
  opacity: 0.9;
}

.svc-pro:hover {
  border-color: rgba(168, 85, 247, 0.42);
  box-shadow: 0 30px 90px rgba(168, 85, 247, 0.18);
}

.svc-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.svc-badge-popular {
  background: var(--grad);
  box-shadow: 0 8px 24px rgba(0, 149, 255, 0.42);
}

.svc-badge-premium {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.42);
}

.svc-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 104px;
}

.svc-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 6px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.55rem;
}

.svc-icon-lite {
  background: var(--grad);
  box-shadow: 0 12px 32px rgba(0, 149, 255, 0.46);
}

.svc-icon-pro {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.46);
}

.svc-tag {
  color: rgba(220, 228, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.svc-title {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 2.95rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.06;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.svc-sub {
  margin: 8px 0 0;
  color: rgba(220, 228, 255, 0.72);
  font-size: 1rem;
  line-height: 1.58;
}

.svc-sub strong {
  display: block;
  margin-bottom: 8px;
  color: #00d4ff;
  font-weight: 900;
}

.svc-pro .svc-sub strong {
  color: #c4b5fd;
}

.svc-target,
.svc-desc {
  margin: 0;
}

.svc-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
}

.svc-features li {
  display: flex;
  gap: 12px;
  align-items: start;
  color: rgba(238, 242, 255, 0.86);
  font-size: 0.94rem;
  line-height: 1.46;
}

.svc-check {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 999px;
  background: rgba(0, 149, 255, 0.18);
  color: #00d4ff;
  font-size: 0.74rem;
  font-weight: 900;
}

.svc-pro .svc-check {
  background: rgba(168, 85, 247, 0.18);
  color: #c4b5fd;
}

.svc-price {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.034);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.svc-lite .svc-price {
  background: rgba(0, 149, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.08);
}

.svc-price-from {
  color: rgba(220, 228, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.svc-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  color: #fff;
  font-family: var(--font-display);
  line-height: 1.2;
}

.svc-price-cur {
  color: rgba(220, 228, 255, 0.78);
  font-size: 1rem;
  font-weight: 900;
}

.svc-price-num {
  color: #00d4ff;
  font-size: clamp(2.4rem, 4.3vw, 3.25rem);
  font-weight: 900;
  line-height: 0.95;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.28);
}

.svc-price-custom {
  color: #8b5cf6;
  font-size: clamp(2.05rem, 3.8vw, 2.7rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.22);
}

.svc-price-min {
  color: rgba(220, 228, 255, 0.62);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.svc-install {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
}

.svc-install-ico {
  flex: 0 0 auto;
  width: 22px;
  text-align: center;
  font-size: 1rem;
}

.svc-install strong,
.svc-install span {
  display: block;
}

.svc-install strong {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  font-weight: 900;
}

.svc-install span {
  margin-top: 3px;
  color: rgba(220, 228, 255, 0.55);
  font-size: 0.84rem;
  line-height: 1.35;
}

.svc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  margin-top: auto;
  padding: 0.95rem 1.35rem;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0;
  white-space: normal;
}

.svc-cta-arrow {
  font-size: 1rem;
  transition: transform var(--t-fast);
}

.svc-cta:hover .svc-cta-arrow {
  transform: translateX(4px);
}

.svc-cta-smart {
  color: #fff;
  background: linear-gradient(135deg, #0095ff 0%, #00d4ff 100%);
  border: 1px solid rgba(0, 212, 255, 0.5);
  box-shadow:
    0 14px 38px rgba(0, 149, 255, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 24px rgba(0, 212, 255, 0.22);
}

.svc-cta-smart:hover {
  box-shadow:
    0 18px 50px rgba(0, 149, 255, 0.42),
    0 0 32px rgba(0, 212, 255, 0.3);
  transform: translateY(-1px);
}

.svc-cta-smart,
.svc-cta-pro {
  min-height: 58px;
  border-radius: 10px;
}

.svc-cta-pro {
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  border: 1px solid rgba(168, 85, 247, 0.54);
  box-shadow: 0 14px 38px rgba(168, 85, 247, 0.28);
}

.svc-cta-pro:hover {
  box-shadow: 0 18px 50px rgba(168, 85, 247, 0.42);
  transform: translateY(-1px);
}

.svc-compare {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 820px;
  margin: 38px auto 0;
  padding: 18px 22px;
  background: rgba(0, 149, 255, 0.05);
  border: 1px solid rgba(0, 149, 255, 0.2);
  border-radius: 14px;
}

.svc-compare-ico {
  flex: 0 0 auto;
  font-size: 1.25rem;
}

.svc-compare-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.svc-compare p {
  margin: 0;
  color: rgba(220, 228, 255, 0.66);
  font-size: 0.96rem;
  line-height: 1.55;
}

.svc-compare strong {
  color: #fff;
  font-weight: 800;
}

.svc-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wa-green, #25d366);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--t-fast);
  width: fit-content;
}

.svc-wa-link:hover {
  color: #22c55e;
}

.svc-wa-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
}

@media (max-width: 540px) {
  .svc-card {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .svc-head {
    padding-right: 0;
  }

  .svc-badge {
    position: static;
    align-self: flex-start;
    order: -1;
  }

  .svc-title {
    font-size: 1.75rem;
  }

  .svc-price-num,
  .svc-price-custom {
    font-size: 2.1rem;
  }

  .svc-features li {
    font-size: 0.9rem;
  }

  .svc-compare {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-card,
  .svc-card::before,
  .svc-cta,
  .svc-cta i {
    transition: none !important;
  }
}
