/* =========================================================
   FERIA DE EMPLEO 2026 · CANDIDATOS / SORTEO
   Bloque informativo de participación
   Página: /candidatos/
   ========================================================= */

.candidatos-sorteo-info {
  --csi-ink: #20354a;
  --csi-muted: #677b8d;
  --csi-orange: #f15a24;
  --csi-orange-soft: #fff3eb;
  --csi-pink: #d60043;
  --csi-line: #dfe6eb;
  --csi-white: #ffffff;

  width: 100%;
  background: var(--csi-white);
  padding: clamp(76px, 8vw, 118px) 0 clamp(8px, 9vw, 28px);
  color: var(--csi-ink);
  overflow: clip;
}

.csi-container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.csi-header {
  max-width: 860px;
  margin: 0 auto 50px;
  text-align: center;
}

.csi-eyebrow {
  margin: 0 0 11px;
  color: var(--csi-orange);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.csi-header h2 {
  margin: 0;
  color: var(--csi-ink);
  font-size: clamp(38px, 4.2vw, 62px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.csi-intro {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--csi-muted);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
}

.csi-prize {
  width: min(990px, 100%);
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 180px;
  gap: 28px;
  align-items: center;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--csi-line);
  border-radius: 20px;
  box-shadow: 0 18px 52px rgba(31, 50, 68, .075);
}

.csi-prize-icon {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  background: var(--csi-orange-soft);
  border: 1px solid #ffd1b8;
  border-radius: 21px;
}

.csi-prize-icon svg {
  width: 52px;
  height: 40px;
  stroke: var(--csi-orange);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.csi-prize-copy {
  min-width: 0;
}

.csi-prize-label {
  display: block;
  margin-bottom: 6px;
  color: var(--csi-orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.csi-prize h3 {
  margin: 0 0 8px;
  color: var(--csi-ink);
  font-size: clamp(25px, 2.25vw, 33px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.csi-prize p,
.csi-step p {
  margin: 0;
  color: var(--csi-muted);
  line-height: 1.55;
}

.csi-prize p {
  max-width: 720px;
  font-size: 16px;
}

.csi-prize-product {
  margin: 0;
  width: 180px;
  justify-self: end;
}

.csi-prize-product img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(23, 35, 45, .08));
}

.csi-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.csi-step {
  position: relative;
  min-height: 266px;
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--csi-line);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(31, 50, 68, .05);
}

.csi-step-number {
  position: absolute;
  top: 27px;
  right: 28px;
  color: #ced7df;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.csi-step-number--result {
  top: 31px;
  color: #f3aa7c;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.csi-step-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  background: #fff0e7;
  border-radius: 14px;
}

.csi-step-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--csi-orange);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.csi-step h3 {
  margin: 0 0 10px;
  color: var(--csi-ink);
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.025em;
}

.csi-step p {
  max-width: 330px;
  font-size: 15.5px;
}

.csi-step--result {
  background: linear-gradient(145deg, #fff 0%, #fff8f3 100%);
  border-color: #f4d2bd;
}

.csi-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}


/* Grupo de acción principal + aviso de apertura */
.csi-action-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.csi-action-date {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--csi-muted);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.csi-action-date strong {
  color: var(--csi-ink);
  font-weight: 800;
}

.csi-action-date-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--csi-orange);
}

.csi-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition:
    transform .18s ease,
    background-color .18s ease,
    border-color .18s ease;
}

.csi-btn:hover {
  transform: translateY(-2px);
}

.csi-btn--primary {
  background: var(--csi-pink);
  color: #fff;
  border: 1px solid var(--csi-pink);
}


.csi-btn--disabled {
  opacity: .62;
  cursor: default;
  pointer-events: none;
}

.csi-btn--disabled:hover {
  transform: none;
}

.csi-btn--secondary {
  background: #fff;
  color: var(--csi-ink);
  border: 1px solid var(--csi-line);
}

/* Entrada sutil, sin alterar Elementor ni el layout. */
.candidatos-sorteo-info.csi-ready .csi-prize,
.candidatos-sorteo-info.csi-ready .csi-step {
  transition: opacity .45s ease, transform .45s ease;
}

.candidatos-sorteo-info.csi-before-view .csi-prize,
.candidatos-sorteo-info.csi-before-view .csi-step {
  opacity: 0;
  transform: translateY(14px);
}

.candidatos-sorteo-info.csi-in-view .csi-prize,
.candidatos-sorteo-info.csi-in-view .csi-step {
  opacity: 1;
  transform: translateY(0);
}

.candidatos-sorteo-info.csi-in-view .csi-step:nth-child(2) {
  transition-delay: .05s;
}

.candidatos-sorteo-info.csi-in-view .csi-step:nth-child(3) {
  transition-delay: .10s;
}

@media (prefers-reduced-motion: reduce) {
  .candidatos-sorteo-info *,
  .candidatos-sorteo-info *::before,
  .candidatos-sorteo-info *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 980px) {
  .csi-prize {
    grid-template-columns: 84px minmax(0, 1fr) 135px;
    gap: 20px;
    padding: 24px;
  }

  .csi-prize-icon {
    width: 76px;
    height: 76px;
    border-radius: 17px;
  }

  .csi-prize-icon svg {
    width: 42px;
  }

  .csi-prize-product {
    width: 135px;
  }
}

@media (max-width: 860px) {
  .csi-container {
    width: min(100% - 30px, 1200px);
  }

  .csi-prize {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .csi-prize-product {
    display: none;
  }

  .csi-steps {
    grid-template-columns: 1fr;
  }

  .csi-step {
    min-height: 0;
  }

  .csi-step p {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .candidatos-sorteo-info {
    padding-top: 70px;
    padding-bottom: 80px;
  }

  .csi-header {
    margin-bottom: 36px;
  }

  .csi-prize {
    grid-template-columns: 1fr;
    margin-bottom: 34px;
  }

  .csi-prize-icon {
    width: 68px;
    height: 68px;
  }

  .csi-step {
    padding: 26px 24px;
  }

  .csi-step-number {
    right: 24px;
  }

  .csi-actions {
    margin-top: 30px;
    display: grid;
  }

  .csi-btn {
    width: 100%;
  }

  .csi-action-group {
    width: 100%;
  }

  .csi-action-date {
    max-width: 320px;
    margin-inline: auto;
  }
}

/* =========================================================
   HERO 3D · RAY-BAN META
   Se añade al CSS existente del sorteo.
   ========================================================= */

.candidatos-hero-3d {
  --hero-bg: #07131d;
  --hero-bg-deep: #03080d;
  --hero-text: #ffffff;
  --hero-muted: #aab8c4;
  --hero-orange: #f15a24;
  --hero-pink: #d60043;

  position: relative;
  width: 100%;
  height: 340vh;
  background: var(--hero-bg);
  color: var(--hero-text);
  overflow: visible;
}

.candidatos-hero-3d .ch3d-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 47%, rgba(241,90,36,.08), transparent 30%),
    linear-gradient(135deg, #091722 0%, #07131d 58%, #03080d 100%);
}

.candidatos-hero-3d .ch3d-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.018),
      transparent 22%,
      transparent 78%,
      rgba(255,255,255,.012)
    );
  z-index: 1;
}

.candidatos-hero-3d .ch3d-top {
  position: absolute;
  z-index: 20;
  top: 26px;
  left: clamp(24px, 3.4vw, 54px);
  right: clamp(24px, 3.4vw, 54px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #8093a3;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.candidatos-hero-3d .ch3d-top strong {
  color: #ffb98b;
}

.candidatos-hero-3d .ch3d-copy {
  position: absolute;
  z-index: 30;
  top: 50%;
  width: min(410px, 31vw);
  opacity: 0;
  transform: translateY(calc(-50% + 18px));
  pointer-events: none;
  transition:
    opacity .24s ease,
    transform .24s ease;
}

.candidatos-hero-3d .ch3d-copy.is-active {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}

.candidatos-hero-3d .ch3d-copy--left {
  left: max(5.4vw, 38px);
}

.candidatos-hero-3d .ch3d-copy--right {
  right: max(5.4vw, 44px);
}

.candidatos-hero-3d .ch3d-eyebrow {
  margin: 0 0 15px;
  color: #ffb27c;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.candidatos-hero-3d .ch3d-copy h1,
.candidatos-hero-3d .ch3d-copy h2 {
  margin: 0 0 18px;
  color: #fff;
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.candidatos-hero-3d .ch3d-copy h1 {
  font-size: clamp(52px, 6vw, 88px);
}

.candidatos-hero-3d .ch3d-copy h2 {
  font-size: clamp(42px, 5vw, 68px);
}

.candidatos-hero-3d .ch3d-copy p:last-child {
  max-width: 390px;
  margin: 0;
  color: var(--hero-muted);
  font-size: 17px;
  line-height: 1.6;
}

.candidatos-hero-3d .ch3d-camera {
  position: absolute;
  z-index: 10;
  inset: 0;
  perspective: 1800px;
  perspective-origin: 54% 50%;
  pointer-events: none;
}

.candidatos-hero-3d .ch3d-product {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(64vw, 980px);
  height: min(62vh, 580px);
  transform-style: preserve-3d;
  will-change: transform;
}

.candidatos-hero-3d .ch3d-view {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  will-change: opacity, transform, filter;
}

.candidatos-hero-3d .ch3d-view img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 22px 30px rgba(0,0,0,.18));
}

.candidatos-hero-3d .ch3d-view[data-ch3d-view="front"] img {
  transform: scale(1.10);
}

.candidatos-hero-3d .ch3d-view[data-ch3d-view="back"] img {
  transform: translateY(-2%) scale(1.33);
}

.candidatos-hero-3d .ch3d-ground {
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 8%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(0,0,0,.22) 0%,
    rgba(0,0,0,0) 70%
  );
  filter: blur(13px);
  opacity: .4;
  transform: translateZ(-70px);
}

.candidatos-hero-3d .ch3d-bottom {
  position: absolute;
  z-index: 30;
  left: max(5.4vw, 38px);
  right: max(3.4vw, 38px);
  bottom: 28px;
}

.candidatos-hero-3d .ch3d-status {
  display: block;
  margin-bottom: 12px;
  color: #8296a7;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.candidatos-hero-3d .ch3d-progress {
  height: 2px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

.candidatos-hero-3d .ch3d-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--hero-orange), #ffd2af);
  will-change: width;
}

.candidatos-hero-3d .ch3d-whiteout {
  position: absolute;
  z-index: 25;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.candidatos-hero-3d .ch3d-scroll-cue {
  position: absolute;
  z-index: 30;
  right: max(3.4vw, 38px);
  bottom: 55px;
  color: #6f8292;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .candidatos-hero-3d {
    height: 310vh;
  }

  .candidatos-hero-3d .ch3d-copy {
    top: 14%;
    left: 24px;
    right: 24px;
    width: auto;
    transform: translateY(16px);
  }

  .candidatos-hero-3d .ch3d-copy.is-active {
    transform: translateY(0);
  }

  .candidatos-hero-3d .ch3d-copy h1 {
    font-size: clamp(46px, 11vw, 60px);
  }

  .candidatos-hero-3d .ch3d-copy h2 {
    font-size: clamp(38px, 9vw, 52px);
  }

  .candidatos-hero-3d .ch3d-copy p:last-child {
    max-width: 560px;
    font-size: 15px;
  }

  .candidatos-hero-3d .ch3d-product {
    top: 59%;
    width: 94vw;
    height: 46vh;
  }

  .candidatos-hero-3d .ch3d-top,
  .candidatos-hero-3d .ch3d-bottom {
    left: 22px;
    right: 22px;
  }

  .candidatos-hero-3d .ch3d-scroll-cue {
    display: none;
  }
}

@media (max-width: 620px) {
  .candidatos-hero-3d {
    height: 290vh;
  }

  .candidatos-hero-3d .ch3d-top span:last-child {
    display: none;
  }

  .candidatos-hero-3d .ch3d-product {
    width: 102vw;
    height: 42vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .candidatos-hero-3d {
    height: auto;
  }

  .candidatos-hero-3d .ch3d-stage {
    position: relative;
    height: min(860px, 100svh);
  }

  .candidatos-hero-3d .ch3d-copy:not([data-ch3d-copy="0"]) {
    display: none;
  }

  .candidatos-hero-3d .ch3d-copy[data-ch3d-copy="0"] {
    opacity: 1;
    transform: translateY(-50%);
  }

  .candidatos-hero-3d .ch3d-view {
    opacity: 0 !important;
  }

  .candidatos-hero-3d .ch3d-view[data-ch3d-view="left"] {
    opacity: 1 !important;
  }

  .candidatos-hero-3d .ch3d-product {
    transform:
      translate3d(calc(-50% + 12vw), -50%, 0)
      scale(.92) !important;
  }
}
/* =========================================================
   BOTÓN ZAMORA MATCH · Evitar estilos globales de enlaces
   ========================================================= */

.candidatos-sorteo-info a.csi-btn--primary,
.candidatos-sorteo-info a.csi-btn--primary:visited,
.candidatos-sorteo-info a.csi-btn--primary:hover,
.candidatos-sorteo-info a.csi-btn--primary:focus,
.candidatos-sorteo-info a.csi-btn--primary:active {
  background: var(--csi-pink) !important;
  border-color: var(--csi-pink) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.candidatos-sorteo-info a.csi-btn--primary span {
  color: inherit !important;
  text-decoration: none !important;
}

.candidatos-sorteo-info a.csi-btn--disabled {
  cursor: default;
  pointer-events: none;
}

.candidatos-sorteo-info a.csi-btn--disabled:hover {
  transform: none;
}