/* MGV Studio — Design System & Mobile-First Modern UI (frontend-design + ui-ux-pro-max) */
@font-face {
  font-family: "AmazonEmber";
  src: url("../fonts-new/AmazonEmber-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AmazonEmber";
  src: url("../fonts-new/AmazonEmber-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AmazonEmber";
  src: url("../fonts-new/AmazonEmber-Medium.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AmazonEmber";
  src: url("../fonts-new/AmazonEmber-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AmazonEmber";
  src: url("../fonts-new/AmazonEmber-Bold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --mgv-bg: #0c0d10;
  --mgv-surface: #14171f;
  --mgv-surface-2: #191d28;
  --mgv-border: rgba(255, 255, 255, 0.08);
  --mgv-border-accent: rgba(43, 181, 255, 0.26);
  --mgv-text: #f3f5f8;
  --mgv-text-muted: #9aa3b5;
  --mgv-accent: #2bb5ff;
  --mgv-accent-strong: #0a84ff;
  --mgv-radius-lg: 22px;
  --mgv-radius-md: 16px;

  /* === Tipografía Global: Amazon Ember (assets/fonts-new) === */
  --mgv-font-display: "AmazonEmber", -apple-system, BlinkMacSystemFont, sans-serif;
  --mgv-font-sans: "AmazonEmber", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Reemplazo global de todas las fuentes de la plantilla por AmazonEmber */
  --font_mango: "AmazonEmber", sans-serif !important;
  --font_teko: "AmazonEmber", sans-serif !important;
  --font-bebas: "AmazonEmber", sans-serif !important;
  --font_display: "AmazonEmber", sans-serif !important;
  --font_bricolage: "AmazonEmber", sans-serif !important;
  --font_ClashGrotesk: "AmazonEmber", sans-serif !important;
  --font_bdo-grotesk: "AmazonEmber", sans-serif !important;
  --font_mona-sans: "AmazonEmber", sans-serif !important;
  --font_mona-sans-cond: "AmazonEmber", sans-serif !important;
  --font_kanit: "AmazonEmber", sans-serif !important;
  --font_instrument: "AmazonEmber", sans-serif !important;
  --font_open-sans: "AmazonEmber", sans-serif !important;
  --font_mulish: "AmazonEmber", sans-serif !important;
  --font-dm-sans: "AmazonEmber", sans-serif !important;
  --font-inter-tight: "AmazonEmber", sans-serif !important;
  --font_outfit: "AmazonEmber", sans-serif !important;
  --font-popins: "AmazonEmber", sans-serif !important;
  --font-figtree: "AmazonEmber", sans-serif !important;
  --font-saira: "AmazonEmber", sans-serif !important;
  --font-montarest: "AmazonEmber", sans-serif !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body, body.theme-dark,
p, span, a, li, button, input, select, textarea,
h1, h2, h3, h4, h5, h6 {
  font-family: "AmazonEmber", -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Ajuste global de títulos (escritorio y móvil) para que Outfit se vea moderna, limpia y proporcionada */
h1, h2, h3, h4, h5, h6,
.section-title__wrapper .title,
.section-title-2__wrapper .title,
.section-title-3__bottom .title,
.about__content .title,
.service__contant .title,
.project__content-left .title,
.testimonial__content .title,
.blog-3__card .title,
.blog-3__item .title,
.cruve-slider .section-title__wrapper .title,
.footer-2-widget__content .title {
  font-family: var(--mgv-font-display) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  text-transform: none !important;
}

/* Escalado limpio en escritorio (porque MangoGrotesque usaba tamaños gigantes de 100-180px por ser muy angosta) */
@media (min-width: 768px) {
  .hero__content > h1.title {
    font-size: clamp(54px, 6.2vw, 96px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.03em !important;
    text-transform: uppercase !important;
  }
  .hero__box .title {
    font-family: var(--mgv-font-display) !important;
    font-size: clamp(48px, 4.5vw, 72px) !important;
    line-height: 1 !important;
  }
  .section-title__wrapper .title,
  .section-title-3__bottom .title {
    font-size: clamp(36px, 4vw, 58px) !important;
    line-height: 1.12 !important;
  }
  .about__content .title.split-scroll {
    font-size: clamp(28px, 2.7vw, 42px) !important;
    line-height: 1.28 !important;
    font-weight: 600 !important;
  }
  .about__item .title {
    font-size: clamp(40px, 3.6vw, 56px) !important;
    line-height: 1.05 !important;
  }
  .project__content-left .title {
    font-size: clamp(28px, 2.6vw, 40px) !important;
    line-height: 1.18 !important;
  }
  .service__contant .title {
    font-size: clamp(36px, 3.4vw, 52px) !important;
    line-height: 1.12 !important;
  }
  .testimonial__content .title {
    font-size: clamp(22px, 2vw, 30px) !important;
    line-height: 1.3 !important;
  }
  .blog-3__card .title {
    font-size: clamp(24px, 2.2vw, 34px) !important;
    line-height: 1.22 !important;
  }
  .blog-3__item .title {
    font-size: clamp(19px, 1.4vw, 23px) !important;
    line-height: 1.3 !important;
  }
  .cruve-slider .section-title__wrapper .title {
    font-size: clamp(44px, 5vw, 76px) !important;
    line-height: 1.08 !important;
  }
  .footer-2-widget__content .title {
    font-size: clamp(26px, 2.4vw, 36px) !important;
    line-height: 1.15 !important;
  }
}

/* Focus accesible y limpio */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--mgv-accent);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  body, body.theme-dark {
    -webkit-tap-highlight-color: transparent;
    background: var(--mgv-bg) !important;
    color: var(--mgv-text);
  }
  img, video { max-width: 100%; height: auto; }
  /* Áreas táctiles >= 44px */
  a.rr-btn, a.rr-btn-primary, button, .rr-btn-primary, .rr-btn { min-height: 44px; touch-action: manipulation; }
  .main-menu a, .mean-nav a, .offcanvas__menu-wrapper a { padding-top: 12px; padding-bottom: 12px; }
  input, select, textarea { font-size: 16px !important; }
  section { scroll-margin-top: 72px; }
  .cursor, .cursor-follower, .mouseCursor { display: none !important; }
  * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

  /* Ritmo vertical uniforme entre secciones en móvil */
  .section-spacing { padding-top: 48px !important; padding-bottom: 48px !important; }
  .section-pt { padding-top: 48px !important; }
  .section-pb { padding-bottom: 48px !important; }

  /* Encabezados de sección modernos y compactos (sin etiquetas numéricas) */
  .section-title__wrapper { margin-bottom: 24px !important; }
  .section-title__wrapper ul,
  .section-title__top ul,
  .section-title-3__top,
  .footer-2__label {
    display: none !important;
  }
  .section-title__wrapper .title,
  .section-title-3__bottom .title {
    font-size: clamp(24px, 6.8vw, 30px) !important;
    line-height: 1.16 !important;
    letter-spacing: -0.02em !important;
    color: var(--mgv-text) !important;
    text-wrap: balance;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ===== App móvil (inicio) ===== */
.mgv-app, .mgv-nav { display: none; }
@media (max-width: 767px) {
  .header-area, .hero, body.mgv-has-app .header-area, body.mgv-has-app .hero { display: none !important; }
  .mgv-app { display: block; background: var(--mgv-bg); color: var(--mgv-text); }
  .mgv-app__hero { position: relative; min-height: auto; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; overflow: hidden; background: #0c0d10; padding: calc(24px + env(safe-area-inset-top)) 0 18px; }
  .mgv-app__bar { position: relative; top: auto; left: auto; right: auto; z-index: 3; display: flex; align-items: center; justify-content: center; width: 100%; padding: 0 16px; margin-bottom: 28px !important; }
  .mgv-app__logo { display: inline-flex; justify-content: center; }
  .mgv-app__logo img { height: 46px; width: auto; display: block; }
  .mgv-ibtn { display: none !important; }
  .mgv-app__hero video {
    position: relative;
    top: auto;
    left: auto;
    transform: scale(1.1);
    width: 100%;
    max-width: 440px;
    height: auto;
    max-height: 360px;
    margin: 0 auto 22px;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
    display: block;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
  }
  .mgv-app__hero .wave-dots-mobile {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 52%;
    z-index: 1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 65%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 65%, transparent 100%);
  }
  .mgv-app__shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(12,13,16,0) 0%, rgba(12,13,16,0) 55%, rgba(12,13,16,.88) 86%, var(--mgv-bg) 100%);
  }
  .mgv-app__copy { position: relative; z-index: 3; padding: 10px 20px 18px; text-align: left; width: 100%; }
  .mgv-app__copy h1 { font-family: var(--mgv-font-display) !important; font-size: clamp(32px, 8.8vw, 38px); line-height: 1.06; margin: 0; font-weight: 800 !important; text-transform: none !important; color: #fff; letter-spacing: -0.03em !important; text-align: left; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.55); }
  .mgv-app__copy h1 span {
    display: block;
    margin-top: 2px;
    background: linear-gradient(90deg, #2bb5ff 0%, #7ad3ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--mgv-accent);
  }
  .mgv-app__copy p, .mgv-app__copy .mgv-cta { display: none !important; }
  .mgv-app__body { padding: 4px 16px 20px; background: var(--mgv-bg); }
  .mgv-stats { margin-top: 4px; background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 14px 0 10px !important; box-shadow: none !important; }
  .mgv-stats__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mgv-stat { position: relative; text-align: center; font-size: 11.5px; font-weight: 500; color: var(--mgv-text-muted); display: flex; flex-direction: column; align-items: center; }
  .mgv-stat::after { display: none !important; }
  .mgv-stat svg { width: 82px; height: 82px; transform: rotate(-90deg); display: block; margin: 0 auto 8px; overflow: visible; background: transparent !important; }
  .mgv-stat circle { fill: none; stroke-width: 3; }
  .mgv-stat .bg { stroke: rgba(255,255,255,.08); }
  .mgv-stat .fg { stroke: var(--mgv-accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s ease; filter: none !important; }
  .mgv-stat.on .fg { stroke-dashoffset: calc(100 - var(--p)); }
  .mgv-stat b { font-family: var(--mgv-font-display); position: absolute; top: 0; left: 0; right: 0; height: 82px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
  .mgv-stat span { line-height: 1.25; max-width: 11ch; }
  .mgv-head { display: none !important; }
  /* Carrusel horizontal continuo en loop suave de Servicios */
  .mgv-slider {
    display: flex !important;
    gap: 14px !important;
    overflow-x: auto !important;
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
    -webkit-overflow-scrolling: touch;
    margin: 18px -16px 0 !important;
    padding: 4px 16px 10px !important;
    scrollbar-width: none;
  }
  .mgv-slider::-webkit-scrollbar { display: none; }
  .mgv-card {
    flex: 0 0 74% !important;
    min-height: 170px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 20px !important;
    border-radius: 22px !important;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(160deg, #171b26 0%, #11131a 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4) !important;
    position: relative;
    overflow: hidden;
    transition: transform .15s ease;
  }
  .mgv-card:active { transform: scale(0.985); }
  .mgv-card::before {
    display: none !important;
  }
  .mgv-card__ico {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    display: grid;
    place-items: center;
    font-size: 22px;
    margin: 0 auto 14px;
    box-shadow: none !important;
  }
  .mgv-card__ico i { color: #ffffff !important; }
  .mgv-card h3 {
    font-size: 20px !important;
    line-height: 1.22 !important;
    margin: 0 0 8px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-wrap: balance;
  }
  .mgv-card p {
    font-size: 14.5px !important;
    line-height: 1.48 !important;
    margin: 0 !important;
    color: #b4bece !important;
    max-width: 28ch;
  }
  .mgv-card__btn, .mgv-dots { display: none !important; }

  /* Barra inferior limpia y fija de extremo a extremo */
  body.mgv-has-nav { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .mgv-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--mgv-bg); border-top: 1px solid var(--mgv-border); border-radius: 0; box-shadow: 0 -6px 24px rgba(0,0,0,.55); }
  .mgv-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 44px; justify-content: center; font-size: 11px; font-weight: 500; color: var(--mgv-text-muted); text-decoration: none; background: transparent !important; border-radius: 0; position: relative; touch-action: manipulation; }
  .mgv-nav a i { font-size: 18px; transition: transform .2s ease, color .2s ease; }
  .mgv-nav a.on { color: var(--mgv-accent); background: transparent !important; font-weight: 600; }
  .mgv-nav a.on i { transform: translateY(-1px); }
  .mgv-nav a.on::before { content: ""; position: absolute; top: -8px; width: 24px; height: 2px; border-radius: 2px; background: var(--mgv-accent); }
  .progress-wrap { display: none !important; }
}

/* ===== Barra superior app (páginas internas) ===== */
.mgv-top, .mgv-drawer, .mgv-scrim { display: none; }
@media (max-width: 767px) {
  body.mgv-has-top .header-area { display: none !important; }
  .mgv-top { display: flex; position: sticky; top: 0; z-index: 9980; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: rgba(12,13,16,.96); border-bottom: 1px solid var(--mgv-border); }
  .mgv-top .mgv-app__logo img { height: 28px; width: auto; }
  .mgv-top .mgv-ibtn { background: var(--mgv-surface); }
  .mgv-scrim { display: block; position: fixed; inset: 0; z-index: 9995; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .mgv-drawer { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; width: 82%; max-width: 330px; z-index: 9996; background: var(--mgv-bg); padding: calc(18px + env(safe-area-inset-top)) 18px 24px; transform: translateX(-100%); transition: transform .28s ease; overflow-y: auto; }
  body.mgv-open .mgv-drawer { transform: none; }
  body.mgv-open .mgv-scrim { opacity: 1; pointer-events: auto; }
  .mgv-drawer img { height: 30px; width: auto; align-self: flex-start; margin-bottom: 18px; }
  .mgv-drawer a.l { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 14px; color: #e6e9ef; font-size: 17px; text-decoration: none; }
  .mgv-drawer a.l i { width: 22px; text-align: center; color: var(--mgv-accent); }
  .mgv-drawer a.l.on { background: var(--mgv-surface); }
  .mgv-drawer .mgv-cta { margin-top: 18px; justify-content: center; }
  body.mgv-has-top img { border-radius: 14px; }
  body.mgv-has-top .container { padding-left: 16px; padding-right: 16px; }
}

/* ===== Sección "Sobre MGV Studio": texto con palabras clave resaltadas en color ===== */
.about__content .title.about__lead {
  color: #c2cad8 !important;
  font-weight: 600 !important;
}
.about__content .title.about__lead .hl-cyan {
  color: var(--mgv-accent) !important;
  background: linear-gradient(90deg, #2bb5ff 0%, #6dd5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700 !important;
}
.about__content .title.about__lead .hl-white {
  color: #ffffff !important;
  font-weight: 700 !important;
}
.about__content-box:first-child,
.theme-dark .about__content-box:first-child {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  gap: 14px !important;
}
.about__badge-ico {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  background: rgba(43, 181, 255, 0.14);
  border: 1px solid rgba(43, 181, 255, 0.3);
  color: var(--mgv-accent);
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 6px 18px rgba(43, 181, 255, 0.18);
}
.about__badge-ico img { display: none !important; }
.about__item .title,
.theme-dark .about__item .title {
  -webkit-text-stroke: 0 !important;
  text-stroke: 0 !important;
  color: var(--mgv-accent) !important;
  letter-spacing: -0.02em !important;
  font-weight: 700 !important;
  font-family: var(--mgv-font-display) !important;
}
.about__item .odometer.odometer-auto-theme,
.about__item .odometer.odometer-theme-default,
.about__item .odometer * {
  font-family: var(--mgv-font-display) !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  -webkit-text-stroke: 0 !important;
  color: #fff !important;
}

/* Párrafo "Diseño con propósito…" en blanco (escritorio y móvil) */
.theme-dark .about__content-box p { color: #fff !important; }

@media (max-width: 767px) {
  .about.section-spacing { padding-top: 24px !important; }
  .about__content .title.about__lead,
  .about__content .title.split-scroll {
    font-size: clamp(20px, 5.5vw, 24px) !important;
    line-height: 1.38 !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em !important;
    margin-bottom: 20px !important;
  }
  .about__content-box .text .title {
    font-size: 18px !important;
    line-height: 1.25 !important;
  }
  .about__content-box p { font-size: 15px; line-height: 1.62; color: #fff !important; }
  .about__content__wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
    align-items: stretch;
  }
  .about__item {
    background: linear-gradient(165deg, var(--mgv-surface-2) 0%, var(--mgv-surface) 100%) !important;
    border: 1px solid var(--mgv-border-accent) !important;
    border-radius: var(--mgv-radius-md) !important;
    padding: 16px 8px 14px !important;
    text-align: center;
    margin: 0 !important;
    width: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    transform: none !important;
    position: static !important;
    top: auto !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  }
  .about__item .title {
    font-size: 26px !important;
    line-height: 1 !important;
    margin: 0 0 8px !important;
    color: var(--mgv-accent) !important;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 1px;
  }
  .about__item p {
    font-size: 11.5px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
    margin: 0 !important;
    color: var(--mgv-text-muted) !important;
    text-wrap: balance;
  }
}

/* ===== Galería Video Show Case (Video grande protagonista + miniaturas pequeñas en 3 columnas con poco scroll) ===== */
@media (max-width: 767px) {
  .video-show-case__inner {
    height: auto !important;
    padding-top: 12px !important;
    padding-bottom: 20px !important;
  }
  .video-show-case__wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: stretch;
  }
  .video-show-case__box {
    display: contents !important;
  }
  .video-show-case__box.video {
    display: block !important;
    grid-column: 1 / -1 !important;
    order: -1;
    margin-bottom: 4px !important;
  }
  .video-show-case__media {
    margin: 0 !important;
    border-radius: 12px !important;
    overflow: hidden;
    border: 1px solid var(--mgv-border);
    background: var(--mgv-surface);
    aspect-ratio: 1 / 1;
    max-height: 112px;
  }
  .video-show-case__box.video .video-show-case__media {
    aspect-ratio: 4 / 3 !important;
    max-height: none !important;
    min-height: 250px;
    border-radius: 18px !important;
    border: 1px solid var(--mgv-border-accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  }
  .video-show-case__media img,
  .video-show-case__media video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top;
    display: block;
  }
}

/* ===== Servicios (escritorio y celular): fundido suave en bordes de los videos + fondo #0a0b0e para que nunca se note el cuadro del video ===== */
.service__content-panel .media,
.about__video {
  background: transparent !important;
  overflow: hidden;
}
.service__content-panel .media video,
.service__content-panel .media img,
.about__video video {
  -webkit-mask-image: radial-gradient(ellipse 76% 74% at 50% 50%, #000 56%, rgba(0,0,0,0.65) 76%, transparent 98%);
  mask-image: radial-gradient(ellipse 76% 74% at 50% 50%, #000 56%, rgba(0,0,0,0.65) 76%, transparent 98%);
  mix-blend-mode: lighten;
}

/* El fondo del video (≈ #110f1b / #200d0f) es más claro que el fondo de la página
   (#0c0d10) y con "lighten" se ve como un recuadro distinto. Se oscurecen los negros
   del video para que el fondo sea el mismo en toda la página. */
@media (max-width: 767px) {
  .about, .about__left, .about__video { background: var(--mgv-bg) !important; }
  .about__video video {
    filter: brightness(0.9) contrast(1.35);
  }
}

@media (max-width: 767px) {
  .service {
    position: relative;
    overflow: hidden;
    background: var(--mgv-bg) !important;
  }
  .service .service__list { display: none; }
  .service__wrapper { display: block; }
  .service__content-sticky { display: flex; flex-direction: column; gap: 38px; }
  .service__content-panel {
    position: relative !important; opacity: 1 !important; pointer-events: auto !important; transform: none !important;
    background: transparent !important; border: 0 !important;
    border-radius: 0 !important; padding: 0 !important;
  }
  .service__content-panel .service__contant .text { transform: none; }
  .service__content-panel .service__contant .title { font-size: 24px !important; line-height: 1.2 !important; margin-bottom: 8px !important; }
  .service__content-panel .service__contant .title br { display: none; }
  .service__content-panel .service__contant span { font-size: 15px !important; line-height: 1.58 !important; color: var(--mgv-text-muted) !important; display: block; }
  .service__content-panel .service__wa { display: none !important; }
  .service__content-panel .media {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 0;
    margin-top: 12px;
    background: transparent !important;
  }
  .service__content-panel .media video,
  .service__content-panel .media img {
    width: 100%;
    height: auto;
    border-radius: 0;
    margin-top: 0;
    background: transparent !important;
  }
}

/* ===== Proyectos en celular: tarjetas que se apilan al hacer scroll ===== */
@media (max-width: 767px) {
  .project.rr-ov-hidden, .project .project__wrapper, .project .project-active { overflow: visible !important; }
  .project-active.mgv-stack .swiper-wrapper { display: block !important; transform: none !important; height: auto !important; }
  .project-active.mgv-stack .swiper-slide { position: sticky !important; top: 76px; width: 100% !important; height: auto !important; margin: 0 0 18px !important;
    transform-origin: 50% 0; will-change: transform; border-radius: var(--mgv-radius-lg); overflow: hidden; box-shadow: 0 -8px 30px rgba(0,0,0,.5); border: 1px solid var(--mgv-border); }
  .project-active.mgv-stack .swiper-slide img { width: 100%; height: auto; display: block; border-radius: var(--mgv-radius-lg); }
  .mgv-badge { position: absolute; left: 12px; top: 12px; z-index: 3; display: flex; gap: 6px; font-size: 11.5px; font-weight: 600; }
  .mgv-badge span { padding: 5px 12px; border-radius: 999px; background: rgba(12,13,16,.84); border: 1px solid rgba(255,255,255,.12); color: #fff; }
  .project .project__content-left, .project .project__content-right { display: none !important; }
  .project .project__wrapper { padding: 0 16px; }
}

/* ===== Testimonios en celular: tarjetas limpias y legibles ===== */
@media (max-width: 767px) {
  .testimonial .shape-1, .testimonial .shape-2 { display: none !important; }
  .testimonial__item {
    background: var(--mgv-surface) !important;
    border: 1px solid var(--mgv-border) !important;
    border-radius: var(--mgv-radius-lg) !important;
    padding: 22px 18px !important;
  }
  .testimonial__content .title {
    font-size: 19px !important;
    line-height: 1.32 !important;
    margin-bottom: 12px !important;
  }
  .testimonial__content .desc {
    font-size: 14.5px !important;
    line-height: 1.58 !important;
    color: var(--mgv-text-muted) !important;
  }
  .testimonial .author .name {
    font-size: 16px !important;
    font-weight: 600 !important;
  }
}

/* ===== Blog: tarjetas limpias sin recuadro negro encima + 2 columnas en celular ===== */
.blog-3__media { min-height: 220px; background: var(--mgv-surface); border-radius: 20px; overflow: hidden; }
.blog-3__media img { width: 100%; height: auto; display: block; }
.theme-dark .blog-3__item {
  background: var(--mgv-surface);
  border: 1px solid var(--mgv-border);
  border-radius: 20px;
  overflow: hidden;
  padding-bottom: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color .25s ease, transform .25s ease;
}
.theme-dark .blog-3__item:hover {
  border-color: var(--mgv-border-accent);
}
.theme-dark .blog-3__item .media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.theme-dark .blog-3__item .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.theme-dark .blog-3__content {
  background: transparent !important;
  margin-top: 0 !important;
  width: 100% !important;
  padding: 16px 18px 8px !important;
  border-radius: 0 !important;
}
.theme-dark .blog-3__date {
  margin-top: auto !important;
  padding: 10px 18px 0 !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

@media (max-width: 767px) {
  #blog-home {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 !important;
  }
  #blog-home > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #blog-home > [class*="col-"]:first-child {
    grid-column: 1 / -1;
  }
  .blog-3__card {
    background: var(--mgv-surface);
    border: 1px solid var(--mgv-border);
    border-radius: var(--mgv-radius-lg);
    overflow: hidden;
    padding-bottom: 16px;
  }
  .blog-3__card .blog-3__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: 0;
  }
  .blog-3__card .blog-3__meta-date {
    position: static !important;
    margin: 12px 14px 6px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    gap: 6px 12px !important;
  }
  .blog-3__card .blog-3__meta-date li:first-child {
    background: rgba(43, 181, 255, 0.16);
    border: 1px solid rgba(43, 181, 255, 0.32);
    color: var(--mgv-accent);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
  }
  .blog-3__card .blog-3__meta-date li {
    font-size: 11px !important;
    color: var(--mgv-text-muted) !important;
  }
  .blog-3__card .title {
    position: static !important;
    margin: 4px 14px 0 !important;
    font-size: 17px !important;
    line-height: 1.3 !important;
    color: #fff !important;
  }
  .blog-3__card .title a { color: #fff !important; }

  .theme-dark .blog-3__item {
    margin-top: 0 !important;
    padding-bottom: 12px !important;
    border-radius: var(--mgv-radius-md) !important;
  }
  .theme-dark .blog-3__item .media {
    aspect-ratio: 16 / 10;
  }
  .theme-dark .blog-3__content {
    padding: 10px 10px 6px !important;
  }
  .theme-dark .blog-3__meta-tag {
    margin: 0 0 6px !important;
    gap: 4px 6px !important;
  }
  .theme-dark .blog-3__meta-tag li {
    font-size: 10px !important;
    line-height: 1.2 !important;
    color: var(--mgv-text-muted) !important;
  }
  .theme-dark .blog-3__meta-tag li span {
    background: rgba(43, 181, 255, 0.16) !important;
    border: 1px solid rgba(43, 181, 255, 0.3);
    color: var(--mgv-accent) !important;
    font-size: 10px !important;
    padding: 2px 8px !important;
    line-height: 1.4 !important;
  }
  .theme-dark .blog-3__item .title {
    font-size: 13.5px !important;
    line-height: 1.32 !important;
    margin: 0 !important;
  }
  .theme-dark .blog-3__date {
    padding: 8px 10px 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }
  .theme-dark .blog-3__date li,
  .theme-dark .blog-3__date li a {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }
  .theme-dark .blog-3__date li img {
    width: 12px;
    height: 12px;
  }
}

/* ===== Sección "Estrena tu página web hoy" (cruve-slider) en móvil ===== */
@media (max-width: 767px) {
  .cruve-slider .section-title__wrapper .title {
    font-size: clamp(26px, 7.5vw, 34px) !important;
    line-height: 1.15 !important;
  }
}

/* ===== Footer moderno centrado (escritorio y móvil) ===== */
.footer-2, .footer-2__inner { background: var(--mgv-bg) !important; text-align: center; }
.footer-2__inner { padding-top: 56px !important; padding-bottom: 36px !important; border-top: 1px solid var(--mgv-border); }
.footer-2 .footer-2-widget__content::before { display: none !important; }
.footer-2 .footer-2-widget__wrapper {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px !important;
  max-width: 480px;
  margin: 0 auto;
}
.footer-2 .footer-2-widget__box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-2 .footer-2-widget__content {
  padding-right: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-2__logo { display: inline-flex; justify-content: center; margin-bottom: 0; }
.footer-2__logo img { height: 48px; width: auto; max-width: 100%; display: block; margin: 0 auto; }
.footer-2 .footer-2-widget__content .title,
.footer-2 .footer-2-widget__content .description {
  display: none !important;
}
.footer-2__label {
  display: block;
  font-family: var(--mgv-font-sans);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mgv-accent);
  margin-bottom: 10px;
  text-align: center;
}
.footer-2-widget__info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-2 .footer-2-widget__info .number::before,
.footer-2 .footer-2-widget__info .number::after,
.footer-2 .footer-2-widget__info .mail::before,
.footer-2 .footer-2-widget__info .mail::after {
  display: none !important;
  content: none !important;
}
.footer-2 .footer-2-widget__info .number,
.footer-2 .footer-2-widget__info .mail {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--mgv-radius-md);
  background: var(--mgv-surface);
  border: 1px solid var(--mgv-border);
  font-family: var(--mgv-font-display) !important;
  font-size: clamp(15.5px, 1.4vw, 18.5px) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  color: #fff !important;
  margin: 0 !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.footer-2 .footer-2-widget__info .number:hover,
.footer-2 .footer-2-widget__info .mail:hover {
  border-color: var(--mgv-border-accent);
  background: var(--mgv-surface-2);
  color: var(--mgv-accent) !important;
}
.footer-2__ico {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: rgba(43, 181, 255, 0.14);
  border: 1px solid rgba(43, 181, 255, 0.28);
  color: var(--mgv-accent);
  display: grid;
  place-items: center;
  font-size: 15px;
}
.footer-2__ico i {
  rotate: 0deg !important;
  font-size: 15px !important;
  color: var(--mgv-accent) !important;
}
.footer-2 .footer-2-widget__info .number > i,
.footer-2 .footer-2-widget__info .mail > i {
  margin-left: auto;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--mgv-text-muted);
  display: grid;
  place-items: center;
  font-size: 12px !important;
  rotate: -45deg;
}
.footer-2 .footer-2-widget__content .coppyright {
  order: 99;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 18px 0 0 !important;
  margin-top: 24px !important;
  border-top: 1px solid var(--mgv-border);
  width: 100%;
  display: block !important;
  text-align: center;
}
.footer-2__copy-bar {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--mgv-border);
  text-align: center;
  width: 100%;
}
.footer-2__copy-bar .coppyright-text,
.footer-2 .footer-2-widget__content .coppyright-text {
  font-family: var(--mgv-font-sans) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  letter-spacing: 0.01em !important;
  color: var(--mgv-text-muted) !important;
  margin: 0;
}
.footer-2__copy-bar .coppyright-text a,
.footer-2 .footer-2-widget__content .coppyright-text a {
  color: var(--mgv-accent) !important;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 767px) {
  .footer-2__inner { padding-top: 36px !important; padding-bottom: 24px !important; }
  .footer-2__logo img { height: 42px; }
  .footer-2 .footer-2-widget__info .number,
  .footer-2 .footer-2-widget__info .mail {
    padding: 13px 15px;
    font-size: 15.5px !important;
  }
  .footer-2__copy-bar {
    margin-top: 22px;
    padding-top: 16px;
  }
}
