/* =========================================================
   PARTICULARES: NUEVO LAYOUT
   ========================================================= */
:root {
  --mp-primary: #1f3c88;
  --mp-dark: #0f172a;
  --mp-soft: #f6f7fb;
  --mp-border: #e5e7eb;
  --mp-text-soft: #6b7280;
  --mp-card: #ffffff;
}

body.mp-no-scroll {
  overflow: hidden;
}

.mp-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mp-text-soft);
  margin-bottom: 0.5rem;
}

.mp-section {
  padding: 4.5rem 0;
}

.mp-lead {
  font-size: 1.05rem;
  color: #384152;
  line-height: 1.6;
}

.mp-checklist {
  margin: 1.25rem 0 0;
  padding-left: 1.2rem;
  list-style: disc;
  color: #273142;
}

.mp-checklist li + li {
  margin-top: 0.4rem;
}

.mp-empty-state {
  padding: 1.5rem;
  border: 1px dashed var(--mp-border);
  border-radius: 12px;
  background: #fff;
  color: #4b5563;
  text-align: center;
}

/* HERO */
.mp-part-hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.mp-part-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.8), rgba(31, 60, 136, 0.55));
}

.mp-part-hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
}

.mp-hero-lede {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 720px;
  color: #e5e7eb;
}

.mp-part-hero .title,
.mp-part-hero h1,
.mp-part-hero h2 {
  color: #ffffff;
}

.mp-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.4rem 0;
}

.mp-hero-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e5e7eb;
  font-size: 0.9rem;
}

.mp-part-hero-card {
  background: rgba(255, 255, 255, 0.96);
  color: #0b162a;
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.mp-hero-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(31, 60, 136, 0.12);
  color: #1f3c88;
  font-weight: 600;
  font-size: 0.9rem;
}

.mp-part-hero-card h3 {
  margin: 0.9rem 0 0.6rem;
  font-size: 1.35rem;
}

.mp-hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.mp-hero-meta strong {
  display: block;
  font-size: 1.15rem;
  color: #0b162a;
}

.mp-hero-meta span {
  color: #4b5563;
  font-size: 0.95rem;
}

.mp-hero-cta .button + .button {
  margin-left: 0.75rem;
}

/* HOME SCOPE */
.mp-home-scope {
  background: var(--mp-soft);
}

.mp-bullet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0;
}

.mp-bullet-chips span {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--mp-border);
  color: #1f2937;
  font-size: 0.95rem;
}

.mp-inline-cta {
  margin-top: 1.4rem;
  padding: 1.2rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--mp-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.mp-inline-cta strong {
  display: block;
}

.mp-before-after {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  min-height: 320px;
  aspect-ratio: 1 / 1;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.18);
  isolation: isolate;
}

.mp-before-after-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

.mp-before-after-before {
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--mp-before-after-position, 50%)) 0 0);
  overflow: hidden;
}

.mp-before-after-label {
  position: absolute;
  top: 12px;
  z-index: 3;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.mp-before-after-label.is-before {
  left: 12px;
}

.mp-before-after-label.is-after {
  right: 12px;
  background: rgba(31, 60, 136, 0.88);
}

.mp-before-after-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--mp-before-after-position, 50%);
  z-index: 2;
  width: 3px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
}

.mp-before-after-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
}

.mp-before-after-divider::before {
  content: "‹ ›";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -53%);
  color: #1f3c88;
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
}

.mp-before-after-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

/* CAROUSEL */
.mp-carousel {
  position: relative;
  padding: 0.5rem 2.5rem;
}

.mp-carousel-track {
  display: flex;
  gap: 1rem;
  overflow: hidden;
  scroll-behavior: smooth;
}

.mp-slide {
  flex: 0 0 260px;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mp-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.mp-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
}

.mp-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
}

.mp-carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--mp-border);
  background: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1f2937;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}

.mp-carousel-control:hover {
  background: #1f3c88;
  color: #fff;
}

.mp-carousel-control[data-carousel-prev] {
  left: 0;
}

.mp-carousel-control[data-carousel-next] {
  right: 0;
}

/* GRID */
.mp-grid {
  display: grid;
  gap: 1rem;
}

.mp-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.mp-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.mp-grid.tight .mp-grid-item img {
  height: 200px;
}

.mp-grid-item {
  position: relative;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--mp-border);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.mp-grid-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.mp-grid-item.is-clickable {
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mp-grid-item.is-clickable:hover {
  transform: translateY(-4px);
  border-color: #cdd4e0;
}

/* STEPS */
.mp-steps {
  background: var(--mp-soft);
}

.mp-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.mp-step-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--mp-border);
  padding: 1.4rem;
  position: relative;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.mp-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1f3c88;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.mp-step-card h3 {
  margin: 0 0 0.4rem;
}

.mp-step-card p {
  color: #4b5563;
}

/* MAMPARAS */
.mp-mamparas .mp-grid-item img {
  height: 220px;
}

/* BANNER CTA */
.mp-banner {
  position: relative;
  padding: 3.5rem 0;
  color: #fff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.mp-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(15, 23, 42, 0.82), rgba(31, 60, 136, 0.7));
}

.mp-banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.mp-banner-actions .button + .button {
  margin-left: 0.75rem;
}

.mp-banner .title,
.mp-banner h1,
.mp-banner h2,
.mp-banner .mp-lead,
.mp-banner p {
  color: #f4f6fb;
}

/* FINALES */
.mp-final-gallery {
  background: linear-gradient(180deg, #f7f8fb 0%, #ffffff 50%);
}

/* LIGHTBOX */
.mp-lightbox[hidden] {
  display: none;
}

.mp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.mp-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.mp-lightbox-content {
  position: relative;
  max-width: 1100px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.mp-lightbox-content img {
  width: 100%;
  height: auto;
  display: block;
}

.mp-lightbox-caption {
  padding: 1rem 1.2rem;
  color: #1f2937;
  margin: 0;
}

.mp-lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

.mp-lightbox-close:hover {
  background: rgba(31, 60, 136, 0.9);
}

.mp-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 44px;
  height: 56px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mp-lightbox-nav:hover {
  background: rgba(31, 60, 136, 0.9);
}

.mp-lightbox-prev {
  left: 14px;
}

.mp-lightbox-next {
  right: 14px;
}

/* RESPONSIVE */
@media screen and (max-width: 1023px) {
  .mp-part-hero {
    padding: 3.2rem 0 3rem;
  }

  .mp-part-hero-grid {
    grid-template-columns: 1fr;
  }

  .mp-carousel {
    padding: 0.5rem 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .mp-section {
    padding: 3.5rem 0;
  }

  .mp-hero-cta .button + .button,
  .mp-banner-actions .button + .button {
    margin-left: 0;
  }

  .mp-carousel {
    padding: 0.5rem 0.75rem;
  }

  .mp-carousel-control {
    display: none;
  }

  .mp-slide {
    flex: 0 0 75%;
  }

  .mp-grid-3 {
    grid-template-columns: 1fr;
  }

  .mp-grid-2 {
    grid-template-columns: 1fr;
  }

  .mp-section .container,
  .mp-part-hero .container,
  .mp-banner .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .mp-before-after {
    min-height: 260px;
  }

  .mp-lightbox-content {
    margin: 1rem 0.75rem;
  }

  .mp-lightbox-nav {
    width: 40px;
    height: 48px;
    font-size: 1.7rem;
  }

  .mp-lightbox-prev {
    left: 8px;
  }

  .mp-lightbox-next {
    right: 8px;
  }
}

