/* === Estilos creativos pero caseros === */


* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }


body{
  background: linear-gradient(180deg, #ffe7c1, #fdfdfd);
  color: #000;
  font-family: "Times New Roman", Times, serif;
  font-size: 14pt;
  line-height: 1.55;
  padding: 2rem;
}


main{
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  padding: 2.2rem 2.6rem;
  box-shadow: 0 10px 30px rgba(20,20,20,0.08);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
}


header {
  text-align: center;
  margin-bottom: 1.2rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

header h1 {
  font-size: 30pt;
  font-weight: bold;
  background: linear-gradient(90deg, #993300, #DE991C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.35rem;
}

.frase-inicial {
  display: inline-block;
  font-style: italic;
  color: #CC6600;
  font-size: 14pt;
  margin-top: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  position: relative;
}

.frase-inicial::before {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 40%;
  background: #ffe5b4;
  z-index: -1;
}


nav {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0 1.4rem 0;
}

nav a {
  text-decoration: none;
  color: #993300;
  font-weight: 600;
  font-size: 11pt;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  position: relative;
}

nav a:hover {
  background: #e6f2e6;
  border-radius: 10px;
}


section {
  margin-bottom: 1.6rem;
  padding: 1rem;
  border-radius: 8px;
  background: #fdfcf9;
}

section h2 {
  font-size: 24pt;
  font-weight: bold;
  background: linear-gradient(90deg, #993300, #CC6600);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.45rem;
}


section p {
  margin-bottom: 0.65rem;
  text-align: justify;
  font-size: 14pt;
}


table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.4rem;
  font-size: 12pt;
}

table th, table td {
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(0,0,0,0.06);
}

table th {
  font-size: 18pt;
  background: #fdf3e6;
  color: #993300;
}

table tr:nth-child(even) td {
  background: #f9f9f9;
}

table tr:hover td {
  background: #fff6e6;
}


#testimonios ul li {
  border-left: 4px solid #DE991C;
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
  border-radius: 6px;
  font-style: italic;
  background: #fffefb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#testimonios ul li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}


#poema {
  background: linear-gradient(180deg, #fffaf4, #fff3e6);
  border-left: 5px solid #993300;
  padding: 1rem;
  border-radius: 6px;
  font-family: "Georgia", serif;
}

#poema p:first-letter {
  font-size: 28pt;
  float: left;
  line-height: 1;
  margin-right: 6px;
  color: #CC6600;
}


#cuestionario ul {
  list-style: none;
  padding-left: 0;
  counter-reset: pregunta;
}

#cuestionario ul li {
  margin: 0.8rem 0;
  padding: 0.6rem 1rem 0.6rem 3rem;
  border: 1px solid #f0e0c0;
  border-radius: 8px;
  background: #fafafa;
  position: relative;
}

#cuestionario ul li::before {
  counter-increment: pregunta;
  content: counter(pregunta);
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  background: #DE991C;
  color: #fff;
  font-weight: bold;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}


#galeria {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

#galeria img {
  width: calc(50% - 0.5rem);
  max-width: 420px;
  height: auto;
  border: 6px solid #fff;
  box-shadow: 2px 6px 16px rgba(30,30,30,0.2);
  transition: transform 0.3s ease, rotate 0.3s ease;
}

#galeria img:nth-child(odd) {
  transform: rotate(-1deg);
}

#galeria img:nth-child(even) {
  transform: rotate(1deg);
}

#galeria img:hover {
  transform: scale(1.05) rotate(0deg);
}


@media (max-width: 720px) {
  body { padding: 1rem; }
  main { padding: 1.2rem; }
  header h1 { font-size: 22pt; }
  #galeria img { width: 100%; transform: none; }
}
/* Trivia */
#trivia {
  margin-top: 2rem;
  padding: 1rem;
  background: #fffaf4;
  border-left: 5px solid #993300;
  border-radius: 6px;
}

#trivia h2 {
  font-size: 22pt;
  color: #993300;
  margin-bottom: 1rem;
}

#pregunta {
  font-weight: bold;
  margin-bottom: 0.8rem;
  color: #2b2b2b;
}

#opciones button {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0.4rem 0;
  padding: 0.6rem;
  font-size: 14pt;
  border: 1px solid #DE991C;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

#opciones button:hover {
  background: #fff3e0;
}

#siguiente {
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background: #993300;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14pt;
  cursor: pointer;
  display: none; 
}

#siguiente:hover {
  background: #cc6600;
}

#resultado {
  margin-top: 0.8rem;
  font-weight: bold;
  color: #993300;
}