/* ALMA — Presentación premium de las maquetas 3D. */
.alma-model,
.alma-model * {
  box-sizing: border-box;
}

.alma-model {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 743px;
  padding: 52px 34px 64px;
  background: #f6f7f2 url('assets/images/model-section-background-ai.webp') center / cover no-repeat;
  color: #173b30;
  font-family: 'DM Sans', Arial, sans-serif;
}

.alma-model::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(250 251 247 / 38%) 0%, rgb(250 251 247 / 15%) 48%, rgb(247 249 244 / 5%) 100%),
    linear-gradient(180deg, rgb(255 255 255 / 12%), rgb(244 247 240 / 20%));
  pointer-events: none;
}

.alma-model__container {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 46px;
  width: min(100%, 1210px);
  margin: 0 auto;
  align-items: start;
}

.alma-model__copy {
  min-width: 0;
  padding-top: 29px;
}

.alma-model__eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #55806b;
  font-size: .59rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.alma-model__eyebrow span {
  width: 39px;
  height: 1px;
  background: #658779;
}

.alma-model .alma-model__copy h2 {
  margin: 22px 0 15px;
  color: #12382d;
  font-family: 'Inter Display', 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: clamp(2.75rem, 3.35vw, 3.2rem);
  font-weight: 760;
  letter-spacing: -.06em;
  line-height: .99;
}

.alma-model .alma-model__copy h2 em {
  color: #77a575;
  font-style: normal;
}

.alma-model__intro {
  margin: 0;
  color: #5c6f67;
  font-size: .83rem;
  font-weight: 500;
  line-height: 1.55;
}

.alma-model__roadmap {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 20px 0 19px;
}

.alma-model__roadmap::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 29px;
  bottom: 29px;
  width: 1px;
  background: #cad7cd;
}

.alma-model__roadmap button {
  position: relative;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 59px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #25463b;
  text-align: left;
}

.alma-model__roadmap button > span:first-child {
  position: relative;
  z-index: 1;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid #e0e8df;
  border-radius: 50%;
  background: #f0f4ef;
  color: #536b61;
  font-size: .67rem;
  font-weight: 800;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.alma-model__roadmap button > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alma-model__roadmap strong {
  color: #214238;
  font-size: .78rem;
  line-height: 1.25;
}

.alma-model__roadmap small {
  color: #718079;
  font-size: .66rem;
  line-height: 1.4;
}

.alma-model__roadmap button.is-active > span:first-child {
  border-color: #659668;
  background: linear-gradient(145deg, #8ab184, #548c60);
  color: white;
  transform: scale(1.04);
}

.alma-model__roadmap button.is-active strong {
  color: #164332;
}

.alma-model__roadmap button:hover > span:first-child {
  border-color: #77a27a;
}

.alma-model__cta {
  min-height: 44px;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 17px;
  border-radius: 9px;
  background: linear-gradient(100deg, #14603f, #6ba569);
  box-shadow: 0 10px 25px rgb(31 99 63 / 15%);
  color: white;
  font-size: .75rem;
  font-weight: 750;
  transition: transform .2s ease, box-shadow .2s ease;
}

.alma-model__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgb(31 99 63 / 22%);
}

.alma-model__cta svg {
  width: 19px;
  height: 19px;
}

.alma-model__cta b {
  font-size: 1.2rem;
  font-weight: 400;
}

.alma-model .model-disclaimer {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 11px;
  max-width: none;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
  color: #667970;
  font-size: .62rem;
  line-height: 1.5;
}

.alma-model .model-disclaimer > span {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid #367459;
  border-radius: 50%;
  color: #367459;
  font: 800 .67rem/1 serif;
}

.alma-model__viewer {
  min-width: 0;
  padding: 6px;
  border: 1px solid rgb(204 217 205 / 78%);
  border-radius: 7px;
  background: rgb(255 255 255 / 93%);
  box-shadow: 0 24px 60px rgb(31 65 43 / 13%);
  backdrop-filter: blur(7px);
}

.alma-model .model-stage {
  height: 455px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(145deg, #dfe8dd, #f0f3eb);
}

.alma-model .model-stage canvas {
  border-radius: inherit;
}

.alma-model .model-stage-label {
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: stretch;
  padding: 0;
  background: rgb(255 255 255 / 91%);
  box-shadow: 0 5px 16px rgb(25 60 40 / 8%);
  color: #234638;
  font-family: 'DM Sans', Arial, sans-serif;
  letter-spacing: .12em;
}

.alma-model .model-stage-label > span:first-child {
  padding: 10px 14px;
  background: #24553d;
  color: white;
  font-size: .65rem;
  font-weight: 800;
}

.alma-model .model-stage-label strong {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-size: .67rem;
  font-weight: 800;
  text-transform: uppercase;
}

.alma-model__interactive-badge {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 99px;
  background: rgb(255 255 255 / 89%);
  box-shadow: 0 5px 16px rgb(25 60 40 / 7%);
  color: #2b644a;
  font-size: .67rem;
  font-weight: 800;
}

.alma-model__interactive-badge svg {
  width: 18px;
  height: 18px;
}

.alma-model .model-stage-hint {
  right: 17px;
  bottom: 14px;
  padding: 7px 10px;
  background: rgb(22 60 42 / 82%);
  color: white;
  font-size: .57rem;
  letter-spacing: .01em;
}

.alma-model .model-stage-hint span {
  margin-right: 4px;
  font-size: .85rem;
}

.alma-model .model-arrow {
  width: 42px;
  height: 42px;
  border-color: rgb(43 93 59 / 18%);
  background: rgb(255 255 255 / 92%);
  color: #236044;
}

.alma-model .model-arrow-prev { left: 14px; }
.alma-model .model-arrow-next { right: 14px; }

.alma-model__controls {
  display: grid;
  grid-template-columns: .92fr 1.2fr;
  border-bottom: 1px solid #e1e8df;
}

.alma-model .model-toolbar,
.alma-model .model-detail-toolbar {
  min-width: 0;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 13px 20px;
  border: 0;
}

.alma-model .model-toolbar {
  border-right: 1px solid #e1e8df;
}

.alma-model .model-toolbar > span,
.alma-model .model-detail-toolbar > span {
  color: #78907f;
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
}

.alma-model .model-views,
.alma-model .model-detail-actions {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 7px;
}

.alma-model .model-views button,
.alma-model .model-detail-actions button,
.alma-model .model-camera-actions button {
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0ddd1;
  border-radius: 7px;
  background: #fbfcf9;
  color: #2e6549;
  padding: 8px 12px;
  font-size: .65rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.alma-model .model-views button:hover:not(:disabled),
.alma-model .model-detail-actions button:hover:not(:disabled),
.alma-model .model-camera-actions button:hover:not(:disabled) {
  border-color: #77a27b;
  background: #eef5eb;
}

.alma-model .model-views button.is-active,
.alma-model .model-detail-actions button.is-active,
.alma-model .model-camera-actions button[aria-pressed="true"] {
  border-color: #236445;
  background: #236445;
  color: white;
}

.alma-model__footer-row {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 15px 9px;
}

.alma-model__footer-row > div:first-child {
  display: flex;
  align-items: center;
  gap: 20px;
}

.alma-model__footer-row strong {
  color: #31664a;
  font-size: .59rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.alma-model__footer-row span {
  color: #78857f;
  font-size: .58rem;
  line-height: 1.4;
}

.alma-model .model-camera-actions {
  display: flex;
  flex: none;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.alma-model .model-camera-actions button {
  min-height: 32px;
  padding: 7px 10px;
  font-size: .59rem;
}

.alma-model .model-detail-panel {
  margin: 0 9px 7px;
  padding: 15px 16px;
  border: 1px solid #dce8da;
  border-radius: 5px;
  background: #f3f7f1;
}

.alma-model .model-detail-heading h4 {
  font-size: .94rem;
}

.alma-model .model-detail-item {
  border-radius: 5px;
}

.alma-model__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: 1120px) {
  .alma-model { padding-inline: 28px; }
  .alma-model__container { grid-template-columns: 270px minmax(0, 1fr); gap: 36px; }
  .alma-model .model-stage { height: 430px; }
  .alma-model .model-views button,
  .alma-model .model-detail-actions button { padding-inline: 9px; font-size: .6rem; }
  .alma-model__footer-row span { display: none; }
}

@media (max-width: 900px) {
  .alma-model { padding: 78px 28px; }
  .alma-model__container { grid-template-columns: 1fr; max-width: 760px; gap: 42px; }
  .alma-model__copy { padding-top: 0; }
  .alma-model .alma-model__copy h2 br { display: none; }
  .alma-model__intro { max-width: 620px; }
  .alma-model__roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .alma-model__roadmap::before { display: none; }
  .alma-model__roadmap button { grid-template-columns: 35px 1fr; gap: 10px; }
  .alma-model__cta { max-width: 310px; }
  .alma-model .model-disclaimer { max-width: 430px; }
}

@media (max-width: 680px) {
  .alma-model { padding: 70px 16px 78px; background-position: 72% center; }
  .alma-model::before { background: rgb(249 250 246 / 45%); }
  .alma-model__container { gap: 34px; }
  .alma-model__eyebrow { font-size: .56rem; }
  .alma-model .alma-model__copy h2 { font-size: clamp(2.8rem, 13vw, 3.6rem); line-height: 1.01; }
  .alma-model .alma-model__copy h2 br { display: block; }
  .alma-model__intro { font-size: .88rem; }
  .alma-model__roadmap { grid-template-columns: 1fr; gap: 0; }
  .alma-model__roadmap::before { display: block; }
  .alma-model__roadmap button { min-height: 57px; }
  .alma-model__viewer { padding: 5px; }
  .alma-model .model-stage { height: 395px; }
  .alma-model .model-stage-label { top: 12px; left: 12px; }
  .alma-model .model-stage-label > span:first-child,
  .alma-model .model-stage-label strong { padding: 8px 9px; font-size: .54rem; }
  .alma-model__interactive-badge { top: 57px; right: 12px; padding: 7px 10px; font-size: .56rem; }
  .alma-model__interactive-badge svg { width: 15px; height: 15px; }
  .alma-model .model-stage-hint { right: 9px; bottom: 9px; }
  .alma-model__controls { grid-template-columns: 1fr; }
  .alma-model .model-toolbar { border-right: 0; border-bottom: 1px solid #e1e8df; }
  .alma-model .model-toolbar,
  .alma-model .model-detail-toolbar { min-height: 0; padding: 14px 10px; }
  .alma-model .model-views,
  .alma-model .model-detail-actions { overflow-x: auto; padding-bottom: 2px; }
  .alma-model .model-views button,
  .alma-model .model-detail-actions button { flex: none; }
  .alma-model__footer-row { align-items: flex-start; flex-direction: column; gap: 10px; padding: 14px 10px; }
  .alma-model__footer-row span { display: none; }
  .alma-model .model-camera-actions { width: 100%; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .alma-model__roadmap button > span:first-child,
  .alma-model__cta,
  .alma-model .model-views button,
  .alma-model .model-detail-actions button,
  .alma-model .model-camera-actions button { transition: none; }
}
