* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: "Lato", sans-serif;
  color: #111;
  background: #f7f7f7;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header {
  background: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid #eee;
}
.logo {
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  color: #111;
  padding: 14px 0;
  display: inline-block;
}
.menu a {
  color: #111;
  text-decoration: none;
  margin-left: 18px;
  font-weight: 500;
}
.hamburguesa {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #111;
}
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fondo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fondoAnim 12s infinite ease-in-out;
}
.fondo1 {
  background-image: url("../images/hero-bg-1.png");
  animation-delay: 0s;
}
.fondo2 {
  background-image: url("../images/hero-bg-2.png");
  animation-delay: 4s;
}
.fondo3 {
  background-image: url("../images/hero-bg-3.png");
  animation-delay: 8s;
}
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(51, 51, 51, 0.83);
  z-index: 2;
}
.hero-contenido {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 40px 20px;
  align-items: center;
}
.texto {
  color: #fff;
}
.texto h1 {
  font-size: clamp(30px, 4.5vw, 48px);
  margin: 0 0 10px 0;
}
.texto p {
  margin: 0 0 18px 0;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}
.boton {
  display: inline-block;
  background: #fff;
  color: #111;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.boton:hover {
  background: #ddd;
}

.imagen-reloj {
  display: flex;
  justify-content: center;
  align-items: center;
}
.imagen-reloj img {
  max-width: 480px;
  width: 100%;
  display: block;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4));
  animation: flotar 6s ease-in-out infinite;
}
.polaroids {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 3rem 2rem;
}
.polaroid {
  background: #fff;
  padding: 0.5rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.3s;
}
.polaroid img {
  max-width: 160px;
  display: block;
  margin: 0 auto;
}
.polaroid span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.polaroid:hover {
  transform: translateY(-10px) rotate(0) scale(1.05);
  z-index: 10;
}
.p1 {
  transform: rotate(-5deg);
}
.p2 {
  transform: rotate(3deg);
}
.p3 {
  transform: rotate(-4deg);
}
.p4 {
  transform: rotate(2deg);
}
.p5 {
  transform: rotate(-6deg);
}
.p6 {
  transform: rotate(4deg);
}
.coleccion {
  padding: 28px 20px;
}
.coleccion h2 {
  text-align: center;
  margin: 0 0 18px 0;
}
.tarjetas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}
.tarjeta {
  background: #fff;
  padding: 14px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.tarjeta img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.6s ease;
}
.tarjeta:hover img {
  transform: scale(1.02);
}
.nombre {
  margin: 10px 0 6px 0;
  font-size: 1.05rem;
}
.precio {
  margin: 0 0 8px 0;
  color: #333;
  font-weight: 700;
}
.ver {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: #111;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
}
.estrellas {
  margin-top: 6px;
}
.estrellas span {
  color: #ccc;
  font-size: 18px;
  margin: 0 2px;
}
.estrellas .llena {
  color: #f1c40f;
}
.historia {
  background: #fafafa;
  padding: 40px 20px;
}
.historia-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.resumen {
  max-width: 900px;
  margin: 0 auto 30px auto;
  background: #fff;
  border-left: 5px solid #111;
  padding: 18px 22px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  position: relative;
}
.resumen::before {
  content: "⌚";
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 22px;
  opacity: 0.3;
}
.resumen h2 {
  margin-bottom: 12px;
}
.video-caja {
  width: 100%;
  max-width: 300px;
  margin: 30px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
  border: 4px solid #fff;
  transition: transform 0.3s ease;
  height: 200px;
}
.video-caja video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
}
.timeline {
  max-width: 1000px;
  margin: 18px auto;
  text-align: center;
}
.barra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  position: relative;
  padding: 20px 10px;
}
.barra::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 50%;
  height: 4px;
  background: #222;
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0.08;
}
.hito {
  position: relative;
  z-index: 2;
  width: 22%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.punto {
  width: 14px;
  height: 14px;
  background: #111;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.hito time {
  margin-top: 8px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
}
.burbuja {
  position: absolute;
  top: 140%;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: #fff;
  width: 180px;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transition: all 0.25s ease;
  text-align: center;
  pointer-events: none;
}
.burbuja img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-bottom: 6px;
}
.hito:hover .burbuja {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}
.hito:hover time {
  opacity: 0;
}
.hito:hover .burbuja time {
  opacity: 1;
}
.testimonios {
  padding: 28px 20px;
  text-align: center;
  background: #fff;
}
.lista-test {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  height: 120px;
}
.test {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(6px);
}
.test:nth-child(1) {
  animation: mostraTest 12s infinite;
  animation-delay: 0s;
}
.test:nth-child(2) {
  animation: mostraTest 12s infinite;
  animation-delay: 4s;
}
.test:nth-child(3) {
  animation: mostraTest 12s infinite;
  animation-delay: 8s;
}
.footer {
  background: #111;
  color: #fff;
  padding: 32px 0;
  margin-top: 28px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
}
.footer-container a {
  color: #fff;
  text-decoration: none;
}
@keyframes fondoAnim {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  30% {
    opacity: 1;
  }
  40% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes flotar {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes mostraTest {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  25% {
    opacity: 1;
    transform: translateY(0);
  }
  33% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (max-width: 1068px) {
  .hero-contenido {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }
  .tarjetas {
    grid-template-columns: repeat(2, 1fr);
  }
  .burbuja {
    width: 160px;
  }
}
@media (max-width: 900px) {
  .hero-contenido {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .imagen-reloj {
    margin-top: 20px;
  }
}
@media (max-width: 800px) {
  .historia-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .video-caja {
    max-width: 100%;
    margin: 20px auto;
  }
}
@media (max-width: 600px) {
  .hamburguesa {
    display: block;
  }
  .menu {
    position: absolute;
    top: 60px;
    right: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 99;
  }
  .menu a {
    margin: 0;
    padding: 8px;
    font-weight: 500;
    color: #111;
    display: block;
  }
  .menu.activo {
    display: flex;
  }
  .container {
    padding: 0 12px;
  }
  .texto h1 {
    font-size: 26px;
  }
  .tarjetas {
    grid-template-columns: 1fr;
  }
  .polaroids {
    gap: 10px;
  }
  .video-caja {
    width: 100%;
    min-width: unset;
  }
  .footer-container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
