@import url('https://fonts.googleapis.com/css?family=Titillium Web');

/* assets/css/styles.css */
:root {
  --primary-color: #549db4;
  --secondary-color: #fd1100b0;
  --accent-color: #ffffff;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --black: #000;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius: 0.5rem;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: url('../assets/img/hero-bg-light.webp');
  font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;

  background-size: cover;

  /* Centra la imagen */
  background-position: center center;

  /* Evita que la imagen se repita */
  background-repeat: no-repeat;

  /* Fija la imagen para que no se mueva al hacer scroll */
  background-attachment: fixed;

  /* Asegura que el fondo cubra todo el viewport */
  min-height: 100vh;

}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  /* Capa blanca semitransparente */
  z-index: -1;
  pointer-events: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  line-height: 1;
}
@media (max-width: 768px) {
    .header-left span {
        font-size: 20px; /* Reducir tamaño de fuente */
        line-height: 1.2;
        /* O si prefieres ocultarlo completamente: */
        /* display: none; */
    }
}

/* Para pantallas muy pequeñas (móviles) */
@media (max-width: 480px) {
    .header-left span {
        font-size: 14px;
        line-height: 0.5;
        /* O texto más corto: */
        /* content: "Concurso Innovación"; */
    }
}

.container {
  max-width: 1000px;
  margin: 80px auto;
  padding: 40px 20px;
  text-align: center;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #153e5b;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px;
  border-radius: 12px;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 250px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: initial;
}

.card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 15px;
  color: #000000;
}

.card-button {
  text-align: center;
  background: #3498db;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.card-button:hover {
  background: #1a5e8b;
}






.toolbar {
  position: sticky;
  top: 0;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  gap: 12px;
  padding: 15px 10px;
  background: #549db4;
  z-index: 999;

}

.toolbar button {
  padding: 12px 20px;
 background: #daedf3;
  color: rgb(28, 65, 107);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  transform: scale(0.95);
  transition: 0.5s ease;
  font-size: 1rem;
  margin-top: 10px;

}

.toolbar button:hover {
  transform: translateY(-2px);
  background: #daedf3;
  transform: translateY(-1px);
  color: var(--black);
}





.flipbook-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 10px;
  overflow: hidden;
  margin-top: 50px;
  transition: transform 0.2s ease;
}

#flipbook {
  width: 900px;
  height: 700px;
  transform-origin: center;
  border-radius: 10px;
  background: #ffffff00;
}



canvas {
  width: 100% !important;
  height: 100% !important;
  border-radius: 5px;
}

#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #e4edfa;
  color: #0f293d;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.spinner {
  border: 6px solid rgb(255, 255, 255);
  border-top: 6px solid #40c3ff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

#zoom-level {
  min-width: 50px;
  text-align: center;
  font-weight: 400;
  color: #fffdfd;
}

.toolbar button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page.empty-page {
  background: #f5f5f5;
  border: 1px dashed #ccc;
}

.error-message {
  display: none;
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  margin: 20px;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  z-index: 999;
}

.keyboard-shortcuts {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px;
  border-radius: 5px;
  font-size: 12px;
  display: none;
}

.help-button {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}





/* Estilos para el encabezado */
.header {
  display: flex;
  align-items: center;
  /* Centra verticalmente los elementos */
  justify-content: space-between;
  background-color: #11397a;

  color: rgb(255, 255, 255);
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;

}

.header-pages {
  display: flex;
  align-items: center;
  /* Centra verticalmente los elementos */
  background-color: #E0EFEA;
  padding: 10px 20px;
  color: rgb(255, 255, 255);
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
  top: 60;
  margin-bottom: 20px;

}

header button img {
  width: 1.6rem !important;
  height: 1.6rem !important;
}

.header h1 {
  font-size: 24px;
  margin: 0;
  color: #7a4c11;
}

.header-index-h2 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 0.8rem;
  margin: 0;
  color: #ffffff;
}

.header a {
  text-decoration: none;
  color: #ffffff;
}

.header a:hover {
  text-decoration: underline;
}

.logo img {
  height: 50px; /* Ajusta la altura según el tamaño de tu logotipo */
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.932)); 

}

.header-right .btn-primary {
  background: #549db4;
  border: 1px solid rgb(255, 255, 255);
  color: var(--white);
  padding: 0.625rem 1.25rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-right .btn-primary:hover {
  background: #daedf3;
  transform: translateY(-1px);
  color: var(--black);
}