
:root {
  --mg-primary: #ff7b00;
  --mg-secondary: #00bcd4;
  --mg-dark: #222222;
  --mg-light: #ffffff;
  --mg-muted: #6c757d;
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #f8f9fc;
}

.mg-navbar {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 1040;
}

.mg-navbar .navbar-brand img {
  height: 40px;
}

.mg-navbar .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: #555;
  padding-right: 1rem;
  padding-left: 1rem;
}

.mg-navbar .nav-link:hover,
.mg-navbar .nav-link.active {
  color: var(--mg-primary);
}

.mg-btn-whatsapp {
  background-color: #25d366;
  border-color: #25d366;
  color: #fff;
}

.mg-btn-whatsapp:hover {
  filter: brightness(0.9);
  color: #fff;
}

.mg-btn-outline {
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}

.mg-btn-outline:hover {
  background-color: rgba(255,255,255,0.15);
  color: #fff;
}

/* HERO */

.mg-hero {
  background: linear-gradient(
    135deg,
    #ff9b4a 0%,   /* naranja suave MG */
    #66a0ff 100%  /* celeste MG */
  );
  color: #ffffff;
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  border-radius: 0 0 40px 40px;
}

/* Sombra suave premium para el título del HERO */
.mg-hero-title,
.mg-hero-subtitle,
.mg-hero-badge,
.mg-hero p {
  text-shadow: 0 2px 8px rgba(0,0,0,0.22);
}


/* MOBILE — borde mucho más suave (o ninguno) */
@media (max-width: 768px) {
  .mg-hero {
    background: linear-gradient(
      135deg,
      #ffb36e 0%,
      #7db7ff 100%
    );
  }
}


/* MOBILE MUY PEQUEÑO — sin borde */
@media (max-width: 480px) {
  .mg-hero {
    border-radius: 0;
  }
}

.mg-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background-color: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
}

.mg-hero-title {
  font-weight: 800;
  font-size: clamp(2.2rem, 3vw + 1.4rem, 3rem);
  letter-spacing: -0.03em;
}

.mg-hero-subtitle {
  font-size: 0.98rem;
  max-width: 30rem;
}

.mg-hero-cta {
  gap: 0.75rem;
}

.mg-hero-card {
  border-radius: 1.5rem;
  background: rgba(248, 249, 252, 0.95);
  backdrop-filter: blur(16px);
  padding: 1.75rem;
}

.mg-hero-card h5 {
  font-weight: 700;
  color: #222;
}

.mg-hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mg-hero-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: #555;
}

.mg-hero-list i {
  color: var(--mg-primary);
}

/* Sections */

.mg-section-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mg-pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background-color: rgba(255,123,0,0.08);
  color: var(--mg-primary);
  display: inline-block;
}

/* Cards */

.mg-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
  /* Integrado de la versión Hover Pro */
  background: #fff;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  border-color: rgba(255,123,0,0.35);
}

.mg-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255,123,0,0.08);
  color: var(--mg-primary);
}

/* Footer */

.mg-footer {
  background-color: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.mg-footer a {
  color: #555;
  text-decoration: none;
}

.mg-footer a:hover {
  color: var(--mg-primary);
}

@media (max-width: 767.98px) {
  .mg-hero {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 3rem;
  }
}

/* Ajuste suave de sombra para la imagen del hero */
.hero-image,
.hero img {
  box-shadow: 0 12px 24px rgba(0,0,0,0.10) !important; /* sombra suave */
  border-radius: 22px; /* más moderno */
  transition: transform 0.25s ease;
}

.hero-image:hover {
  transform: translateY(-4px);
}

/* Animación suave */
@keyframes heroFade {
  0% {
    opacity: 0;
    transform: translateY(25px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Ajustes responsive */
@media (max-width: 992px) {
  .mg-hero-image {
    max-width: 420px;
    margin-top: 2rem;
  }
}

@media (max-width: 576px) {
  .mg-hero-image {
    max-width: 100%;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.2);
  }
}



/* BLOQUE BLANCO — altura fija para TODAS */
.mySwiperCatalogo .swiper-slide .card-body {
    height: 160px;      /* ⬅️ EL SECRETO: altura fija */
    padding: 20px 22px !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Título */
.mySwiperCatalogo .swiper-slide .card-title {
    margin-top: 10px;
    margin-bottom: 8px;
}

/* Descripción: limitar líneas */
.mySwiperCatalogo .swiper-slide .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Removed obsolete promo definitions (interactive and gradient versions)
   to keep only the final “fijo y funcional” implementation of .mg-promo-card
   and related elements. */


/* ===========================================
   PROMOS MG COPYARTE (FIJO Y FUNCIONAL)
   =========================================== */

/* ---- ESTRUCTURA BASE ---- */
.mg-promo-card {
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: transparent;
}

.mg-promo-inner {
  position: relative;
  width: 100%;
  height: 230px;
}

/* ---- FRENTE (TEXTO) ---- */
.mg-promo-front {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 25px;
  color: #ffffff;
  background: linear-gradient(135deg, #0d6efd 0%, #1e90ff 100%);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ---- DORSO (IMAGEN) ---- */
.mg-promo-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mg-promo-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- HOVER SOLO EN PC: MUESTRA IMAGEN ---- */
@media (min-width: 992px) {
  .mg-promo-card:hover .mg-promo-front {
    opacity: 0;
  }

  .mg-promo-card:hover .mg-promo-back {
    opacity: 1;
  }
}

/* ===========================================
   MÓVIL: SIEMPRE MOSTRAR IMAGEN
   =========================================== */
@media (max-width: 992px) {

  /* Ocultar frente de texto */
  .mg-promo-front {
    display: none !important;
    opacity: 0 !important;
  }

  /* Mostrar SIEMPRE la imagen */
  .mg-promo-back {
    opacity: 1 !important;
    display: block !important;
    position: relative !important;
  }

  /* Ajuste de altura bonito */
  .mg-promo-inner {
    height: auto !important;
  }

  .mg-promo-back img {
    border-radius: 20px;
    height: auto !important;
    width: 100%;
    display: block;
  }
}

/* ===========================================
   FIX GLOBAL – Secciones claras con texto oscuro
   =========================================== */

#servicios h2,
#servicios p,
#promos h2,
#promos p,
#catalogo h2,
#catalogo p,
#ubicacion h2,
#ubicacion p {
  color: #333 !important;
}

#servicios .mg-pill,
#promos .mg-pill,
#catalogo .mg-pill,
#ubicacion .mg-pill {
  color: var(--mg-primary) !important;
}


/* ================================
   CARDS — HOVER PRO ✨
================================ */
/* Wrapper con proporción fija 4:3 — ideal para catálogo */
.mg-card-img-wrapper {
    aspect-ratio: 4 / 3;
    width: 100%;
    overflow: hidden;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

/* Imagen interna */
.mg-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}


/* (Las definiciones duplicadas de .mg-card y .mg-card:hover se consolidan en el bloque principal) */

.mg-card:hover .mg-card-img {
    transform: scale(1.10);
    filter: brightness(1.05);
}

.mg-opcion.active {
  background-color: #6f42c1 !important; /* violeta suave */
  color: #fff !important;
  border-color: #6f42c1 !important;
  transform: scale(1.05);
}



/* ======================================================
   BOTÓN DE CIERRE DEL MODAL (SOFT + DELICADO)
   ====================================================== */

#mgProductoModal .btn-close {
    /* Tamaño pequeño pero clickeable */
    width: 20px;
    height: 20px;
    padding: 6px;

    /* Reemplazamos el ícono default */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none' viewBox='0 0 24 24'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;

    border-radius: 6px;
    opacity: 0.7;
    filter: invert(0); /* evita que Bootstrap cambie el color */
    transition: all 0.2s ease;
}

#mgProductoModal .btn-close:hover {
    opacity: 1;
    background-color: rgba(0,0,0,0.05);
}

#mgProductoModal .btn-close:active {
    transform: scale(0.92);
}

/* ======================================================
   FIX para que la imagen del modal se vea correctamente
   dentro del ratio Bootstrap sin quedar tapada ni aplastada
   ====================================================== */

#mgProductoModal .ratio {
    position: relative;
}

#mgProductoModal .ratio img {
    position: absolute;
    inset: 0;               /* top:0, left:0, bottom:0, right:0 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;             /* asegura que quede por encima del ::before del ratio */
}

/* Contenedor de la imagen del modal */
.product-img-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4; /* reemplaza el ratio de bootstrap de forma segura */
    background: #f8f9fa;
    position: relative;
}

/* Imagen interna */
.product-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal: ajustar imagen en vista móvil */
@media (max-width: 576px) {

  /* Reducimos la altura del contenedor de imagen */
  #mgProductoModal .product-img-wrapper {
      aspect-ratio: 4 / 3 !important; /* más bajita */
      max-height: 190px !important;               /* límite visual */
  }

  #mgProductoModal .product-img {
      object-fit: cover;
  }
}

/* ============================
   MG - Registro por WhatsApp
============================ */

.mg-access-badge {
  background: #e8fff0;
  color: #0c7a2f;
  padding: 8px 14px;
  border-left: 4px solid #25d366;
  font-size: 0.9rem;
  display: none;
}

/* Modal */
.mg-modal-header-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f1f7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 12px;
}

.mg-btn-wa {
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
}

.mg-btn-link {
  border: none;
  background: none;
  text-decoration: underline;
  font-size: 0.9rem;
}

.mg-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #25d366;
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  display: none;
  font-size: 0.9rem;
  z-index: 9999;
}

/* Sistema de bloqueo */
.requires-registration .locked-view { display: block; }
.requires-registration .unlocked-view { display: none; }

.requires-registration.registered .locked-view { display: none; }
.requires-registration.registered .unlocked-view { display: block; }

/* =========================
   THEME TOGGLE (FASE 1)
   ========================= */

.mg-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  background: transparent;
  line-height: 1;
}

.mg-theme-icon { font-size: 1rem; }

/* Dark mode: mínimo para legibilidad del toggle */
html.mg-theme-dark .mg-theme-toggle {
  border-color: rgba(255,255,255,.3);
  color: #fff;
}

.mg-theme-toggle:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* =========================================================
   MG THEME TOKENS + DARK REAL (FASE 2)
   ========================================================= */

/* Tokens base (fallback) */
:root{
  --mg-bg: #ffffff;
  --mg-surface: #ffffff;
  --mg-surface-2: #f6f7f9;
  --mg-text: #111827;
  --mg-muted: #6b7280;
  --mg-border: rgba(17,24,39,.12);

  --mg-link: #0d6efd;           /* bootstrap primary */
  --mg-focus: #0d6efd;

  /* CTA / marcas: los dejamos como están (no redefinimos acá) */
}

/* Light explicit */
html.mg-theme-light{
  color-scheme: light;
  --mg-bg: #ffffff;
  --mg-surface: #ffffff;
  --mg-surface-2: #f6f7f9;
  --mg-text: #111827;
  --mg-muted: #6b7280;
  --mg-border: rgba(17,24,39,.12);
}

/* Dark real */
html.mg-theme-dark{
  color-scheme: dark;

  /* Neutral / gris oscuro (menos azul) */
  --mg-bg: #0b0d12;          /* casi negro */
  --mg-surface: #11151c;     /* cards/nav */
  --mg-surface-2: #0e1218;   /* secciones / inputs */

  --mg-text: #e7eaf0;
  --mg-muted: #a0a8b5;
  --mg-border: rgba(231,234,240,.14);

  --mg-link: #8ab4ff;        /* opcional: links más suaves en dark */
  --mg-focus: #8ab4ff;
}


/* Dark Theme — Base Page */
html.mg-theme-dark body,
html.mg-theme-light body{
  background: var(--mg-bg);
  color: var(--mg-text);
}

/* Si dejaste clases Bootstrap en body, evitamos que "pisen" el tema */
html.mg-theme-dark body.bg-light,
html.mg-theme-dark body.bg-white{
  background: var(--mg-bg) !important;
}

/* Secciones Bootstrap comunes: que acompañen el tema */
html.mg-theme-dark .bg-light{
  background: var(--mg-surface-2) !important;
}
html.mg-theme-dark .bg-white{
  background: var(--mg-surface) !important;
}

/* Texto muted (sin tocar Bootstrap core, lo pisamos por tema) */
html.mg-theme-dark .text-muted{
  color: var(--mg-muted) !important;
}

/* Links */
html.mg-theme-dark a{
  color: var(--mg-text);
}
html.mg-theme-dark a:hover{
  opacity: .9;
}

/* Focus visible global */
html.mg-theme-dark :focus-visible,
html.mg-theme-light :focus-visible{
  outline: 2px solid var(--mg-focus);
  outline-offset: 2px;
}

/* Dark Theme — Navbar */
.mg-navbar{
  background: var(--mg-surface);
  border-bottom: 1px solid var(--mg-border);
}

.mg-navbar .nav-link{
  color: var(--mg-text);
  opacity: .9;
}
.mg-navbar .nav-link:hover{
  opacity: 1;
}
.mg-navbar .nav-link.active{
  opacity: 1;
}

/* Icono del toggler (tu hamburguesa) */
html.mg-theme-dark .navbar-toggler{
  color: var(--mg-text);
  border-color: var(--mg-border);
}

/* Dark Theme — Cards */
.mg-card,
.mg-promo-card,
.mg-map-wrapper,
.modal-content{
  background: var(--mg-surface);
  color: var(--mg-text);
  border-color: var(--mg-border);
}

html.mg-theme-dark .card{
  background: var(--mg-surface);
  color: var(--mg-text);
  border-color: var(--mg-border);
}

/* Sombras un poco más sutiles en dark (opcional, pero mejora) */
html.mg-theme-dark .shadow,
html.mg-theme-dark .shadow-sm{
  box-shadow: 0 10px 25px rgba(0,0,0,.35) !important;
}

/* Dark Theme — Forms & Inputs */
html.mg-theme-dark .form-control,
html.mg-theme-dark .form-select,
html.mg-theme-dark .input-group-text{
  background: var(--mg-surface-2);
  color: var(--mg-text);
  border-color: var(--mg-border);
}
html.mg-theme-dark .form-control::placeholder{
  color: var(--mg-muted);
}

/* Dropdown menu (si aparece en alguna página) */
html.mg-theme-dark .dropdown-menu{
  background: var(--mg-surface);
  border-color: var(--mg-border);
}
html.mg-theme-dark .dropdown-item{
  color: var(--mg-text);
}
html.mg-theme-dark .dropdown-item:hover{
  background: var(--mg-surface-2);
}

/* Dark Theme — Sections Home */

/* Revertir el "fix de texto oscuro" cuando está en dark */
html.mg-theme-dark #servicios h2,
html.mg-theme-dark #promos h2,
html.mg-theme-dark #catalogo h2,
html.mg-theme-dark #ubicacion h2 {
  color: var(--mg-text) !important;
}

/* Opcional: que los párrafos se vean un toque más suaves */
html.mg-theme-dark #servicios p,
html.mg-theme-dark #promos p,
html.mg-theme-dark #catalogo p,
html.mg-theme-dark #ubicacion p {
  color: var(--mg-muted) !important;
}

/* Dark Theme — Catalog Buttons */

/* Si el botón es btn-light, lo pintamos tipo "pill activo" */
html.mg-theme-dark #catalogo .btn.btn-light,
html.mg-theme-dark .mg-catalogo .btn.btn-light,
html.mg-theme-dark body .btn.btn-light {
  background-color: var(--mg-primary) !important; /* naranja MG */
  border-color: var(--mg-primary) !important;
  color: #000 !important;                         /* letra negra */
}

/* Hover */
html.mg-theme-dark #catalogo .btn.btn-light:hover,
html.mg-theme-dark .mg-catalogo .btn.btn-light:hover,
html.mg-theme-dark body .btn.btn-light:hover {
  filter: brightness(1.05);
  color: #000 !important;
}

.mg-theme-toggle-top{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

html.mg-theme-dark .mg-theme-toggle-top{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}

/* Dark Theme — Footer */

/* Fondo del footer en dark (para que no quede blanco raro) */
html.mg-theme-dark .mg-footer{
  background: var(--mg-surface);
  border-top: 1px solid var(--mg-border);
}

/* Links/Texto del footer: equivalente al #555 de light pero en claro */
html.mg-theme-dark .mg-footer,
html.mg-theme-dark .mg-footer a{
  color: var(--mg-text) !important;
  opacity: 0.9;
}

/* Íconos (FontAwesome) */
html.mg-theme-dark .mg-footer i,
html.mg-theme-dark .mg-footer .fa{
  color: var(--mg-text) !important;
  opacity: 0.9;
}

/* Hover: igual que light (naranja MG) */
html.mg-theme-dark .mg-footer a:hover,
html.mg-theme-dark .mg-footer a:hover i,
html.mg-theme-dark .mg-footer a:hover .fa{
  color: var(--mg-primary) !important;
  opacity: 1;
}

/* =========================================
   TOOLS SPOTLIGHT (Home)
   ========================================= */

#tools-spotlight { position: relative; }

.mg-tools-spotlight{
  position: relative;
  border-radius: 22px;
  background: var(--mg-surface);
  border: 1px solid var(--mg-border);
  overflow: hidden;
  box-shadow:
    0 12px 30px rgba(0,0,0,.18);
  -webkit-tap-highlight-color: transparent;
}

.mg-tools-spotlight::before{
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  background:
    radial-gradient(600px 220px at 20% 20%, rgba(255,123,0,.30), transparent 60%),
    radial-gradient(520px 220px at 80% 15%, rgba(37,211,102,.22), transparent 60%),
    radial-gradient(520px 260px at 70% 85%, rgba(79,170,213,.18), transparent 62%);
  filter: blur(14px);
  opacity: .95;
  pointer-events: none;
}

.mg-tools-spotlight::after{
  /* brillo “Apple-like” suave arriba */
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.24), transparent);
  opacity: .65;
  pointer-events: none;
}

.mg-tools-spotlight__inner{
  position: relative;
  z-index: 1;
  padding: 18px;
}

@media (min-width: 768px){
  .mg-tools-spotlight__inner{ padding: 22px 26px; }
}

.mg-tools-spotlight__icon{
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;

  background: rgba(255,123,0,.10);
  color: #ffb27a;

  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 10px 26px rgba(255,123,0,.15);
}

html.mg-theme-light .mg-tools-spotlight__icon{
  color: #ff7b00;
}

.mg-tools-spotlight__kicker{
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .2px;
  padding: 6px 10px;
  border-radius: 999px;

  background: rgba(37,211,102,.12);
  color: #25d366;
  border: 1px solid rgba(37,211,102,.20);
  margin-bottom: 10px;
}

.mg-tools-spotlight__title{
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--mg-text);
  margin: 0;
}

@media (min-width: 768px){
  .mg-tools-spotlight__title{ font-size: 1.35rem; }
}

.mg-tools-spotlight__desc{
  color: var(--mg-muted);
  margin: 0;
}

.mg-tools-spotlight__muted{
  opacity: .9;
  font-weight: 600;
}

.mg-tools-spotlight__cta{
  border-radius: 999px;
  padding: 12px 16px; /* pulgar-friendly */
  font-weight: 700;
  box-shadow:
    0 10px 22px rgba(37,211,102,.20);
}

.mg-tools-spotlight:focus-visible,
.mg-tools-spotlight:focus-within{
  outline: 2px solid rgba(138,180,255,.55);
  outline-offset: 3px;
}

.mg-tools-spotlight:active{
  transform: translateY(1px);
}

/* Footer: redes prolijas en mobile + alineación en desktop */
.mg-footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center; /* mobile */
}

@media (min-width: 768px){
  .mg-footer-links{
    justify-content: flex-end; /* desktop */
  }
}

.mg-footer-links a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap; /* evita cortes feos tipo "Face" + "book" */
}

.mg-footer-links i{
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 767px) {
  .mg-footer .footer-copyright {
    width: 100%;
    text-align: center;
  }
}

/* CTA centrado + más llamativo */
.mg-promo-back { position: relative; }

.mg-promo-cta{
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 2;

  padding: 10px 18px;
  border-radius: 999px;

  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.2px;

  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  backdrop-filter: blur(8px);

  box-shadow: 0 10px 24px rgba(0,0,0,0.25);

  pointer-events: none; /* no bloquea el click */
  white-space: nowrap;
}

/* Micro-animación SOLO en mobile (llamativa pero elegante) */
@media (max-width: 767px){
  .mg-promo-cta{
    animation: mgCtaPulse 1.8s ease-in-out infinite;
  }
}

@keyframes mgCtaPulse{
  0%, 100%{
    transform: translateX(-50%) scale(1);
    opacity: 0.95;
  }
  50%{
    transform: translateX(-50%) scale(1.06);
    opacity: 1;
  }
}

/* Opcional: ocultarlo en desktop */
@media (min-width: 992px){
  .mg-promo-cta{ display:none; }
}

/* Bloque CTA cierre catálogo */
.catalogo-cta-box {
  border-radius: 0px;
  background: linear-gradient(
    135deg,
    rgba(77, 187, 255, 0.644),
    rgba(1, 73, 150, 0.505)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
}

