.app-download {
  padding: 80px var(--spacing-sm);
  background: #ffffff; /* blanco plano como base */
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden; /* para evitar que el ::after sobresalga */
}

.app-download::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;     /* ancho del bloque rosado */
  height: 100%;
  background: #f35c8a;
  clip-path: circle(85% at 100% 50%); /* círculo que cubre el lado derecho */
  z-index: 0;
}



.app-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  position: relative;
}

.app-content {
  padding-right: 40px;
  z-index: 2;
}

.app-content h2 {
  font-size: 56px;
  font-weight: 800;
  color: #f35c8a;
  margin-bottom: 28px;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.app-content p {
  font-size: 18px;
  color: #3A4750;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 500px;
}

.app-stores {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content:left;
}

.store-badge {
  height: 60px;              /* 🔹 mismo alto para todos */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  display: block;
}

.store-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}


.app-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 650px;
  perspective: 1200px;
  z-index: 1;
}

.phone-mockup {
  position: absolute;
  width: 280px;
  height: 580px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  border-radius: 44px;
  background: #1a1a1a;
  padding: 10px;
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  display: block;
  object-fit: cover;
}

/* Notch superior */
.phone-mockup::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Cámara */
.phone-mockup::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #1a3a52 0%, #0d1b26 100%);
  border-radius: 50%;
  z-index: 11;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

/* Teléfono izquierdo */
.phone-mockup:first-child {
  left: -90px;
  transform: rotate(-8deg) scale(0.92);
  z-index: 1;
}

/* Teléfono central */
.phone-mockup:nth-child(2) {
  z-index: 3;
  transform: scale(1.08);
}

/* Teléfono derecho */
.phone-mockup:last-child {
  right: -90px;
  transform: rotate(8deg) scale(0.92);
  z-index: 2;
}

/* Hover effects */
.app-mockup:hover .phone-mockup:first-child {
  transform: rotate(-10deg) scale(0.92) translateX(-10px);
}

.app-mockup:hover .phone-mockup:last-child {
  transform: rotate(10deg) scale(0.92) translateX(10px);
}

.app-mockup:hover .phone-mockup:nth-child(2) {
  transform: scale(1.1);
}

/* Responsive tablets */
@media (max-width: 1024px) {
  .app-download {
    padding: 80px var(--spacing-sm) 60px;
  }

  .app-container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .app-content {
    padding-right: 0;
  }
  
  .app-content h2,
  .app-content p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .app-stores {
    justify-content: center;
  }
  
  .app-mockup {
    height: 550px;
  }
  
  .phone-mockup {
    width: 240px;
    height: 500px;
  }
  
  .phone-mockup:first-child {
    left: -70px;
  }
  
  .phone-mockup:last-child {
    right: -70px;
  }
}

/* Responsive móviles */
@media (max-width: 768px) {
  .app-download {
    padding: 60px var(--spacing-sm) 40px;
  }
  
  .app-content h2 {
    font-size: 42px;
  }
  
  .app-content p {
    font-size: 16px;
  }
  
  .app-mockup {
    height: 450px;
  }
  
  .phone-mockup {
    width: 200px;
    height: 420px;
  }
  
  .phone-mockup:first-child {
    left: -60px;
  }
  
  .phone-mockup:last-child {
    right: -60px;
  }
  
  .store-btn {
    min-width: 170px;
    padding: 14px 26px;
  }
}

@media (max-width: 480px) {
  .app-content h2 {
    font-size: 34px;
  }
  
  .app-stores {
    flex-direction: column;
    align-items: center;
  }
  
  .store-btn {
    width: 100%;
    max-width: 280px;
  }
  
  .app-mockup {
    height: 380px;
  }
  
  .phone-mockup {
    width: 170px;
    height: 360px;
  }
  
  .phone-mockup:first-child {
    left: -55px;
  }
  
  .phone-mockup:last-child {
    right: -55px;
  }
}

/* Responsive móviles */
@media (max-width: 768px) {
  .app-download {
    padding: 60px var(--spacing-sm) 40px;
    background: #f35c8a; /* 🔹 Fondo todo rosado */
  }

  .app-download::after {
    display: none; /* 🔹 Eliminamos el clip-path para que no moleste */
  }

  .app-content h2,
  .app-content p {
    color: #fff; /* 🔹 Texto blanco */
  }

  .app-content h2 {
    font-size: 42px;
  }

  .app-content p {
    font-size: 16px;
  }

  .app-mockup {
    height: 420px;
    margin-top: 30px;
  }

  .phone-mockup {
    width: 200px;
    height: 420px;
  }

  .phone-mockup:first-child {
    left: -40px;
  }

  .phone-mockup:last-child {
    right: -40px;
  }

  .app-stores {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

}

/* Responsive móviles muy pequeños */
@media (max-width: 480px) {
  .app-content h2 {
    font-size: 34px;
  }

  .app-mockup {
    height: 360px;
  }

  .phone-mockup {
    width: 160px;
    height: 340px;
  }

  .phone-mockup:first-child {
    left: -30px;
  }

  .phone-mockup:last-child {
    right: -30px;
  }

  .store-badge {
    max-width: 220px;
  }
}

@media (max-width: 1024px) {
  .app-download {
    padding: 80px var(--spacing-sm) 60px;
    background: #f35c8a; /* 🔹 fondo todo rosado */
  }

  .app-download::after {
    display: none; /* 🔹 quitamos el clip-path */
  }

  .app-content h2,
  .app-content p {
    color: #fff; /* 🔹 texto en blanco */
  }

  .app-container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .app-content {
    padding-right: 0;
  }
  
  .app-content h2,
  .app-content p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .app-stores {
    justify-content: center;
  }
  
  .app-mockup {
    height: 550px;
    margin-top: 30px;
  }
  
  .phone-mockup {
    width: 240px;
    height: 500px;
  }
  
  .phone-mockup:first-child {
    left: -50px;
  }
  
  .phone-mockup:last-child {
    right: -50px;
  }
}
