/* =========================
   Página Servicios y Tarifas
   ========================= */

.st-hero {
  padding: 36px 0 26px;
  border-bottom: 1px solid var(--en-line);
  background: radial-gradient(circle at top left, rgba(0, 194, 168, 0.24), transparent 55%);
}

.st-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
}

.st-hero__col {
  min-width: 0;
}

.st-hero__title {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.st-hero__text {
  margin: 0 0 14px;
  color: var(--en-muted);
  font-size: 15px;
}

.st-hero__bullets {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--en-muted);
  font-size: 14px;
}

.st-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.st-hero__note {
  font-size: 12px;
  color: var(--en-muted);
  max-width: 520px;
}

.st-hero__card {
  background: var(--en-card);
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid var(--en-line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .38);
}

.st-hero__pill {
  display: inline-block;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 194, 168, .12);
  border: 1px solid rgba(0, 194, 168, .6);
  margin-bottom: 8px;
}

.st-hero__list {
  margin: 0;
  padding-left: 18px;
  color: var(--en-muted);
  font-size: 14px;
}

.st-hero__list li {
  margin-bottom: 4px;
}

.st-hero__mini {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--en-muted);
}

/* Sección catálogo */

.st-section {
  padding: 26px 0 32px;
}

.st-block-title {
  margin: 24px 0 10px;
  font-size: 20px;
}

/* Contenedor de tarjetas del catálogo */
.st-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Grid para el bloque de SEO + mantenimiento */
.st-grid--extras {
  margin-top: 16px;  /* separa visualmente del grid de arriba */
}

@media (min-width: 1025px) {
  /* Seguimos centrando la 4ª tarjeta de diseño gráfico */
  .st-grid--design > :nth-child(4) {
    grid-column: 2;
  }
}


/* 2 columnas en pantallas medias */
@media (max-width: 1024px) {
  .st-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 1 columna en móvil */
@media (max-width: 640px) {
  .st-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Blindaje para evitar scroll lateral en esta página --- */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Cuando el carrito esté abierto bloqueamos el scroll del fondo */
body.no-scroll {
  overflow: hidden;
}



/* --- Corrección de overflow horizontal en grids y tarjetas --- */

/* Que nada dentro del catálogo se haga más ancho que el contenedor */
.st-section,
.st-grid,
.st-service-card {
  max-width: 100%;
}

/* En los footers flex, deja que el contenido se encoja y parta en varias líneas */
.st-service-footer > * {
  min-width: 0;
}

/* Por si alguna nota larga intenta forzar ancho extra, que pueda partir palabras */
.st-note {
  overflow-wrap: break-word;
  word-wrap: break-word;
}



/* Tarjetas de servicio */

.st-service-card {
  background: var(--en-card);
  border-radius: 18px;
  border: 1px solid var(--en-line);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}



.st-service-card:hover {
  border-color: rgba(77, 235, 209, .4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

/* Tarjeta que debe ir a todo lo ancho (Limitaciones) */
/* Tarjeta a todo lo ancho (Limitaciones generales) */
.st-service-card--full {
  flex: 1 1 100%;
  max-width: none;
  grid-column: 1 / -1;  /* ocupa todo el ancho de la st-grid */
}


.st-service-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.st-service-name {
  margin: 0;
  font-size: 17px;
}

.st-service-tag {
  margin: 0;
  font-size: 12px;
  color: var(--en-muted);
}

.st-service-text {
  margin: 4px 0;
  font-size: 14px;
  color: var(--en-muted);
}

/* Footer común: siempre pegado abajo */
.st-service-footer {
  margin-top: auto;
  /* empuja el footer al fondo de la tarjeta */
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.st-service-footer .en-btn {
  white-space: nowrap;
}

.st-service-footer .st-note {
  flex-basis: 100%;
  margin: 2px 0 0;
}

/* Precio dentro del footer (planes web, etc.) */
.st-service-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.st-price-once {
  font-weight: 600;
}

.st-price-split {
  color: var(--en-muted);
}

/* Nota general reutilizable */
.st-note {
  font-size: 11px;
  color: var(--en-muted);
}

@media (max-width: 900px) {
  .st-service-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .st-service-footer .en-btn {
    width: 100%;
    text-align: center;
  }

  .st-hero__inner {
    grid-template-columns: 1fr;
  }

  .st-hero__title {
    font-size: 26px;
  }
}

/* Cantidades custom (+/−) */

.st-qty-wrapper {
  margin-top: 4px;
}

.st-qty-label {
  font-size: 13px;
  color: var(--en-muted);
  display: block;
  margin-bottom: 4px;
}

.st-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--en-line);
  background: #0c1330;
}

.st-qty-btn {
  border: none;
  background: transparent;
  color: var(--en-fg);
  font-size: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.st-qty-btn:hover {
  background: rgba(255, 255, 255, .06);
}

.st-qty-value {
  min-width: 16px;
  text-align: center;
  font-weight: 600;
}

/* Nota global */

.st-global-note {
  margin-top: 22px;
  font-size: 12px;
  color: var(--en-muted);
}

/* FAB Carrito */

.st-cart-fab {
  position: fixed;
  right: 16px;
  bottom: 78px;
  /* por encima de la flecha ↑ */
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: none;
  background: var(--en-brand);
  color: #0b1020;
  font-size: 24px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2147483600;
}

.st-cart-fab:hover {
  transform: translateY(-1px);
}

.st-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffeb3b;
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Panel carrito */

.st-cart-panel {
  position: fixed;
  right: 16px;
  top: calc(var(--en-header-h, 64px) + 12px);
  /* pegado al header */
  bottom: auto;
  width: 360px;
  max-width: calc(100% - 32px);

  /* ALTURA FIJA: nunca más grande que la ventana */
  height: calc(100vh - (var(--en-header-h, 64px) + 24px));

  border-radius: 18px;
  background: #0c1330;
  border: 1px solid var(--en-line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  z-index: 2147483601;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.st-cart-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


.st-cart-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;    /* clave para que el hijo pueda hacer scroll */
  overflow: hidden; /* todo el scroll se delega a la lista */
}

.st-cart-totals,
.st-cart-form {
  flex-shrink: 0;
}

.st-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--en-line);
}

.st-cart-title {
  margin: 0;
  font-size: 16px;
}

.st-cart-close {
  border: none;
  background: transparent;
  color: var(--en-muted);
  font-size: 22px;
  cursor: pointer;
}

.st-cart-close:hover {
  color: #fff;
}

.st-cart-list {
  padding: 10px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  font-size: 14px;
  max-height: 200px;
  /* más corto aún */
}

@media (min-height: 900px) {
  .st-cart-list {
    max-height: 260px;
    /* si la pantalla es alta, permitimos algo más */
  }
}

.st-cart-list ul {
  margin: 0;
  padding-left: 18px;
}

.st-cart-list li {
  margin-bottom: 4px;
}

.st-cart-totals {
  padding: 8px 16px 10px;
  border-top: 1px solid var(--en-line);
  border-bottom: 1px solid var(--en-line);
  font-size: 13px;
}

.st-cart-totals p {
  margin: 2px 0;
}

.st-cart-totals span {
  color: var(--en-muted);
}

.st-cart-form {
  padding: 10px 16px 14px;
  font-size: 14px;
}

.st-cart-form .en-form__row {
  margin-bottom: 8px;
}

.st-cart-paypal {
  margin-top: 10px;
  font-size: 12px;
}

/* Botón "Ejemplo" para planes web — mismo tamaño que "Añadir al carrito" pero ghost */
.st-example-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid var(--en-line);
  background: transparent;
  color: var(--en-muted);
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}

.st-example-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

@media (max-width: 640px) {
  /* El carrito pasa a ocupar toda la pantalla como un modal */
  .st-cart-panel {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  /* El contenido interno es el que hace scroll vertical */
  .st-cart-inner {
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* En móvil ya no limitamos la altura de la lista,
     que se integre en el scroll general del panel */
  .st-cart-list {
    max-height: none;
    flex: 0 0 auto;
  }

  .st-cart-fab {
    right: 12px;
    bottom: 70px;
  }
}
