/* estiloscr.css — versión amarilla con buen contraste */

:root{
  --cr-primary: #EEB049;
  --cr-primary-hover: #D89524;
  --cr-primary-700: #6F4300;
  --cr-primary-800: #3A2505;
  --cr-primary-050: #FFF7E6;
  --cr-primary-100: #FFEAC2;
  --cr-primary-border: #E0A23D;

  --cr-on-primary: #1F1607;

  --cr-text: #222222;
  --cr-muted: #5F5F5F;
  --cr-border: #E5E7EB;
  --cr-card: #ffffff;
  --cr-bg: #fafafa;

  --cr-radius: 12px;
  --cr-shadow: 0 6px 18px rgba(0,0,0,.06);
}

/* ==== Base ==== */
*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }

.cr-body{
  color: var(--cr-text, #222222);
  background: var(--cr-bg, #fafafa);
  font-family: Arial, Helvetica, sans-serif;
}

/* ==== Header ==== */
.cr-header{
  padding: 14px 20px;
  background: linear-gradient(90deg, #EEB049, #F3C977);
  color: var(--cr-on-primary, #1F1607);
  box-shadow: var(--cr-shadow, 0 6px 18px rgba(0,0,0,.06));
}

.cr-h1{
  margin: 0;
  font-size: 22px;
  letter-spacing: .2px;
  font-weight: 800;
}

/* ==== Form / Toolbar ==== */
.cr-form{
  padding: 18px 20px;
}

.cr-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  margin: 0 0 16px 0;
}

.cr-checkall{
  color: var(--cr-text, #222222);
  display:flex;
  gap:8px;
  align-items:center;
}

.cr-selcount{
  color: var(--cr-muted, #5F5F5F);
  font-size: 14px;
  font-weight: 600;
}

/* ==== Botones ==== */
.cr-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration:none;
  cursor:pointer;
  transition: transform .05s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  font-weight: 700;
}

.cr-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.cr-btn:active{
  transform: translateY(1px);
}

.cr-btn-primary{
  background: var(--cr-primary, #EEB049);
  color: var(--cr-on-primary, #1F1607);
  border-color: var(--cr-primary-border, #E0A23D);
  box-shadow: 0 4px 14px rgba(238,176,73,.28);
}

.cr-btn-primary:hover:not(:disabled){
  background: var(--cr-primary-hover, #D89524);
  border-color: var(--cr-primary-hover, #D89524);
  color: #1F1607;
}

.cr-btn-ghost{
  background: #ffffff;
  color: var(--cr-primary-700, #6F4300);
  border-color: var(--cr-primary-border, #E0A23D);
}

.cr-btn-ghost:hover{
  background: var(--cr-primary-050, #FFF7E6);
  color: var(--cr-primary-800, #3A2505);
  border-color: var(--cr-primary-hover, #D89524);
}

/* ==== Grid ==== */
.cr-grid{
  display:grid;
  grid-template-columns: repeat( auto-fill, minmax(240px, 1fr) );
  gap: 16px;
}

/* ==== Card ==== */
.cr-card{
  background: var(--cr-card, #ffffff);
  border: 1px solid var(--cr-border, #E5E7EB);
  border-radius: var(--cr-radius, 12px);
  overflow: hidden;
  box-shadow: var(--cr-shadow, 0 6px 18px rgba(0,0,0,.06));
  display:flex;
  flex-direction: column;
}

.cr-card-top{
  display:block;
  position: relative;
  cursor: pointer;
}

.cr-card-top input[type="checkbox"]{
  position:absolute;
  top:10px;
  left:10px;
  width:18px;
  height:18px;
  accent-color: var(--cr-primary, #EEB049);
  z-index:2;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.18));
}

.cr-cover-wrap{
  width: 100%;
  height: 160px;
  background: #f7f7f7;
  overflow:hidden;
}

.cr-cover{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.cr-card-body{
  padding: 10px 12px 4px;
}

.cr-card-title{
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--cr-primary-800, #3A2505);
  line-height: 1.25;
  max-height: 3.2em;
  overflow: hidden;
}

.cr-card-actions{
  padding: 10px 12px 14px;
  display:flex;
  gap:10px;
  align-items:center;
}

/* ==== Hover ==== */
.cr-card:hover{
  border-color: #E0A23D;
  box-shadow: 0 10px 22px rgba(111,67,0,.13);
}

/* Hint / aviso */
.cr-hint{
  margin: 6px 0 14px 0;
  padding: 10px 12px;
  border: 1px dashed var(--cr-primary-border, #E0A23D);
  background: var(--cr-primary-050, #FFF7E6);
  color: var(--cr-primary-800, #3A2505);
  border-radius: var(--cr-radius, 12px);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}

.cr-hint strong{
  color: #2B1A03;
  font-weight: 800;
}

.cr-cover-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:180px;
  padding:16px;
  border:1px dashed rgba(0,0,0,.22);
  border-radius:12px;
  font-weight:800;
  letter-spacing:.5px;
  text-transform:uppercase;
  text-align:center;
  color: var(--cr-primary-800, #3A2505);
}

/* Card especial NOVEDADES */
.cr-cover--nov{
  position: relative;
  min-height: 160px;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.18) 0px,
      rgba(255,255,255,.18) 6px,
      rgba(255,255,255,0)   6px,
      rgba(255,255,255,0)   14px
    ),
    linear-gradient(135deg, #D89524 0%, #EEB049 55%, #F4CF86 100%);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.cr-cover--nov::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(600px 220px at 20% 0%, rgba(255,255,255,.35), transparent 60%);
  pointer-events:none;
}

.cr-cover--nov .cr-cover-placeholder{
  position: relative;
  z-index: 1;
  color: #1F1607;
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  text-shadow: none;
  border: 0;
}

/* Mensaje de límite */
#js-limit-msg{
  color: #6F4300;
  background: #FFF7E6;
  border: 1px solid #E0A23D;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
}

/* ==== Responsive ==== */
@media (max-width: 480px){
  .cr-header{
    padding: 13px 16px;
  }

  .cr-h1{
    font-size: 20px;
  }

  .cr-form{
    padding: 16px 14px;
  }

  .cr-cover-wrap{
    height: 140px;
  }

  .cr-card-title{
    font-size: 14px;
  }

  .cr-toolbar{
    align-items: stretch;
  }

  .cr-btn{
    width: 100%;
  }
}