:root {
  --color-default: #444;
  --color-primary: #0066ff;
  --color-danger: #ff3b30;
  --color-verde: #04943b;

  --bg-default: #e6e6e6;
  --bg-primary: #0066ff;
  --bg-danger: #ff3b30;
  --bg-verde: #04943b;
  --bg-naranja: #f75b00;

  --border-radius: 6px;
  --border-radius-rounded: 50px;

  --padding-y: 10px;
  --padding-x: 20px;
}

/* BASE BUTTON */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: var(--padding-y) var(--padding-x);
  /*font-size: 16px;*/
  font-size: 110%;
  cursor: pointer;
  border: none;
  border-radius: var(--border-radius);
  background: var(--bg-default);
  color: var(--color-default);
  transition: 0.25s ease;
  justify-content: center;
  width: 15vw;
  height: 5vw;
}

/* HOVER */
.btn:hover { opacity: 0.8; }

/* SOLID VARIANTS */
.btn-primary { background: var(--bg-primary); color: white; }
.btn-danger { background: var(--bg-danger); color: white; }
.btn-verde { background: var(--bg-verde); color: white; }
.btn-naranja { background: var(--bg-naranja); color: white; }

/* ROUNDED */
.btn-rounded { border-radius: var(--border-radius-rounded); }

/*
@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}
*/

/* BOTÓN CON EFECTO PRESIONADO */
.btn-press {
  box-shadow: 0 4px 0 rgba(0,0,0,0.25);
  transition: 
    transform 0.08s ease,
    box-shadow 0.08s ease,
    filter 0.08s ease;
}

/* CLICK */
.btn-press:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.25);
  filter: brightness(0.95);
}

.btn-inactivo{
  opacity: 0.9;
  cursor: crosshair;
}

.datos-gral{
  margin-bottom: 2vw;
}

.datos-gral h2{
  font-size: 3.5vw;
  margin-left: -1vw;
  margin-bottom: 0.5vw;
}

.datos-gral ul li{
  font-size: 2.5vw;
}

.solo-ambiente{
  font-size: 4vw;
  border-bottom: 2px solid #444;
  padding-left: 2vw;
}

.visu-fotos {
  display: flex;
  flex-wrap: wrap;
  gap: 4vw 2vw;
  justify-content: start;
  align-items: start;
  align-content: start;
  padding-top: 2vw;
  padding-left: 2vw;
}

.solo-imag {
  width: 220px;
  height: 150px;
  border: 2px solid red;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  /*object-fit: cover;*/
}

.princ-imag {
  width: 80vw;
  height: 20vw;
  border: 2px solid red;
  /*display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  object-fit: cover;*/
  margin-bottom: 2.8vw;
}

.solo-imag img, .princ-imag img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Bloque leer más / leer menos */
.contenedor-texto {
  /*max-width: 500px;*/
  max-width: 60vw;
  line-height: 1.6;
  font-family: sans-serif;
  font-size: 2vw;
  margin-top : -1.8vw;
  margin-bottom: 0;
  /* margin: -1.8vw 0; */
}
        
/* Estilo para el botón */
.btn-leer {
  color: blue;
  cursor: pointer;
  font-weight: bold;
  text-decoration: underline;
  margin-left: 5px;
}

/* Ocultar el resto del texto por defecto */
/* Ya no hace falta este estilo. Lo pone el código JavaScript (en el `innerHTML`) de la función leerMasMenos(texto, limite, idUbicacion) 
#texto-extra {
  display: none;
} */
/* Fin */

/* Se reemplazó #form-info por la clase .formulario-info */
.formulario-info {
  display: flex;
  flex-direction: row; /* Los pone uno al lado del otro */
  align-items: flex-start; /* Los alinea por el tope superior */
  gap: 15px 40px; /* Espacio opcional entre los bloques para que no se peguen */
  flex-wrap: wrap; /* Por si la pantalla es chica, que bajen */
  padding: 20px 0 20px 0;
  margin: 20px 0;
  border: 2px solid var(--bg-verde);
}

.formulario-info label {
  display: flex;
  align-items: center;   /* ← centra verticalmente */
  gap: 10px;             /* espacio entre texto y campo */
  min-width: 150px;
  font-size: 20px;
  font-weight: bold;
  padding-left: 10px;
  padding-right: 20px;
}

#formmmmm-info label {
  display: block; /* Ya no necesita inline-block porque el padre es flex */
  width: auto;    /* Deja que el ancho se adapte al contenido */
  min-width: 150px;
  height: auto;   /* ¡Clave! Para que crezca hacia abajo sin problemas */
  font-size: 20px;
  font-weight: bold;
  padding-left: 10px;
  padding-right: 20px;
}

.formulario-info input {
  display: inline-block; /* Permite asignar ancho y alto */
  width: 350px;
  height: 40px;
  font-size: 20px;
  /*font-weight: bold;
  border: 2px solid red;*/
}

.formulario-info select {
  width: 120px;
  height: 40px;
  font-size: 20px;
  padding: 5px;
  border-radius: 5px;
}

.formulario-info option {
  font-size: 20px;
  background-color: #f9f9f9;
  padding: 0px; /* Nota: El padding suele ser ignorado en options */
}

/* Se reemplazó .formulario-info #operacion, .formulario-info #precio, .formulario-info #ambientes, .formulario-info #ubicacion
por las clases .operacionCL, .precioCL, .ambientesCL, .ubicacionCL */
/*.formulario-info #operacion {*/
.operacionCL {
  width: 100px;
}

/*.formulario-info #precio{*/
.precioCL {
  width: 150px;
}

/*.formulario-info #ambientes, .formulario-info #ubicacion {*/
.ambientesCL, .ubicacionCL {
  width: 310px;
}

.formulario-info textarea {
  width: 550px;
  min-height: 60px;
  max-height: 180px;
  font-size: 20px;
  resize: none;
  overflow-y: auto;
}
/*
#form-info textarea {
  width: 550px;
  height: 60px;
  font-size: 20px;
  align-self: center;
}
*/
#btn-vista-prev {
  width: 220px;
  margin-top: 10px;
}

.fotosmoverCL {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin: 20px 0;
  border: 2px solid red;
}

.fotoprevia {
  width: 20vw;
  height: 20vh;
  margin: 4px;
  margin-bottom: 8vh;
  position: relative;
  cursor: move;
  border: 2px solid rgb(54, 51, 209);
}

.fotoprevia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.btn-eliminar-foto {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(255, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-eliminar-foto:hover {
  background: rgba(255, 0, 0, 0.9);
}

.ambiente-foto {
  border: 2px solid greenyellow;
  /* Posicionamiento para centrar */
  position: absolute;
  bottom: -45px; /* Lo baja para que quede fuera del recuadro azul */
  left: 50%;
  transform: translateX(-50%); /* El truco mágico para centrar elementos absolutos */
  width: 90%; /* Opcional: para que no sea más ancho que la foto */
  text-align: center;
}

.etiqueta-ambiente {
  font-size: max(5vh,2.9vw);
  text-align: center;
  margin-top: 0;
  border: 2px solid greenyellow;
}

.seleccionada {
  box-shadow: 0 0 0 8px #28a745;
  border-radius: 8px;
}