:root {
  --apafa-primary: #16396b;
  --apafa-primary-dark: #10294d;
  --apafa-accent: #2f80ed;
  --apafa-accent-soft: #eaf3ff;
  --apafa-text: #1f2937;
  --apafa-muted: #021131;
  --apafa-bg: #f7f9fc;
  --apafa-white: #ffffff;
  --apafa-border: rgba(22, 57, 107, 0.08);
  --apafa-shadow: 0 12px 35px rgba(14, 30, 62, 0.10);
  --apafa-radius: 22px;
}

* {
  box-sizing: border-box;
}

.apafa-banner {
  position: relative;
  min-height: 520px;
  background:
    linear-gradient(120deg, rgba(11, 28, 54, 0.86), rgba(22, 57, 107, 0.74)),
    url('https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?w=1400&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  overflow: hidden;
}

.apafa-banner-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  text-align: center;
  color: #fff;
}

.apafa-badge,
.section-mini-title {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.section-mini-title {
  background: var(--apafa-accent-soft);
  color: var(--apafa-primary);
  border: 1px solid rgba(47, 128, 237, 0.12);
}

.apafa-banner h1 {
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 18px;
  font-weight: 800;
}

.apafa-banner p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.apafa-banner-actions,
.apafa-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn-primary-apafa,
.btn-secondary-apafa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.25s ease;
}

.btn-primary-apafa {
  background: var(--apafa-accent);
  color: #fff;
  box-shadow: 0 10px 25px rgba(47, 128, 237, 0.28);
}

.btn-primary-apafa:hover {
  transform: translateY(-2px);
  background: #1f6fda;
}

.btn-secondary-apafa {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-secondary-apafa:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.apafa-main-content {
  background: linear-gradient(180deg, #f8fbff 0%, #f5f7fb 100%);
  padding: 70px 0 90px;
  overflow: hidden;
}

.apafa-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}

.apafa-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.apafa-hero-text {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.apafa-hero-text h2 {
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  color: var(--apafa-primary);
  margin-bottom: 18px;
  line-height: 1.1;
}

.apafa-hero-description {
  color: var(--apafa-muted);
  font-size: 1.12rem;
  line-height: 1.8;
  margin-bottom: 26px;
}

.apafa-feature-points {
  display: grid;
  gap: 14px;
}

.feature-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--apafa-border);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(14, 30, 62, 0.04);
}

.feature-point span {
  color: var(--apafa-accent);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.2;
}

.feature-point p {
  margin: 0;
  color: var(--apafa-text);
  font-weight: 500;
  line-height: 1.5;
}

/* CAMBIO 1 */
.apafa-hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translate(40px, -180px)
}

.apafa-image-card {
  background: #fff;
  border-radius: 30px;
  padding: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 22px 55px rgba(13, 31, 63, 0.13);
  border: 1px solid rgba(22, 57, 107, 0.08);
}

.apafa-image-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 18px;
}

/* CAMBIO 2 */
.large-card {
  width: 1800px;
  max-width: none;
}

.large-card img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  display: block;
}

/* CAMBIO 3 */
.apafa-floating-card {
  position: absolute;
  right: -120px;   /* más hacia la derecha */
  bottom: -120px;  /* más abajo */
  width: 190px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 42px rgba(17, 38, 70, 0.20);
  padding: 14px;
  border: 1px solid var(--apafa-border);
}

.apafa-floating-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.apafa-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 52px 0 70px;
}

.stat-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px 18px;
  box-shadow: 0 10px 24px rgba(14, 30, 62, 0.06);
  border: 1px solid var(--apafa-border);
  text-align: center;
}

.stat-card h3 {
  margin: 0 0 8px;
  color: var(--apafa-primary);
  font-size: 1.8rem;
}

.stat-card p {
  margin: 0;
  color: var(--apafa-muted);
  line-height: 1.5;
}

.apafa-section {
  margin-top: 70px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h3 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  color: var(--apafa-primary);
  margin: 0 0 12px;
}

.section-heading p {
  color: var(--apafa-muted);
  line-height: 1.75;
  margin: 0;
}

.apafa-grid {
  display: grid;
  gap: 24px;
}

.four-cols {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.three-cols {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.info-card,
.benefit-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--apafa-border);
  box-shadow: 0 10px 30px rgba(14, 30, 62, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover,
.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(14, 30, 62, 0.10);
}

.info-card {
  padding: 28px 22px;
}

.icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--apafa-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 18px;
}

.info-card h4,
.benefit-card h4 {
  margin: 0 0 10px;
  color: var(--apafa-primary);
  font-size: 1.15rem;
}

.info-card p,
.benefit-card p {
  margin: 0;
  color: var(--apafa-muted);
  line-height: 1.7;
}

.benefit-card {
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.benefit-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  background: var(--apafa-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.apafa-app-preview {
    display: flex;
    justify-content: flex-end;
    margin: -180px 0 0 0;   /* sube la imagen */
    transform: translateX(-380px); /* mueve a la izquierda */
}

.apafa-app-preview img{
    max-width:380px;
    border-radius:18px;
    box-shadow:0 4px 24px #0003;
}



.apafa-right-images{
    position:absolute;
    right:120px;
    top:140px;
    display:flex;
    flex-direction:column;
    gap:40px;
}

.apafa-img-box{
    width:260px;
}

.apafa-img-box img{
    width:100%;
    border-radius:18px;
    box-shadow:0 10px 30px rgba(0,0,0,0.15);
}




.app-features{
  max-width: 1200px;
  margin: 20px auto 60px auto;
}

.app-features-head{
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
}

.app-features-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--sd-primary-soft);
  border: 1px solid var(--sd-primary-border);
  color: var(--sd-primary);
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.app-features h2{
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--sd-primary);
}

.app-features-head p{
  margin: 0;
  color: var(--sd-text-soft);
  line-height: 1.7;
  font-size: 0.98rem;
}

.app-features-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.app-card{
  background: #fff;
  border: 1px solid var(--sd-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(20, 49, 80, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.app-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(20, 49, 80, 0.12);
}

.app-card-image{
  background: #f7f9fc;
  padding: 20px 20px 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-card-image img{
  width: 180px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

.app-card-body{
  padding: 18px 18px 20px;
  text-align: center;
}

.app-card-body h3{
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--sd-primary);
}

.app-card-body p{
  margin: 0;
  color: var(--sd-text-soft);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* tablet */
@media (max-width: 980px){
  .app-features-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* celular */
@media (max-width: 640px){
  .app-features{
    padding: 0 14px;
  }

  .app-features-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .app-card-image img{
    width: 165px;
  }

  .app-card-body{
    padding: 16px;
  }
}