@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Cinzel:wght@400;500;600&display=swap");
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #0a1628;
  background: url(https://vip2cars.com/img/otros/takeo-navidad.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

h1 {
  color: #ffffff;
  font-family: "Mountains of Christmas", cursive;
  font-size: 3.5em;
  font-weight: 700;
  line-height: 1.3;
}

.content {
  max-width: 90%;
  position: absolute;
  left: 0;
  bottom: 30px;
  right: 0;
  margin: auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

canvas {
  display: block;
  vertical-align: bottom;
}

/* ---- particles.js container ---- */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  top: 0;
  left: 0;
}

.titulo {
  color: #7A0C0C;
  text-align: center;

  /* Fondo más elegante */
  background: linear-gradient(
    145deg,
    rgba(120, 0, 0, 0.35),
    rgba(0, 80, 40, 0.35)
  );

  /* Glass effect refinado */
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);

  border: 1.5px solid rgba(177, 18, 38, 0.6);

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.55),
    inset 0 0 30px rgba(177, 18, 38, 0.12);


  border-radius: 20px;
  padding: 20px;

  /* Glow rojo VIP2CARS claro */
  text-shadow:
    0 0 6px rgba(255, 74, 74, 0.55),
    0 0 14px rgba(255, 74, 74, 0.35),
    0 0 24px rgba(255, 74, 74, 0.25);


  -webkit-animation: glowSoft 3s ease-in-out infinite alternate;


          animation: glowSoft 3s ease-in-out infinite alternate;
}

.icono-nieve,
.saludo-navidad i {
/*   color: #FF6B6B; rojo claro suave */

  text-shadow:
    0 0 6px rgba(255, 107, 107, 0.65),
    0 0 14px rgba(255, 107, 107, 0.45),
    0 0 26px rgba(255, 107, 107, 0.25);
}


@-webkit-keyframes glowSoft {
  from {
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.55),
      inset 0 0 20px rgba(177, 18, 38, 0.12);
  }
  to {
    box-shadow:
      0 25px 50px rgba(0, 0, 0, 0.65),
      inset 0 0 30px rgba(177, 18, 38, 0.25);
  }
}


@keyframes glowSoft {
  from {
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.55),
      inset 0 0 20px rgba(177, 18, 38, 0.12);
  }
  to {
    box-shadow:
      0 25px 50px rgba(0, 0, 0, 0.65),
      inset 0 0 30px rgba(177, 18, 38, 0.25);
  }
}

/* Media Queries para Tablet */
@media (max-width: 768px) {
  body {
    background-size: cover;
    background-position: center bottom;
  }

  h1 {
    font-size: 2em;
  }

  .content {
    max-width: 95%;
    bottom: 15px;
    padding: 0 10px;
  }

  .titulo {
    padding: 15px;
    border-radius: 15px;
  }
}

/* Media Queries para Mobile */
@media (max-width: 480px) {
  body {
    background-size: cover;
    background-position: center bottom;
  }

  h1 {
    font-size: 1.3em;
    line-height: 1.4;
  }

  .content {
    max-width: 98%;
    bottom: 10px;
    padding: 0 5px;
  }

  .titulo {
    padding: 12px;
    border-radius: 12px;
    -webkit-backdrop-filter: blur(3px);
            backdrop-filter: blur(3px);
  }
}

/* Para pantallas muy pequeñas */
@media (max-width: 360px) {
  h1 {
    font-size: 1.1em;
  }

  .titulo {
    padding: 10px;
  }
}

/* ============================================
   OVERLAY DE ROTACIÓN PARA MÓVILES Y TABLETS
   ============================================ */
/* .rotate-device {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 50%, #8b0000 100%);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
} */

/* .rotate-content {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 215, 0, 0.4);
  max-width: 85%;
  animation: fadeIn 0.5s ease-out;
} */

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.rotate-icon {
  font-size: 4em;
  margin-bottom: 15px;
  -webkit-animation: bounce 1.5s infinite;
          animation: bounce 1.5s infinite;
}

@-webkit-keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.rotate-content h2 {
  color: #fff;
  font-family: "Mountains of Christmas", cursive;
  font-size: 2em;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.rotate-content p {
  color: rgba(255, 255, 255, 0.9);
  font-family: Arial, sans-serif;
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 20px;
}

.rotate-animation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 2.5em;
}

.phone-icon {
  display: inline-block;
}

.phone-icon.rotated {
  transform: rotate(90deg);
}

.arrow {
  -webkit-animation: arrowMove 1s infinite;
          animation: arrowMove 1s infinite;
}

@-webkit-keyframes arrowMove {
  0%,
  100% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(10px);
    opacity: 0.5;
  }
}

@keyframes arrowMove {
  0%,
  100% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(10px);
    opacity: 0.5;
  }
}

/* Mostrar overlay en móviles y tablets en modo vertical (portrait) */
@media (max-width: 900px) and (orientation: portrait) {
  .rotate-device {
    display: flex;
  }

  .content,
  #particles-js {
    display: none;
  }
}

/* Estilos mejorados para modo horizontal en móviles */
@media (max-height: 500px) and (orientation: landscape) {
  body {
    background-position: center center;
    background-size: cover;
  }

  h1 {
    font-size: 1.8em;
    line-height: 1.2;
  }

  .content {
    bottom: 10px;
  }

  .titulo {
    padding: 10px 20px;
    border-radius: 12px;
  }
}

/* Tablets en modo horizontal */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  h1 {
    font-size: 2.5em;
  }

  .content {
    bottom: 25px;
  }

  .titulo {
    padding: 18px 25px;
  }
}

/* ============================================
   OVERLAY DE ROTACIÓN PARA MÓVILES Y TABLETS
   ============================================ */
.rotate-device {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background: linear-gradient(135deg, #6b6868 0%,  #E30613 50%, #000000 100%);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
}

.rotate-content {
  text-align: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.7); /* Fondo negro semitransparente */
  border-radius: 25px;
  backdrop-filter: blur(8px);
  border: 2px solid #E30613; /* borde rojo */
  max-width: 85%;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.rotate-icon {
  font-size: 4em;
  margin-bottom: 15px;
  animation: bounce 1.5s infinite;
  color: #FFFFFF; /* color blanco para el icono principal */
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.rotate-content h2 {
  color: #E30613; /* rojo principal */
  font-family: "Mountains of Christmas", cursive;
  font-size: 2em;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px #333333; /* sombra negra */
}

.rotate-content p {
  color: #FFFFFF; /* blanco */
  font-family: Arial, sans-serif;
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 20px;
}

.rotate-animation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 2.5em;
}

.phone-icon {
  display: inline-block;
  color: #c4242f; /* rojo */
}

.phone-icon.rotated {
  transform: rotate(90deg);
}

.arrow {
  animation: arrowMove 1s infinite;
  color: #FFFFFF; /* blanco */
}

@keyframes arrowMove {
  0%,
  100% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(10px);
    opacity: 0.5;
  }
}

/* Mostrar overlay en móviles y tablets en modo vertical (portrait) */
@media (max-width: 900px) and (orientation: portrait) {
  .rotate-device {
    display: flex;
  }
}

/* ===============================
   BOTÓN E INPUT NAVIDEÑO
================================ */

.btn-navidad {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #8b0000;
  border: none;
  padding: 12px 22px;
  font-size: 1em;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-navidad:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.nombre-box {
  display: none;
  gap: 10px;
  justify-content: center;
  margin-bottom: 15px;
}

.nombre-box input {
  padding: 10px 15px;
  border-radius: 20px;
  border: none;
  outline: none;
  font-size: 1em;
  width: 180px;
}

.nombre-box button {
  padding: 10px 18px;
  border-radius: 20px;
  border: none;
  background: #8b0000;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.nombre-box button:hover {
  background: #b22222;
}

.nombre-destacado {
  color: #E1061A;
  font-weight: 700;
  letter-spacing: 0.5px;

  text-shadow:
    /* brillo rojo claro cercano */
    0 0 4px rgba(255, 160, 160, 0.95),
    0 0 10px rgba(255, 90, 90, 0.65),

    /* halo rojo suave más amplio */
    0 0 18px rgba(225, 6, 26, 0.45),

    /* halo blanco limpio (luz, no mármol) */
    0 0 20px rgba(255, 255, 255, 0.25);
}

/* ===============================
   MODAL BIENVENIDA VIP2CARS
================================ */

.welcome-modal {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.95),
    rgba(0, 0, 0, 0.95)
  );
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-animation: fadeIn 0.8s ease;
          animation: fadeIn 0.8s ease;
}

.welcome-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );

  /* BORDE ROJO VIP2CARS */
  border: 1.5px solid rgba(177, 18, 38, 0.75);

  border-radius: 25px;
  padding: 35px 30px;
  width: 90%;
  max-width: 420px;
  text-align: center;

  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.7),
    0 0 28px rgba(177, 18, 38, 0.45),
    inset 0 0 22px rgba(177, 18, 38, 0.18);
}

.welcome-logo {
  max-width: 180px;
  margin-bottom: 20px;
}

.welcome-title {
  color: #fff;
  font-size: 1.9em;
  margin-bottom: 10px;
}

.welcome-subtitle {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 25px;
  font-size: 0.95em;
}

.welcome-card input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 30px;
  border: none;
  outline: none;
  font-size: 1em;
  margin-bottom: 20px;
  text-align: center;
}

.btn-premium {
  width: 100%;
  padding: 14px 18px;
  border-radius: 30px;
  border: none;

  /* Rojo corporativo elegante */
  background: linear-gradient(
    135deg,
    #8b0000,   /* rojo profundo */
    #b11226,   /* rojo VIP */
    #e1061a    /* rojo brillante controlado */
  );

  color: #fff;
  font-weight: 700;
  font-size: 1em;
  letter-spacing: 0.5px;
  cursor: pointer;

  box-shadow:
    0 8px 18px rgba(139, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}


.btn-premium:hover {
  transform: translateY(-2px) scale(1.02);

  box-shadow:
    0 12px 28px rgba(177, 18, 38, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);

  filter: brightness(1.08);
}

.btn-premium:active {
  transform: translateY(0) scale(0.98);

  box-shadow:
    0 6px 14px rgba(139, 0, 0, 0.55),
    inset 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Fade out elegante */
.welcome-modal.hide {
  -webkit-animation: fadeOut 0.6s ease forwards;
          animation: fadeOut 0.6s ease forwards;
}

@-webkit-keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
