/* ===== ESTILO MODERNO UNIVERSITARIO 2026 ===== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --background: #f4f7fb;
  --card-background: #ffffff;
  --text-color: #1e293b;
  --border-color: #e2e8f0;
  --shadow-standard: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ===== BASE ===== */
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #eef4ff, #f8fafc);
  color: var(--text-color);
}

* {
  box-sizing: border-box;
}

/* ===== CONTENEDOR ===== */
.container {
  max-width: 950px;
  width: 95%;
  margin: 30px auto;
  background: var(--card-background);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-standard);
  border: 1px solid var(--border-color);
}

/* ===== HEADER ===== */
.header {
  text-align: center;
  margin-bottom: 25px;
}

.header h1 {
  font-size: 2rem;
  margin: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===== SECCIONES ===== */
.section {
  margin-bottom: 25px;
}

.section-title {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  );
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.25);
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* ===== FORMULARIO ===== */
.form-group {
  margin-bottom: 15px;
}

label {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  color: var(--text-color);
}

/* ===== INPUTS ===== */
input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #ffffff;
  font-size: 14px;
  transition: all 0.25s ease-in-out;
}

input:hover,
textarea:hover,
select:hover {
  border-color: #cbd5f5;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* ===== CHECKBOXES ===== */
.check-group {
  display: grid;
  grid-template-columns: 25px 200px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.check-group input[type="checkbox"] {
  width: auto;
}

/* ===== FILE INPUT ===== */
input[type="file"] {
  padding: 8px;
}

/* ===== PREVISUALIZACIÓN ===== */
.preview-box {
  margin-top: 15px;
  padding: 18px;
  border-radius: 16px;
  background: #fafcff;
  border: 1px solid #dbeafe;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  text-align: center;
  display: none;
}

.preview-box p {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

#previewImagen {
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===== BOTONES ===== */
button {
  width: 100%;
  padding: 12px 22px;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  );
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  margin-top: 10px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}

button:active {
  transform: scale(0.98);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .check-group {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 20px;
  }
}

/* ===== IMPRESIÓN ===== */
@media print {

  @page {
    size: A4;
    margin: 12mm;
  }

  body {
    background: white !important;
  }

  .container {
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
  }

  button {
    display: none !important;
  }

  .section-title {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: none;
  }

  input,
  textarea,
  select {
    border: none;
    border-bottom: 1px solid #555;
    border-radius: 0;
    box-shadow: none;
  }

  .preview-box {
    box-shadow: none;
    background: white;
    border: 1px solid #999;
  }
}
/* ===== FOOTER ===== */
.footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  opacity: 0.8;
  font-size: 13px;
  color: #64748b;
}

.footer img {
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}
/* ===== FORZAR SIN NEGRITAS ===== */
h1,
h2,
h3,
h4,
h5,
h6,
label,
button,
.section-title,
.preview-box p,
.footer,
.footer *,
strong,
b {
  font-weight: 400 !important;
}