/*=================================
= Variables de diseño
=================================*/
:root {
  --color-bg: #993366;
  --color-surface: rgba(255,255,255,0.10);
  --color-surface-2: rgba(0,0,0,0.30);
  --color-text: #ffffff;
  --color-accent: #1e90ff;
  --color-accent-2: #63b3ff;
  --color-success: #4caf50;
  --color-success-hover: #45a049;
  --color-link: #a0cfff;
  --color-border: #ffffff;

  --ff-base: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 15px;
  --space-4: 20px;
  --space-5: 28px;
  --container-max: 960px;
  --shadow-1: 0 6px 16px rgba(0,0,0,0.18);
  --shadow-2: 0 10px 28px rgba(0,0,0,0.22);
  --trans-fast: 150ms;
}

/*=============================
= Reseteos y base
=============================*/
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--ff-base);
  line-height: 1.5;
}

img { display: block; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/*=============================
= Layout principal
=============================*/
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-4);
  text-align: center;
}

/*=============================
= Header
=============================*/
header {
  border: 1px solid var(--color-border);
  padding: var(--space-2);
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.00));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 50px;
}

.logo-text {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.2vw + 1rem, 2.2rem);
}

/*=============================
= Menú
=============================*/
.menu { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; 
  margin-bottom: 20px;
}

.boton-gif {
  height: 22px;
}

/*=============================
= Historia
=============================*/
.historia-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
}

.historia-texto {
  max-width: 700px;
  margin: 0 auto;
}

/*=============================
= PILOTO – VIDEO BASE
=============================*/
.video-container {
  display: flex;
  justify-content: center;
  margin: 30px auto;
}

.piloto-video {
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  background: #000;
}

/*=============================
= Libro
=============================*/
.libro-tarjeta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
}

.libro-imagen img {
  width: 400px;
  box-shadow: var(--shadow-1);
}

/*=============================
= Responsive
=============================*/
@media (max-width: 768px) {
  .piloto-video {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 36px;
  }
}

/*=============================
= REGISTRO / LOGIN
=============================*/
.login-form,
.reg-form {
  max-width: 480px;
  margin: 25px auto;
  padding: 20px;
  text-align: left;
}

.login-form label,
.reg-form label {
  display: block;
  margin-top: 14px;
  font-weight: 600;
}

.login-form input,
.reg-form input,
.reg-form select {
  width: 100%;
  padding: 6px;
  margin-top: 4px;
}

.login-form input[type="submit"],
.reg-form input[type="submit"] {
  width: auto;
  margin-top: 16px;
  padding: 6px 14px;
  cursor: pointer;
}

.text-content {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 10px;
  font-weight: 600;
}



