/* ═══════════════════════════════════════════════════
   APP SHOWCASE SECTION — fondo blanco, iPhones reales
   ═══════════════════════════════════════════════════ */

/* ── Sección contenedor — FONDO BLANCO ── */
.showcase-section {
  background: #f8f7f4;
  padding: 110px 6% 130px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 90vh;
  overflow: hidden;
  position: relative;
}

/* Línea superior decorativa */
.showcase-section::before {
  content: '';
  position: absolute;
  top: 0; left: 6%; right: 6%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(139,26,26,0.25), transparent);
}

/* ── Columna izquierda ── */
.showcase-left {
  position: relative;
  z-index: 2;
  padding-left: 20px;
}

.showcase-left .section-label {
  color: #8B1A1A;
}

.showcase-left .section-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  margin: 12px 0 20px;
  line-height: 1;
  color: #0a0a0a;
}

.showcase-left .section-title span {
  color: #8B1A1A;
}

.showcase-desc {
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: 36px;
}

/* Features list */
.showcase-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}

.showcase-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(0,0,0,0.07);
  background: #fff;
  border-radius: 4px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.showcase-feature:hover {
  border-color: rgba(139,26,26,0.2);
  box-shadow: 0 6px 24px rgba(139,26,26,0.08);
  transform: translateX(4px);
}

.sf-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
  margin-top: 2px;
}

.sf-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0a0a0a;
  margin-bottom: 4px;
}

.sf-text {
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  color: #888;
  line-height: 1.6;
}

/* ── Columna derecha: teléfonos ── */
.showcase-right {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Mockup base ── */
.phone-mockup {
  position: absolute;
  width: 195px;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
              z-index 0s;
  cursor: pointer;
}

/* Teléfono central más grande */
.phone-featured { width: 225px !important; }

/* ── Frame Preparado para PNG ── */
.phone-frame {
  background: #050505; /* Fondo negro detrás de la captura */
  border-radius: 38px;
  padding: 0; /* Sin padding, la imagen será edge-to-edge */
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  border: none; /* Quitamos el borde para usar el PNG real */
  overflow: visible; /* Permitimos que el overlay sobresalga */
}

/* Superposición del Mockup PNG Real (iPhone Violeta con Isla Dinámica) */
.mockup-overlay {
  position: absolute;
  /* Posicionamiento exacto calculado según las proporciones del mockup */
  left: -14.2%;
  right: -14.6%;
  top: -6.4%;
  bottom: -6.4%;
  background-image: url('Imagenes/Mockup/bb552083a851c08bac067e8cc7fa3cb5-transparent.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none; /* Para que el click pase a través */
  z-index: 50;
}

/* Posiciones simples tipo TrainHeroic (sin 3D feo) */
.phone-left-anim  {
  left: 20px; top: 60px; z-index: 10;
}
.phone-center-anim {
  left: 50%; top: 10px; z-index: 15;
}
.phone-right-anim {
  right: 20px; top: 60px; z-index: 10;
}

/* Hovers simples (elevar) */
.phone-mockup:hover { z-index: 20 !important; transform: translateY(-10px) !important; }

/* Estado inicial */
.phone-left-anim, .phone-center-anim, .phone-right-anim { opacity: 0; }

/* Animaciones de entrada limpias */
.phone-left-anim.phone-in { animation: phoneSlideUpLeft 0.8s ease-out 0.1s forwards; }
.phone-center-anim.phone-in { animation: phoneSlideUpCenter 0.8s ease-out 0.3s forwards; }
.phone-right-anim.phone-in { animation: phoneSlideUpRight 0.8s ease-out 0.5s forwards; }

@keyframes phoneSlideUpLeft {
  from { opacity: 0; transform: translate(-40px, 60px); }
  to   { opacity: 1; transform: translate(0, 0); }
}
@keyframes phoneSlideUpCenter {
  from { opacity: 0; transform: translateX(-50%) translateY(80px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes phoneSlideUpRight {
  from { opacity: 0; transform: translate(40px, 60px); }
  to   { opacity: 1; transform: translate(0, 0); }
}

/* Eliminamos el notch falso, la imagen real lo traerá */
.phone-notch {
  display: none;
}

/* ── Pantalla Edge-to-Edge ── */
.phone-screen {
  background: #000;
  border-radius: 36px;
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 19.5; /* Proporción estándar de iPhone moderno */
  overflow: hidden;
  position: relative;
}

/* Removemos la barra de estado falsa */
.phone-screen::before {
  display: none;
}

/* La imagen debe llenar completamente */
.phone-screen-img {
  padding: 0 !important;
}
.img-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0; left: 0;
}

/* Animación de crossfade para el slider */
.top-slide {
  animation: fadeSlide 8s infinite ease-in-out;
}

@keyframes fadeSlide {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

/* ═══════════════════════════════════════════════════
   APP FEATURES GRID (Lo que desearías que hiciera tu libreta)
   ═══════════════════════════════════════════════════ */
.app-features-section {
  background: #fff;
  padding: 80px 5% 100px;
  text-align: center;
}

.af-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #0a0a0a;
  max-width: 800px;
  margin: 0 auto 70px;
  line-height: 1.1;
  text-transform: none;
}

.af-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.af-item {
  text-align: left;
}

.af-icon {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

/* Mancha de color detrás del icono (estilo TrainHeroic) */
.af-icon::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 35px;
  background: #E8FF5A; /* Color lima clásico de TH */
  z-index: 0;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}
/* Algunas manchas rojas/doradas para variar */
.af-icon.icon-red::before { background: rgba(139,26,26,0.3); }
.af-icon.icon-gold::before { background: rgba(201,168,76,0.4); }

.af-icon svg, .af-icon i {
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  color: #0a0a0a;
  /* SVG stroke icons: tamaño fijo */
  width: 48px;
  height: 48px;
  display: block;
}
/* Para los SVGs el color viene del atributo stroke, no de color */
.af-icon svg {
  color: unset;
}

.af-item-title {
  font-family: 'Barlow', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 12px;
}

.af-item-desc {
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .showcase-section {
    grid-template-columns: 1fr;
    padding: 70px 5% 80px;
    gap: 50px;
  }
  .showcase-left { padding-left: 0; }
  .showcase-right {
    height: 460px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
  .phone-mockup { width: 145px !important; }
  .phone-featured { width: 165px !important; }
  .phone-left-anim  { left: 0;   top: 40px; }
  .phone-center-anim{ left: 50%; top: 0; }
  .phone-right-anim { right: 0;  top: 40px; }
  
  .af-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .af-item { text-align: center; }
}
