/* views/ventanas/ventanas.css */

/* ===== Hero ===== */
.mp-win-hero {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

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

.mp-hero-title {
  margin-bottom: 1rem;
}

.mp-hero-subtitle {
  color: var(--mp-text-soft);
}

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

.mp-hero-tags {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mp-hero-gallery-preview {
  position: relative;
  width: 100%;
  padding-top: 78%;
  border-radius: 1.5rem;
  overflow: hidden;
  background: radial-gradient(circle at 0% 0%, #ffffff, #e5e7eb);
}

.mp-hero-tile {
  position: absolute;
  border-radius: 1.25rem;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  transform-origin: center;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.mp-hero-tile-1 { top: 8%;  left: 6%;  right: 52%; bottom: 38%; }
.mp-hero-tile-2 { top: 14%; left: 50%; right: 8%;  bottom: 42%; }
.mp-hero-tile-3 { top: 48%; left: 8%;  right: 55%; bottom: 8%; }
.mp-hero-tile-4 { top: 50%; left: 52%; right: 10%; bottom: 10%; }

.mp-hero-gallery-preview:hover .mp-hero-tile {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.23);
}

.mp-hero-small {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--mp-text-soft);
}

/* ===== Secciones ===== */
.mp-section-heading {
  margin-bottom: 2.25rem;
}

/* ===== Lineas ===== */
.mp-win-lines {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.mp-win-line-card {
  height: 100%;
  border-radius: 1.2rem;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--mp-border);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 0.9rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mp-win-line-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border-color: var(--mp-primary);
}

.mp-win-line-card .title {
  margin: 0;
}

.mp-line-img-btn {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  width: 100%;
  cursor: zoom-in;
}

.mp-win-line-card .mp-line-img {
  position: relative;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid var(--mp-border);
  overflow: hidden;
  min-height: 0;
}

.mp-win-line-card .mp-line-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 4 / 3;
  background-color: #ffffff;
}

.mp-line-badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mp-line-badges .tag {
  font-size: 0.7rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.mp-win-line-card .mp-line-short {
  color: var(--mp-text-soft);
  font-size: 0.95rem;
}

/* ===== Sistemas de apertura ===== */
.mp-win-systems {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.mp-systems-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.mp-system-card {
  height: 100%;
  border-radius: 1rem;
  border: 1px solid var(--mp-border);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mp-system-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border-color: var(--mp-primary);
}

.mp-system-media {
  padding: 1rem;
  background: linear-gradient(145deg, #f8fafc, #eef2ff);
  border-bottom: 1px solid var(--mp-border);
}

.mp-system-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.85rem;
  object-fit: cover;
}

.mp-system-body {
  padding: 1rem 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}

.mp-system-body .title {
  margin: 0;
}

.mp-system-body p {
  color: var(--mp-text-soft);
  font-size: 0.95rem;
  margin: 0;
}

.mp-system-badges {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mp-system-badges .tag {
  font-size: 0.75rem;
}

/* ===== Tipologias ===== */
.mp-accordion details {
  border: 1px solid var(--mp-border);
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
  background: #ffffff;
}

.mp-accordion details + details {
  margin-top: 0.6rem;
}

.mp-accordion summary {
  cursor: pointer;
}

.mp-muted-note {
  color: var(--mp-text-soft);
  font-size: 0.9rem;
}

/* ===== Galeria de modelos ===== */
.mp-win-gallery {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.mp-gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--mp-border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mp-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.13);
}

.mp-gallery-img {
  padding-top: 120%;
  background-size: cover;
  background-position: center;
}

.mp-gallery-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--mp-text-soft);
}

/* ===== Comparativa ===== */
.mp-win-compare {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.mp-compare-table-wrapper {
  margin-top: 1.5rem;
}

.mp-compare-table th,
.mp-compare-table td {
  font-size: 0.9rem;
}

/* ===== Lightbox ===== */
.mp-lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 80;
}

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

.mp-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
}

.mp-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: #0b1120;
}

.mp-lightbox-content img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  background: #0b1120;
}

.mp-lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  line-height: 34px;
  text-align: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ===== CTA / Como elegir ===== */
.mp-win-choose {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
}

.mp-chooser-banner {
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #e5e7eb;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.25);
}

.mp-chooser-banner .title,
.mp-chooser-banner .mp-kicker {
  color: #f8fafc;
}

.mp-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.mp-accordion-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  overflow: hidden;
}

.mp-accordion-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.95rem 1rem;
  background: transparent;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.mp-step-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.mp-accordion-text strong {
  color: #fff;
  display: block;
}

.mp-accordion-text small {
  color: #cbd5e1;
  display: block;
  margin-top: 0.05rem;
}

.mp-accordion-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.mp-accordion-panel {
  padding: 0 1rem 1rem 1rem;
  color: #e5e7eb;
  line-height: 1.55;
}

.mp-accordion-item.is-open {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.mp-accordion-item.is-open .mp-accordion-icon {
  background: #fff;
  color: #0f172a;
}

.mp-chooser-card {
  border-radius: 1rem;
  padding: 1.25rem 1.15rem;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid var(--mp-border);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.mp-chooser-card .title {
  color: #0f172a;
}

.mp-chooser-card .mp-kicker {
  color: #475569;
}

.mp-chooser-card .mp-muted-note {
  margin-top: 0.5rem;
}

.mp-chooser-list {
  margin: 0.85rem 0 1rem 1.1rem;
  color: #475569;
}

.mp-chooser-list li {
  margin-bottom: 0.35rem;
}

/* ===== CTA final ===== */
.mp-win-cta {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.mp-cta-bullets p {
  margin-bottom: 0.35rem;
}

/* ===== Responsive ===== */
@media screen and (max-width: 1215px) {
  .mp-systems-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 960px) {
  .mp-systems-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .mp-win-hero {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .mp-hero-gallery-preview {
    margin-top: 1.25rem;
  }

  .mp-win-line-card {
    grid-template-rows: 200px auto auto;
  }

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

  .mp-chooser-banner {
    padding: 1.5rem 1.25rem;
  }
}
