/* =============================================================================
   Teatro Votaciones — Estilos front-end
   Compatible con cualquier tema WordPress. Usa prefijo .tevo- para evitar
   colisiones de nombres.
   ============================================================================= */

/* ── Variables ─────────────────────────────────────────────────────────────── */

/* ── Utilidad accesibilidad ──────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── Contenedor base ─────────────────────────────────────────────────────── */
.tevo-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    font-family: inherit;
    color: var(--main);
    margin-bottom: 80px;
    background: rgba(var(--White-rgb), 0.3);
}

/* ── Notificaciones / alertas ────────────────────────────────────────────── */
.tevo-alert, .tevo-notice {
    border-left: 0px solid currentColor;
    padding: 20px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--secondary) !important;
    margin: 0 auto;
    text-transform: uppercase;
    font-weight: 600;
}

/* ── Formulario base ─────────────────────────────────────────────────────── */


.tevo-form__row--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}



.tevo-form__label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 15px;
}

.tevo-form__label span { color: var(--secondary); margin-left: 2px; }

.tevo-form__input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--neutral-10);
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: rgba(var(--White-rgb), 0.3);
    color: var(--main);
}

.tevo-form__input:focus {
    outline: none;
    border-color: var(--main);
    box-shadow: 0 0 0 3px rgba(197,159,79,.2);
}

.tevo-form__hint {
    font-size: 14px;
    margin-top: 14px;
    margin-bottom: 20px;
    color: var(--dorado);
    font-style: italic;
    font-weight: 500;
}

/* Fieldset y leyenda */
.tevo-form__fieldset {
    border: none;
    padding: 0;
    margin: 0 0 24px;
}

.tevo-form__legend {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
    padding: 0;
    color: var(--main);
}

/* Checkbox */
.tevo-form__group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tevo-form__check-label {
    font-size: 14px;
    color: var(--main);
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tevo-form__check-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--secondary);
}

/* ── Instrucción ─────────────────────────────────────────────────────────── */
.tevo-instruction {
    background: transparent;
    padding: 30px 0px;
    margin-bottom: 20px;
    font-size: 15px;
    border-top: 1px dashed var(--neutral-30);
    border-radius: 0;
    margin-top: 20px;
}

.tevo-instruction p { margin: 0; }

.tevo-instruction span{
    font-size: 14px;
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--dorado);
  font-style: italic;
  font-weight: 500;
}

/* ── Lista de obras (formulario) ─────────────────────────────────────────── */
.tevo-shows-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.tevo-show-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(var(--White-rgb), 0.3);
    border: 1px solid var(--neutral-10);
    padding: 20px 30px;
    transition: border-color var(--transition);
}

.tevo-show-row:hover {
    border-color: var(--secondary);
}

.tevo-show-row.is-rated {
    border-color: var(--neutral-70);
    background: rgba(var(--White-rgb), 0.3);
}

.tevo-show-row__img-wrap { flex-shrink: 0; }

.tevo-show-row__img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.tevo-show-row__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tevo-show-row__title {
    font-weight: 500;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.tevo-show-row__company {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: .03em;
}

.tevo-show-row__desc {
    font-size: 13px;
    color: var(--main);
}

/* ── Grid de obras ───────────────────────────────────────────────────────── */
.tevo-shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.tevo-show-card {
    position: relative;
    border: 2px solid var(--neutral-10);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: rgba(var(--White-rgb), 0.3);
    display: flex;
    flex-direction: column;
}

.tevo-show-card:hover {
    border-color: var(--secondary);
   
}

.tevo-show-card__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.tevo-show-card:has(.tevo-show-card__radio:checked) {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(197,159,79,.3);
}

.tevo-show-card__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.tevo-show-card__title {
    font-weight: 600;
    font-size: 15px;
    padding: 12px 14px 4px;
    display: block;
}

.tevo-show-card__desc {
    font-size: 13px;
    color: var(--main);
    padding: 0 14px 14px;
    display: block;
    flex: 1;
}

/* ── Sistema de estrellas 1–5 ─────────────────────────────────────────────
   Técnica clásica CSS: radios en orden inverso (5→1) con direction:rtl
   y selector ~ para iluminar hacia la izquierda al hacer hover/check.
   ──────────────────────────────────────────────────────────────────────── */
.tevo-stars {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.tevo-stars__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.tevo-stars__label {
    font-size: 28px;
    color: var(--neutral-10);
    cursor: pointer;
    transition: color var(--transition), transform var(--transition);
    line-height: 1;
    padding: 2px;
    -webkit-user-select: none;
    user-select: none;
}

.tevo-stars__label:hover,
.tevo-stars__label:hover ~ .tevo-stars__label,
.tevo-stars__radio:checked ~ .tevo-stars__label {
    color: var(--secondary);
}

.tevo-stars__label:hover {
    transform: scale(1.15);
}

.tevo-stars__radio:focus-visible + .tevo-stars__label {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
    border-radius: 2px;
}

.tevo-stars__value {
    font-size: 13px;
    color: var(--main);
    margin-left: 6px;

    display: inline-block;
}

/* ── Botones ─────────────────────────────────────────────────────────────── */
.tevo-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), opacity var(--transition);
    border: 2px solid transparent;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    margin-top: 30px;
}

.tevo-btn--primary {
    background: var(--secondary);
    color: #ffffff;
    border-color: var(--secondary);
}

.tevo-btn--primary:hover,
.tevo-btn--primary:focus {
    background: var(--main);
    border-color: var(--main);
    color: #ffffff;
    text-decoration: none;
}

.tevo-btn--outline {
    background: var(--secondary);
    color: var(--White);
    border-color: var(--secondary);
}

.tevo-btn--outline:hover,
.tevo-btn--outline:focus {
    background: var(--main);
    color: #ffffff;
    text-decoration: none;
    border-color: var(--main);
}

.tevo-btn:disabled,
.tevo-btn[aria-disabled="true"] {
    opacity: .6;
    cursor: not-allowed;
}

/* ── Página de confirmación ──────────────────────────────────────────────── */
.tevo-confirm-msg {
    text-align: center;
    padding: 48px 32px;
    max-width: 560px;
    margin: 0 auto;
}

.tevo-confirm-msg--success { background:transparent }
.tevo-confirm-msg--error   { background:transparent }
.tevo-confirm-msg--warning { background:transparent }
.tevo-confirm-msg--info    { background:transparent }

.tevo-confirm-msg__icon { font-size: 48px; margin-bottom: 16px; display: none; }

.tevo-confirm-msg h2 {
    font-size: 20px;
    margin-bottom: 12px;
    font-family: var(--typo-secondary);
    text-transform: uppercase;
    font-weight: 500;
}

.tevo-confirm-msg p {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--main);
}

/* ── Página de resultados (lista) ────────────────────────────────────────── */
.tevo-results__summary {
    font-size: 15px;
    color: var(--main);
    margin-bottom: 24px;
}

.tevo-results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tevo-result-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(var(--White-rgb), 0.3);
    border: 1px solid var(--neutral-10);
    padding: 20px 30px;
}

.tevo-result-row--winner {
    border-color: var(--secondary);
    background: rgba(var(--White-rgb), 0.3);
}

.tevo-result-row__pos {
    font-size: 30px;
    font-weight: 400;
    color: var(--main);
    min-width: 36px;
    text-align: center;
    flex-shrink: 0;
    margin-right: 10px;
    margin-left: 10px;
}

.tevo-result-row__trophy { font-size: 24px; }

.tevo-result-row__img-wrap { flex-shrink: 0; }

.tevo-result-row__img {
    width: 80px;
    height: 54px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.tevo-result-row__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tevo-result-row__title {
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
}

.tevo-result-row__company {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: .03em;
}

.tevo-result-row__bar-wrap {
    height: 8px;
    background: rgba(var(--White-rgb), 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.tevo-result-row__bar {
    height: 100%;
    background: var(--secondary);
    border-radius: 4px;
    transition: width 1.2s ease;
    min-width: 2px;
}

.tevo-result-row__stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    text-align: right;
}

.tevo-result-row__score {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
}

.tevo-result-row__avg {
    font-size: 13px;
    color: var(--main);
    white-space: nowrap;
}

/* ── Página de resultados (grid) ─────────────────────────────────────────── */
.tevo-results__total {
    font-size: 15px;
    color: var(--main);
    margin-bottom: 24px;
    text-align: center;
}

.tevo-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.tevo-result-card {
    border: 2px solid var(--neutral-10);
    overflow: hidden;
    background: rgba(var(--White-rgb), 0.3);
   
    position: relative;
    display: flex;
    flex-direction: column;
}

.tevo-result-card--winner { border-color: var(--secondary); }

.tevo-result-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.tevo-result-card__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.tevo-result-card__title {
    font-size: 16px;
    font-weight: 600;
    padding: 14px 14px 6px;
    margin: 0;
}

.tevo-result-card__bar-wrap {
    height: 8px;
    background: rgba(var(--White-rgb), 0.3);
    border-radius: 4px;
    margin: 8px 14px;
    overflow: hidden;
}

.tevo-result-card__bar {
    height: 100%;
    background: var(--secondary);
    border-radius: 4px;
    transition: width 1s ease;
    min-width: 2px;
}

.tevo-result-card__stats {
    font-size: 15px;
    padding: 0 14px 16px;
    margin: 0;
    color: var(--main);
}

.tevo-result-card__pct {
    color: var(--main);
    font-size: 13px;
    margin-left: 4px;
}

/* ── Overrides WordPress ─────────────────────────────────────────────────── */
input.text, input.title,
input[type="email"], input[type="password"],
input[type="tel"], input[type="text"],
select, textarea {
    background: rgba(var(--White-rgb), 0.3);
    border: 1px solid var(--neutral-10);
    padding: 14px;
    color: var(--main);
}

.et_header_style_fullscreen input::placeholder {
    color: var(--main);
}

/* ── Formulario de votación ──────────────────────────────────────────────── */
#tevo-voting-form h4 {
    margin-bottom: 20px;
    font-family: var(--typo-secondary);
    text-transform: uppercase;
    border-bottom: 1px dashed var(--neutral-30);
    padding-bottom: 20px;
    font-size: 18px;
    line-height: 140%;
}

#tevo-voting-form h4 strong { color: var(--secondary); }

.pre-rating-text {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 18px;
}


/* ── video ──────────────────────────────────────────────────────────── */

#video .et_pb_row, #video .et_pb_column, #video .video-intro, #video .et_pb_code_inner{
    height: 100%;
}

.video-bg{
    height: 100%;
    object-fit: cover;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .tevo-form__row--two { grid-template-columns: 1fr; }

    .tevo-show-row { flex-wrap: wrap; flex-direction: column;}
    .tevo-show-row__img { width: 100%; height: 160px; }

    .tevo-stars__label { font-size: 32px; }

    .tevo-result-row { flex-wrap: wrap; flex-direction: column;
        text-align: center;}
    .tevo-result-row__info { width: 100%; order: 4; }

    .tevo-confirm-msg { padding: 32px 16px; }

    .tevo-shows-grid,
    .tevo-results-grid { grid-template-columns: 1fr; }
    .tevo-wrap {padding: 20px;}
    .tevo-show-row__info {
        text-align: center;
      }
      .tevo-instruction {
        text-align: center;
      }
      #tevo-voting-form h4 {
        text-align: center;
      }
      .tevo-alert, .tevo-notice {
 text-align:center
      }
}