/* Importar fuente moderna de Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");

/* Variables CSS */
:root {
  --primary-color: #e63946;
  --secondary-color: #457b9d;
  --dark-color: #1d3557;
  --light-color: #f1faee;
  --text-gray: #6c757d;
  --gradient-1: #1a1a2e;
  --gradient-2: #16213e;
  --gradient-3: #0f3460;
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  color: var(--light-color);
  background: linear-gradient(
    135deg,
    var(--gradient-1) 0%,
    var(--gradient-2) 50%,
    var(--gradient-3) 100%
  );
  min-height: 100vh;
  position: relative;
}

/* Fondo de estrellas animadas */
.stars,
.twinkling {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.stars {
  background: transparent
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48Y2lyY2xlIGN4PSIxMCIgY3k9IjEwIiByPSIxIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjUiLz48Y2lyY2xlIGN4PSI1MCIgY3k9IjMwIiByPSIwLjUiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuMyIvPjxjaXJjbGUgY3g9IjkwIiBjeT0iNjAiIHI9IjEiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuNCIvPjxjaXJjbGUgY3g9IjEzMCIgY3k9IjQwIiByPSIwLjgiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuNiIvPjxjaXJjbGUgY3g9IjE3MCIgY3k9IjgwIiByPSIwLjYiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuMyIvPjxjaXJjbGUgY3g9IjMwIiBjeT0iMTIwIiByPSIxIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjUiLz48Y2lyY2xlIGN4PSI3MCIgY3k9IjE1MCIgcj0iMC43IiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjQiLz48Y2lyY2xlIGN4PSIxMTAiIGN5PSIxODAiIHI9IjAuNSIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4zIi8+PGNpcmNsZSBjeD0iMTUwIiBjeT0iMTQwIiByPSIwLjkiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuNSIvPjwvc3ZnPg==")
    repeat;
}

.twinkling {
  background: transparent
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48Y2lyY2xlIGN4PSI0MCIgY3k9IjUwIiByPSIxLjUiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuNyIvPjxjaXJjbGUgY3g9IjEyMCIgY3k9IjEwMCIgcj0iMSIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC42Ii8+PGNpcmNsZSBjeD0iMTYwIiBjeT0iMzAiIHI9IjEuMiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC44Ii8+PGNpcmNsZSBjeD0iODAiIGN5PSIxNjAiIHI9IjAuOCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC41Ii8+PC9zdmc+")
    repeat;
  animation: twinkle 200s linear infinite;
}

@keyframes twinkle {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-2000px);
  }
}

/* Contenedor principal */
.container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.content {
  text-align: center;
  max-width: 800px;
  width: 100%;
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo */
.logo-container {
  margin-bottom: 3rem;
  animation: slideDown 1s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  max-width: 450px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(230, 57, 70, 0.3));
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Animación de engranajes */
.gears-animation {
  position: relative;
  margin: 2rem auto;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.gear {
  width: 80px;
  height: 80px;
  opacity: 0.3;
}

.gear-1 {
  animation: rotateClockwise 8s linear infinite;
}

.gear-2 {
  animation: rotateCounterClockwise 6s linear infinite;
  width: 60px;
  height: 60px;
}

@keyframes rotateClockwise {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateCounterClockwise {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

/* Título */
.title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(230, 57, 70, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px rgba(230, 57, 70, 0.5),
      0 0 30px rgba(230, 57, 70, 0.3);
  }
  to {
    text-shadow: 0 0 30px rgba(230, 57, 70, 0.8),
      0 0 40px rgba(230, 57, 70, 0.5);
  }
}

/* Descripción */
.description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(241, 250, 238, 0.9);
  margin-bottom: 3rem;
  font-weight: 300;
}

/* Contador regresivo */
.countdown-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 3rem auto;
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(230, 57, 70, 0.3);
  border-radius: 15px;
  padding: 1.5rem 2rem;
  min-width: 120px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.countdown-item::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-color), transparent);
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.countdown-item:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
}

.countdown-item:hover::before {
  opacity: 0.2;
}

.countdown-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.countdown-label {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(241, 250, 238, 0.7);
  font-weight: 400;
}

/* Información de contacto */
.contact-info {
  margin: 3rem auto 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(230, 57, 70, 0.2);
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: rgba(241, 250, 238, 0.8);
}

.email-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.email-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.email-link:hover::after {
  width: 100%;
}

.email-link:hover {
  color: #ff6b6b;
}

/* Enlaces sociales */
.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.social-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(230, 57, 70, 0.3);
  border-radius: 50%;
  color: var(--light-color);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-icon:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.5);
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .title {
    font-size: 2.5rem;
  }

  .description {
    font-size: 1rem;
  }

  .logo {
    max-width: 300px;
  }

  .countdown-container {
    gap: 1rem;
  }

  .countdown-item {
    min-width: 90px;
    padding: 1rem 1.5rem;
  }

  .countdown-number {
    font-size: 2rem;
  }

  .countdown-label {
    font-size: 0.75rem;
  }

  .gears-animation {
    height: 100px;
  }

  .gear {
    width: 60px;
    height: 60px;
  }

  .gear-2 {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }

  .title {
    font-size: 2rem;
  }

  .logo {
    max-width: 250px;
  }

  .countdown-item {
    min-width: 70px;
    padding: 0.8rem 1rem;
  }

  .countdown-number {
    font-size: 1.5rem;
  }

  .social-icon {
    width: 40px;
    height: 40px;
  }

  .social-icon svg {
    width: 20px;
    height: 20px;
  }
}
