.hb-form{box-sizing:border-box}
.hb-grid,.hb-grid-2{display:grid;gap:12px}
@media (max-width: 640px){
  .hb-grid-2{grid-template-columns:1fr}
}
@media (min-width: 641px){
  .hb-grid-2{grid-template-columns:repeat(2,1fr)}
}
.hb-field{width:100%;max-width:100%}
.hb-btn{display:inline-block}
.hb-file{max-width:100%}
.hb-file__preview{display:none;max-width:100%;height:auto;margin-top:8px;border:1px solid #ddd;border-radius:4px;object-fit:contain}
/* ====== Tipografías ====== */
@font-face { font-family: 'Sargasso Display'; src: url('../fonts/Sargasso-Display.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Sargasso'; src: url('../fonts/Sargasso-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Sargasso Oblique'; src: url('../fonts/Sargasso-ObliqueDisplay.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Myriad-Pro'; src: url('../fonts/MyriadPro-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Acumin'; src: url('../fonts/AcuminVariableConcept.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Acumin-bold'; src: url('../fonts/AcuminVariableConcept.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }

/* ====== LAYOUT FULLSCREEN CON IMAGEN COMPLETA ====== */

/* ====== ESTRELLAS ANIMADAS ====== */
.hb-stars-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hb-star {
  position: absolute;
  background: radial-gradient(circle, rgba(255, 248, 220, 1) 0%, rgba(255, 223, 150, 0.8) 40%, rgba(255, 200, 100, 0) 70%);
  border-radius: 50%;
  animation: hb-twinkle var(--twinkle-duration, 3s) ease-in-out infinite,
             hb-float var(--float-duration, 20s) ease-in-out infinite;
  animation-delay: var(--animation-delay, 0s), var(--float-delay, 0s);
  opacity: 0;
}

/* Efecto de brillo/parpadeo sutil */
@keyframes hb-twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
    filter: blur(0.5px);
  }
  50% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
  }
}

/* Efecto de flotación/descenso muy sutil */
@keyframes hb-float {
  0% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(8px) translateX(2px);
  }
  50% {
    transform: translateY(15px) translateX(-1px);
  }
  75% {
    transform: translateY(8px) translateX(-2px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

/* Variante de estrella con destello más pronunciado */
.hb-star--bright {
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 230, 180, 0.9) 30%, rgba(255, 200, 100, 0) 60%);
  box-shadow: 0 0 4px rgba(255, 230, 180, 0.5);
}

/* Estrellas que descienden lentamente (opcional, activar con clase) */
.hb-star--falling {
  animation: hb-twinkle var(--twinkle-duration, 3s) ease-in-out infinite,
             hb-fall var(--fall-duration, 30s) linear infinite;
}

@keyframes hb-fall {
  0% {
    transform: translateY(-5vh);
    opacity: 0;
  }
  5% {
    opacity: 0.5;
  }
  95% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(105vh);
    opacity: 0;
  }
}

/* Ocultar estrellas en móvil para mejor rendimiento */
@media (max-width: 900px) {
  .hb-stars-container {
    display: none;
  }
}

/* ====== FIN ESTRELLAS ANIMADAS ====== */

/* Permitir scroll en fullscreen */
html:has(.hb-fullscreen),
body:has(.hb-fullscreen) {
  overflow-x: hidden;
  overflow-y: auto;
  max-width: 100vw !important;
}

.hb-fullscreen {
  --hb-gold: #c7a76c;
  --hb-gold-700: #b39153;
  --hb-text: #5c3327;
  --hb-muted: #5c3327;
  --hb-cream: #f4e8cf;
  --hb-font-base: 'Acumin';
  --hb-font-display: 'Acumin';
  
  /* Dimensiones originales de la imagen */
  --hb-img-width: 1596;
  --hb-img-height: 898;
  --hb-aspect-ratio: calc(var(--hb-img-width) / var(--hb-img-height));
  
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 150px 0 250px;
  background-color: #030303;
  font-family: var(--hb-font-base);
  color: var(--hb-text);
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Contenedor de la imagen de fondo - Fixed para que se quede al hacer scroll */
.hb-fullscreen::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: var(--hb-bg-image);
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Logo Ferrero centrado en el top */
.hb-logo-fixed {
  position: fixed;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 150px;
  height: auto;
  z-index: 10;
  pointer-events: none;
}

/* Título fixed en la izquierda, 25% del top */
.hb-title-fixed {
  position: fixed;
  top: 25%;
  left: 25%;
  transform: translate(-50%, -50%);
  width: auto;
  max-width: 35vw;
  height: auto;
  z-index: 10;
  pointer-events: none;
}

/* Frase promocional en la izquierda */
.hb-promo-text {
  position: fixed;
  bottom: 5%;
  left: 20%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
  color: #c7a76c;
  text-align: center;
  font-family: var(--hb-font-display, Georgia, serif);
  line-height: 1.1;
  z-index: 10;
  pointer-events: none;
  white-space: normal;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hb-promo-text span {
  display: block;
  margin: 0;
  padding: 0;
}

.hb-promo-text strong {
  font-weight: 700;
}

/* Header móvil - oculto en desktop */
.hb-mobile-header {
  display: none;
}

/* Footer móvil - oculto en desktop */
.hb-mobile-footer {
  display: none;
}

/* Imagen tabletas fixed en bottom center */
.hb-tabletas-fixed {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 500px;
  height: auto;
  z-index: 10;
  pointer-events: none;
}

/* Indicador de versión (dev) */
.hb-version-indicator {
  position: fixed;
  bottom: 8px;
  left: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 9999;
  font-family: monospace;
}

/* Contenedor interno que mantiene la proporción de la imagen */
/* La imagen tiene proporción 1596:898 (~1.777:1) */
/* El formulario se posiciona RELATIVO al área visible de la imagen, no al viewport */

.hb-fullscreen .hb-form-right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 20px 34px;
  box-sizing: border-box;
  z-index: 1;
  background: transparent;
}

/* Posicionamiento del formulario - Desktop */
/* Con cover, la imagen siempre ocupa el 100% del viewport */
@media (min-width: 901px) {
  .hb-fullscreen .hb-form-right {
    width: 42vw;
    max-width: 680px;
    margin-left: auto;
    margin-right: 5vw;
  }
}

.hb-form-right-inner {
  width: 100%;
  max-width: none;
  overflow: hidden;
}

/* Asegurar que todos los contenedores internos ocupen el 100% */
.hb-fullscreen .hb-form-right .hb-form-right-inner,
.hb-fullscreen .hb-form-right .hb-form-right-inner .hb-form-right-inner {
  max-width: none;
  width: 100%;
}

/* Card del formulario */
.hb-fullscreen .hb-card {
  max-width: 980px;
  width: 100%;
}

/* Sección Premio */
.hb-prize-info {
  display: block;
  text-align: left;
  margin-bottom: 10px;
  width: 100%;
}

.hb-prize-text h3 {
  font-family: var(--hb-font-display);
  font-size: 20px;
  color: #5c3327;
  margin: 0 0 10px;
  font-weight: 700;
}

.hb-prize-text p {
  font-size: 14px;
  color: #5c3327;
  margin: 0;
  line-height: 1.5;
}

/* Subtítulo del formulario */
.hb-fullscreen .hb-subtitle {
  font-family: var(--hb-font-display);
  font-size: 18px;
  color: #5c3327;
  text-align: center;
  margin: 0 0 10px;
  font-weight: 700;
}

/* Estilos del formulario en fullscreen */
.hb-fullscreen .hb-form-inner {
  width: 100%;
}

.hb-fullscreen .hb-grid-3,
.hb-fullscreen .hb-grid-2 {
  width: 100%;
}

.hb-fullscreen .hb-field {
  background: #f5efe3;
  border: 2px solid #a88734;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 14px;
  color: #5c3327;
  width: 100%;
}

.hb-fullscreen .hb-field::placeholder {
  color: #5c3327;
  font-family: var(--hb-font-display);
  font-size: 13px;
  text-transform: uppercase;
  transition: opacity .2s ease;
}

.hb-fullscreen .hb-field:focus::placeholder {
  opacity: 0.3;
}

.hb-fullscreen .hb-field:focus {
  outline: 2px solid var(--hb-gold);
  box-shadow: none;
}

/* Estilos de error en campos */
.hb-fullscreen .hb-field--error {
  border-color: #c44 !important;
  outline-color: #c44;
}

.hb-fullscreen .hb-field-error {
  color: #ffffff;
  font-size: 11px;
  margin-top: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}

.hb-fullscreen .hb-consent .hb-field-error {
  margin-left: 0;
  margin-top: 2px;
}

/* Grids con espacio adecuado */
.hb-fullscreen .hb-grid {
  gap: 8px 10px;
  margin-bottom: 8px;
}

.hb-fullscreen .hb-row {
  margin: 0;
}

/* Botón subir tique en fullscreen */
.hb-fullscreen .hb-file__btn {
  background: #f5efe3;
  border: 2px solid #a88734;
  color: #5c3327;
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  font-size: 14px;
  text-transform: uppercase;
  transition: background .15s ease;
}

.hb-fullscreen .hb-file__btn:hover {
  background: #ebe3d3;
}

.hb-fullscreen .hb-file__btn:active {
  background: #ddd5c3;
}

.hb-fullscreen .hb-file {
  width: 100%;
}

.hb-fullscreen .hb-row--ticket {
  width: 100%;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}
.hb-fullscreen .hb-row--ticket .hb-file {
  flex: 1;
  min-width: 140px;
}

.hb-fullscreen .hb-file__name {
  color: #5c3327;
  font-size: clamp(8px, 1vw, 11px);
}

/* Consentimientos en fullscreen */
.hb-fullscreen .hb-row--consents {
  margin-top: 10px;
  margin-bottom: 8px;
  row-gap: 6px;
  text-align: left;
}

.hb-fullscreen .hb-consent {
  color: #5c3327;
  font-size: 13px;
  line-height: 1.5;
  padding-left: 28px;
  width: 100%;
  display: block;
  text-align: left;
}

.hb-fullscreen .hb-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-color: #a88734;
  background: #fff;
}

.hb-fullscreen .hb-consent a {
  color: #5c3327;
  text-decoration: underline;
}

/* Botón PARTICIPA en fullscreen */
.hb-fullscreen .hb-row--submit {
  margin-top: 10px;
  text-align: left;
}

.hb-fullscreen .hb-btn {
  background: #f5efe3;
  color: #5c3327;
  border: 2px solid #a88734;
  padding: 14px 40px;
  font-size: 18px;
  font-family: var(--hb-font-display);
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  text-transform: uppercase;
}

.hb-fullscreen .hb-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

.hb-fullscreen .hb-btn:disabled,
.hb-fullscreen .hb-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Nota legal en fullscreen */
.hb-fullscreen .hb-legal-note {
  color: #5c3327;
  font-size: 11px;
  text-align: left;
  margin-top: 10px;
  line-height: 1.4;
}

/* Errores en fullscreen */
.hb-fullscreen .hb-error {
  background: rgba(179, 45, 46, 0.15);
  border: 1px solid #b32d2e;
  border-radius: 4px;
  padding: clamp(6px, 1vh, 10px);
  margin-bottom: clamp(8px, 1.2vh, 12px);
}

.hb-fullscreen .hb-error p {
  color: #8b0000;
  margin: 0;
  font-size: clamp(9px, 1.1vw, 12px);
}

/* Ocultar elementos del tema en fullscreen - solo selectores específicos del tema */
body:has(.hb-fullscreen) > header,
body:has(.hb-fullscreen) > footer {
  display: none !important;
}

/* Quitar padding del container principal */
body:has(.hb-fullscreen) .wp-site-blocks > header,
body:has(.hb-fullscreen) .wp-site-blocks > footer {
  display: none !important;
}

body:has(.hb-fullscreen) .wp-site-blocks {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body:has(.hb-fullscreen) .is-layout-constrained > .hb-fullscreen {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ====== RESPONSIVE FULLSCREEN ====== */

/* Pantallas muy anchas - limitar ancho máximo */
@media (min-width: 1481px) {
  .hb-fullscreen .hb-form-right {
    max-width: 680px;
  }
}

/* Pantallas medianas */
@media (max-width: 1200px) {
  .hb-fullscreen .hb-form-right {
    padding: 15px 20px;
  }
  
  .hb-form-right-inner {
    max-width: 580px;
  }
}

/* Tablet y móvil - cambiar a diseño vertical */
@media (max-width: 900px) {
  .hb-fullscreen {
    flex-direction: column;
    min-height: auto;
  }
  
  .hb-fullscreen::before {
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 50vh;
    background-size: cover;
    background-position: top center;
  }
  
  
  /* Ocultar elementos de desktop en móvil */
  .hb-logo-fixed,
  .hb-title-fixed,
  .hb-promo-text,
  .hb-tabletas-fixed,
  .hb-fade-overlay {
    display: none !important;
  }
  
  /* Ocultar fondo de desktop */
  .hb-fullscreen::before {
    display: none;
  }
  
  /* Mostrar header móvil */
  .hb-mobile-header {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
  }
  
  /* Fondo móvil con repetición vertical */
  .hb-fullscreen {
    background-image: var(--hb-bg-mobile);
    background-repeat: repeat-y;
    background-size: 100% auto;
    background-position: top center;
    background-color: #030303;
    padding: 0;
    flex-direction: column;
    align-items: center;
  }
  
  /* Ocultar título del premio en móvil, mostrar solo descripción */
  .hb-prize-info h3 {
    display: none;
  }
  
  .hb-prize-info {
    margin-bottom: 15px;
  }
  
  .hb-prize-text p {
    font-size: 14px;
    line-height: 1.4;
  }
  
  /* Formulario en móvil con 10% margen lateral */
  .hb-fullscreen .hb-form-right {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 10% 40px !important;
    background: transparent !important;
  }
  
  .hb-form-right-inner {
    max-width: 400px;
    margin: 0 auto;
  }
  
  /* Colores del texto en móvil */
  .hb-fullscreen .hb-subtitle {
    color: #5c3327;
    font-size: 16px;
    text-align: center;
  }
  
  .hb-prize-text h3,
  .hb-prize-text p {
    color: #5c3327;
    text-align: center;
  }
  
  .hb-fullscreen .hb-consent {
    color: #5c3327;
    font-size: 11px;
  }
  
  .hb-fullscreen .hb-consent a {
    color: #5c3327;
  }
  
  .hb-fullscreen .hb-legal-note {
    color: #5c3327;
    font-size: 9px;
    text-align: center;
  }
  
  .hb-fullscreen .hb-row--submit {
    text-align: center;
  }
  
  /* Footer móvil pegado al bottom */
  .hb-mobile-footer {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
    line-height: 0;
  }
  
  /* Ocultar indicador de versión en móvil */
  .hb-version-indicator {
    display: none;
  }
  
  /* Sin espacio después del footer */
  .hb-fullscreen {
    padding-bottom: 0 !important;
  }
}

/* Móvil pequeño */
@media (max-width: 600px) {
  .hb-fullscreen .hb-form-right {
    padding: 15px 12px 40px;
  }
  
  .hb-fullscreen .hb-grid-3,
  .hb-fullscreen .hb-grid-2 {
    grid-template-columns: 1fr;
  }
  
  .hb-fullscreen .hb-field {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .hb-fullscreen .hb-file__btn {
    padding: 10px 12px;
    font-size: 12px;
  }
  
  .hb-fullscreen .hb-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* ====== FIN RESPONSIVE FULLSCREEN ====== */

/* ====== Paleta y reset fino ====== */
.wp-block-post-title { display: none; }
.hb-form {
    --hb-gold: #c7a76c;
    --hb-gold-700: #b39153;
    --hb-text: #5c3327;
    --hb-muted: #5c3327;
    --hb-cream: #f4e8cf; /* fondo botón */
    --hb-font-base: 'Acumin', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --hb-font-display: 'Sargasso Display', 'Sargasso', Georgia, serif;
    font-family: var(--hb-font-base);
    color: var(--hb-text);
  }
  
  /* ====== Hero layout (form + media) ====== */
  .hb-hero { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start;   }
  .hb-hero__media { position: relative; }
  .hb-hero__media img { width: 100%; height: auto; border-radius: 8px; display: block; box-shadow: 0 10px 30px rgba(0,0,0,.15); }

  /* ====== Grid ====== */
  .hb-grid { display: grid; grid-template-columns: 1fr; gap: 16px 12px; }
  .hb-row { margin: 0; }
  .hb-row--select { grid-column: 1 / -1; }
  .hb-grid-3, .hb-grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px 12px; }
  
  @media (min-width: 768px) {
    .hb-hero { grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; }
    .hb-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
    .hb-grid-2 { grid-template-columns: 1fr 1fr; }
  }

  @media (min-width: 1024px) {
    .hb-hero { grid-template-columns: 1.15fr .85fr; gap: 42px; }
    .hb-hero__media img { max-height: 520px; object-fit: cover; }
    .hb-hero__media::before,
    .hb-hero__media::after { content: ""; position: absolute; left: 8%; right: 8%; height: 46px; border-radius: 4px; z-index: 0; }
    .hb-hero__media::before {
      top: -26px;
      background: linear-gradient(180deg, #e7cf9d, #c8a96e);
      box-shadow: 0 2px 10px rgba(0,0,0,.08) inset;
    }
    .hb-hero__media::after {
      bottom: -28px;
      background:
        repeating-linear-gradient(45deg, #ead7ae, #ead7ae 6px, #e9d1a0 6px, #e9d1a0 12px);
      opacity: .95;
    }
  }
  /* Tarjeta del formulario con esquinas doradas sutiles */
  .hb-card { max-width: 800px; width: 100%; position: relative; padding: 20px 20px 8px;  box-sizing: border-box; margin: 0 auto; margin-bottom: 20px; /* border: 1px solid #d2a538 */}
  /*
  .hb-card:before, .hb-card:after { content: ''; position: absolute; width: 10px; height: 10px; border: 1px solid var(--hb-gold); background: #fff; }
  .hb-card:before { left: -5px; top: -5px; transform: rotate(45deg); }
  .hb-card:after { right: -5px; bottom: -5px; transform: rotate(45deg); }
  */
  /* Marco específico para step 1 con esquinas como rombos pequeños y color #d2a538 */
  .hb-card--frame{ border-color:#d2a538; border-radius: 8px; position: relative; overflow: visible; }
  /* Evitar recortes de esquinas; no ocultar overflow horizontal global */
  .hb-form{ overflow-x: visible; }
  /* Esquinas superiores con pseudo-elementos del frame */
/*
  .hb-card--frame:before, .hb-card--frame:after{ content:""; position:absolute; width: 6px; height: 6px; background:#d2a538; transform: rotate(45deg); border: none; pointer-events: none; }
  .hb-card--frame:before{ left:-4px; top:-4px; }
  .hb-card--frame:after{ right:-4px; top:-4px; }
*/
  /* Esquinas inferiores con elementos auxiliares */
  .hb-card--frame .hb-corner{ position:absolute; width:6px; height:6px; background:#d2a538; transform: rotate(45deg); pointer-events: none; }
  .hb-card--frame .hb-corner.bl{ left:-4px; bottom:-4px; }
  .hb-card--frame .hb-corner.br{ right:-4px; bottom:-4px; }
  
  /* ====== Labels y títulos de campo (en mayúsculas) ====== */
  .hb-form label {
    display: block;
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: none; /* mostrar tal cual en PHP */
    color: var(--hb-muted);
    margin-bottom: 6px;
  }
  /* Consentimientos: color específico */
  .hb-form label.hb-consent { color: #5c3327; letter-spacing: 0; }
  
  /* ====== Campos (píldora dorada) ====== */
  .hb-field, .hb-select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 2px solid var(--hb-gold);
    border-radius: 6px;
    background: #fff;
    color: var(--hb-text);
    line-height: 1.2;
    font-size: 15px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
  }
  
  /* Focus accesible */
  .hb-field:focus, .hb-select:focus {
    border-color: var(--hb-gold-700);
    box-shadow: 0 0 0 3px rgba(199,167,108,.18);
  }
  
  /* Placeholders en mayúsculas como el mockup */
  .hb-field::placeholder { text-transform: uppercase; color: #5c3327; font-family: var(--hb-font-display); letter-spacing: .04em; transition: opacity .2s ease; }
  .hb-field:focus::placeholder { opacity: 0.3; }
  
  /* ====== Select con chevron a la derecha ====== */
  .hb-select {
    appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, var(--hb-gold) 50%),
      linear-gradient(135deg, var(--hb-gold) 50%, transparent 50%);
    background-position:
      calc(100% - 22px) 50%,
      calc(100% - 16px) 50%;
    background-size: 7px 7px, 7px 7px;
    background-repeat: no-repeat;
    padding-right: 46px;
  }

  /* Estilo del dropdown abierto (lista de opciones) 
     Nota: requiere soporte de UA; en la mayoría de navegadores modernos se pueden estilizar
     mediante pseudo-elementos específicos. Aportamos mejoras seguras. */
  select.hb-select::-ms-expand { display: none; }
  select.hb-select:focus { border-color: var(--hb-gold-700); }
  select.hb-select option { padding: 10px; }

  /* WebKit: simulamos borde y fondo del panel desplegado */
  @supports selector(select:focus-visible) {
    select.hb-select { background-color: #fff; }
  }
  
  /* ====== Consentimientos ====== */
  .hb-row--consents {
    display: grid; grid-template-columns: 1fr; row-gap: 10px;
    margin-top: 18px; margin-bottom: 10px;
  }
  .hb-consent {
    position: relative; display: block;
    /* sangría para todo el texto (20px checkbox + 12px espacio) */
    padding-left: 32px;
    font-size: 30px; line-height: 1.6;
    text-transform: none; letter-spacing: 0;
    margin: 0; padding-top: 6px; padding-bottom: 0px; border: 0; list-style: none; background: none;
    color:#5c3327; font-weight: 500; cursor: pointer; width: 90%;
  }
  .hb-consent input[type="checkbox"] {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    width: 20px; height: 20px; margin: 0;
    border: 2px solid #d4ab5b; border-radius: 3px; background: #fff;
    display: inline-grid; place-content: center;
    position: absolute; left: 0; top: .3em; /* alinear visualmente con la primera línea de texto */
  }
  .hb-consent input[type="checkbox"]::after{
    content: ""; width: 12px; height: 12px; background: #d4ab5b; border-radius: 2px; transform: scale(0); transition: transform .12s ease;
  }
  .hb-consent input[type="checkbox"]:checked::after{ transform: scale(1); }
  .hb-consent input[type="checkbox"]:focus-visible{ outline: none; box-shadow: 0 0 0 3px rgba(212,171,91,.25); }
  .hb-consent a{ color:#5c3327; text-decoration: underline; }
  /* Forzar que no aparezca ningún icono decorativo heredado del tema en la línea de consentimiento */
  .hb-consent { background: none !important; }
  .hb-consent::before, .hb-consent::after { content: none !important; display: none !important; }
  .hb-consent i, .hb-consent svg { display: none !important; }
  /* Específico: quitar cualquier pseudo-elemento del label de marketing */
  .hb-consent.hb-consent--marketing::before,
  .hb-consent.hb-consent--marketing::after { content: none !important; display: none !important; }
  /* Checkbox dorado cuando está seleccionado */
  .hb-consent input[type="checkbox"]:checked { accent-color: #d4ab5b; }
  
  /* Desactivar adornos dentro del bloque de consentimientos para evitar rombos solapados */
  .hb-row--consents:before,
  .hb-row--consents:after { content: none !important; display: none !important; }
  
  /* ====== Botón VOTA con textura y flecha ====== */
  .hb-btn {
    display: inline-flex; align-items: center; gap: 14px;
    border: 0px solid var(--hb-gold);
    border-radius: 4px;
    background: #f4d38e;
    color: #8a6d32;
    padding: 10px 22px; /* menos alto */
    text-transform: uppercase;
    letter-spacing: .08em;
    font-family: var(--hb-font-display);
    font-weight: 700; /* Sargasso */
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(0,0,0,.03);
    transition: transform .08s ease, box-shadow .12s ease, background-color .2s ease;
  }
  /* .hb-btn::after { content: "→"; font-size: 18px; line-height: 1; } */
  .hb-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,.06); }
  .hb-btn:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(0,0,0,.06); }
  
  /* Centrado del botón y espaciado final */
  .hb-row--submit { margin-top: 18px; }
  .hb-section-label{ margin: 24px 0 10px; font-family: var(--hb-font-display); color: var(--hb-text); text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
  /* Captcha centrado y control de overflow */
  .hb-row--captcha{ display:flex; justify-content:center; align-items:center; margin-top: 14px; overflow:hidden; }
  
  /* ====== Mensajes ====== */
  .hb-error, .hb-success { margin: 12px 0; font-size: 14px; }
  .hb-error { color: #b32d2e; }
  .hb-success { color: #1d6f42; }
  
  /* ====== Ajustes finos para que el label no “salte” encima del campo ====== */
  .hb-row > label { margin-bottom: 0; }
  .hb-row input.hb-field, .hb-row select.hb-select { margin-top: 6px; }
  .hb-help-text{ font-size: 12px; color: #5c3327; margin-top: 6px; line-height: 1.35; }

  /* ====== Título dorado en varias líneas ====== */
  .hb-title { 

        color: #d2a538;
        font-family: var(--hb-font-display);
        font-weight: 700;
        text-align: center;
        letter-spacing: .06em;
        text-transform: uppercase;
        line-height: 1.08;
        margin: 6px 0 18px;
        font-size: clamp(20px, 3vw, 30px);
    }

 
  .hb-title span { display: inline-block; }

  /* Opcional: ocultar título de la página del tema cuando se usa nuestro formulario */
  body.hb-has-pp-form .entry-title,
  body.hb-has-pp-form .page-title,
  body.hb-has-pp-form h1.entry-title { display: none; }

  /* ====== Divisor ornamental (línea con rombo) ====== */
  .hb-divider { position: relative; height: 24px; margin: 10px 0 2px; }
  .hb-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #d6c099; transform: translateY(-50%); }
  .hb-divider::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; background: #d7c49b; border: 1px solid var(--hb-gold); transform: translate(-50%,-50%) rotate(45deg); }
  /* Separador previo a consentimientos con rombos pequeños en ambos extremos (sin borde) */
  .hb-sep{
    position: relative; height: 18px; margin: 14px 0;
    background-image: linear-gradient(#d6c099,#d6c099);
    background-size: 100% 1px; background-position: center; background-repeat: no-repeat;
  }
  .hb-sep::before, .hb-sep::after{
    content: ""; position: absolute; top: 50%; width: 4px; height: 4px;
    background: #d7c49b; transform: translateY(-50%) rotate(45deg);
  }
  .hb-sep::before{ left: -2px; }
  .hb-sep::after{ right: -2px; }
  .hb-legal-note{
    font-size: 12px;
    color: var(--hb-muted);
    text-align: center;
    margin-top: 18px;
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
    text-transform: none;
    color: var(--hb-gold);
  }
  .wp-block-group.alignfull.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained{
    padding-top: 0 !important;
  }
  
  /* ====== Botón del input file (Seleccionar archivo) ====== */
  .hb-form input[type="file"],
  .hb-fullscreen input[type="file"] {
    display:none !important;
    opacity: 0;
    position: absolute;
    pointer-events: none;
  }
  .hb-file{ display:flex; align-items:center; gap:12px; }
  .hb-file__btn{
    display:inline-flex; align-items:center; justify-content:center;
    border:2px solid var(--hb-gold); border-radius:4px; background:#fff;
    color: var(--hb-text);
    padding: 8px 14px; text-transform: uppercase; letter-spacing:.06em;
    font-family: var(--hb-font-display); font-weight:700; cursor:pointer;
    transition: background .15s ease;
  }
  .hb-file__btn:hover{ background: #f5f5f5; }
  .hb-file__btn:active{ background: #e8e8e8; }
  .hb-file{ flex-wrap: wrap; }
  .hb-file__name{ font-size:12px; color: var(--hb-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Reducir padding lateral del marco y escalar captcha en pantallas pequeñas para evitar desbordes */
  @media (max-width: 360px){
    .hb-card--frame{ padding-left: 12px; padding-right: 12px; }
  }
  @media (max-width: 320px){
    .hb-card--frame{ padding-left: 8px; padding-right: 8px; }
  }

  /* ====== Pantalla de elección (paso entre 2 y 3) ====== */
  .hb-choose { margin: 12px auto 16px; }
  .hb-choose__link { display: inline-block; text-decoration: none; }
  .hb-choose__img { box-shadow: 0 10px 30px rgba(0,0,0,.12); transition: transform .12s ease, box-shadow .12s ease; }
  .hb-choose__img:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.16); }

  /* Ocultar imagen de formulario en paso de elección si existe esa clase en el tema */
  .hb-choose .form-img { display: none !important; }

  /* ====== Resultado de premio (step 3) ====== */
  .hb-reward { text-align: center; margin: 12px auto 16px; }
  .hb-reward__media { display: inline-block; border: 1px solid var(--hb-gold); border-radius: 6px; padding: 8px; }
  .hb-reward__img { max-width: 520px; width: 100%; height: auto; display: block; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
  .hb-reward__cta { margin-top: 12px; }
  .hb-reward__title { color: var(--hb-gold); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin: 10px 0 6px; }
  .hb-reward__sub { color: var(--hb-text); font-size: 14px; max-width: 520px; margin: 0 auto 12px; }

  /* ====== Modal bloqueo 24h (participación) ====== */
  body.hb-modal-open { overflow: hidden; }
  .hb-modal-overlay{ position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: opacity .2s ease; z-index: 9998; }
  .hb-modal-overlay.is-open{ opacity: 1; visibility: visible; }
  .hb-modal{ position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; z-index: 9999; pointer-events: none; }
  .hb-modal.is-open{ pointer-events: auto; }
  .hb-modal__inner{ max-width: 360px; width: 100%; background: #2b2016; color: #e9d1a0; border: 1px solid #c7a76c; border-radius: 8px; padding: 18px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
  .hb-modal__title{ font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
  .hb-modal__subtitle{ color: #ead7ae; margin-bottom: 10px; font-size: 14px; }
  .hb-modal__back{ color: #e9d1a0; margin: 6px 0 8px; letter-spacing: .04em; }
  .hb-countdown{ display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 14px; }
  .hb-countdown__box{ background: #3b2e20; border: 1px solid #c7a76c; border-radius: 4px; padding: 8px 10px; min-width: 74px; }
  .hb-countdown__box span{ display: block; font-size: 28px; line-height: 1; color: #e9d1a0; }
  .hb-countdown__box small{ display: block; color: #d0b37a; margin-top: 4px; font-size: 11px; text-transform: lowercase; }
  .hb-countdown__sep{ color: #e9d1a0; font-size: 24px; }
  .hb-modal__actions .hb-btn--light{ background: #ead7ae; color: #5a4726; }

/* ====== Mensaje de agradecimiento (después del envío) ====== */
.hb-thanks-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.hb-fullscreen .hb-thanks__title {
  font-family: var(--hb-font-display);
  font-size: clamp(24px, 3vw, 36px);
  color: #5c3327;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 24px;
  font-weight: 700;
  line-height: 1.2;
}

.hb-fullscreen .hb-thanks__message {
  font-family: var(--hb-font-base);
  font-size: clamp(16px, 1.8vw, 22px);
  color: #5c3327;
  line-height: 1.6;
  margin: 0 0 30px;
  max-width: 500px;
}

.hb-thanks-container .hb-legal-note {
  color: #5c3327;
  font-size: 11px;
  text-align: center;
  margin-top: auto;
  line-height: 1.4;
  max-width: 500px;
  opacity: 0.85;
}

/* Responsive para mensaje de agradecimiento */
@media (max-width: 900px) {
  .hb-fullscreen .hb-thanks-container {
    padding: 40px 20px;
  }
  
  .hb-fullscreen .hb-thanks__title {
    color: #fff;
  }
  
  .hb-fullscreen .hb-thanks__message {
    color: #f0e6d2;
  }
  
  .hb-thanks-container .hb-legal-note {
    color: #d4ab5b;
  }
}

/* ====== Modal de Contenido Legal (Bases Legales / Política de Privacidad) ====== */
#hb-legal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 99998;
}

#hb-legal-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

#hb-legal-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#hb-legal-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.hb-legal-modal__container {
  position: relative;
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  background: #fffdf8;
  border: 2px solid #c7a76c;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hb-legal-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(180deg, #f5efe3 0%, #ebe3d3 100%);
  border-bottom: 1px solid #d4ab5b;
  flex-shrink: 0;
}

.hb-legal-modal__title {
  font-family: 'Sargasso Display', 'Sargasso', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #5c3327;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.hb-legal-modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #c7a76c;
  border-radius: 50%;
  cursor: pointer;
  color: #5c3327;
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
  transition: background-color 0.15s ease, transform 0.1s ease;
  flex-shrink: 0;
}

.hb-legal-modal__close:hover {
  background: #f5efe3;
  transform: scale(1.05);
}

.hb-legal-modal__close:active {
  transform: scale(0.95);
}

.hb-legal-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
}

/* Estilos del contenido legal */
.hb-legal-content {
  font-family: 'Acumin', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #3d3d3d;
  font-size: 14px;
  line-height: 1.7;
}

.hb-legal-content h2 {
  font-family: 'Sargasso Display', 'Sargasso', Georgia, serif;
  font-size: 22px;
  color: #5c3327;
  text-align: center;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hb-legal-content h3 {
  font-family: 'Sargasso Display', 'Sargasso', Georgia, serif;
  font-size: 16px;
  color: #a88734;
  text-align: center;
  margin: 0 0 24px;
  font-weight: 400;
}

.hb-legal-content h4 {
  font-family: 'Sargasso Display', 'Sargasso', Georgia, serif;
  font-size: 15px;
  color: #5c3327;
  margin: 24px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e8dcc8;
}

.hb-legal-content p {
  margin: 0 0 14px;
  text-align: justify;
}

.hb-legal-content ul,
.hb-legal-content ol {
  margin: 0 0 14px;
  padding-left: 24px;
}

.hb-legal-content li {
  margin-bottom: 8px;
}

.hb-legal-content a {
  color: #a88734;
  text-decoration: underline;
}

.hb-legal-content a:hover {
  color: #5c3327;
}

.hb-legal-content strong {
  color: #5c3327;
}

.hb-legal-content hr.hb-legal-separator {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4ab5b, transparent);
  margin: 30px 0;
}

.hb-legal-content .hb-legal-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e8dcc8;
  font-size: 12px;
  color: #888;
  text-align: center;
}

/* Enlaces que abren los modales */
.hb-consent a.hb-legal-link {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
}

.hb-consent a.hb-legal-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* Bloquear scroll del body cuando el modal está abierto */
body.hb-legal-modal-open {
  overflow: hidden !important;
}

/* ====== Responsive Modal Legal ====== */
@media (max-width: 600px) {
  #hb-legal-modal {
    padding: 10px;
  }

  .hb-legal-modal__container {
    max-height: 90vh;
    border-radius: 10px;
  }

  .hb-legal-modal__header {
    padding: 14px 16px;
  }

  .hb-legal-modal__title {
    font-size: 15px;
  }

  .hb-legal-modal__close {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .hb-legal-modal__body {
    padding: 18px 16px;
  }

  .hb-legal-content {
    font-size: 13px;
  }

  .hb-legal-content h2 {
    font-size: 18px;
  }

  .hb-legal-content h3 {
    font-size: 14px;
  }

  .hb-legal-content h4 {
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .hb-legal-modal__header {
    padding: 12px 14px;
  }

  .hb-legal-modal__title {
    font-size: 13px;
  }

  .hb-legal-modal__body {
    padding: 14px 12px;
  }

  .hb-legal-content {
    font-size: 12px;
    line-height: 1.6;
  }
}