﻿:root {
  --bg: #f4f6f4;
  --surface: #ffffff;
  --surface-soft: #f8fbf8;
  --ink: #1c2b26;
  --ink-soft: #4f635b;
  --teal: #0f766e;
  --teal-dark: #0b5a53;
  --amber: #eab308;
  --orange: #f97316;
  --border: #d7e5dc;
  --shadow: 0 18px 45px rgba(16, 74, 61, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Sora", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f4f6f4 0%, #f0f7f4 45%, #f6f4ee 100%);
  overflow-x: hidden;
}

.fondo-decorativo {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 12%, rgba(15, 118, 110, 0.2), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(249, 115, 22, 0.2), transparent 36%),
    radial-gradient(circle at 80% 78%, rgba(234, 179, 8, 0.15), transparent 30%);
}

.site-shell {
  width: min(600px, calc(100% - 28px));
  margin: 10px auto 40px;
}

.acciones-usuario {
  position: sticky;
  top: 8px;
  z-index: 120;
  margin-left: auto;
  width: fit-content;
  display: flex;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.boton {
  border: none;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.boton:hover {
  transform: translateY(-2px);
}

.boton:active {
  transform: scale(0.98);
}

.acciones-usuario .boton {
  min-width: 114px;
  padding: 11px 16px;
  border-radius: 999px;
}

.boton-secundario {
  background: #ebf5f1;
  color: var(--teal-dark);
}

.boton-principal {
  background: linear-gradient(135deg, var(--teal), #178f85);
  color: #fff;
}

.encabezado-principal {
  position: relative;
  margin-top: 16px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(244, 250, 247, 0.9)),
    linear-gradient(120deg, #f9fbfa, #f2f7f4);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.controles-superiores {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.menu-hamburguesa,
.mis-datos-atajo {
  border: none;
  border-radius: 14px;
  background: var(--surface);
  color: var(--teal-dark);
  box-shadow: 0 8px 18px rgba(21, 84, 71, 0.12);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}

.menu-hamburguesa {
  width: 48px;
  height: 48px;
  font-size: 1.35rem;
}

.mis-datos-atajo {
  padding: 12px 15px;
}

.menu-lateral {
  position: absolute;
  top: 96px;
  left: 24px;
  z-index: 999;
  width: min(300px, calc(100% - 48px));
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 44px rgba(18, 54, 46, 0.18);
  display: none;
  flex-direction: column;
  gap: 9px;
}

.menu-lateral.activo {
  display: flex;
}

.menu-lateral button {
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  font-family: inherit;
  font-weight: 600;
  background: #f3f7f5;
  color: #324840;
  cursor: pointer;
}

.menu-lateral #notificaciones {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 1px solid #93c5fd;
  color: #1e3a8a;
  font-weight: 700;
}

.menu-lateral #notificaciones:hover {
  background: linear-gradient(135deg, #bfdbfe, #93c5fd);
}

.menu-lateral button:hover {
  background: #e7f1ed;
}

.menu-lateral #borrarCuenta {
  color: #b91c1c;
}

.oculto {
  display: none !important;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: center;
}

.hero-copy {
  width: 100%;
}

.hero-kicker {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #7a4c00;
  background: #fff1ce;
}

.encabezado-principal h1 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Sora", sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -1px;
}

.hero-sub {
  margin: 14px 0 0;
  width: 100%;
  max-width: none;
  color: var(--ink-soft);
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-pillars {
  display: grid;
  gap: 12px;
}

.pillar-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #f4faf7);
  border: 1px solid var(--border);
}

.pillar-card strong {
  font-size: 0.98rem;
}

.pillar-card span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.contenido-principal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.panel-changas,
.galeria-trabajadores,
.seo-texto {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow);
}

.acciones-changas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.bloque-cta {
  display: grid;
  gap: 10px;
  padding: 20px 18px;
  border: 1px solid #103e3a;
  border-radius: 22px;
  background: linear-gradient(135deg, #0a2f2c, #0e5a54);
  box-shadow: 0 18px 36px rgba(8, 48, 44, 0.2);
}

.boton-busco,
.boton-ofrezco {
  width: 100%;
  min-height: 78px;
  border-radius: 16px;
  font-size: 1.08rem;
  line-height: 1.2;
  color: #fff;
  letter-spacing: 0.3px;
}

.boton-busco {
  background: linear-gradient(145deg, #f59e0b, #f97316 55%, #ea580c);
  box-shadow: 0 14px 24px rgba(234, 88, 12, 0.28);
}

.boton-ofrezco {
  background: linear-gradient(145deg, #0f766e, #0ea5a3 55%, #0b5a53);
  box-shadow: 0 14px 24px rgba(10, 89, 82, 0.28);
}

.cta-ayuda {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
  line-height: 1.6;
}

.rejilla-fotos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.foto-full {
  height: 145px;
  border-radius: 16px;
  overflow: hidden;
}

.foto-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.foto-full:hover img {
  transform: scale(1.06);
}

.bloque-extra {
  margin-top: 16px;
}

.bloque-extra-galeria {
  margin-top: 28px;
  margin-bottom: 20px;
}

.bloque-extra-galeria .cta-ayuda {
  margin-top: 10px;
}

.bloque-extra-galeria-superior {
  margin-bottom: 28px;
  padding-bottom: 18px;
  padding: 20px 18px;
  border: 1px solid #103e3a;
  border-radius: 22px;
  background: linear-gradient(135deg, #0a2f2c, #0e5a54);
  box-shadow: 0 18px 36px rgba(8, 48, 44, 0.2);
}

.bloque-extra-galeria-superior .boton-trabajadores {
  background: linear-gradient(135deg, #123f3b, #0f766e);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.boton-trabajadores {
  width: 100%;
  min-height: 78px;
  border-radius: 16px;
  font-size: 1.08rem;
  color: #fff;
  background: linear-gradient(135deg, #0ea5a3, #0284c7);
}

.bloque-extra-galeria-superior .cta-ayuda {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.84);
}

.bloque-descarga-app {
  margin-top: 16px;
}

.btn-descargar-app {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f766e, #134e4a);
  color: #fff;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(15, 118, 110, 0.22);
}

.btn-descargar-app img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.btn-descargar-app:hover {
  transform: translateY(-1px);
}

.mensaje-apoyo-home {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #d9ece5;
  background: #f3faf7;
  color: #375148;
  line-height: 1.6;
}

.seo-texto h2 {
  margin-top: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

.seo-texto h3 {
  margin-top: 16px;
  color: var(--teal-dark);
}

.seo-texto p {
  color: #3f5750;
  line-height: 1.8;
}

.grid-servicios,
.ciudades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.card-servicio,
.ciudad-card {
  padding: 14px;
  border-radius: 14px;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
}

.card-servicio {
  background: linear-gradient(135deg, #ffffff, #f4faf7);
  border: 1px solid var(--border);
  color: #314840;
}

.ciudad-card {
  background: linear-gradient(135deg, #e9f5f0, #ddf0e8);
  color: #114a42;
}

.ciudad-card:hover {
  transform: translateY(-2px);
}

.pie-pagina {
  margin-top: 18px;
  text-align: center;
  color: #556963;
}

.enlace-footer {
  margin-top: 8px;
  border: none;
  background: transparent;
  color: var(--teal-dark);
  cursor: pointer;
  font-weight: 700;
}

.modal-buscar {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px;
  background: rgba(16, 35, 30, 0.62);
  backdrop-filter: blur(4px);
}

.modal-contenido {
  width: min(740px, 100%);
  max-height: 92vh;
  border-radius: 20px;
  overflow: hidden;
  background: #f8fbfa;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: linear-gradient(135deg, #0f766e, #0b5a53);
  color: #fff;
}

.modal-header h2 {
  margin: 0;
}

.modal-header button {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  font-size: 1rem;
}

.modal-body input,
.modal-comunicacion textarea,
#btnBuscar,
#entendidoPrivacidad,
.boton-cancelar,
.boton-enviar,
.btn-toggle-habilidades-busqueda {
  font-family: inherit;
  border-radius: 12px;
}

.modal-body input,
.modal-comunicacion textarea {
  border: 1px solid #7f9e91;
  background: #e7eeea;
  padding: 12px;
  font-size: 1rem;
}

#inputCiudad {
  min-width: 100%;
}

#inputCiudad,
.input-habilidad-busqueda {
  color: #17362f;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

#inputCiudad::placeholder,
.input-habilidad-busqueda::placeholder {
  color: #5f746c;
}

.btn-toggle-habilidades-busqueda,
#btnBuscar,
#entendidoPrivacidad,
.boton-enviar,
.boton-cancelar {
  border: none;
  padding: 12px;
  font-weight: 700;
  cursor: pointer;
}

#btnBuscar,
#entendidoPrivacidad,
.boton-enviar {
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #0b5a53);
}

.boton-cancelar,
.btn-toggle-habilidades-busqueda {
  color: #2d4b42;
  background: #e8f2ee;
}

.cabecera-habilidades-busqueda {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.etiqueta-habilidades-busqueda {
  font-size: 0.98rem;
  font-weight: 700;
  color: #4f635b;
}

.habilidades-seleccionadas,
.contador-habilidades-busqueda {
  color: #4f635b;
  font-size: 0.98rem;
}

.habilidades-seleccionadas {
  padding: 10px 12px;
  border: 1px solid #7fb4ff;
  background: #eef5ff;
  border-radius: 12px;
  color: #1d4ed8;
  font-weight: 600;
}

.chips-habilidades-busqueda {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-habilidad-busqueda {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 12px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
  line-height: 1;
}

.chip-habilidad-texto {
  white-space: nowrap;
}

.chip-habilidad-quitar {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(29, 78, 216, 0.14);
  color: #1d4ed8;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chip-habilidad-quitar:hover {
  background: rgba(29, 78, 216, 0.22);
}

.contador-habilidades-busqueda {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.3);
}

.contador-habilidades-busqueda.limite {
  background: #991b1b;
}

.lista-habilidades-busqueda {
  display: grid;
  gap: 8px;
  max-height: 320px;
  min-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
  align-content: start;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.item-habilidad-busqueda {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: #f2f8f5;
  border-radius: 10px;
  border: 1px solid transparent;
}

.item-habilidad-busqueda.seleccionada {
  background: #eaf2ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.item-habilidad-busqueda.bloqueada {
  opacity: 0.55;
}

.sugerencias {
  display: grid;
  gap: 8px;
  background: #e4ece8;
  border: 1px solid #a9bbb3;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(16, 35, 30, 0.12);
  padding: 8px;
}

.item-sugerencia {
  padding: 10px;
  border-radius: 10px;
  background: #dce6e1;
  cursor: pointer;
}

.resultados {
  display: grid;
  gap: 16px;
  max-height: none;
  overflow: visible;
  padding-right: 4px;
  padding-bottom: 22px;
  min-height: 0;
}

.card-trabajador {
  display: flex;
  gap: 12px;
  padding: 12px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dce9e2;
}

.card-trabajador img {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
}

.swal2-container {
  z-index: 20000 !important;
}

.swal2-popup {
  z-index: 20001 !important;
}

.swal-home-popup {
  border-radius: 22px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  box-shadow: 0 30px 70px rgba(15, 76, 67, 0.22);
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 34%),
    radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.12), transparent 30%),
    #f9fbfa;
}

.swal-home-title {
  color: #0f766e !important;
}

.swal-home-text {
  color: #35514a !important;
}

.swal-home-confirm.swal2-styled {
  background: linear-gradient(135deg, #0f766e, #0b5a53) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.24);
}

.swal-home-cancel.swal2-styled {
  background: linear-gradient(135deg, #fff1ce, #ffe1bf) !important;
  color: #7a4c00 !important;
  border: 1px solid rgba(249, 115, 22, 0.18) !important;
}

.swal-home-popup .swal2-icon.swal2-info,
.swal-home-popup .swal2-icon.swal2-question {
  border-color: rgba(15, 118, 110, 0.28) !important;
  color: #0f766e !important;
}

.btn-wsp {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  background: #128c7e;
}

.acciones-contacto {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.btn-llamar {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  background: #1d4ed8;
}

.texto-legal h3 {
  margin-bottom: 6px;
}

.texto-comunicacion {
  margin: 0;
  color: #405650;
}

#mensajeComunicacion {
  min-height: 130px;
  resize: vertical;
}

.contador-mensaje {
  color: #4f635b;
  text-align: right;
}

.acciones-comunicacion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .rejilla-fotos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-servicios,
  .ciudades-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 18.5px;
  }

  .site-shell {
    width: calc(100% - 16px);
  }

  .encabezado-principal,
  .panel-changas,
  .galeria-trabajadores,
  .seo-texto {
    padding: 18px;
    border-radius: 20px;
  }

  .acciones-changas {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bloque-cta {
    padding: 18px 16px;
  }

  .boton-busco,
  .boton-ofrezco,
  .boton-trabajadores {
    min-height: 84px;
    font-size: 1.18rem;
  }

  .cta-ayuda {
    font-size: 1.08rem;
    line-height: 1.55;
  }

  .bloque-extra-galeria {
    margin-top: 34px;
    margin-bottom: 24px;
  }

  .grid-servicios,
  .ciudades-grid {
    grid-template-columns: 1fr;
  }

  .rejilla-fotos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .foto-full {
    height: 112px;
  }

  .btn-descargar-app {
    font-size: 0.98rem;
    padding: 12px 14px;
  }

  .modal-buscar {
    padding: 0;
  }

  .modal-contenido {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .modal-body {
    font-size: 1.16rem;
    min-height: 0;
  }

  .modal-body label,
  .modal-body p,
  .modal-body input,
  .modal-body textarea,
  .modal-body button {
    font-size: 1.16rem;
  }

  #inputCiudad {
    min-height: 48px;
  }

  .lista-habilidades-busqueda {
    max-height: 42vh;
    min-height: 220px;
  }

  .resultados {
    padding-bottom: 26px;
    min-height: 0;
  }

  .card-trabajador {
    flex-direction: column;
  }

  .swal2-title {
    font-size: 1.45rem !important;
  }

  .swal2-html-container,
  .swal2-confirm,
  .swal2-cancel {
    font-size: 1.14rem !important;
  }

  .swal-home-popup {
    width: calc(100vw - 18px) !important;
    border-radius: 18px;
  }

  .swal-home-title {
    font-size: 1.7rem !important;
  }

  .swal-home-text {
    font-size: 1.22rem !important;
    line-height: 1.55;
  }

  .swal-home-confirm.swal2-styled,
  .swal-home-cancel.swal2-styled {
    font-size: 1.08rem !important;
    padding: 12px 18px !important;
    border-radius: 14px !important;
  }
}
