:root {
  --rojo-principal: #e10600;
  --rojo-oscuro: #b80000;
  --negro: #161616;
  --gris-oscuro: #2c2c2c;
  --gris-texto: #5f5f5f;
  --gris-linea: #dddddd;
  --gris-fondo: #f5f5f7;
  --blanco: #ffffff;
  --sombra: 0 20px 50px rgba(0, 0, 0, 0.12);
  --radio-xl: 28px;
  --radio-lg: 20px;
  --radio-md: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.pagina-login-profesores {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--gris-fondo);
  color: var(--negro);
  min-height: 100vh;
}

.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.login-brand-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(225, 6, 0, 0.98), rgba(160, 0, 0, 0.95)),
    url("../img/puntografico.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.brand-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 25%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 30%);
  pointer-events: none;
}

.brand-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  color: var(--blanco);
}

.brand-logo {
  width: 220px;
  max-width: 100%;
  margin-bottom: 24px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.brand-badge {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}

.brand-content h1 {
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: 1.05;
  margin-bottom: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin-bottom: 34px;
}

.brand-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mini-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 18px;
  backdrop-filter: blur(10px);
}

.mini-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.mini-card p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: linear-gradient(180deg, #ffffff, #f7f7f8);
}

.login-form-box {
  width: 100%;
  max-width: 470px;
  background: var(--blanco);
  border-radius: var(--radio-xl);
  box-shadow: var(--sombra);
  padding: 42px 34px;
  border: 1px solid #efefef;
}

.form-header {
  margin-bottom: 28px;
}

.form-kicker {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--rojo-principal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.form-header h2 {
  font-size: 2.1rem;
  color: var(--negro);
  margin-bottom: 12px;
}

.form-subtitle {
  color: var(--gris-texto);
  line-height: 1.6;
  font-size: 1rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--gris-oscuro);
}

.input-group input {
  width: 100%;
  height: 54px;
  border-radius: var(--radio-md);
  border: 1px solid var(--gris-linea);
  background: #fff;
  padding: 0 16px;
  font-size: 1rem;
  color: var(--negro);
  outline: none;
  transition: 0.25s ease;
}

.input-group input:focus {
  border-color: var(--rojo-principal);
  box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.08);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 74px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--rojo-principal);
  font-weight: 700;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
}

.toggle-password:hover {
  background: rgba(225, 6, 0, 0.08);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.remember-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gris-texto);
  font-size: 0.95rem;
}

.remember-check input {
  accent-color: var(--rojo-principal);
}

.link-btn {
  border: none;
  background: transparent;
  color: var(--rojo-principal);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.94rem;
}

.link-btn:hover {
  text-decoration: underline;
}

.mensaje-login {
  min-height: 24px;
  font-size: 0.94rem;
  font-weight: 600;
}

.mensaje-login.error {
  color: #c62828;
}

.mensaje-login.ok {
  color: #1f8f49;
}

.btn-login {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rojo-principal), var(--rojo-oscuro));
  color: var(--blanco);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 16px 30px rgba(225, 6, 0, 0.22);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(225, 6, 0, 0.26);
}

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.login-footer-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #ededed;
}

.login-footer-note p {
  color: var(--gris-texto);
  font-size: 0.94rem;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: 420px;
    padding: 40px 24px;
  }

  .brand-cards {
    grid-template-columns: 1fr;
  }

  .login-form-panel {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .brand-content h1 {
    font-size: 2.2rem;
  }

  .login-form-box {
    padding: 30px 20px;
    border-radius: 22px;
  }

  .form-header h2 {
    font-size: 1.8rem;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   DASHBOARD PROFESOR
========================= */

.pagina-dashboard-profesor {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f5f5f7;
  color: #161616;
  min-height: 100vh;
}

.dashboard-header {
  background: #ffffff;
  border-bottom: 1px solid #ececec;
  position: sticky;
  top: 0;
  z-index: 20;
}

.dashboard-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dashboard-logo {
  width: 90px;
  height: auto;
}

.dashboard-kicker {
  color: #e10600;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.dashboard-brand h1 {
  font-size: 1.8rem;
  margin: 0;
}

.dashboard-user-box {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.dashboard-user-box span {
  font-weight: 600;
  color: #333;
}

.dashboard-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 24px 60px;
}

.dashboard-welcome {
  margin-bottom: 28px;
}

.welcome-card {
  background: linear-gradient(135deg, #ffffff, #fdfdfd);
  border: 1px solid #ededed;
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.section-kicker {
  color: #e10600;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.welcome-card h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.welcome-card p {
  color: #5f5f5f;
  line-height: 1.7;
  max-width: 780px;
}

.dashboard-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn-principal,
.btn-secundario {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-principal {
  background: linear-gradient(135deg, #e10600, #b80000);
  color: #fff;
  border: none;
  box-shadow: 0 14px 26px rgba(225, 6, 0, 0.18);
}

.btn-principal:hover {
  transform: translateY(-2px);
}

.btn-secundario {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadada;
}

.btn-secundario:hover {
  background: #f7f7f7;
}

.dashboard-resumen {
  margin-bottom: 28px;
}

.resumen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.resumen-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.05);
}

.resumen-label {
  display: block;
  font-size: 0.95rem;
  color: #6a6a6a;
  margin-bottom: 10px;
}

.resumen-card strong {
  font-size: 2rem;
  color: #161616;
}

.dashboard-listado {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
}

.listado-header {
  margin-bottom: 20px;
}

.listado-header h3 {
  font-size: 1.6rem;
}

.tabla-contenedor {
  overflow-x: auto;
}

.tabla-materiales {
  width: 100%;
  border-collapse: collapse;
}

.tabla-materiales th,
.tabla-materiales td {
  text-align: left;
  padding: 16px 14px;
  border-bottom: 1px solid #eeeeee;
  font-size: 0.95rem;
}

.tabla-materiales th {
  color: #444;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sin-datos {
  text-align: center !important;
  color: #777;
  padding: 28px 14px !important;
}

.estado-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.estado-pendiente {
  background: #fff4dd;
  color: #9b6800;
}

.estado-publicado {
  background: #e7f7ec;
  color: #18794e;
}

.estado-revision {
  background: #eaf2ff;
  color: #215fc0;
}

.estado-rechazado {
  background: #fdeaea;
  color: #b42318;
}

@media (max-width: 900px) {
  .resumen-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-brand h1 {
    font-size: 1.5rem;
  }

  .welcome-card h2 {
    font-size: 1.65rem;
  }
}

/* =========================
   SUBIR MATERIAL
========================= */

.pagina-subir-material {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f5f5f7;
  color: #161616;
  min-height: 100vh;
}

.subir-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 24px 60px;
}

.subir-hero {
  margin-bottom: 24px;
}

.subir-hero-card {
  background: linear-gradient(135deg, #ffffff, #fcfcfc);
  border: 1px solid #ececec;
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.05);
}

.subir-hero-card h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.subir-hero-card p {
  color: #5f5f5f;
  line-height: 1.7;
  max-width: 800px;
}

.formulario-subida-section {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
}

.formulario-subida {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.grid-formulario {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.campo-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.campo-full {
  grid-column: 1 / -1;
}

.campo-form label {
  font-size: 0.96rem;
  font-weight: 700;
  color: #2c2c2c;
}

.campo-form input,
.campo-form select,
.campo-form textarea {
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
  font-size: 0.98rem;
  color: #161616;
  outline: none;
  transition: 0.2s ease;
}

.campo-form input,
.campo-form select {
  min-height: 52px;
}

.campo-form textarea {
  resize: vertical;
  min-height: 120px;
}

.campo-form input:focus,
.campo-form select:focus,
.campo-form textarea:focus {
  border-color: #e10600;
  box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.08);
}

.bloque-opciones,
.bloque-archivo {
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 22px;
  padding: 22px;
}

.bloque-opciones h3,
.bloque-archivo h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.opciones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.check-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: 0.2s ease;
  font-weight: 600;
  color: #2f2f2f;
}

.check-card:hover {
  border-color: #e10600;
  background: #fff8f8;
}

.check-card input {
  accent-color: #e10600;
  transform: scale(1.12);
}

.texto-ayuda {
  color: #6d6d6d;
  font-size: 0.9rem;
}

.estado-subida {
  min-height: 24px;
  font-size: 0.95rem;
  font-weight: 700;
}

.estado-subida.error {
  color: #b42318;
}

.estado-subida.ok {
  color: #18794e;
}

.acciones-formulario {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .grid-formulario {
    grid-template-columns: 1fr;
  }

  .opciones-grid {
    grid-template-columns: 1fr;
  }

  .subir-hero-card h2 {
    font-size: 1.6rem;
  }
}

/* =========================
   ADMIN MATERIALES
========================= */

.pagina-admin-materiales {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f5f5f7;
  color: #161616;
  min-height: 100vh;
}

.admin-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 24px 60px;
}

.admin-hero {
  margin-bottom: 24px;
}

.admin-hero-card {
  background: linear-gradient(135deg, #ffffff, #fcfcfc);
  border: 1px solid #ececec;
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.05);
}

.admin-hero-card h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.admin-hero-card p {
  color: #5f5f5f;
  line-height: 1.7;
}

.admin-filtros {
  margin-bottom: 24px;
}

.filtros-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.04);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.material-admin-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.05);
}

.material-admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.material-codigo {
  font-size: 0.9rem;
  font-weight: 700;
  color: #5f5f5f;
}

.material-admin-card h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.material-admin-info {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.material-admin-info p {
  color: #383838;
  font-size: 0.95rem;
}

.material-admin-descripcion {
  background: #fafafa;
  border: 1px solid #ededed;
  border-radius: 16px;
  padding: 14px;
  color: #5f5f5f;
  line-height: 1.6;
  margin-bottom: 16px;
  min-height: 84px;
}

.material-admin-opciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.material-admin-opciones span {
  background: #fff4f4;
  color: #b80000;
  border: 1px solid #ffd7d7;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.material-admin-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-mini {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-ver-archivo {
  background: #f3f4f6;
  color: #222;
}

.btn-aprobar,
.btn-publicar {
  background: #e7f7ec;
  color: #18794e;
}

.btn-rechazar,
.btn-ocultar {
  background: #fdeaea;
  color: #b42318;
}

.btn-mini:hover {
  transform: translateY(-1px);
}

.sin-materiales-card {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 24px;
  padding: 30px;
  text-align: center;
  color: #666;
}

@media (max-width: 980px) {
  .filtros-card {
    grid-template-columns: 1fr;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-hero-card h2 {
    font-size: 1.6rem;
  }
}

/* =========================
   CATALOGO ACADEMICO PUBLICO
========================= */

.pagina-catalogo-academico {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f5f5f7;
  color: #161616;
  min-height: 100vh;
}

.catalogo-header {
  background: #ffffff;
  border-bottom: 1px solid #ececec;
  position: sticky;
  top: 0;
  z-index: 20;
}

.catalogo-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.catalogo-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.catalogo-logo {
  width: 90px;
  height: auto;
}

.catalogo-brand h1 {
  font-size: 1.8rem;
}

.catalogo-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 24px 60px;
}

.catalogo-hero {
  margin-bottom: 24px;
}

.catalogo-hero-card {
  background: linear-gradient(135deg, #ffffff, #fcfcfc);
  border: 1px solid #ececec;
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.05);
}

.catalogo-hero-card h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.catalogo-hero-card p {
  color: #5f5f5f;
  line-height: 1.7;
  max-width: 780px;
}

.catalogo-filtros {
  margin-bottom: 24px;
}

.catalogo-filtros-card {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 18px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.04);
}

.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.catalogo-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.catalogo-card-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.catalogo-codigo {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff4f4;
  color: #b80000;
  font-size: 0.84rem;
  font-weight: 800;
  border: 1px solid #ffd7d7;
}

.catalogo-card h3 {
  font-size: 1.28rem;
  line-height: 1.3;
  margin-bottom: 14px;
}

.catalogo-card-info {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.catalogo-card-info p {
  color: #383838;
  font-size: 0.95rem;
}

.catalogo-card-descripcion {
  background: #fafafa;
  border: 1px solid #ededed;
  border-radius: 16px;
  padding: 14px;
  color: #5f5f5f;
  line-height: 1.6;
  margin-bottom: 16px;
  min-height: 92px;
}

.catalogo-card-opciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.catalogo-card-opciones span {
  background: #fff4f4;
  color: #b80000;
  border: 1px solid #ffd7d7;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.catalogo-card-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 1100px) {
  .catalogo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .catalogo-filtros-card {
    grid-template-columns: 1fr;
  }

  .catalogo-grid {
    grid-template-columns: 1fr;
  }

  .catalogo-brand h1 {
    font-size: 1.5rem;
  }

  .catalogo-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalogo-hero-card h2 {
    font-size: 1.6rem;
  }
}

/* =========================
   CATALOGO PUBLICO PREMIUM
========================= */

.premium-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.catalogo-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.catalogo-nav a {
  text-decoration: none;
  color: #2d2d2d;
  font-weight: 600;
  transition: 0.2s ease;
}

.catalogo-nav a:hover {
  color: #e10600;
}

.catalogo-main-premium {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 24px 70px;
}

.hero-academico {
  padding: 34px 0 18px;
}

.hero-academico-contenido {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 26px;
  align-items: stretch;
}

.hero-texto {
  background: linear-gradient(135deg, #ffffff, #f8f8f8);
  border: 1px solid #ececec;
  border-radius: 34px;
  padding: 48px;
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.06);
}

.hero-etiqueta {
  color: #e10600;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-texto h2 {
  font-size: 4rem;
  line-height: 1.02;
  margin-bottom: 18px;
  color: #161616;
  max-width: 760px;
}

.hero-descripcion {
  font-size: 1.08rem;
  color: #5f5f5f;
  line-height: 1.8;
  max-width: 700px;
  margin-bottom: 28px;
}

.hero-botones {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-datos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.hero-dato {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 20px;
  padding: 18px;
}

.hero-dato strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
}

.hero-dato span {
  color: #666;
  line-height: 1.5;
  font-size: 0.94rem;
}

.hero-visual {
  display: grid;
  grid-template-rows: 1.25fr 1fr 1fr;
  gap: 16px;
}

.hero-visual-card {
  border-radius: 28px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.hero-visual-card span {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.hero-visual-card strong {
  font-size: 1.45rem;
  line-height: 1.2;
  max-width: 240px;
}

.hero-card-roja {
  background: linear-gradient(135deg, #e10600, #b80000);
  color: #fff;
}

.hero-card-blanca {
  background: #fff;
  color: #161616;
  border: 1px solid #ececec;
}

.hero-card-oscura {
  background: #171717;
  color: #fff;
}

.bloques-beneficios {
  padding: 18px 0 34px;
}

.bloques-beneficios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.beneficio-card {
  border-radius: 26px;
  padding: 28px;
  min-height: 220px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.05);
}

.beneficio-card h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  line-height: 1.2;
}

.beneficio-card p {
  line-height: 1.7;
  font-size: 0.96rem;
}

.beneficio-rojo {
  background: linear-gradient(135deg, #e10600, #c60000);
  color: #fff;
}

.beneficio-blanco {
  background: #fff;
  color: #161616;
  border: 1px solid #ececec;
}

.categorias-academicas {
  padding: 24px 0 22px;
}

.seccion-titulo {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.seccion-titulo h2 {
  font-size: 2.6rem;
  margin-bottom: 12px;
}

.seccion-titulo p {
  color: #666;
  line-height: 1.7;
}

.categorias-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.categoria-card {
  border-radius: 24px;
  padding: 28px;
  min-height: 190px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.05);
}

.categoria-card h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.categoria-card p {
  line-height: 1.7;
}

.categoria-roja {
  background: linear-gradient(135deg, #e10600, #c10000);
  color: #fff;
}

.categoria-blanca {
  background: #fff;
  border: 1px solid #ececec;
  color: #161616;
}

.catalogo-filtros-premium {
  padding: 34px 0 8px;
}

.premium-filtros {
  border-radius: 28px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.05);
}

.premium-resultados {
  padding-top: 16px;
}

.bloque-profesores {
  padding: 50px 0 26px;
}

.bloque-profesores-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}

.bloque-profesores-texto {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 30px;
  padding: 36px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.05);
}

.bloque-profesores-texto h2 {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.bloque-profesores-texto p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}

.bloque-profesores-boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.mini-box {
  background: linear-gradient(135deg, #171717, #0d0d0d);
  color: #fff;
  border-radius: 24px;
  padding: 28px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mini-box strong {
  font-size: 2rem;
  color: #ff3b30;
  margin-bottom: 10px;
}

.mini-box span {
  font-size: 1rem;
  line-height: 1.5;
}

.cta-final {
  padding: 26px 0 0;
}

.cta-final-card {
  background: linear-gradient(135deg, #ffffff, #f7f7f7);
  border: 1px solid #ececec;
  border-radius: 34px;
  padding: 42px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.cta-final-card h2 {
  font-size: 2.6rem;
  max-width: 800px;
  margin: 0 auto 14px;
  line-height: 1.15;
}

.cta-final-card p {
  color: #666;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto 22px;
}

@media (max-width: 1180px) {
  .hero-academico-contenido,
  .bloque-profesores-inner {
    grid-template-columns: 1fr;
  }

  .bloques-beneficios-grid,
  .categorias-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-texto h2 {
    font-size: 3rem;
  }
}

@media (max-width: 900px) {
  .catalogo-nav {
    display: none;
  }

  .hero-texto {
    padding: 30px;
  }

  .hero-texto h2 {
    font-size: 2.3rem;
  }

  .hero-datos {
    grid-template-columns: 1fr;
  }

  .bloques-beneficios-grid,
  .categorias-grid {
    grid-template-columns: 1fr;
  }

  .seccion-titulo h2,
  .cta-final-card h2,
  .bloque-profesores-texto h2 {
    font-size: 1.8rem;
  }

  .cta-final-card {
    padding: 30px 24px;
  }
}

/* =========================
   MATERIAL DETALLE
========================= */

.pagina-material-detalle {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--gris-fondo);
  color: var(--negro);
  min-height: 100vh;
}

.material-detalle-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 24px 60px;
}

.material-detalle-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.material-info-panel {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
}

.material-badge-row {
  margin-bottom: 16px;
}

.material-info-panel h2 {
  font-size: 2.1rem;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #161616;
}

.material-descripcion {
  background: #fafafa;
  border: 1px solid #ededed;
  border-radius: 16px;
  padding: 16px;
  color: #5f5f5f;
  line-height: 1.7;
  margin-bottom: 20px;
}

.material-data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.data-item {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 16px;
}

.data-item span {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #6a6a6a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.data-item strong {
  display: block;
  color: #161616;
  font-size: 0.98rem;
  line-height: 1.5;
}

.data-item a {
  color: var(--rojo-principal);
  text-decoration: none;
  font-weight: 700;
}

.data-item a:hover {
  text-decoration: underline;
}

.material-opciones-disponibles {
  background: #fafafa;
  border: 1px solid #ededed;
  border-radius: 22px;
  padding: 22px;
}

.material-opciones-disponibles h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.material-opciones-disponibles .catalogo-card-opciones {
  margin-bottom: 0;
}

.material-pedido-panel {
  position: relative;
}

.pedido-panel-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 100px;
}

.pedido-panel-card h3 {
  font-size: 1.7rem;
  margin-bottom: 18px;
  line-height: 1.2;
}

#formPedidoMaterial {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#formPedidoMaterial .campo-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#formPedidoMaterial .campo-form label {
  font-size: 0.96rem;
  font-weight: 700;
  color: #2c2c2c;
}

#formPedidoMaterial .campo-form input,
#formPedidoMaterial .campo-form select,
#formPedidoMaterial .campo-form textarea {
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
  font-size: 0.98rem;
  color: #161616;
  outline: none;
  transition: 0.2s ease;
}

#formPedidoMaterial .campo-form input,
#formPedidoMaterial .campo-form select {
  min-height: 52px;
}

#formPedidoMaterial .campo-form textarea {
  resize: vertical;
  min-height: 120px;
}

#formPedidoMaterial .campo-form input:focus,
#formPedidoMaterial .campo-form select:focus,
#formPedidoMaterial .campo-form textarea:focus {
  border-color: #e10600;
  box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.08);
}

.resumen-pedido-box {
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 22px;
  padding: 22px;
}

.resumen-pedido-box h4 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.resumen-pedido-box p {
  color: #5f5f5f;
  line-height: 1.7;
  margin-bottom: 8px;
}

.resumen-pedido-box p:last-child {
  margin-bottom: 0;
}

.btn-full {
  width: 100%;
}

@media (max-width: 980px) {
  .material-detalle-layout {
    grid-template-columns: 1fr;
  }

  .pedido-panel-card {
    position: static;
  }
}

@media (max-width: 900px) {
  .material-data-grid {
    grid-template-columns: 1fr;
  }

  .material-info-panel h2 {
    font-size: 1.7rem;
  }

  .pedido-panel-card h3 {
    font-size: 1.45rem;
  }
}

/* =========================
   PEDIDOS MATERIALES
========================= */

.pagina-pedidos-materiales {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--gris-fondo);
  color: var(--negro);
  min-height: 100vh;
}

.pedidos-materiales-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 24px 60px;
}

.pedidos-hero {
  margin-bottom: 24px;
}

.pedidos-hero-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
}

.pedidos-hero-card h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 10px;
  color: #161616;
}

.pedidos-hero-card p {
  color: #5f5f5f;
  line-height: 1.7;
  max-width: 760px;
}

.pedidos-filtros {
  margin-bottom: 24px;
}

.pedidos-filtros-card {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 18px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.04);
}

.pedidos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pedido-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pedido-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pedido-card h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  color: #161616;
  margin: 0;
}

.pedido-card-info {
  display: grid;
  gap: 8px;
}

.pedido-card-info p {
  margin: 0;
  color: #3f3f3f;
  font-size: 0.95rem;
  line-height: 1.55;
}

.pedido-card-comentarios {
  background: #fafafa;
  border: 1px solid #ededed;
  border-radius: 16px;
  padding: 14px 16px;
}

.pedido-card-comentarios strong {
  display: block;
  color: #161616;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.pedido-card-comentarios p {
  margin: 0;
  color: #5f5f5f;
  font-size: 0.94rem;
  line-height: 1.65;
}

.pedido-card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pedido-card-actions label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2c2c2c;
}

.select-estado-pedido {
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
  font-size: 0.98rem;
  color: #161616;
  outline: none;
  transition: 0.2s ease;
  min-height: 52px;
}

.select-estado-pedido:focus {
  border-color: var(--rojo-principal);
  box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.08);
}

.pedido-estado-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
}

.estado-pendiente {
  background: #fff4df;
  color: #9a5a00;
  border-color: #ffe0a0;
}

.estado-proceso {
  background: #eaf2ff;
  color: #215fc0;
  border-color: #cfe0ff;
}

.estado-listo {
  background: #e7f7ec;
  color: #18794e;
  border-color: #cdebd9;
}

.estado-entregado {
  background: #edf8ef;
  color: #18794e;
  border-color: #d1ecd9;
}

.estado-cancelado {
  background: #fdeaea;
  color: #b42318;
  border-color: #f7cfcf;
}

@media (max-width: 980px) {
  .pedidos-filtros-card {
    grid-template-columns: 1fr;
  }

  .pedidos-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pedidos-materiales-main {
    padding: 24px 16px 50px;
  }

  .pedidos-hero-card,
  .pedidos-filtros-card,
  .pedido-card {
    border-radius: 22px;
  }

  .pedidos-hero-card {
    padding: 24px;
  }

  .pedido-card {
    padding: 18px;
  }

  .pedidos-hero-card h2 {
    font-size: 1.6rem;
  }

  .pedido-card h3 {
    font-size: 1.2rem;
  }

  .pedido-card-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

.btn-whatsapp-pedido {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #25d366;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn-whatsapp-pedido:hover {
  background: #1ebe5a;
  transform: translateY(-1px);
}


/* =========================
   PROMOCIONES HEADER
========================= */

.promo-bar {
  position: relative;
  overflow: hidden;
  height: 42px;
  border-top: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
  background: #ffffff;
}

.promo-fade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.promo-fade.activo {
  opacity: 1;
}

.promo-verde {
  background: #1f9d55;
  color: #ffffff;
}

.promo-rosa {
  background: #ef4aa8;
  color: #ffffff;
}

@media (max-width: 900px) {
  .promo-bar {
    height: 38px;
  }

  .promo-fade {
    font-size: 0.84rem;
    padding: 0 14px;
  }
}

.hero-visual-con-imagenes .hero-visual-card {
  padding: 18px;
  justify-content: flex-start;
}

.hero-card-media {
  gap: 14px;
}

.hero-card-image {
  width: 100%;
  border-radius: 20px;
  min-height: 92px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}

.hero-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.12));
}

.hero-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.hero-card-copy span {
  margin-bottom: 0;
}

.hero-card-copy strong {
  max-width: 240px;
}

.hero-image-apuntes {
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.10), rgba(0,0,0,0.18)),
    url("../img/apuntes.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-image-profesores {
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.08), rgba(0,0,0,0.14)),
    url("../img/pizzarra.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #ececec;
}

.hero-image-estudiantes {
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.12), rgba(0,0,0,0.22)),
    url("../img/computadora.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.buscador-destacado-section {
  padding: 22px 0 8px;
}

.buscador-destacado-head {
  margin-bottom: 22px;
}

.buscador-destacado-card {
  background: linear-gradient(135deg, #171717, #0f0f0f);
  border: 1px solid #202020;
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.16);
}

.buscador-destacado-card .campo-form label {
  color: #ffffff;
}

.buscador-destacado-card .campo-form input,
.buscador-destacado-card .campo-form select {
  border-color: #313131;
  background: #ffffff;
}

.buscador-destacado-head h2 {
  font-size: 3rem;
}

.buscador-destacado-head p {
  max-width: 760px;
}

.quienes-somos-section {
  padding: 34px 0 0;
}

.quienes-somos-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  background: linear-gradient(135deg, #ffffff, #f8f8f8);
  border: 1px solid #ececec;
  border-radius: 34px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.quienes-somos-foto {
  min-height: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.18), rgba(0,0,0,0.42)),
    url("../img/local.png");
      background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 480px;
}

.quienes-somos-foto-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: #ffffff;
}

.quienes-somos-foto-overlay span {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #ff0d00;
}

.quienes-somos-foto-overlay strong {
  font-size: 1.8rem;
  line-height: 1.2;
  max-width: 340px;
}

.quienes-somos-content {
  padding: 12px 10px;
}

.quienes-somos-content h2 {
  font-size: 2.5rem;
  line-height: 1.12;
  margin-bottom: 16px;
}

.quienes-somos-content p {
  color: #5f5f5f;
  line-height: 1.8;
  margin-bottom: 16px;
}

.quienes-somos-datos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.quienes-dato {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 20px;
  padding: 18px;
}

.quienes-dato strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.quienes-dato span {
  color: #666;
  line-height: 1.6;
  font-size: 0.94rem;
}

@media (max-width: 1180px) {
  .quienes-somos-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .promo-bar {
    height: 38px;
  }

  .promo-item {
    min-width: 320px;
    height: 38px;
    font-size: 0.84rem;
    padding: 0 18px;
  }

  .buscador-destacado-head h2 {
    font-size: 2rem;
  }

  .quienes-somos-content h2 {
    font-size: 1.9rem;
  }

  .quienes-somos-datos {
    grid-template-columns: 1fr;
  }

  .quienes-somos-foto {
    min-height: 320px;
  }
}
