:root {
  --azul: #5377ee;
  --azul-suave: #dbeafe;
  --texto: #0f172a;
  --fondo: #f1f5f9;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: var(--fondo);
  color: var(--texto);
}



.app {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 10px; /* 👈 evita que quede pegado */
}

.header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header h1 {
  font-size: 1.2rem;
  font-weight: 800;
  color: green;
}


main {
  padding: 14px;
}

.estado {
  text-align: center;
  background: white;
  border-radius: 14px;
  padding: 18px;
  font-size: 0.98rem;
  color: #334155;
}

.lista-changas {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 12px;
}

.changa-card {
    background: white;
    border-radius: 20px; /* Bordes más suaves */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px; /* Separación entre cards */
    border: 1px solid #f0f2f5;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.changa-card.en-foco {
  background: #f7fbff;
  border-color: #cfe2ff;
  box-shadow: 0 12px 30px rgba(20, 102, 255, 0.12);
}

.changa-card.tocada,
.changa-card:active {
  background: #deebff;
  border-color: #8fb8ff;
  box-shadow: 0 13px 32px rgba(20, 102, 255, 0.22);
}


.changa-info {
    padding: 20px; /* Más aire interno */
}

/* Título: Más grande y con mejor interletrado */
.titulo {
    font-size: 1.4rem; 
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.02em; /* Hace que las letras grandes se vean más modernas */
}

/* Etiquetas (Labels): Más pequeñas pero en negrita para contrastar */
.label {
    display: block;
    color: #64748b; /* Color gris suave para que no compita con el dato */
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

/* Valores (El texto importante): Fuente más clara y mayor espacio */
.valor {
    display: block;
    font-size: 1.15rem; /* Tamaño ideal para lectura rápida */
    color: #1e293b;
    line-height: 1.5; /* Clave para la legibilidad en descripciones largas */
    margin-bottom: 15px;
}

/* Precio: Resaltado especial */
.campo:has(.label:contains("Precio")) .valor, 
.valor-precio { 
    color: #16a34a; /* Verde éxito para el precio */
    font-weight: 800;
    font-size: 1.3rem;
}



.changa-img {
  width: 100%;
  height: 100px; /* 🔥 más chico */
  object-fit: cover;
    cursor: zoom-in;

}

.fecha-publicacion {
  color: #334155;
  font-weight: 700;
}

.changa-galeria {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px; /* menos espacio */
  padding: 8px;
}

.changa-galeria.single {
  grid-template-columns: 1fr;
}

.changa-galeria.single .changa-img {
  height: 140px;
}

.acciones {
  padding: 12px 14px 14px;
}

.acciones-express {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
}

.btn-contactar {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: rgb(8, 171, 8);
  color: white;
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-contactar:hover {
  opacity: 0.92;
}

.acciones-express .btn-contactar {
  width: 170px;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn-llamar-express {
  background: #1d4ed8;
  color: #fff;
  text-decoration: none;
}

.btn-whatsapp-express {
  background: #16a34a;
  color: #fff;
  text-decoration: none;
}

.changa-card.sin-fotos .changa-galeria {
  display: none;
}

.swal-bonito {
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0, 200, 150, 0.35);
}

.swal-titulo {
  font-size: 24px;
  font-weight: bold;
}

@media (max-width: 600px) {
  .header {
    padding: 14px;
  }

  .header h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }


  main {
    padding: 12px;
  }

  .estado {
    font-size: 1.1rem;
    padding: 20px;
  }

  .lista-changas {
    gap: 60px;
  }

  .titulo {
    font-size: 1.5rem;
  }

  .label {
    font-size: 1.3rem;
  }

  .valor {
    font-size: 1.2rem;
  }

  .changa-img {
    height: 140px;
  }

  .btn-contactar {
    font-size: 1.2rem;
    padding: 14px;
  }
}


.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  padding: 12px;
}


.hidden {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
}

@keyframes pop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 18px;
  background: rgb(1, 110, 1);
  color: white;
  flex-shrink: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
}

.modal-header p {
  margin: 4px 0 0;
  font-size: 1.3rem;
  opacity: 0.9;
}

.modal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex: 1;
}

.modal-body label {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e3a8a;
}

.modal-body textarea,
.modal-body input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #151617;
  outline: none;
  font-size: 1.5rem;
  transition: 0.2s;
}

textarea {
  resize: none;   /* ❌ evita que el usuario lo estire manualmente */
  overflow: hidden;
  min-height: 360px;
  max-height: 500px;
}

.modal-body textarea:focus,
.modal-body input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}



.modal-footer {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid #c7c9cd;
  flex-shrink: 0;
}

.btn-secundario {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: #e2e8f0;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.6 rem;
}

.btn-primario {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: rgb(5, 118, 5);
  color: white;
  font-weight: 700;
  cursor: pointer;
    font-size: 1.6 rem;

}

.btn-primario:hover {
  background: #1d4ed8;
}

.swal-mobile-big {
  font-size: 1.1rem;
}

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

.swal2-html-container {
  font-size: 1.2rem !important;
}

.swal2-confirm {
  font-size: 1.1rem !important;
  padding: 10px 20px;
}



.sugerencias {
  position: absolute;
  background: white;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 10px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}

.item-ciudad {
  padding: 10px;
  cursor: pointer;
}

.item-ciudad:hover {
  background: #f1f5f9;
}

/* Contenedor del buscador */
.buscador-container {
    position: relative;
    width: 100%;
    margin-top: 10px;
}

#inputCiudad {
    width: 100%;
    padding: 12px;
    font-size: 1.2rem; /* Input más grande */
    border: 2px solid var(--azul);
    border-radius: 10px;
    outline: none;
    color: rgb(3, 3, 118);
}

/* El desplegable de sugerencias */
.sugerencias-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

/* Cada ítem de la lista */
.sugerencia-item {
    padding: 15px; /* Más espacio para que sea "grande" */
    font-size: 1.3rem; /* Texto grande */
    color: #1e40af; /* Color azul de tu paleta */
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 600;
}

.sugerencia-item:hover {
    background-color: #dbeafe; /* Fondo azul clarito al pasar el mouse */
}

.hidden { display: none; }

.modal-foto-contenido {
  width: min(95vw, 980px);
  height: min(92vh, 820px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.img-foto-grande {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  background: #000;
  touch-action: pan-y;
}

.btn-cerrar-foto {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 3;
}

.btn-nav-foto {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
}


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

.swal2-popup {
  font-size: 1.2rem !important;
  border-radius: 16px;
}

.swal2-confirm,
.swal2-cancel {
  font-size: 1.1rem !important;
  padding: 10px 18px !important;
}

.badge-postulado.ok {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #22c55e;
  font-weight: 800;
}

.badge-postulado {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #dcfce7;
  color: #166534;
  font-weight: 800;
  margin-top: 10px;
}

.check-icon {
  color: #22c55e;
  font-weight: 900;
}


.valor-ciudad {
  color: #2e7d32;
  font-weight: 600;
}

/* 🔥 MOBILE FULL SCREEN */
@media (max-width: 600px) {
  .modal {
    padding: 0;
    align-items: stretch;
  }

  .modal-card {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .btn-primario,
  .btn-secundario {
    font-size: 1.2rem;
  }

  .changa-info {
        padding: 16px;
    }
    
    .titulo {
        font-size: 1.5rem; /* Título bien legible */
    }

    .valor {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .btn-contactar {
        font-size: 1.25rem;
        padding: 16px;
        border-radius: 14px;
        letter-spacing: 0.5px;
    }

    .swal2-popup {
    font-size: 1.4rem !important;
  }
}

/* ===== Refresh Busco Changa ===== */
body {
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #eef5ff, #f8fbff 40%, #ffffff);
}


.header {
  border-bottom: 1px solid #dbe7ff;
  background: #f8fbff;
}

.header h1 {
  color: #12554b;
  font-size: 1.45rem;
}

.seo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #365585;
}

.seo-breadcrumb a {
  color: #1f6feb;
  text-decoration: none;
  font-weight: 700;
}

.seo-breadcrumb a:hover {
  text-decoration: underline;
}

#introSeoCiudad {
  margin: 6px 0 0;
  color: #34506f;
  font-size: 0.95rem;
  line-height: 1.4;
}

.seo-relacionadas {
  background: #ffffff;
  border: 1px solid #dbe7ff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

.seo-relacionadas h2 {
  font-size: 1.05rem;
  color: #1c406f;
  margin-bottom: 10px;
}

.seo-relacionadas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-relacionadas-grid a {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #0f3f85;
  text-decoration: none;
  font-weight: 700;
}

.seo-relacionadas-grid a:hover {
  background: #d7e9ff;
}

.buscador-container {
  position: relative;
  margin-top: 10px;
}

.aviso-lista {
  display: none;
}

#inputCiudad {
  font-size: 1rem;
  min-height: 48px;
  border: 2px solid #d0e0ff;
  border-radius: 12px;
  color: #0f3f85;
  background: #fff;
}

#inputCiudad:focus {
  border-color: #1f6feb;
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.14);
}

.sugerencias {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #bfd5ff;
  border-radius: 12px;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.item-ciudad,
.sugerencia-item {
  padding: 12px 14px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #0f3f85;
  border-bottom: 1px solid #edf3ff;
}

.item-ciudad:hover,
.sugerencia-item:hover {
  background: #eaf3ff;
}

.item-ciudad:last-child,
.sugerencia-item:last-child {
  border-bottom: none;
}

.modal {
  background: rgba(238, 245, 255, 0.82);
}

.modal-card {
  border: 1px solid #dbe7ff;
  box-shadow: 0 22px 52px rgba(20, 102, 255, 0.14);
}

.modal-header {
  background: linear-gradient(135deg, #168252, #2ea66f);
}

.modal-body textarea,
.modal-body input {
  border: 2px solid #d0e0ff;
}

.modal-body textarea:focus,
.modal-body input:focus {
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.14);
}


.swal-popup-mobile {
  border-radius: 18px;
  padding: 20px;
  width: 92% !important;
  max-width: 420px;
}

.swal-title-mobile {
  font-size: 1.6rem !important;
  font-weight: 800;
  color: #0f172a;
}

.swal-html-mobile {
  font-size: 1.25rem !important;
  line-height: 1.5;
  color: #334155;
}

.swal-text {
  font-size: 1.25rem;
  font-weight: 600;
}

.swal-btn-mobile {
  font-size: 1.2rem !important;
  padding: 12px 22px !important;
  border-radius: 12px !important;
  background: #16a34a !important;
}


@media (max-width: 600px) {
  #inputCiudad,
  .item-ciudad,
  .sugerencia-item {
    font-size: 1.25rem;
  }

  #inputCiudad {
    min-height: 56px;
  }

  .item-ciudad,
  .sugerencia-item {
    padding: 14px 14px;
  }

  .header h1 {
    font-size: 1.3rem;
  }

  .seo-breadcrumb {
    font-size: 1rem;
  }

  #introSeoCiudad {
    font-size: 1.05rem;
  }

  .seo-relacionadas h2 {
    font-size: 1.15rem;
  }

  .modal-header h2 {
    font-size: 1.35rem;
  }

  .aviso-lista {
    display: block;
    margin: 6px 2px 0;
    font-size: 1.02rem;
    color: #c81e1e;
    font-weight: 800;
  }

  .modal-foto-contenido {
    width: 100vw;
    height: 100dvh;
    gap: 0;
  }

  .img-foto-grande {
    border-radius: 0;
  }

  .btn-nav-foto {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  #btnPrevFoto {
    left: 10px;
  }

  #btnNextFoto {
    right: 10px;
  }

  .swal-title-mobile {
    font-size: 1.9rem !important;
  }

  .swal-html-mobile {
    font-size: 1.4rem !important;
  }

  .swal-btn-mobile {
    font-size: 1.3rem !important;
  }
}
