/* =========================================================
   RINCÓN DE PIRIA — main.css
   Sistema de diseño extraído por muestreo real de píxeles
   de las capturas provistas por el cliente (no inferido).
   Fuentes: PENDIENTE de confirmación exacta (ver README).
   ========================================================= */

:root {
  --green-dark:      #2E4735;
  --green-accent:    #2F7A52;
  --gold:             #DCA54A;
  --gold-soft:        #E8C27C;
  --bg-cream:          #F9F9F6;
  --bg-white:          #FFFFFF;
  --text-heading:      #0F172A;
  --text-body:          #4B5563;
  --tab-inactive-bg:    #F1F2F3;
  --tab-inactive-text:  #4B5563;
  --border-light:       #E4E4E1;
  --whatsapp-green:     #25D366;

  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --container-max: 1320px;
  --container-pad: 24px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --header-h: 132px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }

html, body { overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--text-heading); }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding: 64px 0; }
.section--white { background: var(--bg-white); }
.section--cream { background: var(--bg-cream); }

.section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 28px;
}
.section-title--center { text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 4px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .4px;
  text-transform: uppercase;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn--gold { background: var(--gold); color: #ffffff; }
.btn--outline { background: transparent; color: #ffffff; border: 1.5px solid #ffffff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--green-dark);
  display: flex;
  align-items: center;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.site-header__logo img { height: 104px; width: auto; }

.nav { display: flex; gap: 26px; flex-wrap: nowrap; }
.nav a {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #EFEFE8;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.nav a:hover, .nav a.is-active { color: var(--gold); border-color: var(--gold); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 30px; }
.nav-toggle span { height: 2px; background: #fff; display: block; border-radius: 2px; }

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-image:
    linear-gradient(90deg, rgba(20,30,20,.78) 0%, rgba(20,30,20,.45) 42%, rgba(20,30,20,.15) 70%),
    url('../images/foto-portada.jpeg');
}
.hero__content { max-width: 480px; color: #fff; padding: 40px 0; }
.hero__title { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; color: #fff; }
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--gold-soft);
  text-transform: uppercase;
  margin-top: 6px;
  letter-spacing: .5px;
}
.hero__text { margin-top: 14px; font-size: .92rem; color: #E9E9E2; max-width: 380px; }
.hero__actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__text p { margin-top: 14px; font-size: .95rem; }
.split__img img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; }

.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.badge { text-align: left; }
.badge__icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-accent);
  margin-bottom: 10px;
}
.badge__icon svg { width: 30px; height: 30px; }
.badge__label { font-size: .78rem; font-weight: 700; text-transform: uppercase; color: var(--text-heading); line-height: 1.3; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 24px; }
.stat { text-align: center; }
.stat__icon { color: #6b7280; margin-bottom: 10px; }
.stat__icon svg { width: 40px; height: 40px; margin-inline: auto; }
.stat__value { font-weight: 800; font-size: 1.4rem; color: var(--text-heading); }
.stat__label { font-size: .8rem; color: var(--text-body); margin-top: 2px; }

.location-grid { display: grid; grid-template-columns: 1fr 1.3fr 0.8fr; gap: 28px; align-items: stretch; }
.location-grid__map { border-radius: var(--radius-lg); overflow: hidden; min-height: 340px; }
.location-grid__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
.location-grid__map img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; object-position: center; }

.check-list li { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-size: .92rem; }
.check-list li svg { flex: none; width: 20px; height: 20px; color: var(--green-accent); margin-top: 2px; }

.access-box { background: var(--green-dark); color: #fff; border-radius: var(--radius-lg); padding: 32px 28px; }
.access-box h3 { color: #fff; font-size: 1.1rem; text-transform: uppercase; margin-bottom: 16px; }
.access-box li { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: .9rem; color: #EDEDE6; }
.access-box li svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

.masterplan { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.masterplan ul { margin-top: 14px; }
.masterplan li { font-size: .92rem; padding: 5px 0 5px 18px; position: relative; }
.masterplan li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-heading);
}
.masterplan__img { position: relative; cursor: pointer; }
.masterplan__img img { border-radius: var(--radius-lg); border: 1px solid var(--border-light); }
.masterplan .btn { margin-top: 22px; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.type-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 20px; }
.type-card img { border-radius: var(--radius-md); height: 190px; width: 100%; object-fit: cover; margin-bottom: 14px; }
.type-card__title { font-weight: 800; font-size: 1rem; }
.type-card__title strong { color: var(--green-accent); }
.type-card__specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; text-align: center; }
.type-card__specs .spec svg { width: 24px; height: 24px; color: #6b7280; margin-inline: auto 4px; }
.type-card__specs .spec span { display: block; font-size: .72rem; margin-top: 4px; color: var(--text-body); }

.planos { display: grid; grid-template-columns: 220px 1fr 220px; gap: 24px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 10px; }
.tab-btn {
  background: var(--tab-inactive-bg);
  color: var(--tab-inactive-text);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-align: center;
  transition: background .15s ease, color .15s ease;
}
.tab-btn.is-active { background: var(--green-accent); color: #fff; }
.plano-panel { display: none; }
.plano-panel.is-active { display: contents; }
.plano-panel__content { min-width: 0; }
.plano-panel__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.plano-panel__imgs img {
  width: 100%;
  height: clamp(300px, 32vw, 520px);
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
.plano-panel__more { display: flex; justify-content: center; margin-top: 20px; }

.room-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: .88rem; border-bottom: 1px dashed var(--border-light); }
.room-list li svg { width: 18px; height: 18px; color: var(--green-accent); flex: none; }

.system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.system-grid img { border-radius: var(--radius-md); width: 100%; }

.gallery { position: relative; }
.gallery__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track img {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 260px; height: 190px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.gallery__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  z-index: 2;
}
.gallery__arrow--prev { left: -18px; }
.gallery__arrow--next { right: -18px; }
.gallery__dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.gallery__dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--border-light); }
.gallery__dots button.is-active { background: var(--green-accent); width: 22px; border-radius: 5px; transition: width .2s; }

.why { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.why-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.why-card { text-align: left; }
.why-card__icon { color: #4B5563; margin-bottom: 10px; }
.why-card__icon svg { width: 30px; height: 30px; }
.why-card__title { font-weight: 700; font-size: .85rem; margin-bottom: 4px; }
.why-card__text { font-size: .78rem; color: var(--text-body); }
.why__img img { width: 100%; min-height: 430px; border-radius: var(--radius-lg); object-fit: cover; object-position: center; display: block; }

.contact { display: grid; grid-template-columns: 0.85fr 2fr; gap: 24px; align-items: start; }
.contact-box { background: var(--green-dark); color: #fff; border-radius: var(--radius-lg); padding: 30px; }
.contact-box h3 { color: var(--gold); font-size: 1rem; text-transform: uppercase; margin-bottom: 10px; }
.contact-box p { font-size: .88rem; color: #E9E9E2; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: start; }
.form-grid .field--full { grid-column: 1 / -1; }
.form-grid .field--span23 { grid-column: 2 / 4; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: #fff;
  font-size: .88rem;
  color: var(--text-heading);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #9CA3AF; }
.form-submit { margin-top: 16px; }
.form-submit .btn { width: 100%; justify-content: center; }
.form-note { font-size: .78rem; margin-top: 10px; color: var(--text-body); }
.form-status { font-size: .85rem; margin-top: 10px; font-weight: 600; }
.form-status[data-state="ok"] { color: var(--green-accent); }
.form-status[data-state="error"] { color: #b91c1c; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.footer { color:#fff; background:transparent; padding:0; }
.footer-main { background:var(--green-dark); padding:30px 0 28px; }
.footer-grid--professional { display:grid; grid-template-columns:1fr 1px 1.15fr 1px 1fr; align-items:center; gap:28px; }
.footer-brand img, .footer-desimer img { height:110px; width:auto; max-width:100%; object-fit:contain; display:block; }
.footer-brand { display:flex; flex-direction:column; align-items:flex-start; }
.footer-brand p { margin:10px 0 0; color:#fff; font-size:.92rem; line-height:1.5; }
.footer-divider { width:1px; height:118px; background:rgba(255,255,255,.22); }
.footer-contact { text-align:center; display:flex; flex-direction:column; gap:8px; }
.footer-contact h4 { margin:0 0 2px; color:#fff; font-size:.9rem; letter-spacing:.05em; text-transform:uppercase; }
.footer-contact p { margin:0; color:#fff; font-size:.9rem; line-height:1.5; }
.footer-contact a { color:#fff; text-decoration:none; }
.footer-contact a:hover, .footer-bottom a:hover { text-decoration:underline; }
.footer-desimer { display:flex; justify-content:flex-end; align-items:center; }
.footer-bottom-strip { margin:0; background:var(--green-dark); border-top:1px solid rgba(255,255,255,.14); padding:15px 0; }
.footer-bottom { display:flex; justify-content:center; text-align:center; font-size:.84rem; line-height:1.5; color:#fff; }
.footer-bottom a { color:#fff; text-decoration:none; }

.contact-title-wrap { width:min(1120px, 92%); margin:0 auto 22px; text-align:center; }
.contact-title-wrap h2 { margin:0; color:var(--green-dark); }
.contact-map-full { width:100%; margin:0 0 32px; }
.contact-map-full iframe { width:100%; height:430px; border:0; display:block; }
.contact-intro { max-width:900px; margin:0 auto 30px; text-align:center; }
.contact-intro p { margin:0; font-size:1rem; line-height:1.75; }
.contact-intro a { color:var(--green-dark); font-weight:700; }

@media (max-width:800px) {
  .footer-main { padding:32px 0; }
  .footer-grid--professional { grid-template-columns:1fr; gap:24px; text-align:center; }
  .footer-brand, .footer-contact, .footer-desimer { align-items:center; justify-content:center; }
  .footer-divider { width:70%; height:1px; margin:0 auto; }
  .footer-brand img, .footer-desimer img { height:96px; }
  .contact-map-full iframe { height:330px; }
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
.whatsapp-float:hover { transform: scale(1.07); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.whatsapp-float:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 480px) {
  .whatsapp-float { width: 52px; height: 52px; right: 16px; bottom: 82px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 23, 42, .92);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 6px; }
.lightbox__close {
  position: absolute; top: 22px; right: 26px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: #000; padding: 10px 16px; z-index: 2000;
}
.skip-link:focus { left: 12px; top: 12px; }

@media (max-width: 1024px) {
  .split, .masterplan, .why { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .planos { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .why-cards { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  :root { --header-h: 112px; }
  .site-header__logo img { height: 86px; }
}

@media (max-width: 768px) {
  :root { --header-h: 92px; }
  .site-header__logo img { height: 70px; }
  .footer-brand img { height: 116px; }
  .nav.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--green-dark); padding: 18px 24px; gap: 14px;
  }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .why-cards { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .field--span23,
  .form-grid .field--full { grid-column: 1 / -1; }
  .form-submit { grid-column: 1 / -1; }
  .form-submit .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .contact { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
}

@media (max-width: 480px) {
  .badges { grid-template-columns: 1fr 1fr; }
  .why-cards { grid-template-columns: 1fr 1fr; }
  .gallery__track img { width: 200px; height: 150px; }
  .gallery__arrow { display: none; }
}

@media (max-width: 1024px) {
  .hero {
    min-height: clamp(560px, 72vh, 720px);
    background-position: center center;
  }
  .hero__content {
    max-width: 560px;
    padding: 56px 0 52px;
  }
}

@media (max-width: 768px) {
  .hero {
    display: block;
    min-height: 0;
    background-image: none;
    background-color: var(--green-dark);
  }
  .hero::before {
    content: '';
    display: block;
    width: 100%;
    aspect-ratio: 1600 / 823;
    background: url('../images/foto-portada.jpeg') center center / cover no-repeat;
  }
  .hero .container {
    width: min(100% - 32px, 680px);
  }
  .hero__content {
    max-width: 100%;
    padding: 24px 0 40px;
  }
  .hero__title {
    font-size: clamp(2rem, 8.5vw, 3rem);
    line-height: 1.08;
  }
  .hero__subtitle {
    font-size: clamp(.92rem, 4.2vw, 1.2rem);
    line-height: 1.3;
  }
  .hero__text {
    max-width: 100%;
    font-size: .98rem;
    line-height: 1.6;
  }
  .hero__actions {
    width: 100%;
    gap: 10px;
  }
  .hero__actions .btn {
    flex: 1 1 220px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__content { padding: 20px 0 32px; }
  .hero__title { font-size: clamp(2rem, 10vw, 2.55rem); }
  .hero__text { font-size: .92rem; }
  .hero__actions .btn { flex-basis: 100%; width: 100%; }
}

.contact {
  display: block;
  max-width: 1120px;
}
.contact-intro { max-width: 900px; }
#contactForm { width: 100%; }
@media (max-width: 768px) {
  .contact-map-full iframe { height: 300px; }
  .contact-intro { margin-bottom: 24px; }
  .contact-intro p { font-size: .95rem; line-height: 1.65; }
}

.footer-brand img,
.footer-desimer img {
  height: 110px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.footer-desimer img { min-width: 0; }
.footer-brand p { color: #fff; }

@media (max-width: 1024px) and (min-width: 801px) {
  .footer-grid--professional {
    grid-template-columns: minmax(0,1fr) 1px minmax(0,1.15fr) 1px minmax(0,1fr);
    gap: 18px;
  }
  .footer-brand img,
  .footer-desimer img { height: 96px; }
  .footer-contact p { font-size: .84rem; }
}

@media (max-width: 800px) {
  .footer-main { padding: 30px 0 26px; }
  .footer-grid--professional { gap: 20px; }
  .footer-brand img,
  .footer-desimer img {
    height: 108px;
    width: auto;
    max-width: min(220px, 80vw);
  }
  .footer-brand p { margin-top: 10px; text-align: center; }
  .footer-desimer { width: 100%; }
  .footer-divider { width: min(320px, 72%); }
  .footer-contact { max-width: 520px; margin: 0 auto; }
  .footer-bottom-strip { padding: 14px 0; }
  .footer-bottom { font-size: .78rem; padding: 0 8px; }
}

@media (max-width: 480px) {
  .footer-brand img,
  .footer-desimer img {
    height: 92px;
    width: auto;
    max-width: min(190px, 75vw);
  }
  .footer-contact p { font-size: .86rem; }
  .footer-bottom { font-size: .74rem; }
}

.whatsapp-float { bottom: 88px; }
.whatsapp-float.is-over-footer { transition: bottom .2s ease, transform .15s ease, box-shadow .15s ease; }
@media (max-width: 480px) {
  .whatsapp-float { right: 14px; bottom: 82px; }
}

/* =========================================================
   Ajustes 2026-08-10: Sistema Constructivo + Memoria + Galería
   ========================================================= */
.btn--green { background: var(--green-accent); color: #fff; }
.btn:disabled,
.btn[aria-disabled="true"],
.gallery__arrow:disabled {
  opacity: .38;
  cursor: default;
  transform: none;
  filter: none;
}

.system-section { text-align: center; }
.system-section__intro {
  max-width: 640px;
  margin: -10px auto 0;
  font-size: .96rem;
  line-height: 1.7;
}
.system-section__actions { margin: 24px 0 32px; }
.system-section__more { margin-top: 26px; }
.system-grid { text-align: left; align-items: stretch; }
.system-grid img {
  height: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border-light);
}

.system-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(15, 23, 42, .86);
}
.system-modal.is-open { display: flex; }
.system-modal__dialog {
  position: relative;
  width: min(1180px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: 0 22px 70px rgba(0,0,0,.3);
}
.system-modal__dialog h2 {
  margin: 0 48px 24px 0;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  text-transform: uppercase;
}
.system-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.system-modal__grid figure { margin: 0; }
.system-modal__grid img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
}

.plan-modal__dialog { width: min(1200px, 96vw); }
.plan-modal__grid { align-items: start; }
.plan-modal__grid img { max-height: 72vh; }

.system-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-dark);
  color: #fff;
  font-size: 1.5rem;
}

.gallery__dots {
  flex-wrap: wrap;
  max-width: 760px;
  margin-inline: auto;
}
.gallery__arrow:disabled { pointer-events: none; }

/* Página Memoria Descriptiva */
.document-hero {
  background: var(--green-dark);
  color: #fff;
  padding: 54px 0 50px;
}
.document-hero__eyebrow {
  color: var(--gold-soft);
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  font-size: .84rem;
}
.document-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-top: 8px;
  text-transform: uppercase;
}
.document-hero__subtitle {
  margin-top: 10px;
  color: #ECECE5;
  font-size: 1rem;
}
.memory-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}
.memory-index {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.memory-index h2 {
  font-size: .95rem;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.memory-index a {
  display: block;
  padding: 7px 0;
  color: var(--text-body);
  font-size: .83rem;
  border-bottom: 1px solid rgba(228,228,225,.7);
}
.memory-index a:hover { color: var(--green-accent); }
.memory-content { max-width: 860px; }
.memory-actions { margin-bottom: 26px; }
.memory-section {
  padding: 0 0 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.memory-section:last-child { border-bottom: 0; margin-bottom: 0; }
.memory-section h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.memory-section h3 {
  font-size: 1rem;
  margin: 18px 0 8px;
  color: var(--green-dark);
}
.memory-section p { margin-top: 9px; line-height: 1.75; }
.memory-section ul {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.memory-section li {
  position: relative;
  padding-left: 20px;
  line-height: 1.65;
}
.memory-section li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: .7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

@media (max-width: 900px) {
  .memory-layout { grid-template-columns: 1fr; gap: 26px; }
  .memory-index { position: static; }
  .memory-index nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
  }
}

@media (max-width: 768px) {
  .plano-panel__imgs { grid-template-columns: 1fr; }
  .plano-panel__imgs img { height: auto; max-height: none; }
  .system-grid { grid-template-columns: 1fr; }
  .system-grid img { max-height: none; }
  .system-section__actions,
  .system-section__more { display: flex; justify-content: center; }
  .system-modal { padding: 14px; }
  .system-modal__dialog { padding: 24px 18px 20px; }
  .system-modal__grid { grid-template-columns: 1fr; }
  .system-modal__grid img { max-height: none; }
  .document-hero { padding: 38px 0 34px; }
}

@media (max-width: 480px) {
  .plano-panel__more .btn { width: 100%; justify-content: center; }
  .system-section__actions .btn,
  .system-section__more .btn,
  .memory-actions .btn { width: 100%; justify-content: center; }
  .memory-index nav { grid-template-columns: 1fr; }
  .gallery__dots { gap: 7px; margin-top: 14px; }
}
