/* =========================================================
   SITIOGLOBAL - APP INMOBILIARIA
   Archivo: app-inmobiliaria.css
   Prefijo único: sg-app
========================================================= */

.sg-app {
  width: 100%;
  background: #ffffff;
  color: #243746;
  font-family: "Lato", Arial, sans-serif;
}

.sg-app-wrapper {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}

.sg-app-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 10px 18px;
  border-radius: 50px;
  background: rgba(205, 163, 73, 0.14);
  color: inherit;
  font-size: 0.92rem;
  font-weight: 700;
}

.sg-app-label i {
  color: #cda349;
}

/* HERO */

.sg-app-hero {
  width: 100%;
  padding: 95px 0 45px;
  background: #ffffff;
}

.sg-app-hero-box {
  position: relative;
  padding: 70px;
  border-radius: 44px;
  background: linear-gradient(135deg, #0e2438 0%, #1a3d5d 62%, #173044 100%);
  color: #ffffff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 55px;
  align-items: center;
  box-shadow: 0 35px 90px rgba(14, 36, 56, 0.22);
}

.sg-app-hero-box::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(rgba(205, 163, 73, 0.25), transparent 70%);
}

.sg-app-hero-box::after {
  content: "";
  position: absolute;
  bottom: -190px;
  left: -160px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(rgba(255, 255, 255, 0.12), transparent 70%);
}

.sg-app-hero-content,
.sg-app-hero-panel {
  position: relative;
  z-index: 2;
}

.sg-app-hero-content h1 {
  max-width: 820px;
  margin: 0 0 24px;
  color: #ffffff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(2.35rem, 5vw, 4.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1px;
}

.sg-app-hero-content p {
  max-width: 720px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  line-height: 1.85;
}

.sg-app-hero-buttons,
.sg-app-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.sg-app-btn-primary,
.sg-app-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 28px;
  border-radius: 50px;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.35s ease;
}

.sg-app-btn-primary {
  background: linear-gradient(135deg, #cda349 0%, #d8b45c 100%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(205, 163, 73, 0.28);
}

.sg-app-btn-primary:hover {
  transform: translateY(-4px);
  color: #ffffff;
}

.sg-app-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.sg-app-btn-secondary:hover {
  transform: translateY(-4px);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

/* BROWSER MOCKUP */

.sg-app-browser {
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 35px 85px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.sg-app-browser-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 22px;
  background: rgba(14, 36, 56, 0.9);
}

.sg-app-browser-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.sg-app-browser-top div {
  margin-left: 12px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
}

.sg-app-browser-body {
  padding: 28px;
  background: #f7f9fc;
}

.sg-app-property-preview {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
  padding: 22px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 22px 55px rgba(14, 36, 56, 0.12);
}

.sg-app-property-image {
  min-height: 230px;
  border-radius: 24px;
  background: linear-gradient(135deg, #1a3d5d 0%, #244f78 100%);
  color: #cda349;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.sg-app-property-image span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 13px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

.sg-app-property-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 50px;
  background: rgba(205, 163, 73, 0.16);
  color: #1a3d5d;
  font-size: 0.78rem;
  font-weight: 700;
}

.sg-app-property-info h3 {
  margin: 0 0 10px;
  color: #1a3d5d;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.35;
}

.sg-app-property-info p {
  margin: 0 0 22px;
  color: #5a6b7a;
  font-size: 0.95rem;
  line-height: 1.65;
}

.sg-app-property-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sg-app-property-data div {
  padding: 14px;
  border-radius: 18px;
  background: #f3f4f6;
  text-align: center;
}

.sg-app-property-data strong {
  display: block;
  color: #1a3d5d;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.35rem;
}

.sg-app-property-data span {
  color: #5a6b7a;
  font-size: 0.78rem;
}

.sg-app-mini-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.sg-app-mini-actions div {
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  color: #1a3d5d;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 14px 35px rgba(14, 36, 56, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sg-app-mini-actions i {
  color: #cda349;
}

/* FUNCIONES */

.sg-app-funciones {
  padding: 105px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.sg-app-section-header {
  max-width: 960px;
  margin: 0 auto 75px;
  text-align: center;
}

.sg-app-section-header h2 {
  margin: 0 0 24px;
  color: #1a3d5d;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
}

.sg-app-section-header p {
  max-width: 820px;
  margin: 0 auto;
  color: #5a6b7a;
  font-size: 1.08rem;
  line-height: 1.85;
}

.sg-app-funciones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.sg-app-card {
  position: relative;
  min-height: 320px;
  padding: 38px 32px;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(26, 61, 93, 0.08);
  box-shadow:
    0 25px 60px rgba(14, 36, 56, 0.08),
    0 10px 25px rgba(14, 36, 56, 0.05);
  overflow: hidden;
  transition: all 0.35s ease;
}

.sg-app-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, #cda349 0%, #e5c97e 50%, #cda349 100%);
}

.sg-app-card:hover {
  transform: translateY(-12px);
  border-color: rgba(205, 163, 73, 0.3);
  box-shadow:
    0 40px 90px rgba(14, 36, 56, 0.14),
    0 18px 35px rgba(14, 36, 56, 0.08);
}

.sg-app-card-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 30px;
  border-radius: 24px;
  background: linear-gradient(135deg, #1a3d5d 0%, #244f78 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.sg-app-card h3 {
  margin: 0 0 18px;
  color: #1a3d5d;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.sg-app-card p {
  margin: 0;
  color: #5a6b7a;
  font-size: 1rem;
  line-height: 1.78;
}

/* DETALLE */

.sg-app-detalle {
  padding: 105px 0;
  background: #ffffff;
}

.sg-app-detalle-box {
  padding: 62px;
  border-radius: 42px;
  background: linear-gradient(135deg, #1a3d5d 0%, #0e2438 100%);
  color: #ffffff;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 55px;
  align-items: center;
  box-shadow: 0 35px 90px rgba(14, 36, 56, 0.2);
  overflow: hidden;
}

.sg-app-detalle-content h2 {
  margin: 0 0 24px;
  color: #ffffff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.14;
}

.sg-app-detalle-content p {
  max-width: 650px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.85;
}

.sg-app-detalle-list {
  display: grid;
  gap: 14px;
}

.sg-app-detalle-list div {
  display: flex;
  gap: 10px;
  color: rgba(255, 255, 255, 0.86);
}

.sg-app-detalle-list i {
  color: #cda349;
  margin-top: 3px;
}

/* FICHA */

.sg-app-ficha {
  padding: 24px;
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
}

.sg-app-ficha-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 12px;
  margin-bottom: 20px;
}

.sg-app-ficha-img {
  min-height: 190px;
  border-radius: 22px;
  background: linear-gradient(135deg, #1a3d5d 0%, #244f78 100%);
}

.sg-app-ficha-img.small {
  min-height: 190px;
  background: linear-gradient(135deg, #cda349 0%, #d8b45c 100%);
}

.sg-app-ficha-content span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #cda349;
  font-size: 0.82rem;
  font-weight: 700;
}

.sg-app-ficha-content h3 {
  margin: 0 0 7px;
  color: #1a3d5d;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.sg-app-ficha-content p {
  margin: 0 0 20px;
  color: #5a6b7a;
}

.sg-app-ficha-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.sg-app-ficha-icons div {
  padding: 10px 13px;
  border-radius: 50px;
  background: #f3f4f6;
  color: #1a3d5d;
  font-size: 0.86rem;
  font-weight: 700;
}

.sg-app-ficha-icons i {
  color: #cda349;
}

.sg-app-ficha-content a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #1a3d5d;
  font-weight: 700;
  text-decoration: none;
}

.sg-app-ficha-content a:hover {
  color: #cda349;
}

/* BENEFICIOS */

.sg-app-beneficios {
  padding: 105px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.sg-app-beneficios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sg-app-beneficio {
  padding: 34px 30px;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(26, 61, 93, 0.08);
  box-shadow: 0 25px 60px rgba(14, 36, 56, 0.08);
}

.sg-app-beneficio strong {
  display: block;
  margin-bottom: 16px;
  color: #cda349;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.7rem;
}

.sg-app-beneficio h3 {
  margin: 0 0 12px;
  color: #1a3d5d;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.sg-app-beneficio p {
  margin: 0;
  color: #5a6b7a;
  line-height: 1.75;
}

/* CTA */

.sg-app-cta {
  padding: 100px 0;
  background: #ffffff;
}

.sg-app-cta-box {
  padding: 62px;
  border-radius: 40px;
  background: linear-gradient(135deg, #1a3d5d 0%, #0e2438 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  box-shadow: 0 35px 90px rgba(14, 36, 56, 0.22);
}

.sg-app-cta-box h2 {
  max-width: 820px;
  margin: 0 0 20px;
  color: #ffffff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.14;
}

.sg-app-cta-box p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* RESPONSIVE */

@media (max-width: 1199px) {
  .sg-app-hero-box,
  .sg-app-detalle-box {
    grid-template-columns: 1fr;
  }

  .sg-app-funciones-grid,
  .sg-app-beneficios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sg-app-cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .sg-app-hero,
  .sg-app-funciones,
  .sg-app-detalle,
  .sg-app-beneficios,
  .sg-app-cta {
    padding: 80px 0;
  }

  .sg-app-hero-box,
  .sg-app-detalle-box,
  .sg-app-cta-box {
    padding: 38px 28px;
    border-radius: 32px;
  }

  .sg-app-section-header {
    text-align: left;
    margin-bottom: 45px;
  }

  .sg-app-funciones-grid,
  .sg-app-beneficios-grid {
    grid-template-columns: 1fr;
  }

  .sg-app-property-preview {
    grid-template-columns: 1fr;
  }

  .sg-app-mini-actions {
    grid-template-columns: 1fr;
  }

  .sg-app-ficha-top {
    grid-template-columns: 1fr;
  }

  .sg-app-ficha-img,
  .sg-app-ficha-img.small {
    min-height: 150px;
  }
}

@media (max-width: 575px) {
  .sg-app-wrapper {
    padding: 0 18px;
  }

  .sg-app-hero-buttons,
  .sg-app-cta-buttons,
  .sg-app-btn-primary,
  .sg-app-btn-secondary {
    width: 100%;
  }

  .sg-app-browser-top {
    flex-wrap: wrap;
  }

  .sg-app-browser-top div {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }
}