/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f5f6fa;
  color: #333;
}

/* NAVBAR */
.navbar {
  background: #0d4f7c;
  padding: 5px 80px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 120px;
}

.menu a {
  color: white;
  margin-left: 25px;
  text-decoration: none;
  font-size: 16px;
}

.btn-login {
  background: #f39c12;
  padding: 8px 14px;
  border-radius: 6px;
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 1200px;
  background: #0d4f7c;
  color: white;
}

.hero-left {
  max-width: 500px;
}

.hero-left h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.hero-left p {
  opacity: 0.9;
}

/* BUSCADOR */
.search-box {
  margin-top: 25px;
  display: flex;
  gap: 10px;
  background: white;
  padding: 15px;
  border-radius: 12px;
}

.search-box select,
.search-box button {
  padding: 10px;
  border: none;
  border-radius: 5px;
}

.search-box button {
  background: #f39c12;
  color: white;
}

/* SOCIAL */
.social {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.social a {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social a i {
  color: #0d4f7c;
}

/* SLIDER */
.hero-right {
  width: 500px;
}

.slider {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: 1s;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide.active {
  opacity: 1;
}

/* CONTENEDOR GLOBAL */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 25px;
}

/* CARD */
.card {
  border-radius: 12px;
  overflow: hidden;
  background: black;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
}

.card-img {
  position: relative;
}

.card-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.overlay {
  position: absolute;
  bottom: 0;
  height: 60%;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.card-bottom {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  color: white;
  display: flex;
  justify-content: space-between;
}

/* CONTACTO */
.contacto {
  background: #f0f0f0;
  padding: 60px 80px;
  text-align: center;
}

.contact-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.map-box iframe {
  width: 100%;
  height: 350px;
  border-radius: 10px;
}

.contact-form {
  background: #0d4f7c;
  padding: 15px;
  border-radius: 10px;
  color: white;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border: none;
  border-radius: 5px;
}

.contact-form button {
  width: 100%;
  padding: 12px;
  background: #f39c12;
  border: none;
  color: white;
}

/* FOOTER */
.footer {
  background: white;
  color: black;
  text-align: center;
  padding: 20px;
}

/* RESPONSIVE */
@media(max-width:900px){
  .hero {
    flex-direction: column;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* CAJAS CONTACTO */
.contact-boxes {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.contact-boxes .box {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 200px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-boxes i {
  font-size: 24px;
  color: #0d4f7c;
  margin-bottom: 10px;
}

/* CONTENIDO CENTRADO REAL */
.nav-container,
.hero,
.contenedor,
.contacto {
  max-width: 1200px;
  margin: auto;
}

/* QUITAR ESTIRADO */
.hero {
  padding-left: 20px;
  padding-right: 20px;
}

.contenedor {
  padding: 60px 20px;
}

.contacto {
  padding: 60px 20px;
}

/* MEJOR ALINEACIÓN */
.hero-left {
  max-width: 500px;
}

/* SLIDER MÁS CONTROLADO */
.hero-right {
  max-width: 500px;
}

/* GRID MÁS PRO */
.grid {
  gap: 20px;
}

/* ========================= */
/* 🔥 FIX SLIDER PROPIEDAD */
/* ========================= */

.slider-prop {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 10px;
}

.slider-prop .slide-prop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slider-prop .slide-prop.active {
  opacity: 1;
  z-index: 2;
}

/* BOTONES */
.controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.controls button {
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 12px;
}

/* CONTENIDO PROPIEDAD */
.propiedad-pro {
  display: flex;
  gap: 40px;
  padding: 60px 10%;
}

.prop-left {
  flex: 2;
}

.prop-right {
  flex: 1;
}

/* WHATSAPP */
.btn-wsp-pro {
  background: #25D366;
  color: white;
  padding: 10px;
  display: block;
  text-align: center;
  border-radius: 6px;
}

/* RESPONSIVE */
@media(max-width:900px){
  .propiedad-pro {
    flex-direction: column;
  }

  .hero {
    flex-direction: column;
  }
}

/* ===== INFO PROPIEDAD PRO ===== */

.prop-left h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.zona {
  color: #777;
  margin-bottom: 15px;
}

.precio {
  font-size: 28px;
  color: #1a73b8;
  margin-bottom: 20px;
  font-weight: bold;
}

.detalles {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.detalles span {
  background: #f1f3f6;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
}

.descripcion {
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
}

.map-pro iframe {
  width: 100%;
  height: 300px;
  border-radius: 10px;
}

/* ===== CARD CONTACTO PRO ===== */

.card-contacto {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  position: sticky;
  top: 100px;
}

.card-contacto h3 {
  margin-bottom: 15px;
  color: #0d4f7c;
}

.card-contacto input,
.card-contacto textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.card-contacto button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg,#1a73b8,#0d4f7c);
  color: white;
  border: none;
  border-radius: 8px;
}

/* ===================================== */
/* 🔥 CONTACTO PIXEL PERFECT */
/* ===================================== */

/* CONTENEDOR IGUAL QUE HERO */
.contacto .wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 80px;
  padding-right: 80px;
}

/* GRID CONTACTO */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* MAPA */
.map-box {
  width: 100%;
}

.map-box iframe {
  width: 100%;
  height: 380px;
  border-radius: 12px;
}

/* FORMULARIO */
.contact-form {
  width: 100%;
  max-width: 460px;
  margin-left: auto;
}

/* AJUSTE VERTICAL FINO */
.contact-form {
  margin-top: -10px;
}

/* ===================================== */
/* 🔥 FIX FINAL CONTACTO (ALINEACIÓN REAL) */
/* ===================================== */

/* QUITAR PADDING EXTERNO QUE ROMPE TODO */
.contacto {
  padding: 60px 0 !important;
}

/* CONTENEDOR PRINCIPAL (MISMO SISTEMA QUE HERO) */
.contacto .wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}

/* GRID */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* MAPA */
.map-box iframe {
  width: 100%;
  height: 380px;
}

/* FORM */
.contact-form {
  max-width: 460px;
  margin-left: auto;
}

/* 🔥 AJUSTE CLAVE: QUITAR DESFASES */
.map-box,
.contact-form {
  margin: 0;
  padding: 0;
}


/* ICONO LOGIN */
.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
}

.btn-login i {
  font-size: 16px;
}

/* ===================================== */
/* 🔥 SEARCH BOX PRO (LARGO + ENCIMA) */
/* ===================================== */

/* HACERLO MÁS LARGO */
.search-box {
  width:120%;
  max-width: 600px;
}

/* POSICIONAR ENCIMA DEL CARRUSEL */
.hero-left {
  position: relative;
  z-index: 2;
}

.hero-right {
  position: relative;
  z-index: 0;
}

/* SUPERPOSICIÓN */
.search-box {
  position: relative;
  right: 0px;
}

/* SOMBRA PRO (OPCIONAL PERO RECOMENDADO) */
.search-box {
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}


/* ===================================== */
/* 🔥 FORMULARIO ALTO = MAPA */
/* ===================================== */

/* CONTENEDOR */
.contact-container {
  align-items: stretch; /* clave */
}

/* MAPA */
.map-box iframe {
  height: 100%;
  min-height: 380px;
}

/* FORMULARIO MISMA ALTURA */
.contact-form {
  height: 100%;
  min-height: 380px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===================================== */
/* 🔥 INPUTS MÁS FINOS Y ALTOS */
/* ===================================== */

.contact-form input,
.contact-form textarea {
  width: 85%;              /* más angostos */
  margin: 0 auto 12px;     /* centrados */
  padding: 14px 12px;      /* más altos */
  border-radius: 8px;
}

/* TEXTAREA MÁS PRO */
.contact-form textarea {
  height: 100px;
  resize: none;
}

/* BOTÓN */
.contact-form button {
  width: 85%;
  margin: 10px auto 0;
  padding: 14px;
}

/* ===== ADMIN PROPIEDADES ===== */

.admin-body {
  background: #f5f6fa;
  font-family: 'Segoe UI', sans-serif;
}

/* CONTENEDOR */
.admin-wrapper {
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
}

/* HEADER */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.admin-header h2 {
  color: #0d4f7c;
}

/* BOTONES */
.btn {
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  color: white;
  transition: 0.3s;
}

.btn-primary {
  background: #f39c12;
}

.btn-primary:hover {
  background: #d68910;
}

.btn-edit {
  background: #1a73b8;
}

.btn-edit:hover {
  background: #0d4f7c;
}

.btn-delete {
  background: #e74c3c;
}

.btn-delete:hover {
  background: #c0392b;
}

/* CARD */
.admin-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* TABLA */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead {
  background: #0d4f7c;
  color: white;
}

.admin-table th {
  padding: 12px;
  text-align: left;
}

.admin-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

/* FILAS */
.admin-table tr:hover {
  background: #f9f9f9;
}

/* ACCIONES */
.acciones {
  display: flex;
  gap: 10px;
}

/* ALERTA */
.alert-success {
  background: #2ecc71;
  color: white;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
}

/* TEXTAREA */
.form-group textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* GALERÍA ADMIN */
.galeria-admin {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.img-item {
  background: #f9f9f9;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.img-item img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* PREVIEW */
.preview {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

/* HOVER IMÁGENES */
.img-item {
  transition: 0.3s;
}

.img-item:hover {
  transform: scale(1.05);
}

/* HERO PROPIEDAD */
.hero-prop {
  position: relative;
  margin-bottom: 40px;
}

.slider-prop {
  height: 500px;
  border-radius: 0;
}

.hero-info {
  position: absolute;
  bottom: 30px;
  left: 50px;
  color: white;
}

.hero-info h1 {
  font-size: 32px;
  margin-bottom: 5px;
}

.hero-info h2 {
  font-size: 28px;
  color: #f39c12;
}

/* CARD PRO */
.card-pro {
  background: white;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* MAPA */
.map-card iframe {
  width: 100%;
  height: 350px;
  border-radius: 10px;
}

/* CONTACTO PRO */
.card-contacto-pro {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  position: sticky;
  top: 100px;
}

.card-contacto-pro h3 {
  margin-bottom: 15px;
  color: #0d4f7c;
}

.card-contacto-pro input,
.card-contacto-pro textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* BOTON PRINCIPAL */
.btn-main {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg,#1a73b8,#0d4f7c);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  margin-bottom: 10px;
  cursor: pointer;
}

/* DETALLES */
.detalles span {
  background: #f1f3f6;
  padding: 10px 15px;
  border-radius: 8px;
}

/* OVERLAY OSCURO */
.overlay-dark {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  top: 0;
  left: 0;
}

/* HERO INFO */
.hero-info {
  position: absolute;
  bottom: 40px;
  left: 60px;
  color: white;
  z-index: 2;
}

.hero-info h1 {
  font-size: 36px;
}

.hero-info h2 {
  color: #f39c12;
}

/* MINIATURAS */
.thumbs {
  display: flex;
  gap: 10px;
  padding: 15px 60px;
  background: #fff;
  overflow-x: auto;
}

.thumbs img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s;
}

.thumbs img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* BOTON FLOTANTE WHATSAPP */
.wsp-float {
  position: fixed;
  bottom: 50px;
  right: 50px;

  width: 80px;
  height: 80px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #25D366;
  color: white;

  border-radius: 50%;
  font-size: 35px;

  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  z-index: 999;

  text-decoration: none;
}

/* HERO GALERIA LATERAL */
.hero-galeria {
  display: flex;
  gap: 15px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* IMAGEN PRINCIPAL */
.main-image {
  flex: 4;
}

.main-image img {
  width: 100%;
  height: 450px; /* 🔥 MÁS CUADRADO */
  object-fit: cover;
  border-radius: 12px;
}

/* MINIATURAS LATERALES */
.thumbs-vertical {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 450px;
  overflow-y: auto;
}

.thumbs-vertical img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s;
}

.thumbs-vertical img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ACTIVA */
.thumbs-vertical img.active {
  border: 2px solid #1a73b8;
  opacity: 1;
}

/* ZOOM */
.zoom-container {
  overflow: hidden;
  border-radius: 12px;
}

.zoom-container img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform 0.4s ease;
  cursor: zoom-in;
}

.zoom-container:hover img {
  transform: scale(1.15);
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  text-align: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* CONTENEDOR RELATIVO */
.main-image {
  position: relative;
  flex: 4;
}

/* INFO ENCIMA */
.hero-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  z-index: 5;

  background: rgba(0,0,0,0.5);
  padding: 15px 20px;
  border-radius: 10px;
}

/* WHATSAPP INDEX*/
.wsp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;

  width: 60px;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #25D366;
  color: white;

  border-radius: 50%;
  font-size: 26px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 9999;

  text-decoration: none;
}

.wsp-float:hover {
  transform: scale(1.1);
}

/* ALINEAR TODO CON NAVBAR */
.nav-container,
.hero .wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 0 40px;
}

/* ===================================== */
/* 🔥 HERO EXACTO COMO IMAGEN */
/* ===================================== */

.hero {
  padding: 60px 0 !important;
  position: relative;
  overflow: hidden;
}

/* CONTENEDOR */
.hero .wrapper {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 80px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* IZQUIERDA */
.hero-left {
  flex: 1;
  max-width: 1600px;
  z-index: 2;
}

/* DERECHA */
.hero-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

/* SLIDER */
.slider {
  width: 420px;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
}

/* 🔥 BUSCADOR FLOTANTE */
.search-box {
  position: relative;
  margin-top: 25px;

  transform: translateX(40px); /* se mete hacia el carrusel */
  width: 480px;

  z-index: 5;

  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* TEXTO */
.hero-left h1 {
  font-size: 38px;
  margin-bottom: 10px;
}

/* ICONOS */
.social {
  margin-top: 20px;
}

/* ===================================== */
/* 🔥 HERO FULL WIDTH (FONDO COMPLETO) */
/* ===================================== */

.hero {
  width: 100%;
  max-width: 100% !important;
  margin: 0 !important;
  background: #0d4f7c;

  /* 🔥 clave */
  display: flex;
  justify-content: center;
}

/* CONTENIDO CENTRADO PERO FONDO COMPLETO */
.hero .wrapper {
  width: 100%;
  max-width: 1200px;
  padding: 0 80px;
}

/* ===================================== */
/* 🔥 ESCALA GLOBAL +10% */
/* ===================================== */

body {
  zoom: 1.1;
}