/* Reglas acotadas a la sección y página de nuevos proyectos. */
.nuevos-proyectos {
  padding: 36px 24px 48px;
  background: #f6f8fb;
}
.nuevos-proyectos-inner { max-width: 1320px; margin: 0 auto; }
.nuevos-proyectos h2 {
  margin: 0 0 26px;
  color: #001b6b;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 400;
  letter-spacing: normal;
  text-align: center;
}
.nuevos-proyectos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.nuevos-proyectos-banner {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 27, 107, .12);
  transition: box-shadow .2s ease, transform .2s ease;
}
.nuevos-proyectos-banner:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(0, 27, 107, .18); }
.nuevos-proyectos-banner img { display: block; width: 100%; height: auto; }
.nuevos-proyectos-banner:focus-visible { outline: 3px solid #007c91; outline-offset: 5px; }
#tituloNuevosProyectos { scroll-margin-top: 160px; }

.terrazas-page { padding: 32px 32px 64px; background: #f6f8fb; color: #25364b; }
.terrazas-page, .terrazas-page * { box-sizing: border-box; }
.terrazas-inner { max-width: 1320px; margin: 0 auto; }
.terrazas-page .terrazas-back { display: inline-block; margin-bottom: 28px; color: #526176; text-decoration: none; font-size: 14px; }
.terrazas-page .terrazas-back:hover { color: #001b6b; text-decoration: underline; }
.terrazas-heading { margin-bottom: 30px; }
.terrazas-heading .terrazas-eyebrow { margin: 0 0 10px; color: #007c91; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.terrazas-heading h1 { margin: 0 0 12px; color: #001b6b; font-size: clamp(30px, 3vw, 42px); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.terrazas-heading > p:last-child { margin: 0; color: #526176; font-size: 16px; line-height: 1.5; }
.terrazas-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr); gap: 32px; align-items: start; }
.terrazas-overview { min-width: 0; }
.terrazas-gallery { min-width: 0; margin: 0; padding: 0; }
.terrazas-figure { margin: 0; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid #e1e6ed; }
.terrazas-image-wrap { position: relative; background: #e9eef2; }
.terrazas-main-image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.terrazas-page .terrazas-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0 0 4px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #001b6b; font-size: 34px; line-height: 1; cursor: pointer; box-shadow: 0 2px 12px rgba(0, 0, 0, .12); }
.terrazas-prev { left: 16px; }
.terrazas-next { right: 16px; }
.terrazas-page .terrazas-arrow:hover { background: #001b6b; color: #fff; }
.terrazas-caption { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; color: #25364b; font-size: 14px; }
#terrazasContador { color: #637286; font-variant-numeric: tabular-nums; }
.terrazas-thumbnails { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.terrazas-thumbnail { min-width: 0; padding: 3px; border: 2px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; }
.terrazas-thumbnail[aria-pressed="true"] { border-color: #007c91; background: #fff; }
.terrazas-thumbnail:hover { border-color: #7baab5; }
.terrazas-thumbnail img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 5px; }
.terrazas-description { margin: 28px 0 0; padding: 28px; border: 1px solid #e1e6ed; border-radius: 20px; background: #fff; }
.terrazas-description h2 { margin: 0 0 20px; color: #001b6b; font-size: 25px; font-weight: 400; letter-spacing: -.01em; line-height: 1.2; }
.terrazas-description p { margin: 0 0 16px; color: #526176; font-size: 16px; line-height: 1.7; }
.terrazas-description p:last-child { margin-bottom: 0; }
.terrazas-description strong { color: #25364b; font-weight: 600; }
.terrazas-quote { min-width: 0; padding: 30px; border: 1px solid #e1e6ed; border-radius: 20px; background: #fff; box-shadow: 0 12px 32px rgba(0, 27, 107, .05); }
.terrazas-quote h2 { margin: 0 0 10px; color: #001b6b; font-size: 25px; font-weight: 400; letter-spacing: -.01em; line-height: 1.2; }
.terrazas-form-intro { margin: 0 0 24px; color: #637286; font-size: 14px; line-height: 1.5; }
.terrazas-fields, .terrazas-types { min-width: 0; margin: 0; padding: 0; border: 0; }
.terrazas-types { margin-bottom: 22px; }
.terrazas-types legend { width: auto; margin: 0 0 10px; color: #25364b; font-size: 14px; font-weight: 600; line-height: 1.5; border: 0; }
.terrazas-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.terrazas-type { position: relative; margin: 0; cursor: pointer; }
.terrazas-page .terrazas-type input { position: absolute; left: 12px; top: 17px; margin: 0; width: 16px; height: 16px; -webkit-appearance: radio; appearance: auto; accent-color: #007c91; }
.terrazas-type > span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 10px 12px 36px; border: 1px solid #d6dee7; border-radius: 10px; }
.terrazas-type strong { color: #001b6b; font-size: 16px; font-weight: 600; }
.terrazas-type small { color: #637286; font-size: 11px; line-height: 1.35; }
.terrazas-type input:checked + span { border-color: #007c91; background: #eef8fa; box-shadow: inset 0 0 0 1px #007c91; }
.terrazas-type input:focus-visible + span { outline: 3px solid #007c91; outline-offset: 3px; }
.terrazas-plan-preview { margin: 0 0 22px; padding: 14px; border: 1px solid #e1e6ed; border-radius: 12px; background: #fff; }
.terrazas-plan-preview figcaption { margin: 0 0 8px; color: #526176; font-size: 13px; font-weight: 600; }
.terrazas-page .terrazas-plan-open { display: block; width: 100%; padding: 0; border: 0; border-radius: 6px; background: #fff; color: #007c91; font-family: inherit; cursor: zoom-in; }
.terrazas-plan-open img { display: block; width: 100%; height: 220px; object-fit: contain; }
.terrazas-plan-open > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 0; font-size: 13px; font-weight: 600; }
.terrazas-plan-open:hover > span { text-decoration: underline; }
html.terrazas-plan-visible { overflow: hidden; }
.terrazas-plan-dialog { width: min(980px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 0; border-radius: 18px; background: #fff; color: #25364b; box-shadow: 0 24px 80px rgba(0, 0, 0, .25); }
.terrazas-plan-dialog::backdrop { background: rgba(6, 18, 45, .8); }
.terrazas-plan-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.terrazas-plan-dialog h2 { margin: 0; color: #001b6b; font-size: 23px; font-weight: 400; letter-spacing: normal; line-height: 1.2; }
.terrazas-page .terrazas-plan-close { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid #d6dee7; border-radius: 8px; background: #fff; color: #25364b; font-family: inherit; font-size: 14px; cursor: pointer; }
.terrazas-plan-close span { font-size: 24px; line-height: 1; }
.terrazas-page .terrazas-plan-close:hover { background: #f6f8fb; }
.terrazas-plan-dialog > img { display: block; width: 100%; height: auto; max-height: calc(100vh - 180px); max-height: calc(100dvh - 180px); object-fit: contain; }
.terrazas-plan-dialog > a { display: inline-block; margin-top: 14px; color: #007c91; font-size: 14px; }
.terrazas-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.terrazas-field { min-width: 0; }
.terrazas-field-full { grid-column: 1 / -1; }
.terrazas-field label { display: block; margin: 0 0 6px; color: #25364b; font-size: 14px; font-weight: 600; }
.terrazas-field label span { color: #637286; font-weight: 400; }
.terrazas-field input, .terrazas-field textarea { display: block; width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #d6dee7; border-radius: 8px; background: #fff; color: #25364b; font-family: inherit; font-size: 16px; line-height: 1.4; }
.terrazas-field input { height: 44px; }
.terrazas-field textarea { resize: vertical; min-height: 92px; }
.terrazas-field input::placeholder, .terrazas-field textarea::placeholder { color: #758294; font-size: 14px; }
.terrazas-field > small { display: block; margin-top: 5px; color: #637286; font-size: 12px; }
.terrazas-page input:focus, .terrazas-page textarea:focus { outline: 0; border-color: #007c91; box-shadow: 0 0 0 3px rgba(0, 124, 145, .13); }
.terrazas-page .terrazas-submit { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 48px; margin-top: 22px; padding: 12px 18px; border: 0; border-radius: 9px; background: #001b6b; color: #fff; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.terrazas-page .terrazas-submit:hover { background: #073887; }
.terrazas-submit:disabled { cursor: wait; opacity: .65; }
.terrazas-page button:focus-visible, .terrazas-page a:focus-visible { outline: 3px solid #007c91; outline-offset: 3px; }
.terrazas-status { margin: 18px 0 0; padding: 14px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.terrazas-status[data-state="success"] { background: #edf8f0; color: #24663c; }
.terrazas-status[data-state="error"] { background: #fff0ee; color: #a12b22; }
.terrazas-page [hidden] { display: none !important; }
.terrazas-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; }
@media (max-width: 991px) {
  .terrazas-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .terrazas-quote { padding: 26px; }
}
@media (max-width: 767px) {
  .terrazas-page { padding-top: 60px; }
}
@media (max-width: 575px) {
  .nuevos-proyectos { padding: 26px 16px 32px; }
  .nuevos-proyectos h2 { margin-bottom: 18px; }
  .nuevos-proyectos-grid { grid-template-columns: 1fr; gap: 16px; }
  .nuevos-proyectos-banner { border-radius: 12px; }
  .terrazas-page { padding: 60px 16px 40px; }
  .terrazas-page .terrazas-back { margin-bottom: 22px; }
  .terrazas-heading { margin-bottom: 24px; }
  .terrazas-description { padding: 22px 18px; }
  .terrazas-quote { padding: 22px 18px; }
  .terrazas-plan-preview { padding: 10px; }
  .terrazas-plan-open img { height: 200px; }
  .terrazas-plan-dialog { padding: 16px; }
  .terrazas-plan-dialog h2 { font-size: 20px; }
  .terrazas-thumbnails { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .terrazas-caption { padding: 13px 15px; }
  .terrazas-prev { left: 10px; }
  .terrazas-next { right: 10px; }
  .terrazas-type-options { gap: 8px; }
  .terrazas-type > span { padding-left: 32px; padding-right: 6px; }
  .terrazas-page .terrazas-type input { left: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .nuevos-proyectos-banner { transition: none; }
}
