/* ===============================
   🌊 PUERTOAPPLE — ESTILO GENERAL
=============================== */

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: #fff;
  background: #0c0c0d;
}

a {
  color: #00bfff;
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===============================
   🔝 HEADER / NAV ESTILO APPLE
=============================== */

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  position: relative;
}

/* === ÍCONO HAMBURGUESA === */
.menu {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none;
  padding: 6px;
}

#menu-icon {
  font-size: 26px;
  color: #fff;
  font-weight: bold;
  transition: transform 0.3s ease, color 0.3s ease;
  user-select: none;
  line-height: 1;
}

#menu-icon:hover {
  transform: scale(1.15);
  color: #00bfff;
}

#menu-icon.cerrar {
  transform: rotate(90deg);
  color: #00bfff;
}

/* === TÍTULO CENTRAL === */
.header-container h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 auto;
  text-align: center;
  letter-spacing: 0.6px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* === MENÚ LATERAL (Overlay) === */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(14px);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: left 0.4s ease;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
}

.menu-overlay.open {
  left: 0;
  opacity: 1;
  pointer-events: auto;
}

/* === CONTENIDO DEL MENÚ === */
.menu-content {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  animation: fadeInMenu 0.6s ease forwards;
}

.menu-content li {
  margin: 18px 0;
}

.menu-content li a {
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}

.menu-content li a:hover {
  color: #00bfff;
  transform: scale(1.08);
}

/* === ANIMACIÓN === */
@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   🎬 HERO
=============================== */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hero__video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  z-index: -1;
}

.hero__cta {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.btn {
  padding: 0.6em 1.2em;
  background: #00bfff;
  color: #fff;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}
.btn--ghost {
  border: 1px solid #00bfff;
  background: transparent;
}

/* ===============================
   🧩 SECCIONES GENERALES
=============================== */
.section {
  padding: 80px 0;
}
.section--alt { background: #111; }

.section h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* ===============================
   🧱 GRID / TARJETAS
=============================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.card {
  background: #1b1b1c;
  border-radius: 10px;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.card:hover { background: #242425; }
.icono { width: 64px; margin-bottom: 10px; }
.muted { color: #aaa; }

/* ===============================
   🖼️ GALERÍA APPLE
=============================== */
.galeria-doble {
  display: flex;
  flex-direction: column;
  gap: 40px;
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 40px 0;
}

.galeria-marquesina {
  display: flex;
  gap: 16px;
  overflow: hidden;
  align-items: center;
}

.galeria-item {
  flex: 0 0 auto;
  width: 280px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}
.galeria-item img, .galeria-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.galeria-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,150,255,0.25);
}

/* Animaciones de scroll infinito */
.fila1, .fila2 {
  display: flex;
  width: max-content;
}
.fila1 { animation: scrollLeft 720s linear infinite; }
.fila2 {
  animation: scrollRight 850s linear infinite;
  animation-delay: -60s;
}

/* ===============================
   💬 RESEÑAS (Marquesina)
=============================== */
.reseñas-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin: 2rem auto;
}
.reseñas-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scrollLeft 360s linear infinite;
}
.reseña {
  background: #1b1b1c;
  color: #fff;
  padding: 1rem 1.8rem;
  border-radius: 12px;
  min-width: 320px;
  text-align: center;
  font-size: 1rem;
  box-shadow: 0 4px 25px rgba(0,0,0,0.3);
  transition: all 0.4s ease;
}
.reseña:hover {
  transform: scale(1.08);
  background: #00bfff15;
  box-shadow: 0 0 25px rgba(0,191,255,0.5);
}

/* ===============================
   🗺️ MAPA
=============================== */
.mapa-section { text-align: center; }
.mapa-wrapper {
  position: relative;
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(0,0,0,0.4);
}

/* Marcador animado tipo Apple Maps */
.map-marker {
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 22px;
  background: radial-gradient(circle, #00bfff 40%, #0080ff 80%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: markerPulse 2s ease-in-out infinite;
}

/* ===============================
   💡 PIEZA DESCONOCIDA (Fondo Glow)
=============================== */
.pieza-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #101010 0%, #0c0c0d 100%);
  color: #eaeaea;
  text-align: center;
  padding: 100px 20px;
}
.pieza-bg {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(0,191,255,0.08), transparent 40%),
              radial-gradient(circle at 70% 60%, rgba(0,191,255,0.05), transparent 40%);
  animation: piezaGlow 20s infinite linear;
  z-index: 0;
}
.pieza-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: auto;
}
.icon-animado {
  width: 64px;
  filter: drop-shadow(0 0 8px rgba(0,191,255,0.6));
  animation: iconFloat 3.5s ease-in-out infinite;
}
.pieza-section:hover .icon-animado {
  filter: drop-shadow(0 0 15px rgba(0,191,255,0.8));
}

/* ===============================
   🧠 ANIMACIONES DE ENTRADA
=============================== */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 1.2s ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   🌈 FOOTER
=============================== */
.footer {
  background: linear-gradient(180deg, #0c0c0d 0%, #050505 100%);
  color: #bbb;
  padding: 60px 0 20px;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 20% 20%, rgba(0,191,255,0.1), transparent 40%);
  animation: footerGlow 12s infinite linear;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}
.footer-col h4 { color: #fff; margin-bottom: 0.8rem; font-weight: 600; }
.footer-col p, .footer-col ul {
  margin: 0; padding: 0; list-style: none; line-height: 1.6;
}
.footer-col ul li a {
  color: #aaa;
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: #00bfff; }

.social-icons a {
  color: #fff;
  margin-right: 10px;
  font-size: 1.3rem;
  transition: color 0.3s, transform 0.3s;
}
.social-icons a:hover {
  color: #00bfff;
  transform: scale(1.2);
}

/* Footer inferior */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 40px;
  padding-top: 15px;
  text-align: center;
  color: #777;
  font-size: 0.85rem;
}

/* ===============================
   ✨ CATEGORÍAS CON EFECTO APPLE
=============================== */
.categorias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  justify-items: center;
}
.categorias-grid .card {
  width: 200px; height: 200px;
  border-radius: 18px;
  box-shadow: 0 0 20px rgba(0,191,255,0.12);
  overflow: hidden;
  transition: transform 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease;
}
.categorias-grid .card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 45px rgba(0,191,255,0.4);
  filter: brightness(1.1);
}
.categoria-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 0.5s ease;
}
.categorias-grid .card:hover .categoria-img {
  transform: scale(1.1);
}
.categorias-grid .card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}
.categorias-grid .card:nth-child(1) { animation-delay: 0.2s; }
.categorias-grid .card:nth-child(2) { animation-delay: 0.4s; }
.categorias-grid .card:nth-child(3) { animation-delay: 0.6s; }
.categorias-grid .card:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   ⚙️ ANIMACIONES GLOBALES
=============================== */
@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes scrollRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@keyframes footerGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes piezaGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes markerPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.6); opacity: 0.4; }
}
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* === IMAGEN DE FONDO === */
.hero__img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: auto;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.55) contrast(1.05);
}

/* === CAPA DE DEGRADADO LIGERO === */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
}

/* === BLOQUE DE TEXTO CENTRAL === */
.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem 2.5rem;
  backdrop-filter: blur(2px) saturate(130%);
  background: rgba(0, 0, 0, 0.18); /* más sutil */
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
}

/* === TEXTO === */
.hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.hero .muted {
  color: #e0e0e0;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* === BOTONES === */
.hero__cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  background: #00bfff;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 191, 255, 0.3);
}

.btn:hover {
  background: #0099cc;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #00bfff;
}

/* === REDES === */
.hero__social {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.hero__social a {
  color: #bbb;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: color 0.3s;
}

.hero__social a:hover {
  color: #00bfff;
}
.lang-select {
  position: absolute;
  right: 20px;
  top: 10x;
  z-index: 1001;
}

.lang-select select {
  background: rgba(30, 30, 30, 0.8);
  color: #fff;
  border: 1px solid rgba(0, 191, 255, 0.4);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: background 0.3s ease, border 0.3s ease;
}

.lang-select select:hover {
  background: rgba(0, 191, 255, 0.3);
  border-color: rgba(0, 191, 255, 0.6);
}
/* ===== MODAL GALERÍA ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.95);
  justify-content: center;
  align-items: center;
  animation: aparecer 0.3s ease;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-body img,
.modal-body video {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease;
}

.modal-body img:hover,
.modal-body video:hover {
  transform: scale(1.02);
}

.cerrarModal {
  position: absolute;
  top: -30px;
  right: -30px;
  color: #fff;
  font-size: 32px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.cerrarModal:hover {
  color: #aaa;
}

@keyframes aparecer {
  from { opacity: 0; }
  to { opacity: 1; }
}


.section { padding: 80px 0; }

.grid-iphone {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  justify-items: center;
}

.iphone-card {
  background: #1b1b1c;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}
.iphone-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0,191,255,0.25);
}
.iphone-card img {
  width: 90px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}
.iphone-card:hover img { transform: scale(1.08); }
.iphone-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
}

/* ===============================
   🪞 MODAL DETALLE IPHONE
=============================== */
.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(10,10,10,0.96);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #111;
  border-radius: 16px;
  max-width: 480px;
  padding: 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 0 30px rgba(0,191,255,0.2);
  animation: zoomIn 0.3s ease;
}

.modal-content h2 { color: #00bfff; margin-bottom: 1rem; }
.modal-content p { color: #ddd; }
.modal-content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: left;
}
.modal-content li {
  margin: 0.5rem 0;
  padding-left: 8px;
  border-left: 2px solid #00bfff;
  color: #bbb;
}

.cerrarModal {
  position: absolute;
  top: 10px;
  right: 16px;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}
.cerrarModal:hover { color: #00bfff; }
.serie-titulo {
  font-size: 1.4rem;
  color: #00bfff;
  font-weight: 600;
  text-align: left;
  margin: 2.5rem 0 1rem;
  border-left: 4px solid #00bfff;
  padding-left: 10px;
}
.grid-series {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
/* === ANIMACIÓN APPLE PREMIUM === */
.serie-titulo,
.grid-iphone {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Pequeño escalado al entrar, más Apple aún */
.iphone-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.iphone-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 191, 255, 0.25);
}

/* Títulos de series */
.serie-titulo {
  font-size: 1.5rem;
  color: #00bfff;
  font-weight: 600;
  margin: 3rem 0 1rem;
  border-left: 4px solid #00bfff;
  padding-left: 12px;
  letter-spacing: 0.5px;
}

.grid-series {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
/* === BRILLO INFINITO ESTILO APPLE === */
.serie-titulo {
  position: relative;
  display: inline-block;
  overflow: hidden;
  color: #00bfff;
  font-weight: 600;
  text-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}

.serie-titulo::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  transform: skewX(-25deg);
  animation: brilloAppleInfinito 6s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes brilloAppleInfinito {
  0% {
    left: -60%;
  }
  50% {
    left: 110%;
  }
  100% {
    left: -60%;
  }
}
.serie-titulo {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 1s ease, transform 1s ease;
}
.serie-titulo.fade-in {
  opacity: 1;
  transform: translateY(0);
}
/* === MODAL APPLE STYLE === */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeInBg 0.4s ease forwards;
}

@keyframes fadeInBg {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  padding: 30px;
  max-width: 500px;
  width: 90%;
  color: #fff;
  transform: scale(0.85);
  opacity: 0;
  animation: popUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes popUp {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.cerrarModal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.3rem;
  cursor: pointer;
  color: #aaa;
  transition: color 0.3s ease;
}

.cerrarModal:hover {
  color: #00bfff;
}

.modal-body h2 {
  font-size: 1.5rem;
  color: #00bfff;
  text-align: center;
  margin-bottom: 10px;
}

.lista-repuestos {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  max-height: 250px;
  overflow-y: auto;
}

.lista-repuestos li {
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s ease;
}

.lista-repuestos li:hover {
  background: rgba(0, 191, 255, 0.1);
}

.check-repuesto {
  accent-color: #00bfff;
  transform: scale(1.2);
}

#btnCotizar {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, #007aff, #00bfff);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

#btnCotizar:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, #00bfff, #00a6ff);
}

/* Mensaje final */
.modal-body p.muted {
  text-align: center;
  color: #bbb;
  font-size: 0.95rem;
  margin-top: 1rem;
}
/* === HERO SECCIÓN IPHONE === */
.hero-iphone {
  position: relative;
  overflow: hidden;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bk img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%; /* centrado vertical ajustado hacia arriba */
  filter: brightness(0.45) saturate(1.2);
  transform: scale(1.05);
  animation: zoomSlow 20s ease-in-out infinite alternate;
}

@keyframes zoomSlow {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero__inner {
  max-width: 700px;
  padding: 2rem;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
  color: #ccc;
  margin-top: 10px;
  margin-bottom: 25px;
  font-size: 1.1rem;
  animation: fadeInUp 1.3s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === FLECHA DE SCROLL === */
.scroll-indicator {
  margin-top: 2rem;
  font-size: 1.5rem;
  color: #00bfff;
  cursor: pointer;
  animation: bounce 2s infinite;
  opacity: 0.8;
}

.scroll-indicator:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}
/* === EFECTO DE BRILLO EN FLECHA === */
.scroll-indicator {
  position: relative;
  margin-top: 2rem;
  font-size: 1.6rem;
  color: #00bfff;
  cursor: pointer;
  animation: bounce 2s infinite;
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.scroll-indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 191, 255, 0.35) 0%, rgba(0, 191, 255, 0) 70%);
  transform: translate(-50%, -50%) scale(1);
  animation: pulse 2.2s ease-in-out infinite;
  z-index: -1;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.25); opacity: 0.4; }
}

.scroll-indicator:hover {
  transform: translateY(3px);
  opacity: 1;
}
/* ==== Fix centrado imagen hero iPhone (anula reglas antiguas) ==== */
.hero-iphone .hero__img {
  position: absolute;
  inset: 0;              /* top/right/bottom/left: 0 */
  width: 100%;
  height: 100%;
  min-height: 0;         /* anula min-height previa */
  transform: none;       /* elimina translate(-50%,-50%) */
  object-fit: cover;
  object-position: center 35%;  /* ajusta foco vertical: sube la imagen */
  z-index: -1;
  filter: brightness(0.45) saturate(1.2);
}

/* animación suave opcional */
.hero-iphone .hero__img {
  animation: zoomSlow 20s ease-in-out infinite alternate;
}
/* === AJUSTE DE ESPACIADO ENTRE HERO Y SIGUIENTE SECCIÓN === */
.hero-iphone {
  margin-bottom: 2rem; /* antes solía ser 6rem o más */
  padding-bottom: 0;   /* elimina espacio interno extra */
}

.section#modelos {
  margin-top: 0;
  padding-top: 1rem;   /* un pequeño respiro visual */
}
/* === AJUSTE DE POSICIÓN DE LA SECCIÓN DE MODELOS === */
.section#modelos {
  margin-top: -180px;/* súbela más cerca del hero */
  padding-top: 0;      /* elimina espacio interno */
}

/* En móviles: menos agresivo para evitar superposición */
@media (max-width: 768px) {
  .section#modelos {
    margin-top: -40px;
  }
}
.grid-iphone {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.iphone-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.iphone-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #00bfff88;
}

.iphone-card img {
  width: 120px;
  height: auto;
  margin-bottom: 10px;
}
/* === HERO SECCIÓN IPHONE === */
.hero-iphone {
  position: relative;
  overflow: hidden;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(1.2);
  transform: scale(1.05);
  animation: zoomSlow 20s ease-in-out infinite alternate;
}

@keyframes zoomSlow {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero__inner {
  max-width: 700px;
  padding: 2rem;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
  color: #ccc;
  margin-top: 10px;
  margin-bottom: 25px;
  font-size: 1.1rem;
  animation: fadeInUp 1.3s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === FLECHA DE SCROLL === */
.scroll-indicator {
  margin-top: 2rem;
  font-size: 1.5rem;
  color: #00bfff;
  cursor: pointer;
  animation: bounce 2s infinite;
  opacity: 0.8;
}

.scroll-indicator:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}
/* ===============================
   📘 SECCIÓN IPAD — PUERTOAPPLE
   (ligera, no rompe iphone ni index)
=============================== */

/* Hero específico para iPad */
.hero-ipad {
  position: relative;
  overflow: hidden;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-ipad .hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(1.15);
  transform: scale(1.05);
  animation: zoomSlow 22s ease-in-out infinite alternate;
  z-index: -1;
}

.hero-ipad .hero__inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(2px);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
}

.hero-ipad h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-ipad p {
  color: #ccc;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero-ipad .scroll-indicator {
  color: #00bfff;
  margin-top: 1rem;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  opacity: 0.8;
}

/* Sección Modelos iPad */
.section#modelos-ipad {
  margin-top: -140px;
  padding-top: 0;
}

@media (max-width: 768px) {
  .section#modelos-ipad { margin-top: -60px; }
}

.serie-titulo-ipad {
  font-size: 1.4rem;
  color: #00bfff;
  font-weight: 600;
  margin: 3rem 0 1rem;
  border-left: 4px solid #00bfff;
  padding-left: 10px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

/* Grilla reutilizable */
.grid-ipad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-items: center;
}

.ipad-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ipad-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #00bfff99;
}

.ipad-card img {
  width: 100px;
  height: auto;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.ipad-card:hover img { transform: scale(1.1); }

.ipad-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}

/* Modal estilo iPad (mismo visual que iPhone) */
.modal-ipad {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-ipad.show {
  display: flex;
  opacity: 1;
}

.modal-ipad-content {
  background: #111;
  border-radius: 18px;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  color: #fff;
  position: relative;
  box-shadow: 0 0 25px rgba(0, 191, 255, 0.3);
  animation: popUp 0.3s ease;
}

.modal-ipad-content h2 {
  color: #00bfff;
  margin-bottom: 1rem;
}

.modal-ipad-content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.modal-ipad-content li {
  background: rgba(255, 255, 255, 0.05);
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 8px;
}

.modal-ipad-content p.muted {
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 10px;
}

.modal-ipad .cerrarModal {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #bbb;
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-ipad .cerrarModal:hover { color: #00bfff; }

.modal-ipad-content .btn {
  display: inline-block;
  background: #00bfff;
  padding: 10px 20px;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.modal-ipad-content .btn:hover {
  background: #00a6cc;
}
/* === EFECTO DE ENTRADA Y BRILLO APPLE EN TÍTULOS DE SERIES IPAD === */
.serie-titulo-ipad {
  position: relative;
  display: inline-block;
  overflow: hidden;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 1s ease, transform 1s ease;
  color: #00bfff;
  font-weight: 600;
  text-shadow: 0 0 15px rgba(0, 191, 255, 0.3);
}

/* Activación al hacer scroll (por JS) */
.serie-titulo-ipad.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Brillo infinito recorriendo el texto */
.serie-titulo-ipad::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  transform: skewX(-25deg);
  animation: brilloAppleInfinito 6s linear infinite;
  opacity: 0.7;
}

@keyframes brilloAppleInfinito {
  0% { left: -60%; }
  50% { left: 110%; }
  100% { left: -60%; }
}
.btn-info-pieza {
  margin-top: 12px;
  display: inline-block;
  padding: 10px 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  color: #fff;
  backdrop-filter: blur(6px);
  transition: 0.25s ease;
  font-size: 0.95rem;
}

.btn-info-pieza:hover {
  background: rgba(0,191,255,0.25);
  border-color: #00bfff;
  transform: translateY(-2px);
}
/* ✅ FIX: Evitar que el botón oculto capture clics */
.whatsapp-container,
#whatsapp-btn,
.whatsapp-btn {
  pointer-events: auto !important;
  position: fixed !important;
  bottom: 20px;
  right: 20px;
  width: 65px;
  height: 65px;
  z-index: 9999;
}

/* ✅ Nada fuera del botón debe recibir toques */
.whatsapp-container *,
.whatsapp-btn * {
  pointer-events: none !important;
}
