/* FUENTES */

@font-face {
  font-family: 'Triomphe';
  src: url('./fonts/triomphe-regular-autoinstr.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Triomphe';
  src: url('./fonts/triomphe-bold-autoinstr.ttf') format('truetype');
  font-weight: 700;
}

@font-face {
  font-family: 'Myriad Pro';
  src: url('./fonts/Myriad Pro Regular.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Myriad Pro';
  src: url('./fonts/Myriad Pro Bold.ttf') format('truetype');
  font-weight: 700;
}

/* BASE / RESET */

html {
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Myriad Pro', sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #f5f5f7;
  color: #1a1a1a;
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #000000;
    color: #ffffff;
  }
}

/* CLASES CUSTOM */

.font-triomphe {
  font-family: 'Triomphe', sans-serif;
}

.font-myriad {
  font-family: 'Myriad Pro', sans-serif;
}

/* CONTENEDOR RESPONSIVE */

.iphones-nuevos-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* GLASS */

.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
  .glass {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* FILTROS HORIZONTALES */

#preowned-filtros-wrap {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#preowned-filtros-wrap::-webkit-scrollbar {
  display: none;
}

#preowned-fade {
  transition: opacity 0.2s ease;
}

/* FIX UNIVERSAL MEDIA */

img,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* FIX UNIVERSAL IMÁGENES CARDS */

article img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 24px;
  background: #ededf0;
}

/* FIX sliders cards Safari iPhone */

[id^="slider-"]{
  width:100%;
  max-width:100%;
  will-change: transform;
}

[id^="slider-"] > div{
  flex: 0 0 100%;
  min-width:100%;
  max-width:100%;
}

article{
  overflow:hidden;
}

/* ANIMACIONES (FASE 2) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.reveal-active {
  opacity: 1;
  transform: translateY(0);
}
