:root {
  --mn-blue: #2f4ea2;
  --mn-blue-dark: #0b214d;
  --mn-blue-soft: #2c64f0;
  --mn-yellow: #f4bf00;
  --mn-green: #08c94b;
  --mn-text: #0f172a;
  --mn-text-soft: #475569;
  --mn-white: #ffffff;
  --mn-bg: #f5f7fb;
  --mn-border: #dbe4f0;
  --mn-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --mn-radius: 18px;
  --mn-radius-sm: 12px;
  --mn-container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--mn-text);
  background: #fff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(100% - 32px, var(--mn-container));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section-head {
  margin-bottom: 42px;
}

.section-head--center {
  text-align: center;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  color: var(--mn-blue-dark);
  letter-spacing: -0.03em;
}

.section-head p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--mn-text-soft);
}

.text-yellow {
  color: var(--mn-yellow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.25s ease;
  border: 1px solid transparent;
}

.btn--block {
  width: 100%;
}

.btn--yellow {
  background: var(--mn-yellow);
  color: #14213d;
}

.btn--yellow:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.btn--outline-light {
  background: transparent;
  color: var(--mn-white);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn--blue {
  background: #2962f2;
  color: #fff;
}

.btn--blue:hover {
  background: #1e54dd;
}

.btn--green {
  background: #09c84c;
  color: #fff;
}

.btn--green:hover {
  background: #05b343;
}

.btn {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.btn--yellow {
  background: linear-gradient(180deg, #ffcd1f 0%, #f4bf00 100%);
  color: #14213d;
  box-shadow: 0 14px 28px rgba(244, 191, 0, 0.28);
}

.btn--outline-light {
  background: rgba(255, 255, 255, 0.04);
  color: var(--mn-white);
  border-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.10);
}









.mn-hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(244, 191, 0, 0.08), transparent 24%),
    radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.05), transparent 22%),
    linear-gradient(135deg, #1d377f 0%, #2f4ea2 48%, #4466be 100%);
}

/* ===== IMAGEN BASE DEL HERO ===== */
.mn-hero__bg-picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.mn-hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.25; /* controla qué tanto se ve la foto base */
  filter: saturate(0.95) contrast(1.02);
}

/* ===== LONA / CAPA AZUL ENCIMA ===== */
.mn-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(11, 33, 77, 0.78) 0%,
      rgba(22, 52, 126, 0.62) 38%,
      rgba(34, 73, 170, 0.40) 68%,
      rgba(47, 89, 190, 0.30) 100%
    );
  pointer-events: none;
}

/* un velo extra para el desvanecido general */
.mn-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.08) 100%);
  pointer-events: none;
}

.mn-hero__glow {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
}

.mn-hero__glow--one {
  width: 300px;
  height: 300px;
  background: rgba(244, 191, 0, 0.16);
  top: -80px;
  left: -80px;
}

.mn-hero__glow--two {
  width: 340px;
  height: 340px;
  background: rgba(255, 255, 255, 0.08);
  right: -80px;
  bottom: -100px;
}

/* ===== GRID DEL HERO ===== */
.mn-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 60px;
  align-items: center;
  width: 100%;
}

/* ===== BLOQUE DE TEXTO ===== */
.mn-hero__content {
  color: #fff;
  max-width: 760px;
  padding: 50px 0 50px 250px;
}

.mn-hero__logo-wrap {
  margin-bottom: 24px;
}

.mn-hero__logo {
  width: 150px;
  height: auto;
}

.mn-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  margin-bottom: 20px;
}

.mn-hero__eyebrow i {
  color: var(--mn-yellow);
}

.mn-hero__title {
  margin: 0 0 22px;
  font-size: clamp(3rem, 5.5vw, 5rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.mn-hero__text {
  margin: 0;
  max-width: 640px;
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.mn-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.mn-hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.mn-hero__feature {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.94rem;
  font-weight: 600;
}

.mn-hero__feature i {
  color: var(--mn-yellow);
}

.mn-hero__badge {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(17, 30, 69, 0.92);
  color: var(--mn-yellow);
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 14px 35px rgba(6, 16, 42, 0.22);
}

/* ===== BLOQUE IMAGEN DERECHA ===== */
.mn-hero__image {
  display: flex;
  justify-content: center;
  align-items: end;
}

.mn-hero__image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: end;
  width: 100%;
  min-height: 640px;
}

.mn-hero__image-wrap::before {
  content: "";
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(244, 191, 0, 0.24) 0%, rgba(244, 191, 0, 0.06) 45%, transparent 72%);
  filter: blur(10px);
}

.mn-hero__image-wrap::after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 34px;
  border-radius: 999px;
  background: rgba(5, 13, 35, 0.32);
  filter: blur(14px);
}

/* PNG / WEBP del gasfitero */
.mn-hero__worker {
  position: relative;
  z-index: 2;
  max-height: 660px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 45px rgba(8, 14, 35, 0.35));
  animation: mnHeroFloat 2.5s ease-in-out infinite;
  will-change: transform;
}




/* movimiento suave eterno  cambiar ajustar */
@keyframes mnHeroFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}




/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .mn-hero__content {
    padding: 50px 0 50px 120px;
  }
}

@media (max-width: 900px) {
  .mn-hero {
    min-height: auto;
    padding: 90px 0 50px;
  }

  .mn-hero__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .mn-hero__content {
    padding: 0 24px;
    max-width: 100%;
  }

  .mn-hero__title {
    font-size: clamp(2.6rem, 10vw, 4rem);
  }

  .mn-hero__text {
    max-width: 100%;
  }

  .mn-hero__image {
    order: -1;
    padding: 0 20px;
  }

  .mn-hero__image-wrap {
    min-height: auto;
  }

  .mn-hero__worker {
    max-height: 500px;
    max-width: 100%;
  }

  .mn-hero__bg-image {
    object-position: center;
    opacity: 0.18;
  }

  .mn-hero__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(17, 42, 105, 0.72) 0%,
        rgba(32, 67, 162, 0.54) 55%,
        rgba(40, 79, 187, 0.42) 100%
      );
  }
}

@media (max-width: 640px) {
  .mn-hero {
    padding: 78px 0 40px;
  }

  .mn-hero__content {
    padding: 0 18px;
  }

  .mn-hero__logo {
    width: 92px;
  }

  .mn-hero__eyebrow {
    font-size: 0.86rem;
    min-height: 38px;
    padding: 0 14px;
  }

  .mn-hero__title {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
    line-height: 1.02;
  }

  .mn-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mn-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .mn-hero__features {
    gap: 10px;
  }

  .mn-hero__feature {
    font-size: 0.88rem;
  }

  .mn-hero__badge {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 14px 16px;
    min-height: auto;
  }

  .mn-hero__worker {
    max-height: 380px;
  }
}

/* accesibilidad: si alguien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .mn-hero__worker {
    animation: none;
  }
}








.mn-services {
  background: #f3f4f6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.service-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--mn-shadow);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.service-card__image {
  position: relative;
  height: 310px;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__icon {
  position: absolute;
  left: 16px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #2962f2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(41, 98, 242, 0.3);
}

.service-card__body {
  padding: 22px 18px 20px;
}

.service-card__body h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--mn-blue-dark);
}

.service-card__body p {
  margin: 0 0 18px;
  color: var(--mn-text-soft);
  line-height: 1.7;
  font-size: 0.98rem;
}

.service-card__actions {
  display: grid;
  gap: 10px;
}

.mn-about {
  background: #fff;
}

.mn-about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.mn-about__image {
  display: flex;
  justify-content: center;
}

.mn-about__image img {
  max-height: 760px;
  width: auto;
}

.mn-about__content h2 {
  margin: 0 0 26px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: var(--mn-blue-dark);
  letter-spacing: -0.03em;
}

.mn-about__content p {
  margin: 0 0 18px;
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--mn-text-soft);
}

.mn-about__box {
  margin-top: 26px;
  background: #f1f5f9;
  border-left: 4px solid #2962f2;
  border-radius: 12px;
  padding: 22px 22px 18px;
}

.mn-about__box h3 {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mn-blue-dark);
  font-size: 1.1rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: start;
  gap: 10px;
  color: var(--mn-text-soft);
  line-height: 1.6;
}

.check-list i {
  color: #16a34a;
  margin-top: 4px;
}

.mn-values {
  background: #f8fafc;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.value-card {
  background: #fff;
  border-radius: 18px;
  padding: 34px 24px;
  text-align: center;
  box-shadow: var(--mn-shadow);
}

.value-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: #dbeafe;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}

.value-card h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  color: var(--mn-blue-dark);
}

.value-card p {
  margin: 0;
  color: var(--mn-text-soft);
  line-height: 1.7;
}







@media (max-width: 1100px) {
  .services-grid,
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mn-hero__grid,
  .mn-about__grid {
    grid-template-columns: 1fr;
  }

  .mn-hero {
    min-height: auto;
    padding: 88px 0 70px;
  }

  .mn-hero__content {
    max-width: 100%;
    text-align: center;
    padding: 0;
  }

  .mn-hero__logo-wrap,
  .mn-hero__actions,
  .mn-hero__features {
    justify-content: center;
  }

  .mn-hero__badge {
    display: inline-flex;
    margin-inline: auto;
  }

  .mn-hero__image {
    order: -1;
  }

  .mn-hero__image-wrap {
    min-height: auto;
  }

  .mn-about__image img,
  .mn-hero__image img {
    max-height: 520px;
  }
}
@media (max-width: 680px) {
  .section {
    padding: 68px 0;
  }

  .services-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .mn-hero {
    padding: 72px 0 58px;
  }

  .mn-hero__title {
    font-size: 2.7rem;
  }

  .mn-hero__text {
    font-size: 1rem;
    line-height: 1.7;
  }

  .mn-hero__actions {
    flex-direction: column;
  }

  .mn-hero__features {
    flex-direction: column;
    align-items: stretch;
  }

  .mn-hero__feature,
  .mn-hero__badge,
  .btn {
    width: 100%;
  }

  .mn-hero__badge {
    justify-content: center;
    text-align: center;
    padding: 14px 18px;
  }

  .service-card__image {
    height: 250px;
  }
}









/* =========================
   BLOQUE: TRABAJOS REALIZADOS
========================= */
.mn-gallery {
  background: #f8fafc;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.gallery-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--mn-shadow);
  background: #fff;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

/* =========================
   BLOQUE: COBERTURA
========================= */
.mn-coverage {
  background: #28459d;
  color: #fff;
}

.section-head--light h2,
.section-head--light p {
  color: #fff;
}

.section-head--light h2 i {
  color: var(--mn-yellow);
  margin-right: 10px;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.coverage-item {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 12px;
  padding: 16px 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.coverage-item i {
  color: var(--mn-yellow);
}

.coverage-cta-box {
  margin-top: 38px;
  background: var(--mn-yellow);
  border-radius: 18px;
  padding: 34px 28px;
  text-align: center;
  color: #0b214d;
}

.coverage-cta-box h3 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.coverage-cta-box p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.coverage-cta-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn--light {
  background: #fff;
  color: #1d4ed8;
}

.btn--light:hover {
  background: #f1f5f9;
}

/* =========================
   BLOQUE: TESTIMONIOS
========================= */
.mn-testimonials {
  background: #f8fafc;
}

.testimonials-rating {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.stars,
.testimonial-stars {
  color: #eab308;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.testimonial-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 26px 20px 22px;
  box-shadow: var(--mn-shadow);
}

.testimonial-quote {
  position: absolute;
  top: -14px;
  left: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-text {
  color: var(--mn-text-soft);
  font-style: italic;
  line-height: 1.8;
  min-height: 130px;
}

.testimonial-tag {
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 18px;
  background: #dbeafe;
  color: #2563eb;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.testimonial-card hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 0 0 16px;
}

.testimonial-card h3 {
  margin: 0 0 4px;
  color: var(--mn-blue-dark);
  font-size: 1.1rem;
}

.testimonial-card small {
  color: var(--mn-text-soft);
  font-size: 0.92rem;
}

/* =========================
   BLOQUE: CTA FINAL
========================= */
.mn-final-cta {
  background: #f8fafc;
  padding-top: 10px;
}

.final-cta-box {
  background: #2563eb;
  color: #fff;
  border-radius: 18px;
  text-align: center;
  padding: 38px 24px;
  box-shadow: var(--mn-shadow);
}

.final-cta-box h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.final-cta-box p {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
}

.final-cta-actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================
   RESPONSIVE EXTRA
========================= */
@media (max-width: 1100px) {
  .gallery-grid,
  .testimonials-grid,
  .coverage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .gallery-grid,
  .testimonials-grid,
  .coverage-grid {
    grid-template-columns: 1fr;
  }

  .coverage-cta-box h3 {
    font-size: 1.5rem;
  }

  .final-cta-box h2 {
    font-size: 1.8rem;
  }

  .testimonial-text {
    min-height: auto;
  }
}



/* FIX VISIBILIDAD SERVICIOS */
.mn-services .section-head h2 {
  color: var(--mn-blue-dark) !important;
}

.mn-services .section-head p {
  color: var(--mn-text-soft) !important;
}

.mn-services .service-card {
  background: #ffffff !important;
}

.mn-services .service-card__body {
  background: #ffffff !important;
  color: var(--mn-text) !important;
}

.mn-services .service-card__body h3 {
  color: var(--mn-blue-dark) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.mn-services .service-card__body p {
  color: var(--mn-text-soft) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.mn-services .service-card__body a {
  opacity: 1 !important;
  visibility: visible !important;
}


.gallery-card--caption {
  position: relative;
}

.gallery-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 16px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12), transparent);
  color: #fff;
}

.gallery-card__overlay h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.gallery-card__overlay p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
}

.gallery-card__overlay span {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--mn-yellow);
}






/* =========================
   GALERÍA DINÁMICA
========================= */

.mn-gallery {
  background: #f5f5f7;
}

.mn-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.mn-gallery-card {
  aspect-ratio: 1 / 1;
  min-height: unset;
}

.mn-gallery-card__img {
  min-height: unset;
  height: 100%;
}

.mn-gallery-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #dcdcdc;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
  min-height: 290px;
}

.mn-gallery-card__button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

.mn-gallery-card__img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.mn-gallery-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 22px 20px 18px;
  background: linear-gradient(
    180deg,
    rgba(5, 10, 25, 0.02) 18%,
    rgba(5, 10, 25, 0.28) 52%,
    rgba(5, 10, 25, 0.78) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mn-gallery-card__text {
  color: #fff;
  transform: translateY(10px);
  transition: transform 0.35s ease;
}

.mn-gallery-card__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 196, 0, 0.16);
  border: 1px solid rgba(255, 196, 0, 0.35);
  color: #ffcc00;
  font-size: 0.78rem;
  font-weight: 700;
}

.mn-gallery-card__overlay h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 800;
}

.mn-gallery-card__overlay p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.mn-gallery-card__hint {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffcc00;
}

.mn-gallery-card:hover .mn-gallery-card__img,
.mn-gallery-card:focus-within .mn-gallery-card__img {
  transform: scale(1.05);
  filter: brightness(0.88);
}

.mn-gallery-card:hover .mn-gallery-card__overlay,
.mn-gallery-card:focus-within .mn-gallery-card__overlay {
  opacity: 1;
}

.mn-gallery-card:hover .mn-gallery-card__text,
.mn-gallery-card:focus-within .mn-gallery-card__text {
  transform: translateY(0);
}

/* =========================
   LIGHTBOX / MODAL
========================= */

.mn-lightbox[hidden] {
  display: none !important;
}

.mn-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.mn-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.mn-lightbox__dialog {
  position: relative;
  z-index: 2;
  width: min(96vw, 1900px);
  height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

.mn-lightbox__figure {
  position: relative;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mn-lightbox__img {
  display: block;
  max-width: min(92vw, 1500px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.mn-lightbox__caption {
  width: min(92vw, 1500px);
  padding: 14px 8px 0;
  color: #fff;
}

.mn-lightbox__caption h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 800;
}

.mn-lightbox__caption p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.mn-lightbox__close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.mn-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.mn-lightbox__nav--prev {
  left: 8px;
}

.mn-lightbox__nav--next {
  right: 8px;
}

.mn-lightbox__close:hover,
.mn-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

body.mn-lightbox-open {
  overflow: hidden;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .mn-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .mn-gallery-grid {
    grid-template-columns: 1fr;
  }

  .mn-gallery-card,
  .mn-gallery-card__img {
    min-height: 260px;
  }

  .mn-gallery-card__overlay {
    opacity: 1;
    background: linear-gradient(
      180deg,
      rgba(5, 10, 25, 0.05) 18%,
      rgba(5, 10, 25, 0.20) 45%,
      rgba(5, 10, 25, 0.72) 100%
    );
  }

  .mn-gallery-card__text {
    transform: translateY(0);
  }

  .mn-lightbox__dialog {
    padding: 20px 12px;
  }

  .mn-lightbox__img {
    max-width: 94vw;
    max-height: 74vh;
  }

  .mn-lightbox__caption {
    width: 94vw;
    padding-top: 12px;
  }

  .mn-lightbox__nav {
    width: 46px;
    height: 46px;
  }

  .mn-lightbox__nav--prev {
    left: 6px;
  }

  .mn-lightbox__nav--next {
    right: 6px;
  }
}