/* ============================================================
   home.css — Ampara
   Pantalla de inicio: contenedor, tarjeta, título, ícono,
   selector de idioma home, botón de inicio, animaciones.

   ✂  Eliminar de styles.css: líneas 49–317
   ============================================================ */


/* ============================================================
   CONTENEDOR PRINCIPAL
   ============================================================ */

.home-container {
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(1.5rem, env(safe-area-inset-top)) 1rem max(1.5rem, env(safe-area-inset-bottom));
}

body.dark-mode .home-container {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

/* Patrón decorativo de fondo */
.home-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff08" points="0,0 1000,300 1000,1000 0,700"/><polygon fill="%23ffffff04" points="0,300 1000,100 1000,400 0,600"/></svg>');
  pointer-events: none;
}


/* ============================================================
   TARJETA CENTRAL (glassmorphism)
   ============================================================ */

.home-content {
  text-align: center;
  max-width: 600px;
  width: 100%;
  z-index: 1;
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 3rem 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin: auto 0;
}

body.dark-mode .home-content {
  background: rgba(45, 55, 72, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
}


/* ============================================================
   TÍTULO Y SUBTÍTULO
   ============================================================ */

.home-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.2;
}

body.dark-mode .home-title {
  background: linear-gradient(135deg, #90cdf4, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-subtitle {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

body.dark-mode .home-subtitle { color: #9ca3af; }


/* ============================================================
   ÍCONO ANIMADO
   ============================================================ */

.home-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: heartbeat 2s ease-in-out infinite;
}

.home-icon img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(196deg) brightness(95%) contrast(72%);
}

@keyframes heartbeat {
  0%  { transform: scale(1);   }
  14% { transform: scale(1.1); }
  28% { transform: scale(1);   }
  42% { transform: scale(1.1); }
  70% { transform: scale(1);   }
}


/* ============================================================
   SELECTOR DE IDIOMA (home — versión grande)
   Distinto del .language-selector del header.
   ============================================================ */

.lang-selector-wrapper { margin-bottom: 2rem; }

.lang-selector-label {
  margin-bottom: 1rem;
  color: #6b7280;
  font-weight: 500;
}

body.dark-mode .lang-selector-label { color: #9ca3af; }

.lang-btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.language-selector-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.35rem 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.7);
  color: #374151;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  white-space: nowrap;
}

.language-selector-home:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.language-selector-home.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .language-selector-home {
  background: rgba(45, 55, 72, 0.7);
  color: #e2e8f0;
}

body.dark-mode .language-selector-home:hover {
  background: rgba(45, 55, 72, 0.9);
}

body.dark-mode .language-selector-home.active {
  background: linear-gradient(135deg, #4299e1, #9f7aea);
}


/* ============================================================
   BOTÓN INICIAR (efecto shimmer)
   ============================================================ */

.start-button {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 16px;
  font-size: 1.25rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
  position: relative;
  overflow: hidden;
}

/* Shimmer al hover */
.start-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.start-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(239, 68, 68, 0.4);
}

.start-button:hover::before { left: 100%; }

.start-button:active { transform: translateY(-1px); }


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .home-container {
    align-items: flex-start;
    padding: 1.25rem 1rem;
  }

  .home-content {
    padding: 2rem 1.25rem;
    margin: 0 auto;
    width: calc(100% - 0.5rem);
  }

  .home-title    { font-size: 2rem; }
  .home-subtitle { font-size: 1rem; }

  /* 2 columnas exactas en mobile */
  .language-selector-home {
    margin: 0;
    padding: 0.55rem 0.5rem;
    font-size: 0.82rem;
    flex: 0 0 calc(50% - 0.25rem);
    justify-content: center;
  }

  .start-button {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    width: 100%;
  }
}

@media (max-width: 400px) {
  .home-content {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .home-title {
    font-size: 1.75rem;
  }

  .home-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .home-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .language-selector-home {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
  }

  .start-button {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}
