/* =========================================================
   HORVYX — AURORA LAUNCH EDITION 1.0
   Archivo: assets/css/aurora.css
   Alcance: imagen del Home. No modifica funcionalidad.
   ========================================================= */

:root {
  --aurora-navy: #0c2f4a;
  --aurora-navy-deep: #071f33;
  --aurora-blue: #154d72;
  --aurora-orange: #f58220;
  --aurora-orange-dark: #dd6d10;
  --aurora-white: #ffffff;
  --aurora-bg: #f5f8fb;
  --aurora-surface: #ffffff;
  --aurora-text: #13283a;
  --aurora-muted: #637587;
  --aurora-line: #dfe7ee;
  --aurora-success: #128c55;
  --aurora-radius-sm: 12px;
  --aurora-radius: 18px;
  --aurora-radius-lg: 28px;
  --aurora-shadow-sm: 0 8px 24px rgba(12, 47, 74, 0.08);
  --aurora-shadow: 0 18px 48px rgba(7, 31, 51, 0.13);
  --aurora-container: 1180px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--aurora-bg);
  color: var(--aurora-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.container {
  width: min(calc(100% - 32px), var(--aurora-container));
  margin-inline: auto;
}
.home-section { padding: 64px 0; }
.eyebrow,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--aurora-orange);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}
.center-heading,
.section-heading { margin-bottom: 28px; }
.center-heading { text-align: center; }
.center-heading h2,
.section-heading h2 {
  margin: 8px 0 10px;
  color: var(--aurora-text);
  font-size: clamp(1.75rem, 5vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.center-heading p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--aurora-muted);
  font-size: 1rem;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--aurora-blue);
  font-weight: 800;
}
.section-link:hover { color: var(--aurora-orange-dark); }

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 0;
  background:
    radial-gradient(circle at 88% 14%, rgba(245, 130, 32, 0.2), transparent 27%),
    radial-gradient(circle at 8% 100%, rgba(255,255,255,0.09), transparent 30%),
    linear-gradient(135deg, var(--aurora-navy-deep) 0%, var(--aurora-navy) 58%, #123f5f 100%);
  color: var(--aurora-white);
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}
.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(270px, .85fr);
  align-items: center;
  gap: 46px;
}
.hero-copy { max-width: 720px; }
.hero-kicker { margin-bottom: 18px; }
.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: var(--aurora-white);
  font-size: clamp(2.5rem, 6vw, 4.9rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.hero-copy h1 strong {
  color: var(--aurora-orange);
  font-weight: inherit;
}
.hero-copy > p {
  max-width: 670px;
  margin: 24px 0 0;
  color: #dbe7ef;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.65;
}
.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.hero-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: #f5f8fb;
  font-size: .88rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.hero-benefits i { color: var(--aurora-orange); }
.hero-mai {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-left: 12px;
  overflow: visible;
}
.hero-mai img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 390px);
  height: 430px;
  max-height: none;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 24px 28px rgba(0,0,0,.24));
  image-rendering: auto;
}
.mai-message {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: -8px;
  width: 230px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 20px 20px 20px 5px;
  background: rgba(255,255,255,.97);
  box-shadow: var(--aurora-shadow);
  color: var(--aurora-text);
}
.mai-message::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -13px;
  border-width: 13px 18px 0 0;
  border-style: solid;
  border-color: rgba(255,255,255,.97) transparent transparent transparent;
}
.mai-message strong { color: var(--aurora-orange-dark); font-size: 1rem; }
.mai-message p { margin: 3px 0 7px; color: var(--aurora-muted); font-size: .9rem; }
.mai-message b { display: block; line-height: 1.25; }

.hero-search-shell {
  position: relative;
  z-index: 3;
  margin-top: -8px;
  transform: translateY(42px);
}
.hero-search-shell form,
.hero-search-shell .search-form,
.hero-search-shell .search-box,
.hero-search-shell .buscador {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--aurora-radius-lg);
  background: var(--aurora-white);
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
}
.hero-search-shell label { color: var(--aurora-text); font-size: .83rem; font-weight: 800; }
.hero-search-shell input,
.hero-search-shell select {
  min-height: 54px;
  border: 1px solid var(--aurora-line);
  border-radius: 14px;
  background-color: var(--aurora-white);
  color: var(--aurora-text);
  font-size: .96rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.hero-search-shell input:focus,
.hero-search-shell select:focus {
  outline: none;
  border-color: var(--aurora-orange);
  box-shadow: 0 0 0 4px rgba(245,130,32,.13);
}
.hero-search-shell button,
.hero-search-shell .btn-primary {
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: var(--aurora-orange);
  color: var(--aurora-white);
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(245,130,32,.26);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.hero-search-shell button:hover,
.hero-search-shell .btn-primary:hover {
  transform: translateY(-1px);
  background: var(--aurora-orange-dark);
  box-shadow: 0 15px 28px rgba(245,130,32,.32);
}
.popular-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 17px 4px 0;
  color: rgba(255,255,255,.75);
  font-size: .87rem;
}
.popular-searches strong { color: var(--aurora-white); }
.popular-searches a { color: #f6c596; transition: color .18s ease; }
.popular-searches a:hover { color: var(--aurora-white); }
.categories-section { padding-top: 112px; }

.category-grid.home-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.home-category-card {
  position: relative;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--aurora-line);
  border-radius: var(--aurora-radius);
  background: var(--aurora-surface);
  box-shadow: var(--aurora-shadow-sm);
  color: var(--aurora-text);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.home-category-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -50px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(245,130,32,.08);
}
.home-category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245,130,32,.55);
  box-shadow: 0 20px 40px rgba(12,47,74,.12);
}
.category-icon {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff4e9;
  color: var(--aurora-orange-dark);
  font-size: 1.75rem;
}
.home-category-card strong {
  position: relative;
  z-index: 1;
  max-width: 200px;
  font-size: 1.04rem;
  line-height: 1.25;
}
.home-category-card small {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--aurora-muted);
  font-weight: 700;
}

.how-section { background: var(--aurora-white); }
.home-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.home-steps article {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 16px;
  min-height: 174px;
  padding: 24px;
  border: 1px solid var(--aurora-line);
  border-radius: var(--aurora-radius);
  background: linear-gradient(180deg, #ffffff, #f9fbfd);
  box-shadow: var(--aurora-shadow-sm);
}
.step-number {
  position: absolute;
  top: 16px;
  right: 18px;
  color: #dbe4eb;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
}
.step-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--aurora-navy);
  color: var(--aurora-white);
  font-size: 1.2rem;
}
.step-icon.whatsapp-icon { background: var(--aurora-success); }
.home-steps h3 { margin: 3px 0 8px; color: var(--aurora-text); font-size: 1.13rem; }
.home-steps p { margin: 0; color: var(--aurora-muted); line-height: 1.55; }

.workers-section { background: var(--aurora-bg); }
.worker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.worker-grid > article,
.worker-grid .worker-card {
  border: 1px solid var(--aurora-line);
  border-radius: 22px;
  background: var(--aurora-white);
  box-shadow: var(--aurora-shadow-sm);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.worker-grid > article:hover,
.worker-grid .worker-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245,130,32,.4);
  box-shadow: 0 22px 46px rgba(12,47,74,.14);
}
.worker-grid img { object-fit: cover; }
.worker-grid .btn,
.worker-grid button,
.worker-grid a[class*="whatsapp"] {
  min-height: 46px;
  border-radius: 13px;
  font-weight: 800;
}
.worker-grid a[class*="whatsapp"] { background: var(--aurora-success); color: var(--aurora-white); }

.empty-state {
  grid-column: 1 / -1;
  padding: 42px 24px;
  border: 1px dashed #cad6df;
  border-radius: var(--aurora-radius);
  background: rgba(255,255,255,.7);
  text-align: center;
}
.empty-state h3 { margin: 0 0 6px; color: var(--aurora-text); }
.empty-state p { margin: 0; color: var(--aurora-muted); }

.worker-cta-section { padding-top: 28px; }
.worker-cta {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  min-height: 240px;
  padding: 34px 38px;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 20%, rgba(245,130,32,.28), transparent 24%),
    linear-gradient(135deg, var(--aurora-navy-deep), var(--aurora-navy));
  box-shadow: var(--aurora-shadow);
  color: var(--aurora-white);
}
.worker-cta::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
}
.worker-cta > * { position: relative; z-index: 1; }
.worker-cta > img {
  align-self: end;
  width: 145px;
  max-height: 205px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 18px 20px rgba(0,0,0,.25));
}
.worker-cta h2 {
  margin: 7px 0 9px;
  color: var(--aurora-white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
}
.worker-cta p { max-width: 600px; margin: 0; color: #dbe7ef; }
.cta-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
  color: #f1f6f9;
  font-size: .9rem;
  font-weight: 700;
}
.cta-points i { color: var(--aurora-orange); }
.worker-cta .btn-primary {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 15px;
  background: var(--aurora-orange);
  color: var(--aurora-white);
  box-shadow: 0 14px 28px rgba(245,130,32,.28);
  white-space: nowrap;
}
.worker-cta .btn-primary:hover { background: var(--aurora-orange-dark); }

.allies-section { padding-top: 20px; }
.allies-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.allies-grid a {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--aurora-line);
  border-radius: 16px;
  background: var(--aurora-white);
  color: var(--aurora-muted);
  box-shadow: var(--aurora-shadow-sm);
}
.allies-grid img {
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .78;
  transition: filter .2s ease, opacity .2s ease;
}
.allies-grid a:hover img { filter: none; opacity: 1; }

@media (max-width: 980px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .hero-mai { min-height: 360px; padding-left: 0; }
  .hero-mai img { width: 330px; height: 360px; }
  .mai-message { top: 12px; right: -10px; width: 210px; }
  .category-grid.home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worker-cta { grid-template-columns: 120px minmax(0, 1fr); }
  .worker-cta .btn-primary { grid-column: 2; justify-self: start; }
  .allies-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .home-section { padding: 52px 0; }
  .home-hero { padding-top: 38px; }
  .hero-layout { grid-template-columns: 1fr; gap: 10px; }
  .hero-copy { text-align: left; }
  .hero-copy h1 { font-size: clamp(2.45rem, 12vw, 3.8rem); }
  .hero-copy > p { margin-top: 18px; font-size: 1rem; }
  .hero-benefits { gap: 8px; }
  .hero-benefits span { min-height: 34px; padding: 7px 11px; font-size: .78rem; }
  .hero-mai { min-height: 300px; margin-top: 8px; justify-content: flex-end; padding-left: 0; }
  .hero-mai img { width: 250px; height: 300px; margin-right: -4px; object-position: right bottom; }
  .mai-message { top: 34px; left: 0; right: auto; width: min(210px, 60%); padding: 14px 15px; }
  .mai-message::after {
    left: auto;
    right: 24px;
    border-width: 13px 0 0 18px;
    border-color: transparent transparent transparent rgba(255,255,255,.97);
  }
  .hero-search-shell { margin-top: -18px; transform: translateY(34px); }
  .hero-search-shell form,
  .hero-search-shell .search-form,
  .hero-search-shell .search-box,
  .hero-search-shell .buscador { padding: 16px; border-radius: 22px; }
  .popular-searches { display: none; }
  .categories-section { padding-top: 92px; }
  .home-steps { grid-template-columns: 1fr; }
  .home-steps article { min-height: auto; }
  .worker-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .worker-cta { grid-template-columns: 96px 1fr; gap: 18px; min-height: 0; padding: 26px 22px; }
  .worker-cta > img { width: 96px; max-height: 150px; }
  .worker-cta .btn-primary { grid-column: 1 / -1; width: 100%; justify-content: center; }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 24px), var(--aurora-container)); }
  .home-hero { padding-top: 30px; }
  .hero-copy h1 { letter-spacing: -0.045em; }
  .hero-kicker { font-size: .68rem; }
  .hero-mai { min-height: 250px; }
  .hero-mai img { width: 205px; height: 250px; }
  .mai-message { top: 26px; width: 58%; font-size: .86rem; }
  .mai-message p { display: none; }
  .category-grid.home-category-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .home-category-card { min-height: 150px; padding: 17px; }
  .category-icon { width: 46px; height: 46px; border-radius: 14px; font-size: 1.35rem; }
  .home-category-card strong { font-size: .92rem; }
  .home-category-card small { font-size: .75rem; }
  .worker-cta { grid-template-columns: 1fr; text-align: center; }
  .worker-cta > img { display: none; }
  .cta-points { justify-content: center; }
  .allies-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* Botón principal del encabezado */
.header-publish-btn {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;

  background: linear-gradient(
    135deg,
    var(--aurora-orange),
    var(--aurora-orange-dark)
  );

  color: #fff;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;

  box-shadow: 0 10px 24px rgba(245, 130, 32, 0.28);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.header-publish-btn i {
  font-size: 0.95rem;
}

.header-publish-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(
    135deg,
    #ff922f,
    var(--aurora-orange-dark)
  );
  box-shadow: 0 14px 28px rgba(245, 130, 32, 0.36);
  color: #fff;
}

@media (max-width: 760px) {
  .header-publish-btn {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 0.82rem;
  }

  .header-publish-btn i {
    display: none;
  }
}
/* =========================================================
   AJUSTE RESPONSIVE DEL BUSCADOR — CELULAR
   ========================================================= */

@media (max-width: 760px) {

  .home-hero .hero-search-shell {
    width: min(calc(100% - 24px), 1180px);
    margin-left: auto;
    margin-right: auto;
    padding: 0;
  }

  .home-hero .hero-search {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .home-hero .hero-search label {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .home-hero .hero-search select,
  .home-hero .hero-search input {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .home-hero .hero-search .btn,
  .home-hero .hero-search button {
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 2px !important;
  }
}