/* ========== VALORADOR DE PROPIEDADES ========== */

.block-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

* {
  box-sizing: border-box;
}

/* Modal Overlay */
.modal-valorador {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
}

.modal-valorador.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenedor del Modal */
.valorador-container {
  background: white;
  border-radius: 15px;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
    margin-top:80px;
}

/* Botón Cerrar */
.btn-cerrar-valorador {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f16901;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-cerrar-valorador:hover {
  background: #d45801;
  transform: rotate(90deg);
}

/* Grid de 2 columnas */
.valorador-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

/* Columna Izquierda - Formulario */
.valorador-form-col {
  padding: 60px 50px;
  background: #f8f9fa;
}

.valorador-form-col h2 {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 15px 0;
}

.valorador-form-col p {
  font-size: 16px;
  color: #666;
  margin: 0 0 30px 0;
  line-height: 1.6;
}

.form-group-valorador {
  margin-bottom: 20px;
}

.form-group-valorador label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

/* INPUTS Y SELECTS - TODOS CON MISMO ESTILO */
.form-control-valorador,
input.form-control-valorador,
select.form-control-valorador,
textarea.form-control-valorador {
  width: 100% !important;
  padding: 14px 16px !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  transition: all 0.3s ease !important;
  font-family: inherit !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: white !important;
  height: auto !important;
  min-height: 50px !important;
  line-height: 1.5 !important;
  box-sizing: border-box !important;
}

.form-control-valorador:focus,
input.form-control-valorador:focus,
select.form-control-valorador:focus,
textarea.form-control-valorador:focus {
  border-color: #f16901 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(241, 105, 1, 0.1) !important;
}

/* Flecha personalizada para los select */
select.form-control-valorador {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  padding-right: 40px !important;
  cursor: pointer !important;
}

.form-row-valorador {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
}

.btn-valorar {
  width: 100%;
  padding: 16px;
  background: #f16901;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-valorar:hover {
  background: #d45801;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(241, 105, 1, 0.3);
}

/* Columna Derecha - Mapa */
.valorador-map-col {
  position: relative;
  background: #2c3e50;
}

#mapid {
  width: 100%;
  height: 100%;
  min-height: 600px;
}

/* Pantalla de Resultados */
.valorador-resultados {
  display: none;
  grid-template-columns: 1fr 2fr;
}

.resultados-contacto {
  background: linear-gradient(135deg, #f16901 0%, #ff8c42 100%);
  color: white;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.resultados-contacto h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 20px 0;
}

.interesados-numero {
  font-size: 64px;
  font-weight: 900;
  display: block;
  margin: 20px 0;
}

.contacto-info {
  margin-top: 40px;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 18px;
}

.contacto-item i {
  font-size: 24px;
}

.contacto-item a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.contacto-item a:hover {
  text-decoration: underline;
}

.resultados-datos {
  padding: 60px 50px;
  background: white;
}

.precio-valoracion {
  text-align: center;
  margin: 40px 0;
}

.precio-valoracion h3 {
  font-size: 24px;
  color: #2c3e50;
  margin: 0 0 30px 0;
}

.precio-rango {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.precio-item {
  text-align: center;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 10px;
  border-top: 4px solid #f16901;
}

.precio-item span {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 600;
}

.precio-item strong {
  font-size: 36px;
  color: #f16901;
  font-weight: 900;
}

.no-valoracion {
  text-align: center;
  padding: 40px;
  background: #fff3cd;
  border-radius: 10px;
  border-left: 5px solid #ffc107;
  margin: 30px 0;
}

.no-valoracion h3 {
  font-size: 24px;
  color: #856404;
  margin: 0 0 15px 0;
}

.no-valoracion p {
  font-size: 16px;
  color: #856404;
  line-height: 1.7;
}

.formulario-agente {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 10px;
  margin-top: 30px;
}

.formulario-agente h4 {
  font-size: 20px;
  color: #2c3e50;
  margin: 0 0 20px 0;
}

.formulario-agente p {
  font-size: 15px;
  color: #666;
  margin: 0 0 25px 0;
  line-height: 1.6;
}

.form-group-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.checkbox-group {
  margin: 20px 0;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #555;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-group a {
  color: #f16901;
  text-decoration: none;
  font-weight: 600;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

/* Alertas */
.alert-valorador {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 15px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border-left: 5px solid #28a745;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border-left: 5px solid #dc3545;
}

/* Mensaje de Confirmación */
.mensaje-confirmacion {
  text-align: center;
  padding: 60px 40px;
}

.mensaje-confirmacion h2 {
  font-size: 36px;
  color: #28a745;
  margin: 0 0 20px 0;
}

.mensaje-confirmacion p {
  font-size: 18px;
  color: #666;
  margin: 0 0 30px 0;
}

/* Botón de Apertura */
.btn-abrir-valorador {
  display: inline-block;
  padding: 18px 40px;
  background: #f16901;
  color: white !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;

}

.btn-abrir-valorador:hover {
  background: #d45801;
  transform: translateY(-2px);

  color: white !important;
}

/* Honeypot oculto */
.honeypot-field {
  position: absolute !important;
  left: -9000px !important;
}

/* Responsive */
@media (max-width: 968px) {
  .valorador-grid,
  .valorador-resultados {
    grid-template-columns: 1fr;
  }

  .valorador-form-col,
  .resultados-datos {
    padding: 40px 30px;
  }

  .valorador-map-col {
    min-height: 400px;
    order: -1;
  }

  #mapid {
    min-height: 400px;
  }

  .form-row-valorador {
    grid-template-columns: 1fr;
  }

  .precio-rango {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-group-inline {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .btn-cerrar-valorador {
    top: 20px;
    right: 10px;
  }

  .resultados-contacto {
    padding: 30px 25px;
  }

  .interesados-numero {
    font-size: 48px;
  }
}

@media (max-width: 480px) {
  .valorador-form-col h2 {
    font-size: 24px;
  }

  .precio-item strong {
    font-size: 28px;
  }

  .formulario-agente {
    padding: 25px 20px;
  }
}

/* Div previo al Valorador 
------------------------------- */

/* Sección de Valoración */
.seccion-valoracion {
  padding: 80px 20px;
}

.valoracion-contenedor {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.valoracion-imagen {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.valoracion-imagen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(241, 105, 1, 0.1) 0%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 1;
}

.valoracion-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 500px;
}

.valoracion-contenido h2 {
  font-size: 42px;
  font-weight: 800;
  color: #2c3e50;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.valoracion-destacado {
  font-size: 20px;
  color: #666;
  margin: 0 0 40px 0;
  line-height: 1.6;
}

.valoracion-beneficios {
  margin: 40px 0;
}

.beneficio-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.beneficio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(241, 105, 1, 0.15);
}

.beneficio-item i {
  font-size: 32px;
  color: #f16901;
  min-width: 40px;
}

.beneficio-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 8px 0;
}

.beneficio-item p {
  font-size: 15px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.valoracion-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(135deg, #f16901 0%, #ff8c42 100%);
  border-radius: 15px;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-numero {
  display: block;
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 8px;
}

.stat-texto {
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.95;
}

.btn-abrir-valorador {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 45px;
  background: #f16901;
  color: white !important;
  text-decoration: none;
  border-radius: 0px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 17px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin: 30px 0;
}

.btn-abrir-valorador:hover {
  background: #d45801;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(241, 105, 1, 0.4);
  color: white !important;
}

.btn-abrir-valorador i {
  font-size: 20px;
}

.valoracion-nota {
  font-size: 14px;
  color: #666;
  margin: 20px 0 0 0;
  padding: 15px;
  background: #fff3e0;
  border-left: 4px solid #f16901;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.valoracion-nota i {
  color: #f16901;
  font-size: 18px;
}

/* Responsive */
@media (max-width: 968px) {
  .valoracion-contenedor {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .valoracion-imagen {
    order: -1;
  }

  .valoracion-imagen img {
    min-height: 350px;
  }

  .valoracion-contenido h2 {
    font-size: 32px;
  }

  .valoracion-destacado {
    font-size: 18px;
  }

  .valoracion-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-numero {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .seccion-valoracion {
    padding: 50px 15px;
  }

  .valoracion-contenido h2 {
    font-size: 26px;
  }

  .beneficio-item {
    padding: 15px;
  }

  .btn-abrir-valorador {
    width: 100%;
    padding: 18px 30px;
    font-size: 15px;
  }
}
