/* cortinas.css — Layout galería + info + teléfono */

.cortinas-layout {
  display: grid;
  gap: 32px;
  margin: 60px auto;
  max-width: 1100px;
  padding: 0 1rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 768px) {
  .cortinas-layout {
    grid-template-columns: 1fr 1fr;
  }
  /* galería col 1, info col 2 */
  .gallery-slider  { grid-column: 1; }
  .info-container  { grid-column: 2; }
  /* teléfono ocupa ambas columnas, centrado abajo */
  .phone-container {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

/* ===== GALERÍA (carrusel cortinas) ===== */
.gallery-slider {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}

.gallery-slider .fade-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.gallery-slider .fade-image.visible { opacity: 1; }

/* Dots */
.dots-container {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .3s;
}

.dot.active { background: white; }

/* ===== PHONE MOCKUP ===== */
.phone-container {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.iphone {
  position: relative;
  width: 260px;
  height: 520px;
  border-radius: 44px;
  background: linear-gradient(145deg, #1a1a1e, #0f0f14);
  padding: 14px;
  box-shadow:
    0 30px 60px rgba(0,0,0,.3),
    inset 0 0 0 3px rgba(255,255,255,.06),
    0 0 40px rgba(109,40,217,.15);
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
}

.iphone:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 50px 100px rgba(0,0,0,.4),
    0 0 60px rgba(109,40,217,.25),
    inset 0 0 0 3px rgba(255,255,255,.08);
}

.iphone .screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,.6);
}

.iphone .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .cortinas-layout  { gap: 24px; margin: 40px auto; }
  .gallery-slider   { max-width: 100%; }
  .iphone           { width: 220px; height: 440px; }
}
