/*
 * Evento Empleo — primer prototipo visual
 * Alcance: Home + cabecera pública del Home.
 * La lógica PHP, rutas, consultas, paneles y formularios internos se mantienen.
 */

.page-home {
  --ee-night: #090d1c;
  --ee-night-soft: #11162a;
  --ee-fuchsia: #f5006c;
  --ee-fuchsia-dark: #b90055;
  --ee-orange: #ff6a00;
  --ee-yellow: #ffc400;
  --ee-light: #f7f7fa;
  --ee-white: #ffffff;
  --ee-text: #171426;
  --ee-muted: #696575;
  background: var(--ee-light);
}

.page-home main {
  background: var(--ee-light);
  padding: 0 0 64px;
}

/* Cabecera */
.page-home .site-header {
  background: rgba(9, 13, 28, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px clamp(18px, 4vw, 64px);
}

.page-home .brand {
  color: white;
}

.page-home .brand-mark {
  background: linear-gradient(145deg, var(--ee-orange), var(--ee-fuchsia));
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(245, 0, 108, 0.3);
  font-size: 0.9rem;
  height: 44px;
  transform: rotate(-3deg);
  width: 44px;
}

.page-home .brand strong {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.page-home .brand small {
  color: rgba(255, 255, 255, 0.62);
}

.page-home .nav-link {
  color: rgba(255, 255, 255, 0.78);
}

.page-home .nav-link:hover,
.page-home .nav-link.active {
  background: rgba(255, 255, 255, 0.09);
  color: white;
}

.page-home .site-header .btn-soft {
  background: linear-gradient(115deg, var(--ee-orange), var(--ee-fuchsia));
  color: white;
}

.page-home .menu-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Hero */
.page-home .ee-home-hero {
  background: var(--ee-night);
  color: white;
  display: block;
  margin: 0;
  max-width: none;
  min-height: 680px;
  overflow: hidden;
  padding: clamp(56px, 6vw, 88px) clamp(18px, 5vw, 76px) 30px;
  position: relative;
}

.page-home .ee-hero-visual {
  background-image: url('../img/home-hero-evento.webp');
  background-position: 72% center;
  background-repeat: no-repeat;
  background-size: cover;
  inset: 0;
  position: absolute;
  z-index: 0;
}

.page-home .ee-hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(255, 106, 0, 0.84) 0%,
      rgba(245, 0, 108, 0.72) 38%,
      rgba(245, 0, 108, 0.34) 55%,
      rgba(9, 13, 28, 0.28) 76%,
      rgba(9, 13, 28, 0.56) 100%
    ),
    linear-gradient(
      180deg,
      rgba(9, 13, 28, 0.03) 0%,
      rgba(9, 13, 28, 0.18) 58%,
      rgba(9, 13, 28, 0.66) 100%
    );
  inset: 0;
  position: absolute;
  z-index: 1;
}

.page-home .ee-home-hero::before {
  color: rgba(255, 255, 255, 0.12);
  content: 'TRABAJA EN EVENTOS';
  font-size: clamp(72px, 10vw, 178px);
  font-weight: 950;
  left: clamp(18px, 4vw, 64px);
  letter-spacing: -0.065em;
  line-height: 0.82;
  max-width: 1100px;
  pointer-events: none;
  position: absolute;
  top: 28px;
  z-index: 2;
}

.page-home .ee-hero-content,
.page-home .ee-hero-search,
.page-home .ee-popular-searches,
.page-home .ee-home-hero .hero-panel {
  margin-left: auto;
  margin-right: auto;
  max-width: 1480px;
  position: relative;
  width: 100%;
  z-index: 3;
}

.page-home .ee-hero-content {
  align-items: end;
  display: grid;
  gap: clamp(32px, 5vw, 90px);
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  min-height: 330px;
}

.page-home .ee-home-hero .hero-copy {
  max-width: 760px;
}

.page-home .ee-home-hero .eyebrow {
  background: rgba(9, 13, 28, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  padding: 8px 13px;
}

.page-home .ee-home-hero .hero-copy h1 {
  color: white;
  font-size: clamp(52px, 6.6vw, 104px);
  letter-spacing: -0.065em;
  line-height: 0.88;
  margin: 22px 0 20px;
  max-width: 850px;
  text-wrap: balance;
}

.page-home .ee-home-hero .hero-copy h1 span {
  color: var(--ee-yellow);
  display: block;
}

.page-home .ee-home-hero .hero-copy p {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(18px, 1.55vw, 25px);
  line-height: 1.4;
  max-width: 620px;
}

.page-home .ee-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .ee-home-hero .btn {
  border-radius: 12px;
  min-height: 48px;
  padding-inline: 20px;
}

.page-home .ee-home-hero .btn-primary {
  background: var(--ee-yellow);
  box-shadow: 0 12px 30px rgba(255, 196, 0, 0.22);
  color: #1a1520;
}

.page-home .ee-home-hero .btn-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.page-home .btn-hero-outline {
  background: rgba(9, 13, 28, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.52);
  color: white;
}

.page-home .ee-employer-card {
  align-items: start;
  background: linear-gradient(145deg, rgba(245, 0, 108, 0.94), rgba(255, 106, 0, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(7, 9, 20, 0.35);
  display: grid;
  gap: 14px;
  padding: 24px;
}

.page-home .ee-card-icon {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: var(--ee-yellow);
  display: inline-flex;
  font-size: 1.45rem;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.page-home .ee-employer-card strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.page-home .ee-employer-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
  margin: 0;
}

.page-home .ee-employer-card .btn-light {
  background: white;
  color: var(--ee-fuchsia-dark);
  justify-self: start;
}

/* Buscador principal */
.page-home .ee-hero-search {
  align-items: end;
  background: rgba(9, 13, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(4, 6, 15, 0.48);
  display: grid;
  gap: 12px;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  margin-top: 30px;
  padding: 17px;
}

.page-home .ee-hero-search label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.page-home .ee-hero-search input,
.page-home .ee-hero-search select {
  appearance: none;
  background: #171b2b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  color: white;
  font-size: 1rem;
  min-height: 52px;
  outline: none;
  padding: 13px 15px;
  width: 100%;
}

.page-home .ee-hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.page-home .ee-hero-search input:focus,
.page-home .ee-hero-search select:focus {
  border-color: var(--ee-yellow);
  box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.14);
}

.page-home .ee-hero-search .btn-primary {
  background: linear-gradient(110deg, var(--ee-fuchsia), var(--ee-orange));
  color: white;
  font-size: 1rem;
  font-weight: 850;
  min-height: 52px;
  min-width: 160px;
}

.page-home .ee-popular-searches {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: 12px;
  min-width: 0;
}

.page-home .ee-popular-searches > span {
  color: rgba(255, 255, 255, 0.82);
  flex: 0 0 auto;
  font-size: 0.95rem;
  font-weight: 850;
}

.page-home .ee-popular-scroll {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 0 6px;
  scrollbar-width: none;
}

.page-home .ee-popular-scroll::-webkit-scrollbar {
  display: none;
}

.page-home .ee-popular-scroll a {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: white;
  flex: 0 0 auto;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 9px 14px;
}

.page-home .ee-home-hero .hero-panel {
  background: rgba(9, 13, 28, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(4, 6, 15, 0.36);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
  overflow: hidden;
}

.page-home .ee-home-hero .hero-panel .metric-link {
  align-items: center;
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  display: grid;
  gap: 2px 12px;
  grid-template-columns: auto auto 1fr;
  justify-content: start;
  justify-items: start;
  padding: 20px 22px;
  text-align: left;
}

.page-home .ee-home-hero .hero-panel .metric-link:last-child {
  border-right: 0;
}

.page-home .ee-home-hero .hero-panel .metric-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.page-home .ee-metric-icon {
  color: var(--ee-fuchsia) !important;
  font-size: 1.7rem;
  grid-row: 1 / span 2;
}

.page-home .ee-home-hero .hero-panel strong {
  color: var(--ee-yellow);
  font-size: clamp(24px, 2.3vw, 38px);
  line-height: 1;
}

.page-home .ee-home-hero .hero-panel .metric-link > span:last-child {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.96rem;
  font-weight: 650;
  grid-column: 2 / -1;
}

/* Secciones posteriores */
.page-home .landing-section:not(.ee-home-hero) {
  width: min(1180px, calc(100% - 36px));
}

.page-home .section-header h2,
.page-home .home-plans-banner h2 {
  color: var(--ee-text);
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.page-home .section-header .eyebrow,
.page-home .home-plans-banner .eyebrow {
  color: var(--ee-fuchsia);
}

.page-home .text-button {
  color: var(--ee-fuchsia-dark);
  font-weight: 850;
}

.page-home .home-plans-banner {
  background: linear-gradient(115deg, var(--ee-night), #1a1130 56%, var(--ee-fuchsia-dark));
  border: 0;
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(9, 13, 28, 0.2);
  color: white;
  margin-top: 34px;
  padding: clamp(24px, 4vw, 42px);
}

.page-home .home-plans-banner h2,
.page-home .home-plans-banner p {
  color: white;
}

.page-home .home-plans-banner .home-plans-list {
  color: rgba(255, 255, 255, 0.66);
}

.page-home .home-plans-banner .btn-primary {
  background: var(--ee-yellow);
  color: var(--ee-text);
}

.page-home .candidate-band,
.page-home .region-search-band,
.page-home .categories-band,
.page-home #empresas-home,
.page-home #noticias {
  background: white;
  border: 1px solid #ebeaf0;
  border-radius: 22px;
  box-shadow: 0 18px 55px rgba(29, 24, 44, 0.06);
  margin-top: 26px;
  padding: clamp(28px, 4vw, 52px);
}

.page-home .process-card {
  border: 1px solid #eceaf1;
  border-radius: 17px;
  box-shadow: none;
}

.page-home .process-card strong {
  background: linear-gradient(145deg, var(--ee-yellow), var(--ee-orange));
  color: var(--ee-text);
}

.page-home #empleos-home {
  background: var(--ee-night);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(9, 13, 28, 0.22);
  color: white;
  margin-top: 26px;
  padding: clamp(28px, 4vw, 52px);
}

.page-home #empleos-home .section-header h2,
.page-home #empleos-home .job-card h3,
.page-home #empleos-home .job-card h3 a {
  color: white;
}

.page-home #empleos-home .section-header p,
.page-home #empleos-home .job-card p,
.page-home #empleos-home .job-meta {
  color: rgba(255, 255, 255, 0.67);
}

.page-home #empleos-home .text-button {
  color: var(--ee-fuchsia);
}

.page-home #empleos-home .job-card {
  background: #14192a;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  box-shadow: none;
}

.page-home #empleos-home .card-media-small {
  background: linear-gradient(145deg, var(--ee-fuchsia), var(--ee-orange));
  color: white;
}

.page-home #empleos-home .status-pill {
  background: rgba(245, 0, 108, 0.16);
  color: #ff63a9;
}

.page-home #empleos-home .btn-soft {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.page-home .carousel-arrow {
  border-color: #dedbe6;
}

.page-home #empleos-home .carousel-arrow {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: white;
}

.page-home .region-search-form {
  background: #f8f7fb;
  border-color: #e9e6ef;
  border-radius: 16px;
}

.page-home .region-search-form .btn-primary,
.page-home .candidate-band .btn-primary,
.page-home #empresas-home .btn-primary {
  background: var(--ee-fuchsia);
}

.page-home .region-chip,
.page-home .category-accordion {
  border-radius: 14px;
}

.page-home .region-chip.has-jobs,
.page-home .category-accordion.has-jobs {
  border-color: rgba(245, 0, 108, 0.34);
}

.page-home .region-chip.has-jobs:hover {
  border-color: var(--ee-fuchsia);
  transform: translateY(-2px);
}

.page-home .category-badge,
.page-home .subcategory-pill.has-jobs {
  background: rgba(245, 0, 108, 0.1);
  color: var(--ee-fuchsia-dark);
}

.page-home #empresas-home .job-card {
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(29, 24, 44, 0.07);
}

.page-home #empresas-home .card-media-small {
  background: linear-gradient(145deg, var(--ee-orange), var(--ee-fuchsia));
}

.page-home #empresas-home .status-pill {
  background: rgba(255, 196, 0, 0.18);
  color: #7c5a00;
}

.page-home #noticias .news-row {
  border-radius: 16px;
}


/* Pie de página del prototipo: integrado a la nueva identidad visual. */
.page-home .site-footer {
  background: linear-gradient(115deg, var(--ee-night) 0%, #1a1130 58%, var(--ee-fuchsia-dark) 100%);
  border-top: 4px solid var(--ee-yellow);
  box-shadow: 0 -18px 50px rgba(9, 13, 28, 0.18);
}

.page-home .site-footer strong {
  color: var(--ee-white);
  font-size: 1.18rem;
}

.page-home .site-footer p {
  color: rgba(255, 255, 255, 0.78);
}

.page-home .site-footer a {
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  padding: 7px 10px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.page-home .site-footer a:hover,
.page-home .site-footer a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ee-yellow);
}

/* Tablet */
@media (max-width: 1199px) {
  .page-home .site-header {
    gap: 14px;
  }

  .page-home .ee-home-hero {
    min-height: auto;
  }

  .page-home .ee-hero-content {
    align-items: start;
    gap: 24px;
    grid-template-columns: minmax(0, 760px);
    min-height: auto;
  }

  .page-home .ee-employer-card {
    width: min(100%, 460px);
  }

  .page-home .ee-hero-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .ee-hero-search .btn {
    grid-column: auto;
    min-width: 0;
    width: 100%;
  }

  .page-home .ee-home-hero .hero-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .ee-home-hero .hero-panel .metric-link:nth-child(2) {
    border-right: 0;
  }

  .page-home .ee-home-hero .hero-panel .metric-link:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }
}

/* Navegación móvil y home mobile-first */
@media (max-width: 920px) {
  .page-home .nav-links {
    background: #11162a;
    border-color: rgba(255, 255, 255, 0.12);
    top: 68px;
  }

  .page-home .nav-links .btn-soft {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .page-home main {
    padding-bottom: 36px;
  }

  .page-home .site-header {
    min-height: 66px;
    padding: 10px 15px;
  }

  .page-home .brand-mark {
    border-radius: 11px;
    height: 39px;
    width: 39px;
  }

  .page-home .brand strong {
    font-size: 0.95rem;
  }

  .page-home .brand small {
    display: none;
  }

  .page-home .ee-home-hero {
    min-height: auto;
    padding: 44px 17px 22px;
  }

  .page-home .ee-hero-visual {
    background-position: 60% center;
    inset: 0;
    opacity: 0.82;
  }

  .page-home .ee-hero-overlay {
    background:
      linear-gradient(180deg, rgba(245, 0, 108, 0.82) 0%, rgba(9, 13, 28, 0.92) 48%, rgba(9, 13, 28, 1) 100%),
      linear-gradient(115deg, rgba(255, 106, 0, 0.75), rgba(245, 0, 108, 0.4));
  }

  .page-home .ee-home-hero::before {
    font-size: 70px;
    left: 10px;
    top: 35px;
  }

  .page-home .ee-hero-content {
    align-items: stretch;
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .page-home .ee-home-hero .hero-copy h1 {
    font-size: clamp(48px, 15vw, 70px);
    letter-spacing: -0.07em;
    line-height: 0.88;
    margin-top: 18px;
  }

  .page-home .ee-home-hero .hero-copy p {
    font-size: 17px;
    line-height: 1.45;
  }

  .page-home .ee-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .page-home .ee-hero-actions .btn {
    width: 100%;
  }

  .page-home .ee-employer-card {
    align-items: center;
    border-radius: 17px;
    gap: 12px;
    grid-template-columns: auto 1fr;
    padding: 18px;
  }

  .page-home .ee-employer-card .btn {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
  }

  .page-home .ee-card-icon {
    height: 42px;
    width: 42px;
  }

  .page-home .ee-hero-search {
    grid-template-columns: 1fr;
    margin-top: 20px;
    padding: 15px;
  }

  .page-home .ee-hero-search .btn {
    grid-column: auto;
    min-height: 52px;
    width: 100%;
  }

  .page-home .ee-hero-search label {
    font-size: 0.98rem;
  }

  .page-home .ee-hero-search input,
  .page-home .ee-hero-search select {
    font-size: 16px;
    min-height: 52px;
  }

  .page-home .ee-popular-searches > span {
    font-size: 0.95rem;
  }

  .page-home .ee-popular-scroll a {
    font-size: 0.92rem;
  }

  .page-home .ee-popular-searches {
    align-items: flex-start;
    display: grid;
    gap: 8px;
  }

  .page-home .ee-popular-scroll {
    margin-right: -17px;
    padding-right: 17px;
  }

  .page-home .ee-home-hero .hero-panel {
    border-radius: 16px;
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .page-home .ee-home-hero .hero-panel .metric-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    border-right: 0;
    gap: 3px;
    grid-template-columns: 1fr;
    padding: 16px 13px;
  }

  .page-home .ee-home-hero .hero-panel .metric-link:nth-child(odd) {
    border-right: 0;
  }

  .page-home .ee-home-hero .hero-panel .metric-link:nth-child(even) {
    border-right: 0;
  }

  .page-home .ee-home-hero .hero-panel .metric-link:nth-child(n+3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .page-home .ee-home-hero .hero-panel .metric-link:last-child {
    border-bottom: 0;
  }

  .page-home .ee-metric-icon {
    display: none;
  }

  .page-home .ee-home-hero .hero-panel strong,
  .page-home .ee-home-hero .hero-panel .metric-link > span:last-child {
    grid-column: auto;
  }

  .page-home .ee-home-hero .hero-panel strong {
    font-size: 29px;
  }

  .page-home .landing-section:not(.ee-home-hero) {
    width: min(100% - 24px, 1180px);
  }

  .page-home .home-plans-banner,
  .page-home .candidate-band,
  .page-home .region-search-band,
  .page-home .categories-band,
  .page-home #empresas-home,
  .page-home #noticias,
  .page-home #empleos-home {
    border-radius: 18px;
    margin-top: 18px;
    padding: 24px 18px;
  }

  .page-home .section-header h2,
  .page-home .home-plans-banner h2 {
    font-size: 31px;
  }

  .page-home .section-header-split {
    gap: 12px;
  }

  .page-home .home-carousel-card {
    flex-basis: min(88vw, 340px);
  }

  .page-home .region-chip-grid {
    grid-template-columns: 1fr;
  }

  .page-home .site-footer {
    align-items: flex-start;
    gap: 20px;
  }

  .page-home .site-footer div:last-child {
    gap: 6px;
  }

  .page-home .site-footer a {
    padding: 7px 8px;
  }
}

@media (max-width: 420px) {
  .page-home .brand span:last-child {
    max-width: 125px;
  }

  .page-home .ee-home-hero .hero-copy h1 {
    font-size: 49px;
  }

  .page-home .ee-home-hero .eyebrow {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .ee-home-hero .btn,
  .page-home .region-chip.has-jobs {
    transition: none;
  }
}
