/* ═══════════════════════════════════════════
   Concurso de Tecmus - v1.2
   Extension de Formulario de Tecmus
   Paleta: Gold #e8c97a · Dark #996e15 · BG #0d0d0d
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

@property --hsco-a {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes hsco-spin    { to { --hsco-a: 360deg; } }
@keyframes hsco-fade-up { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@keyframes hsco-fill    { from { width:0% } }

/* ── Wrap - borde animado identico al plugin padre ── */
.hsco-wrap {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  background: #0d0d0d !important;
  border-radius: 10px;
  padding: 2px;
  transform: translateZ(0);
  isolation: isolate;
  animation: hsco-fade-up .5s ease both;
}

.hsco-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 2px;
  background: conic-gradient(
    from var(--hsco-a),
    transparent 0%, transparent 62%,
    rgba(153,110,21,.18) 73%, rgba(153,110,21,.82) 81%,
    rgba(232,201,122,1) 87%, rgba(153,110,21,.82) 93%,
    rgba(153,110,21,.18) 97%, transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: hsco-spin 3s linear infinite;
  will-change: --hsco-a;
  pointer-events: none;
  z-index: 4;
}

/* ── Barra de contadores en vivo ── */
.hsco-live-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #080600;
  border-radius: 9px 9px 0 0;
  padding: 10px 20px;
  border-bottom: 1px solid #2a1f00;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 12px;
}

.hsco-live-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c8b99a;
}

.hsco-live-item i   { color: #996e15; font-size: 11px; }
.hsco-live-label    { color: #6a5a40; letter-spacing: .04em; }
.hsco-live-num      { color: #e8c97a; font-size: 14px; font-weight: 700; }
.hsco-live-of       { color: #4a3a20; font-size: 11px; }
.hsco-live-sep      { color: #3a2e10; font-size: 13px; }

/* ── Reglas - acordeon ── */
.hsco-rules {
  background: #080600;
  border-bottom: 1px solid #2a1f00;
}

.hsco-rules-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 32px;
  cursor: pointer;
  color: #996e15;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  user-select: none;
  transition: color .2s;
}

.hsco-rules-toggle:hover { color: #e8c97a; }
.hsco-rules-chevron      { margin-left: auto; font-size: 10px; transition: transform .22s; }
.hsco-rules-chevron.open { transform: rotate(180deg); }

.hsco-rules-body {
  padding: 4px 32px 20px;
  background: #080600;
}

.hsco-rules-section   { margin-bottom: 12px; }

.hsco-rules-sub {
  font-family: 'Cinzel', Georgia, serif !important;
  color: #e8c97a !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  margin: 0 0 5px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hsco-rules-section p {
  color: #c8b99a !important;
  font-family: 'EB Garamond', Georgia, serif !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

.hsco-rules-divider {
  height: 1px;
  background: #2a1f00;
  margin: 12px 0;
}

.hsco-rules-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.hsco-rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #c8b99a;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 13px;
  line-height: 1.6;
  padding: 4px 0;
}

.hsco-rules-list li i        { margin-top: 3px; flex-shrink: 0; color: #7dc87d; }
.hsco-rules-list li strong   { color: #e8c97a; }

/* ── Formulario interno ── */
#hsco-form {
  background: #0d0d0d !important;
  padding: 24px 32px 20px;
}

/* ── Field wrap - contenedor de input + error ── */
.hsco-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  width: 100%;
}

/* Row de 2 columnas */
.hsco-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.hsmv-row-full { margin-bottom: 14px; }

/* ── Error de campo ── */
.hsco-err {
  display: none;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 12px;
  color: #c87d7d;
  padding: 4px 2px 0;
  line-height: 1.3;
}

/* ── Info concurso seleccionado ── */
.hsco-concurso-info {
  display: none;
  align-items: flex-start;
  gap: 8px;
  background: #0a0800;
  border: 1px solid #2a1f00;
  border-radius: 5px;
  padding: 9px 13px;
  margin-bottom: 14px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 13px;
  color: #c8b99a;
  line-height: 1.55;
}

.hsco-concurso-info i { color: #996e15; margin-top: 3px; flex-shrink: 0; }

/* ── Nota de costo ── */
.hsco-costo-note {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #060c02;
  border: 1px solid #1a3800;
  border-radius: 5px;
  padding: 9px 13px;
  margin-bottom: 16px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 13px;
  color: #80c890;
  line-height: 1.5;
}

.hsco-costo-note i      { color: #e8c97a; flex-shrink: 0; }
.hsco-costo-note strong { color: #e8c97a; }

/* ── Boton - variante dorada ── */
.hsco-btn {
  background: linear-gradient(135deg, #7a5010 0%, #b88820 50%, #7a5010 100%) !important;
  background-size: 200% 100% !important;
  transition: background-position .35s ease, box-shadow .2s ease !important;
}

.hsco-btn:hover {
  background-position: right center !important;
  box-shadow: 0 0 18px rgba(232,201,122,.3) !important;
}

/* ── Mensaje de respuesta - debajo del boton ── */
.hsco-form-msg {
  display: none;
  align-items: flex-start;
  gap: 9px;
  border-radius: 5px;
  padding: 11px 14px;
  margin-top: 14px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 14px;
  line-height: 1.5;
  animation: hsco-fade-up .2s ease both;
}

.hsco-form-msg i    { flex-shrink: 0; margin-top: 3px; }
.hsco-form-msg span { flex: 1; }

.hsco-msg-error {
  display: flex;
  background: #180300;
  border: 1px solid #5a1000;
  color: #e09070;
}
.hsco-msg-error i { color: #c87d7d; }

.hsco-msg-ok {
  display: flex;
  background: #011506;
  border: 1px solid #0a4518;
  color: #80c890;
}
.hsco-msg-ok i { color: #7dc87d; }

/* ── Pantalla de exito - hereda hsmv-success del plugin padre ── */
/* Solo sobreescribimos lo especifico del concurso */

.hsco-success-screen .hsmv-success-check {
  border-color: #e8c97a;
}

/* Caja del codigo */
.hsco-codigo-box {
  background: #080600;
  border: 1px solid #4a3500;
  border-radius: 8px;
  padding: 16px 20px 14px;
  margin: 0 auto 24px;
  max-width: 420px;
}

.hsco-codigo-label {
  font-family: 'Cinzel', Georgia, serif;
  color: #996e15;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 0 0 12px;
  display: block;
}

.hsco-codigo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hsco-codigo {
  color: #e8c97a;
  font-family: 'Courier New', monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .3em;
  text-shadow: 0 0 18px rgba(232,201,122,.35);
  line-height: 1.2;
}

.hsco-copy-btn {
  background: #150e00 !important;
  border: 1px solid #996e15 !important;
  border-radius: 5px !important;
  color: #996e15 !important;
  width: 34px !important;
  height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background .2s, color .2s !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
}

.hsco-copy-btn:hover { background: rgba(153,110,21,.2) !important; color: #e8c97a !important; }

.hsco-codigo-note {
  font-family: 'EB Garamond', Georgia, serif;
  color: #6a5a40;
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

.hsco-codigo-note strong { color: #e8c97a; }

/* Toast de copiado */
.hsco-copy-toast {
  display: none;
  background: #0a2a10;
  border: 1px solid #1e6030;
  color: #7dc87d;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 11px;
  letter-spacing: .1em;
  padding: 7px 16px;
  border-radius: 20px;
  margin: 0 auto 20px;
  width: fit-content;
  animation: hsco-fade-up .2s ease both;
}

.hsco-copy-toast i { margin-right: 6px; }

/* ── Contadores shortcode ── */
.hsco-counters-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
  align-items: stretch;
}

.hsco-counter-card {
  background: #0d0d0d;
  border: 1px solid #2a1f00;
  border-radius: 7px;
  padding: 22px 14px;
  text-align: center;
  transition: border-color .22s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hsco-counter-card:hover  { border-color: #996e15; }
.hsco-counter-total       { border-color: #4a3500; }

.hsco-counter-num {
  display: block;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  color: #e8c97a;
  line-height: 1;
  margin-bottom: 8px;
}

.hsco-counter-label {
  display: block;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 13px;
  color: #6a5a40;
  letter-spacing: .05em;
  margin-bottom: 0;
}

.hsco-counter-meta {
  display: block;
  font-size: 11px;
  color: #4a3a20;
  margin-top: 6px;
}

.hsco-progress-wrap {
  height: 4px;
  background: #1a1200;
  border-radius: 2px;
  overflow: hidden;
  margin: 10px 0 3px;
  width: 100%;
}

.hsco-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4a3500, #e8c97a);
  border-radius: 2px;
  animation: hsco-fill .8s ease both;
  min-width: 2px;
}

/* ── Honeypot ── */
.hsmv-hp { display:none !important; visibility:hidden !important; }

/* ── Responsive ── */
@media (max-width: 540px) {
  .hsco-rules-toggle,
  .hsco-rules-body,
  #hsco-form       { padding-left: 20px !important; padding-right: 20px !important; }
  .hsco-row-2      { grid-template-columns: 1fr !important; }
  .hsmv-success { padding: 28px 20px 24px !important; }
  .hsco-codigo     { font-size: 18px !important; letter-spacing: .18em !important; }
  .hsco-counters-wrap { grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; }
  .hsco-counter-card  { padding: 12px 6px !important; }
  .hsco-counter-num   { font-size: 22px !important; }
  .hsco-counter-label { font-size: 10px !important; letter-spacing: .02em !important; margin-bottom: 6px !important; }
  .hsco-counter-meta  { font-size: 9px !important; }
  .hsco-progress-wrap { margin: 5px 0 2px !important; }
}

/* ══════════════════════════════════════
   Terminos - checkbox personalizado
══════════════════════════════════════ */
.hsco-terms-wrap {
  margin-bottom: 16px;
}

.hsco-terms-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  cursor: pointer;
  position: relative;
}

.hsco-terms-label input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.hsco-checkmark {
  flex-shrink: 0;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  background: #111 !important;
  border: 1px solid #4a3500 !important;
  border-radius: 3px !important;
  margin-top: 2px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background .18s, border-color .18s !important;
}

.hsco-terms-label input[type="checkbox"]:checked + .hsco-checkmark {
  background: #996e15 !important;
  border-color: #e8c97a !important;
}

.hsco-terms-label input[type="checkbox"]:checked + .hsco-checkmark::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #0d0d0d;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.hsco-terms-text {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-size: 13px !important;
  color: #c8b99a !important;
  line-height: 1.6 !important;
}

.hsco-terms-link {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  color: #e8c97a !important;
  font-family: 'EB Garamond', Georgia, serif !important;
  font-size: 13px !important;
  cursor: pointer !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

.hsco-terms-link:hover { color: #fff !important; }

/* ══════════════════════════════════════
   Modal de terminos
══════════════════════════════════════ */
.hsco-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,.82) !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
}

.hsco-modal {
  background: #0d0d0d !important;
  border: 1px solid #996e15 !important;
  border-radius: 10px !important;
  max-width: 620px !important;
  width: 100% !important;
  max-height: 85vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  animation: hsco-fade-up .22s ease both !important;
}

.hsco-modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 18px 24px !important;
  border-bottom: 1px solid #2a1f00 !important;
  flex-shrink: 0 !important;
}

.hsco-modal-title {
  font-family: 'Cinzel', Georgia, serif !important;
  color: #e8c97a !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: .1em !important;
  margin: 0 !important;
}

.hsco-modal-close {
  background: none !important;
  border: none !important;
  color: #6a5a40 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  transition: color .15s !important;
  line-height: 1 !important;
}

.hsco-modal-close:hover { color: #e8c97a !important; }

.hsco-modal-body {
  padding: 20px 24px !important;
  overflow-y: auto !important;
  flex: 1 !important;
  scrollbar-width: thin;
  scrollbar-color: #4a3500 #0d0d0d;
}

.hsco-modal-body::-webkit-scrollbar       { width: 5px; }
.hsco-modal-body::-webkit-scrollbar-track { background: #0d0d0d; }
.hsco-modal-body::-webkit-scrollbar-thumb { background: #4a3500; border-radius: 3px; }

.hsco-terms-section {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #1a1200;
}

.hsco-terms-section:last-child { border-bottom: none; margin-bottom: 0; }

.hsco-terms-section h4 {
  font-family: 'Cinzel', Georgia, serif !important;
  color: #e8c97a !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .1em !important;
  margin: 0 0 10px !important;
  text-transform: uppercase !important;
}

.hsco-terms-section p,
.hsco-terms-section li {
  font-family: 'EB Garamond', Georgia, serif !important;
  color: #c8b99a !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  margin: 0 0 8px !important;
}

.hsco-terms-section ul {
  list-style: disc !important;
  padding-left: 18px !important;
  margin: 0 !important;
}

.hsco-terms-section strong { color: #e8c97a !important; }

.hsco-modal-footer {
  padding: 16px 24px !important;
  border-top: 1px solid #2a1f00 !important;
  text-align: center !important;
  flex-shrink: 0 !important;
}

.hsco-modal-accept {
  min-width: 200px !important;
}

@media (max-width: 540px) {
  .hsco-modal-body { padding: 16px !important; }
  .hsco-modal-header,
  .hsco-modal-footer { padding: 14px 16px !important; }
}

/* -- Linea de terminos -- */
.hsco-terms-line {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-size: 12px !important;
  color: #4a3a20 !important;
  text-align: center !important;
  margin: 0 0 10px !important;
  line-height: 1.5 !important;
  font-style: italic !important;
}
