@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

:root {
  --primary: #08B9A9;     /* Verde agua UTIC */
  --secondary: #072A3F;   /* Azul oscuro UPEA */
  --accent: #FFD166;      /* Dorado cálido */
  --bg: #F7FAFA;
  --card-bg: #fff;
  --text: #062B3C;
  --radius: 14px;
  --shadow: 0 8px 22px rgba(0,0,0,0.1);
}

/* === GENERAL === */
body {
  font-family: "Comic Sans MS", "Comic Neue", cursive, sans-serif;
  background: linear-gradient(180deg, var(--bg), #E5F7F6);
  color: var(--text);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow-x: hidden;
  
  /* Fondo animado */
  background-image: url('../img/fondo.svg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.screen {
  display: none;
  width: 100%;
  max-width: 500px;
  padding: 20px;
  text-align: center;
  animation: fadeIn 0.6s ease-in-out;
}
.screen.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === TARJETAS === */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite alternate;
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}

.logo {
  width: 200px;       /* antes 80px, ahora más grande */
  max-width: 35%;     /* para que no exceda el ancho de la tarjeta */
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

/* Efecto hover opcional */
.logo:hover {
  transform: scale(1.1);
}

/* Ajuste para móviles */
@media (max-width: 600px) {
  .logo {
    width: 100px;     /* más pequeño en pantallas chicas */
    max-width: 40%;
  }
}


h1, h2 {
  color: var(--secondary);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 1.8rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h2 {
  font-size: 1.4rem;
  color: var(--primary);
}

p {
  color: #315a60;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* === BOTONES === */
.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 26px;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 25px;
  transition: transform 0.25s ease, background 0.25s ease;
  font-size: 1.05rem;
}
.btn-primary:hover {
  background: #099c8e;
  transform: scale(1.05);
}

/* === OPCIONES === */
#progress {
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--secondary);
  font-size: 1.1rem;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  background: #f5f9f9;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.25s;
}
.option-btn:hover {
  border-color: var(--primary);
  background: #eaf7f6;
  transform: scale(1.02);
}
.option-btn.selected {
  border-color: var(--accent);
  background: #fffbe6;
}
.option-btn.correct {
  background: #c9f7e4;
  border-color: #1cc487;
}
.option-btn.wrong {
  background: #f9d3d3;
  border-color: #e33;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  p, .option-btn, .btn-primary { font-size: 1rem; }
  .card { padding: 22px 18px; }
}
