/* ===================================== */
/*         VARIABLES GLOBALES            */
/* ===================================== */
:root {
  /* Colores base */
  --color-bg-primary: #121212;
  --color-bg-secondary: #1e1e1e;
  --color-bg-tertiary: #242424;
  --color-text-primary: #e0e0e0;
  --color-text-secondary: #b0b0b0;
  --color-accent: #ff6f61;
  --color-accent-light: #ff8a75;
  --color-border: #333;
  --color-blanco: #ffff;

  /* Botones */
  --btn-primary-bg: #ff6f61;
  --btn-primary-hover: #ff8a75;
  --btn-success-bg: #28a745;
  --btn-success-hover: #218838;

  /* Sombras */
  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-heavy: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* ===================================== */
/*        RESETEO Y GLOBALES             */
/* ===================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  /* Recomendado: limitar qué propiedades transicionan 
     (ej. background-color, color, transform...). */
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  /* Importante: para que el menú fijo no se superponga al contenido */
  padding-top: 4rem;  /* Ajusta según la altura real de tu navbar */
}

/* ===================================== */
/*       SECCIONES A PANTALLA COMPLETA   */
/* ===================================== */
.section-full {
  min-height: 100vh;     /* Ocupa toda la altura de la ventana */
  display: flex;         /* Flexbox para centrar contenido vertical y horizontal */
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Paddings estándar para todas las secciones */
section {
  padding: 80px 0;
}

/* Fondo oscuro para secciones que lo requieran */
.section-dark {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

/* Ajustes responsivos para secciones */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  section {
    padding: 50px 0;
  }
}

/* ===================================== */
/*               NAVBAR                  */
/* ===================================== */
.navbar {
  position: fixed;             /* Barra fija en la parte superior */
  top: 0;
  width: 100%;
  z-index: 999;               /* Para superponerlo sobre el contenido */
  background-color: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
}

.navbar-brand {
  color: var(--color-accent);
  font-size: 1.75rem;
  font-weight: bold;
}

.nav-link {
  color: var(--color-text-secondary);
  margin-left: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent-light);
  background-color: var(--color-bg-tertiary);
  border-radius: 5px;
  padding: 0.5rem 0.75rem;
}

/* Ajuste responsivo del navbar */
.navbar-toggler {
  border: none;
}
.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

/* ===================================== */
/*                HERO                   */
/* ===================================== */
.hero {
  position: relative;
  min-height: 100vh; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("../img/qr_fondohero.png") center/cover no-repeat;
  background-blend-mode: multiply; 
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  animation: bgScale 20s infinite alternate ease-in-out;
}

/* Contenido real por encima de la animación */
.hero .container {
  position: relative;
  z-index: 2; 
  text-align: center;
  color: var(--color-text-primary);
}


.hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-text-primary);
}

.hero .hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.hero .hero-content p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero .hero-content a.btn {
  font-size: 1.125rem;
  padding: 0.8rem 1.75rem;
  background-color: var(--btn-primary-bg);
  border: none;
  border-radius: 50px;
  box-shadow: var(--shadow-light);
}

.hero .hero-content a.btn:hover {
  background-color: var(--btn-primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

@keyframes bgScale {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

@media (max-width: 768px) {
  .hero .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero .hero-content p {
    font-size: 1.125rem;
  }
}

@media (max-width: 576px) {
  .hero .hero-content h1 {
    font-size: 2rem;
  }
  .hero .hero-content p {
    font-size: 1rem;
  }
}



/* ===================================== */
/*              PALABRAS CLAVE           */
/* ===================================== */
.keyword {
  font-weight: bold;
  color: var(--color-accent);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.keyword:hover {
  color: var(--color-accent-light);
  transform: scale(1.05);
}

/* ===================================== */
/*     FORMULARIOS / OPCIONES (DETAILS)  */
/* ===================================== */
.option-group {
  border: 1px solid var(--color-border);
  border-radius: 5px;
  padding: 0.4rem 1rem;
  background-color: var(--color-bg-tertiary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
}

/* Animación al abrir un <details> */
.option-group[open] {
  border-color: var(--color-accent);
  box-shadow: 0 4px 10px rgba(255, 111, 97, 0.5);
  transform: translateY(-2px);
}

/* Estilo del summary dentro de .option-group */
.option-group summary {
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.4rem 0.65rem;
  outline: none;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-accent);
}

.option-group[open] summary {
  background-color: var(--color-bg-secondary);
}

/* Ajustes para fieldsets anidados en .option-group */
.option-group fieldset {
  margin-top: 1rem;
}

/* Si usas details en otras partes */
details summary {
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem 0;
  color: var(--color-accent);
  outline: none;
}

details[open] summary {
  border-bottom: 1px solid var(--color-border);
}

/* ===================================== */
/*        RESULTADOS (QR, BARCODE)       */
/* ===================================== */
.result-container {
  min-height: 400px;
  background-color: var(--color-blanco);
  border: 2px dashed var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: popIn 0.5s ease-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-container:hover {
  box-shadow: var(--shadow-heavy);
  transform: scale(1.02);
}

.flotante {
  position: sticky;
  top: 20px;
}

/* ===================================== */
/*          BOTONES Y ENLACES            */
/* ===================================== */
.btn {
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-primary {
  background-color: var(--btn-primary-bg) !important;
  border: none !important;
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  background-color: var(--btn-primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

.btn-success {
  background-color: var(--btn-success-bg) !important;
  border: none !important;
  box-shadow: var(--shadow-light);
}

.btn-success:hover {
  background-color: var(--btn-success-hover) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

/* ===================================== */
/*               FOOTER                  */
/* ===================================== */
.footer {
  background: linear-gradient(135deg, #1e1e1e, #242424);
  color: #b0b0b0;
  padding: 1.5rem 0;
  border-top: 2px solid #333;
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

.social-link {
  font-size: 1.75rem;
  color: #b0b0b0;
  margin-left: 15px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:first-child {
  margin-left: 0;
}

.social-link:hover {
  color: var(--color-accent);
  transform: translateY(-2px);
}

.footer a {
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--color-accent);
}

/* Ajustes responsivos para el footer */
@media (max-width: 576px) {
  .footer .row {
    text-align: center;
  }
}

/* ===================================== */
/*             ANIMACIONES               */
/* ===================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}





