/* ================================= */
/* VARIABLES */
/* ================================= */

:root {
  --bg-main: radial-gradient(circle at top left, #1a1028, #0b0b12);
  --bg-card: #141421;
  --bg-soft: #1d1d30;
  --border-color: #2b2b45;

  --accent: #7c3cff;
  --accent-light: #c084fc;

  --text-main: #ffffff;
  --text-soft: #d6d6ff;

  --radius: 8px;
  --transition: 0.25s ease;
}

/* ================================= */
/* RESET */
/* ================================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================================= */
/* BASE */
/* ================================= */

html {
  font-size: 14px;
}

body {
  font-family: "Exo 2", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  letter-spacing: 0.3px;
  min-height: 100vh;
}

/* ================================= */
/* HEADER */
/* ================================= */

header {
  text-align: center;
  padding: 1.2rem 0;
}

header h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: linear-gradient(135deg, #5b21b6, #7c3cff, #b86bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================================= */
/* NAVIGATION */
/* ================================= */

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

nav li {
  background: var(--bg-soft);
  padding: 0.8rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

nav li:hover {
  background: #24243a;
  box-shadow: 0 0 10px rgba(124, 60, 255, 0.3);
  transform: translateY(-3px);
}

nav a {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  display: block;
  text-decoration: none;
  -webkit-text-fill-color: var(--accent);
}

nav a:hover {
  color: var(--accent-light);
}

/* ================================= */
/* SECTIONS */
/* ================================= */

section {
  background: var(--bg-card);
  padding: 1rem;
  margin: 1.5rem auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: 0 0 10px rgba(124, 60, 255, 0.12);
  max-width: 900px;
}

/* ================================= */
/* HEADINGS */
/* ================================= */

h1, h2, h3, h4, h5 {
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.8rem;
}

h1 { font-size: 1.3rem; text-align: center; }
h2 { font-size: 1.05rem; }
h3 { font-size: 0.95rem; }
h4 { font-size: 0.85rem; }
h5 { font-size: 0.75rem; }

/* ================================= */
/* TEXT */
/* ================================= */

p {
  color: var(--text-soft);
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

blockquote {
  background: var(--bg-soft);
  padding: 0.8rem;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

/* ================================= */
/* LISTAS EN SECTIONS (BIBLIOGRAFÍA) */
/* ================================= */

section ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

section ul li {
  margin-bottom: 0.6rem;
  padding: 0.5rem 0.8rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: var(--transition);
}

section ul li:hover {
  background: #24243a;
}

section ul li a {
  color: var(--accent);
  font-size: 0.9rem;
  text-decoration: none;
  -webkit-text-fill-color: var(--accent);
}

section ul li a:hover {
  color: var(--accent-light);
}

/* ================================= */
/* VIDEO */
/* ================================= */

.video-wrapper {
  width: 100%;
  max-width: 720px;
  margin: 2rem auto;
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* ================================= */
/* IMAGES */
/* ================================= */

.img-container {
  display: grid;
  gap: 1rem;
}

.img-container img {
  width: 100%;
  border-radius: var(--radius);
}

/* ================================= */
/* SITIOS PERSONALES */
/* ================================= */

.referencias-personales {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.8rem;
}

.referencias-personales a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

.referencias-personales a:hover {
  color: var(--accent-light);
}

/* ================================= */
/* FORM */
/* ================================= */

.Encuesta {
  background: var(--bg-soft);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem auto;
  border: 1px solid var(--border-color);
}

.Encuesta form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

/* Cada grupo organizado verticalmente */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Elementos full width */
.form-group.full {
  grid-column: 1 / -1;
}

/* Inputs */
.Encuesta input,
.Encuesta select,
.Encuesta textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  background: #1a1a2b;
  color: var(--text-main);
  font-size: 0.9rem;
}

/* Botón */
.Encuesta button {
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: white;
  cursor: pointer;
  width: fit-content;
}

.Encuesta button:hover {
  background: #6b2ee6;
}

/* Desktop layout */
@media (min-width: 768px) {
  .Encuesta form {
    grid-template-columns: 1fr 1fr;
  }

  .form-group.full {
    grid-column: 1 / -1;
  }
}

/* ================================= */
/* FOOTER */
/* ================================= */

footer {
  text-align: center;
  padding: 1rem;
  background: #111120;
  font-size: 0.75rem;
}

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

@media (min-width: 768px) {
  html { font-size: 15px; }

  nav ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  html { font-size: 16px; }

  nav ul {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1400px) {
  html { font-size: 17px; }
}
