/* =====================================================
   Grupo Downtown - Trabaja con nosotros (dark, minimal)
   ===================================================== */

:root{
  --bg:#0b0c10;
  --panel:#11131a;
  --panel2:#0f1117;
  --text:#e9ecf1;
  --muted:#a7b0be;
  --line:rgba(255,255,255,.08);
  --accent:#7dd3fc;
  --ok:#34d399;
  --err:#fb7185;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --r:18px;
}

*{box-sizing:border-box}
html,body{height:100%}

/* =====================================================
   BODY + FONDO CON IMAGEN FIJA Y FADE
   ===================================================== */

body{
  margin:0;
  color:var(--text);
  background: var(--bg);
  position: relative;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

/* Imagen de fondo */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;

  /* IMPORTANTE: link directo a imagen */
  background-image: url("https://i.imgur.com/ACFIeHA.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  /* Fade: baja brillo y contraste */
  filter: brightness(.45) saturate(.95);
}

/* Overlay oscuro + gradientes */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;

  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(125,211,252,.12), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(52,211,153,.06), transparent 60%),
    linear-gradient(180deg, rgba(11,12,16,.55), rgba(11,12,16,.88));
}

/* ===================================================== */

a{color:inherit; text-decoration:none}
a:hover{opacity:.9}
img{max-width:100%; display:block}

.container{width:min(1100px, 92vw); margin:0 auto}

/* =====================================================
   TOPBAR / NAV
   ===================================================== */

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,12,16,.55);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  padding:14px 0;
}

/* =====================================================
   HERO
   ===================================================== */

.hero{padding:44px 0 18px}

.hero__grid{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap:18px;
}

/* ✅ HERO CARD CON IMAGEN + FADE (texto arriba, gente abajo) */
.hero__card{
  position: relative;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding:28px;
  overflow:hidden;

  background-image: url("https://i.imgur.com/XmNApik.jpeg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center; /* CENTRADA */
}

/* Fade/overlay para legibilidad */
.hero__card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;

  /* Fade con estilo, no tapa la imagen */
  background:
    linear-gradient(
      180deg,
      rgba(11,12,16,.88) 0%,
      rgba(11,12,16,.55) 35%,
      rgba(11,12,16,.30) 65%,
      rgba(11,12,16,.15) 100%
    );
}


/* Asegura que el contenido quede sobre el overlay */
.hero__card > *{
  position: relative;
  z-index:1;
}

.hero h1{
  margin:0 0 10px;
  font-size:34px;
  letter-spacing:-.02em;
}

.hero p{
  margin:0;
  color:#fff;
  line-height:1.5;
}

/* =====================================================
   ASIDE STATS
   ===================================================== */

.aside{
  display:grid;
  gap:12px;
}

.stat{
  background: rgba(17,19,26,.65);
  border:1px solid var(--line);
  border-radius: var(--r);
  padding:16px;
}

.stat strong{
  display:block;
  font-weight:700;
}

.stat span{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
  line-height:1.4;
}

/* =====================================================
   SECTIONS
   ===================================================== */

.section{padding:26px 0 56px}

.section__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  margin-bottom:16px;
}

.section__head h2{
  margin:0;
  font-size:22px;
  letter-spacing:-.01em;
}

.section__head p{
  margin:6px 0 0;
  color:var(--muted);
}

/* =====================================================
   JOBS GRID
   ===================================================== */

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

.card{
  background: rgba(17,19,26,.72);
  border:1px solid var(--line);
  border-radius: var(--r);
  padding:18px;
  box-shadow: 0 12px 26px rgba(0,0,0,.28);
}

.jobcard__top{
  display:flex;
  gap:14px;
  align-items:flex-start;
}

.jobcard__icon{
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background: rgba(125,211,252,.12);
  border:1px solid rgba(125,211,252,.18);
}

.jobcard__icon svg{
  width:22px;
  height:22px;
  fill: currentColor;
  color: var(--text);
  opacity:.95;
}

.jobcard__meta h3{
  margin:0 0 6px;
  font-size:16px;
}

.jobcard__meta p{
  margin:0;
  color:var(--muted);
  line-height:1.45;
  font-size:13px;
}

.jobcard__need{
  margin-left:auto;
  text-align:right;
  min-width:92px;
}

.jobcard__num{
  font-size:30px;
  font-weight:800;
  letter-spacing:-.03em;
  line-height:1;
}

.jobcard__label{
  color:var(--muted);
  font-size:12px;
  margin-top:6px;
}

/* Tags */

.tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.tag{
  font-size:12px;
  color: rgba(233,236,241,.92);
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
}

/* =====================================================
   FORM
   ===================================================== */

.form{
  margin-top:14px;
  background: rgba(17,19,26,.72);
  border:1px solid var(--line);
  border-radius: var(--r);
  padding:18px;
}

.form__row{
  display:grid;
  gap:8px;
  margin-bottom:14px;
}

label{
  font-size:13px;
  color: rgba(233,236,241,.92);
}

input, select, textarea{
  width:100%;
  background: rgba(255,255,255,.04);
  border:1px solid var(--line);
  color:var(--text);
  border-radius: 14px;
  padding:12px;
  outline:none;
}

textarea{
  min-height:110px;
  resize:vertical;
}

input:focus,
select:focus,
textarea:focus{
  border-color: rgba(125,211,252,.45);
}

.help{
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}

.form__actions{
  display:flex;
  justify-content:flex-end;
  margin-top:8px;
}

.btn{
  border:1px solid rgba(125,211,252,.25);
  background: rgba(125,211,252,.14);
  color:var(--text);
  padding:12px 16px;
  border-radius: 999px;
  font-weight:700;
  cursor:pointer;
}

.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.alert{
  display:none;
  margin-top:14px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
}

.alert--ok{
  border-color: rgba(52,211,153,.35);
  background: rgba(52,211,153,.10);
}

.alert--error{
  border-color: rgba(251,113,133,.35);
  background: rgba(251,113,133,.10);
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer{
  border-top:1px solid var(--line);
  padding:22px 0;
  color:var(--muted);
}

.footer__grid{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  font-size:13px;
}

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

@media (max-width: 980px){
  .hero__grid{grid-template-columns: 1fr}
  .jobs-grid{grid-template-columns: repeat(2, minmax(0, 1fr))}
}

@media (max-width: 640px){
  .hero{padding-top:28px}
  .hero h1{font-size:28px}
  .jobs-grid{grid-template-columns: 1fr}
  .jobcard__need{min-width:84px}
}


/* =====================================================
   TOAST / MODAL FEEDBACK (POSTULACIÓN)
   ===================================================== */
.hp{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

.toast-wrap{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:9999;
}

.toast{
  pointer-events:auto;
  position:fixed;
  right:18px;
  top:18px;
  max-width:min(420px, calc(100vw - 36px));
  border:1px solid var(--line);
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius:18px;
  padding:14px 14px 12px;
  box-shadow: 0 14px 50px rgba(0,0,0,.45);
  transform: translateY(-10px);
  opacity:0;
  transition: transform .28s ease, opacity .28s ease;
}

.toast.is-show{
  transform: translateY(0);
  opacity:1;
}

.toast__title{
  font-weight:650;
  letter-spacing:.2px;
  margin:0 0 6px 0;
  font-size:14px;
}

.toast__msg{
  margin:0;
  color:var(--muted);
  line-height:1.45;
  font-size:13px;
}

.toast__meta{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin-top:10px;
}

.toast__pill{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--muted);
}

.toast__close{
  all:unset;
  cursor:pointer;
  padding:6px 10px;
  border-radius:10px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  transition: transform .15s ease, background .15s ease;
}
.toast__close:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
}

.toast--ok{
  border-color: rgba(52,211,153,.35);
}
.toast--error{
  border-color: rgba(251,113,133,.35);
}

@media (max-width: 520px){
  .toast{
    right:12px;
    left:12px;
    max-width:none;
  }
}


/* Button loading spinner */
.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.btn__spinner{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: rgba(255,255,255,.85);
  display: none;
  animation: gdspin .8s linear infinite;
}
.btn.is-loading .btn__spinner{ display:inline-block; }
@keyframes gdspin{ to{ transform: rotate(360deg);} }
.btn[disabled]{ opacity:.75; cursor:not-allowed; }
