/* App SANFIT: independent text, phone, indicators and action grid areas. */
#app { padding: 28px 0 36px; background: linear-gradient(180deg,#101112 0%,transparent 20%,transparent 78%,#0b0c0e 100%); }
#app::before { inset: 0; width: 100%; opacity: .3; mask-image: none; background: linear-gradient(90deg,#101112 10%,transparent 78%),linear-gradient(180deg,#101112,transparent 25%,transparent 70%,#0b0c0e),url('assets/equipo.webp') right center/cover no-repeat; }
#app .app-stage { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); grid-template-rows: auto auto auto; column-gap: 64px; min-height: 650px; align-items: start; }
#app .app-content { display: block; grid-column: 1; grid-row: 1; align-self: end; padding: 0; min-width: 0; }
#app .section-title { font-size: clamp(38px,4.1vw,57px); font-style: italic; letter-spacing: -.06em; line-height: 1.06; margin: 0 0 22px; max-width: 570px; }
#app .section-title em { color: #fcd018; font-style: inherit; }
#app .app-content>p { font-size: 17px; line-height: 1.65; max-width: 510px; margin: 0; }
#app .app-phone-wrap { grid-column: 2; grid-row: 1 / -1; position: relative; width: 100%; height: 650px; display: flex; align-items: center; justify-content: center; min-width: 0; }
#app .app-phone { position: relative; inset: auto; flex: none; width: 314px; height: 558px; border-width: 7px; border-radius: 42px; padding: 5px; transform: rotate(7deg); box-shadow: 0 12px 24px #0005,0 0 0 1px #666; }
#app .phone-display { border-radius: 30px; }
#app .app-real-image { object-fit: contain; }
#app .phone-prototype { padding: 25px 13px 12px; }
#app .phone-status { font-size: 9px; margin-bottom: 19px; }
#app .phone-mark { padding-bottom: 17px; gap: 8px; }
#app .phone-mark img { width: 31px; height: 31px; }
#app .phone-mark b { font-size: 17px; }
#app .phone-label { font-size: 8px; margin-bottom: 12px; }
#app .phone-prototype>strong { font-size: 22px; }
#app .phone-prototype>p { font-size: 10px; margin: 1px 0 13px; }
#app .phone-progress { margin-bottom: 20px; }
#app .phone-module { min-height: 68px; margin-bottom: 10px; padding: 10px; gap: 10px; }
#app .phone-module>span:first-child { font-size: 23px; min-width: 24px; }
#app .phone-module b { font-size: 11px; }
#app .phone-module small { font-size: 8px; }
#app .phone-bottom>span { font-size: 16px; }
#app .phone-bottom small { font-size: 8px; }
#app .concept-label { position: absolute; inset: auto 0 0; text-align: center; font-size: 10px; line-height: 1.5; }
#app .app-feature-row { grid-column: 1; grid-row: 2; display: flex; width: 100%; min-width: 0; max-width: none; margin: 28px 0; }
#app .app-feature-row>span { gap: 12px; }
#app .app-feature-row svg { width: 28px; height: 28px; }
#app .app-feature-row small { font-size: 12px; }
#app .app-cta { grid-column: 1; grid-row: 3; width: 100%; min-width: 0; align-self: start; min-height: 56px; font-size: 14px; border-radius: 22px; }
#app .app-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 32px; }
/* The existing app placeholders remain enlargeable before real captures arrive. */
#dialog-content .app-preview-expanded { display: block; position: relative; width: min(340px,70vw); height: 470px; margin: auto; }
#dialog-content .app-preview-expanded .shot-placeholder { padding: 32px 24px; gap: 24px; }
@media(max-width:900px) {
  #app .app-stage { column-gap: 28px; }
  #app .app-phone { width: 270px; height: 510px; }
  #app .app-content>p { font-size: 16px; }
}
@media(max-width:700px) {
  #app { padding: 16px 0 28px; }
  #app .app-stage { grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto auto auto; gap: 0; min-height: 0; }
  #app .app-content { grid-column: 1; grid-row: 1; align-self: start; }
  #app .section-title { font-size: clamp(32px,8.5vw,48px); margin: 0 0 18px; max-width: 540px; }
  #app .app-content>p { font-size: 15px; line-height: 1.65; max-width: none; }
  #app .app-phone-wrap { grid-column: 1; grid-row: 2; height: 540px; margin-top: 12px; justify-content: flex-end; padding-right: 28px; }
  #app .app-phone { width: 260px; height: 476px; }
  #app .phone-module { min-height: 59px; }
  #app .concept-label { font-size: 9px; }
  #app .app-feature-row { grid-column: 1; grid-row: 3; margin: 23px 0; }
  #app .app-feature-row small { font-size: 10px; }
  #app .app-feature-row svg { width: 25px; height: 25px; }
  #app .app-cta { grid-column: 1; grid-row: 4; font-size: 12px; min-height: 52px; }
  #app .app-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(prefers-reduced-motion:reduce) { #app .btn { transition: none; } }
