:root {
  --primary: #121212;
  --secondary: #1e88e5; /* Azul profesional */
  --accent: #ffc107; /* Dorado elegante */
  --dark: #0d0d0d;
  --light: #e0e0e0;
  --radius: 6px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  --border: 1px solid rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
}

.landing-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.landing-header {
  text-align: center;
  padding: 6rem 0 4rem;
  background: linear-gradient(160deg, var(--primary), var(--dark));
  border-bottom: var(--border);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
  position: relative;
}

.landing-header h1 {
  font-size: 3rem;
  color: var(--light);
  max-width: 800px;
  margin: 0 auto;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.landing-header h1::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: all 0.5s;
}

.landing-header h1:hover::after {
  left: 125%;
}

.tagline {
  font-size: 1.3rem;
  opacity: 0.8;
  transition: color 0.4s ease;
}

.landing-header:hover .tagline {
  color: var(--accent);
}

/* Animación de entrada */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Section */
.prediction-form-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 90vw;
  background: rgba(18, 18, 18, 0.9);
  padding: 3rem;
  border-radius: var(--radius);
  border: var(--border);
  box-shadow: var(--shadow);
}

.prediction-form-section h2 {
  color: var(--secondary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.prediction-form select {
  background-color: var(--primary);
  color: var(--light);
  border: var(--border);
}

.prediction-form option {
  background-color: var(--primary);
  color: var(--light);
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-item {
  background: rgba(18, 18, 18, 0.8);
  padding: 2rem;
  border-radius: var(--radius);
  border: var(--border);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.benefit-item h3 {
  color: var(--secondary);
}
/* Centrar el contenido del formulario */
.prediction-form-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.prediction-form {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: stretch;
}

.prediction-form h2 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.prediction-form select,
.prediction-form button {
  width: 100%;
}

/* Resultados e insight mejor alineados */
.resultado,
.ia-insight,
.error {
  width: 100%;
  text-align: center;
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1rem;
}

.ia-insight strong {
  display: block;
  margin-bottom: 0.5rem;
}

/* Beneficios - mejor separación vertical */
.benefits-grid {
  margin-top: 4rem;
  gap: 2rem;
}

.tech-stack-section {
  background: rgba(18, 18, 18, 0.95);
  padding: 3rem 2rem;
  border-radius: var(--radius);
  margin: 4rem 0;
  border: var(--border);
}

.tech-list {
  list-style: none;
  display: grid;
  gap: 1.5rem;
}

.tech-list li {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--secondary);
}

.tech-list strong {
  color: var(--secondary);
}

.landing-footer {
  background: var(--primary);
  padding: 3rem;
  text-align: center;
  border-top: var(--border);
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-nav a {
  color: var(--light);
  text-decoration: none;
  padding: 0.5rem 1rem;
  position: relative;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.footer-nav a:hover::after {
  width: 100%;
}

/* Chat Bubble minimalista */
.chat-bubble {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent);
  color: #000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  border: none;
  transition: transform 0.3s ease;
}

.chat-bubble:hover {
  transform: scale(1.1);
}

/* Inputs */
input,
select,
button {
  background: rgba(255, 255, 255, 0.05);
  border: var(--border);
  color: var(--light);
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--secondary);
}

button,
.btn-primary {
  background: var(--secondary);
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

button:hover,
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* Resultados y errores */
.resultado {
  background: rgba(30, 136, 229, 0.1);
  border: var(--border);
  color: var(--secondary);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

.error {
  background: rgba(255, 193, 7, 0.1);
  color: var(--accent);
  border: var(--border);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .landing-container {
    padding: 0 1rem;
  }
  .landing-header h1 {
    font-size: 2rem;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .footer-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}
