/* Estilos propios de la versión PHP (lo que el CSS compilado de Lovable no trae). Usan las mismas variables de color. */

html { scroll-behavior: smooth; }

/* ---- Cuenta regresiva ---- */
.cuenta { background: var(--petrol); color: var(--ivory); }
.cuenta.is-urgent { background: var(--clay); }
.cuenta.is-closed { background: var(--charcoal); }
.cuenta-in { max-width: 72rem; margin: 0 auto; padding: .6rem 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.25rem; }
.cuenta-msg { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; text-align: center; }
.cuenta-msg svg { width: 1.15rem; height: 1.15rem; flex: none; }
.cuenta-msg small { font-weight: 500; opacity: .85; }
.cuenta-nums { display: inline-flex; gap: .4rem; }
@media (max-width: 640px) { .cuenta-msg small { display: block; } }
.cuenta-u { display: inline-flex; flex-direction: column; align-items: center; min-width: 3.1rem; padding: .2rem .45rem; border-radius: 10px; background: rgb(255 255 255 / .14); line-height: 1.1; }
.cuenta-u b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.cuenta-u i { font-style: normal; font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }

/* Botones "Postular" una vez cerrada la convocatoria */
[data-cerrado] { opacity: .6; cursor: not-allowed; pointer-events: none; box-shadow: none; text-decoration: none; }

/* ---- Aviso de campos pendientes (aparece abajo, discreto) ---- */
.aviso { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; margin: 0 auto; max-width: 32rem; display: flex; align-items: center; gap: .75rem;
  padding: .8rem .9rem .8rem 1rem; background: var(--card); color: var(--charcoal); border: 1px solid var(--sand); border-left: 4px solid var(--clay); border-radius: 16px;
  box-shadow: 0 14px 34px -14px rgb(35 34 32 / .5); animation: aviso-in .3s both; }
.aviso > svg { color: var(--clay); width: 1.4rem; height: 1.4rem; flex: none; }
.aviso-text { flex: 1; min-width: 0; font-size: .92rem; line-height: 1.35; }
.aviso-text strong { display: block; color: var(--clay); font-size: .95rem; }
.aviso-btn { min-height: 44px; padding: 0 1.1rem; border-radius: 999px; background: var(--clay); color: var(--ivory); font-weight: 700; font-size: .92rem; white-space: nowrap; cursor: pointer; }
.aviso-btn:hover { filter: brightness(1.08); }
.aviso-x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; color: var(--charcoal); opacity: .6; cursor: pointer; }
.aviso-x:hover { opacity: 1; }
.aviso-x svg { width: 1rem; height: 1rem; }
@keyframes aviso-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .aviso { flex-wrap: wrap; } .aviso-text { flex-basis: calc(100% - 6rem); } .aviso-btn { margin-left: auto; } }

/* Campo con prefijo (instagram.com/ + usuario) */
.prefijo-row { display: flex; align-items: stretch; gap: .5rem; margin-top: .25rem; }
.prefijo-row .prefijo { display: flex; align-items: center; min-height: 54px; padding: 0 .9rem; border-radius: 14px; background: var(--sand); font-weight: 700; white-space: nowrap; font-size: .95rem; }
.prefijo-row .field { min-width: 0; flex: 1; }
.ver-perfil { display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem; min-height: 44px; font-weight: 600; color: var(--clay); text-decoration: underline; text-underline-offset: 3px; }
.ver-perfil svg { width: 1rem; height: 1rem; }
.ver-perfil[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) { .aviso { animation: none; } }
