/* =======================================================
 * Mioiko · Modern refinements
 * Capa de mejoras visuales sobre la plantilla base (Forma).
 * Carga después de main.css — solo sobrescribe estética.
 * ======================================================= */

:root {
  /* Gradiente de marca para acentos modernos */
  --brand-grad: linear-gradient(135deg, #6B48FB 0%, #9D6BFF 55%, #C44BFB 100%);
  --brand-grad-soft: linear-gradient(135deg, #6B48FB 0%, #B26BFF 100%);
  --brand-glow: 0 10px 30px -8px rgba(107, 72, 251, 0.55);
}

/* Render de texto más nítido */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Offset al hacer scroll a anclas (header sticky) */
section[id] {
  scroll-margin-top: 90px;
}

/* --------------------------------------------------------
 * Header glass
 * ------------------------------------------------------ */
.header {
  background-color: rgba(26, 2, 38, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header .btn-getstarted,
.header .btn-getstarted:focus {
  background: var(--brand-grad);
  border: none;
  border-radius: 50px;
  padding: 9px 28px;
  box-shadow: 0 6px 18px -6px rgba(107, 72, 251, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
  background: var(--brand-grad);
  color: var(--contrast-color);
  filter: brightness(1.06);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -8px rgba(107, 72, 251, 0.7);
}

.navmenu a {
  transition: color 0.25s ease;
}

/* --------------------------------------------------------
 * Tipografía hero
 * ------------------------------------------------------ */
.hero .hero-content h1 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

@media (max-width: 992px) {
  .hero .hero-content h1 { font-size: 3rem; }
}
@media (max-width: 768px) {
  .hero .hero-content h1 { font-size: 2.4rem; }
}

.hero .hero-content .hero-badge .badge {
  background: rgba(107, 72, 251, 0.12);
  border: 1px solid rgba(157, 107, 255, 0.35);
  backdrop-filter: blur(6px);
}

/* --------------------------------------------------------
 * Botones primarios (hero, about, CTA)
 * ------------------------------------------------------ */
/* Nota: los botones de .cta-banner y .cta-box van sobre fondo
 * morado, así que conservan su estilo blanco original (contraste).
 * El gradiente solo aplica a botones sobre fondo oscuro/claro. */
.hero .hero-buttons .btn.btn-primary,
.about .btn-primary {
  background: var(--brand-grad);
  border: none;
  border-radius: 50px;
  box-shadow: var(--brand-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

/* El botón secundario de About (p. ej. "Ver Productos") debe igualar la
 * forma de pill del primario; la plantilla base lo dejaba con las esquinas
 * apenas redondeadas (radius de Bootstrap) y rompía la coherencia. */
.about .btn-secondary {
  border-radius: 50px;
}

.hero .hero-buttons .btn.btn-primary:hover,
.about .btn-primary:hover {
  background: var(--brand-grad);
  filter: brightness(1.06);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -8px rgba(107, 72, 251, 0.7);
}

.hero .hero-buttons .btn {
  border-radius: 50px;
}

.hero .hero-buttons .btn.btn-outline {
  border-radius: 50px;
  border-width: 1.5px;
}

/* --------------------------------------------------------
 * Títulos de sección
 * ------------------------------------------------------ */
.section-title h2 {
  background: rgba(107, 72, 251, 0.14);
  letter-spacing: 1.5px;
}

.section-title div {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-title div .description-title {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --------------------------------------------------------
 * Tarjetas de servicios / productos
 * ------------------------------------------------------ */
.services .service-item {
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Línea de acento superior que aparece en hover */
.services .service-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.services .service-item:hover::before {
  transform: scaleX(1);
}

.services .service-item:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 55%);
  box-shadow: 0 24px 48px -16px rgba(107, 72, 251, 0.32);
}

.services .icon-wrapper {
  border-radius: 14px;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.services .service-item:hover .icon-wrapper {
  background: var(--brand-grad);
  box-shadow: var(--brand-glow);
}

.services .service-cta {
  transition: gap 0.25s ease, color 0.25s ease;
}

/* --------------------------------------------------------
 * Etiquetas de estado de producto (Disponible / En construcción)
 * Reemplazan los pills planos con emoji por un estilo moderno:
 * punto de estado + fondo translúcido + texto del mismo tono.
 * ------------------------------------------------------ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 11px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
  color: var(--sb-deep);
}

.status-badge .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--sb);
}

/* Color base por estado (la variante decide el tratamiento visual) */
.status-badge--live { --sb: #22c55e; --sb-deep: #15803d; }
.status-badge--soon { --sb: #f59e0b; --sb-deep: #b45309; }

/* Punto que late (solo Disponible) */
.status-badge--live .status-dot {
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: mioiko-dot-pulse 2s ease-out infinite;
}

@keyframes mioiko-dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .status-badge--live .status-dot { animation: none; }
}

/* Estilo minimalista: sin fondo, punto de color + texto en
 * mayúsculas espaciado. Limpio y moderno. */
.sb-minimal {
  background: transparent;
  border-color: transparent;
  padding: 4px 2px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 11px;
}

/* --------------------------------------------------------
 * Banners CTA
 * ------------------------------------------------------ */
.cta-banner,
.cta-box {
  border-radius: 22px;
}

/* Botones blancos sobre fondo morado: solo refinamos la forma */
.services .cta-banner .btn-primary,
.portfolio .cta-box .btn-primary {
  border-radius: 50px;
}

/* --------------------------------------------------------
 * Mockup hero + floating cards
 * ------------------------------------------------------ */
.hero .hero-visual .product-mockup .mockup-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.hero .hero-visual .product-mockup .floating-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}

.hero .hero-visual .product-mockup .floating-card .card-icon {
  background: var(--brand-grad);
  color: #fff;
}

/* --------------------------------------------------------
 * About: imágenes y badge
 * ------------------------------------------------------ */
/* Armoniza los tres bloques de texto del intro (lead, cita y
 * párrafo). Misma familia Roboto y tamaños coherentes; la cita
 * ahora usa itálica real (no sintética) cargada desde Google Fonts. */
.about .content-wrapper .lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

.about .content-wrapper > p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.about .content-wrapper blockquote {
  border-left-width: 3px;
}

.about .content-wrapper blockquote p {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--heading-color);
  font-style: italic;
  font-weight: 400;
}

.about .image-card,
.about .image-card img {
  border-radius: 18px;
}

/* Fix: los subtítulos son <h3> en el HTML pero la plantilla
 * solo estiliza <h4>, así que heredaban el h3 global (más grande
 * y liviano) y rompían la coherencia tipográfica de la sección. */
.about .feature-item .feature-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.about .feature-item .feature-icon {
  border-radius: 14px;
  transition: transform 0.3s ease;
}

.about .feature-item:hover .feature-icon {
  transform: translateY(-3px) scale(1.05);
}

/* --------------------------------------------------------
 * Tarjetas de contacto
 * ------------------------------------------------------ */
.contact-card {
  border-radius: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -18px rgba(107, 72, 251, 0.3);
}

.contact-card__icon {
  border-radius: 16px;
}

.contact-card .contact-card__cta {
  transition: gap 0.25s ease, color 0.25s ease;
}

/* --------------------------------------------------------
 * Botón flotante de WhatsApp con halo
 * ------------------------------------------------------ */
.whatsapp-float {
  box-shadow: 0 8px 24px -6px rgba(37, 211, 102, 0.55);
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: mioiko-pulse 2.4s ease-out infinite;
}

@keyframes mioiko-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::after { animation: none; }
}

/* --------------------------------------------------------
 * Botón flotante "volver arriba": lo modernizamos para que
 * combine con el resto (redondo, gradiente de marca) y quede
 * alineado bajo el botón de WhatsApp.
 * ------------------------------------------------------ */
.scroll-top {
  right: 23px;
  bottom: 15px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-grad);
  box-shadow: 0 8px 22px -6px rgba(107, 72, 251, 0.6);
}

.scroll-top i {
  font-size: 22px;
}

.scroll-top:hover {
  background: var(--brand-grad);
  filter: brightness(1.08);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px -6px rgba(107, 72, 251, 0.75);
}

/* --------------------------------------------------------
 * Footer: social y links con acento
 * ------------------------------------------------------ */
.footer .social-links a {
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.footer .social-links a:hover {
  background: var(--brand-grad);
  border-color: transparent;
  transform: translateY(-3px);
}

.footer .footer-links ul a {
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer .footer-links ul a:hover {
  padding-left: 6px;
}
