*{box-sizing:border-box}
body{margin:0;font-family:Arial,sans-serif;color:#18203f;background:#f5f8fc}
header{background:#fff;padding:12px 7%;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;box-shadow:0 2px 12px #10152b12}
.brand{display:flex;align-items:center}
.brand img{display:block;width:190px;max-width:48vw;height:auto;object-fit:contain}
nav{display:flex;gap:20px;flex-wrap:wrap}
nav a{color:#171a3c;text-decoration:none;font-weight:700;font-size:14px}
nav a:hover{color:#1384bb}
.hero{background:linear-gradient(90deg,#101a3ce8,#101a3c52),url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1800&q=85') center/cover;color:#fff;padding:86px 7%}
.hero h1{font-size:clamp(32px,5vw,52px);max-width:650px;margin:0 0 15px}
.hero p{font-size:18px;line-height:1.6;max-width:610px}
.search{background:#fff;padding:16px;border-radius:12px;display:flex;gap:10px;max-width:850px;margin-top:26px;flex-wrap:wrap}
input,select,button{padding:14px;border-radius:7px;font-size:15px}
input,select{flex:1;min-width:150px;border:1px solid #d5deea;background:#fff;color:#18203f}
button{border:0;background:#087eb5;color:#fff;font-weight:bold;cursor:pointer}
button:hover{background:#066895}
section{padding:46px 7%}
h2{font-size:29px;margin:0 0 10px}
.muted{color:#65778b;line-height:1.6}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:22px;margin-top:24px}
.card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 4px 18px #17324d12}
.card img.photo{width:100%;height:195px;object-fit:cover}
.card-content{padding:18px}
.tag{display:inline-block;background:#e5f4fc;color:#0874a8;padding:6px 9px;border-radius:5px;font-size:12px;margin-bottom:10px}
.price{color:#087eb5;font-size:23px;font-weight:bold}
.card button{width:100%;margin-top:12px}
.services{background:#eaf3fb}
.service{background:#fff;padding:24px;border-radius:12px}
.symbol{font-size:32px}
.publish{background:#fff}
footer{background:#101a3c;color:#fff;text-align:center;padding:30px 7%}
footer .brand{justify-content:center;margin-bottom:10px}
footer .brand img{width:165px;background:#fff;border-radius:5px;padding:4px}
footer p{color:#d0deec;line-height:1.6}

.publish-form{background:#f7faff;border:1px solid #dce6f1;border-radius:12px;padding:20px;max-width:900px;margin-top:22px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}
.form-grid label{display:flex;flex-direction:column;gap:7px;font-weight:700;font-size:14px;color:#18203f}
.form-grid input,.form-grid select,.form-grid textarea{width:100%;min-width:0;font:inherit;font-weight:400;border:1px solid #d5deea;border-radius:7px;padding:12px;background:#fff;color:#18203f}
.form-grid textarea{resize:vertical}
.form-grid .full{grid-column:1/-1}
@media(max-width:600px){.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}}

@media(max-width:600px){header{padding:14px 5%}.brand img{width:155px}nav{gap:12px}.hero{padding:58px 5%}section{padding:34px 5%}}
.photo-gallery{display:flex;gap:8px;overflow-x:auto;padding:10px 14px 0}
.photo-gallery img{width:76px;height:58px;object-fit:cover;border-radius:6px;flex:0 0 auto}
#newPhotos{padding:10px;background:#fff}
.form-help{font-size:13px;color:#65778b;line-height:1.5}



/* Efecto al pasar el cursor */
button:hover,
.btn:hover,
.button:hover,
a.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  filter: brightness(1.08);
  box-shadow: 0 7px 16px rgba(18, 54, 90, 0.22);
  transform: translateY(-2px);
}

/* Accesibilidad con teclado */
button:focus-visible,
.btn:focus-visible,
.button:focus-visible,
a.btn:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible {
  outline: 3px solid #167d8d;
  outline-offset: 3px;
}

/* Enlaces de navegación con apariencia de botón */
a.btn,
a.button {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}


/* ===== RENTAPRO: BOTONES MODERNOS ===== */

button,
.btn,
.button,
a.btn,
input[type="submit"],
input[type="button"] {
  background: #12365a;
  color: #ffffff;
  border: 1px solid #38bdf8;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 5px 14px rgba(18, 54, 90, 0.18);
  transition: background-color 0.25s ease,
              color 0.25s ease,
              box-shadow 0.25s ease,
              transform 0.25s ease;
}

/* Efecto al pasar el cursor */
button:hover,
.btn:hover,
.button:hover,
a.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: #38bdf8;
  color: #12365a;
  box-shadow: 0 7px 16px rgba(18, 54, 90, 0.22);
  transform: translateY(-2px);
}

/* Accesibilidad con teclado */
button:focus-visible,
.btn:focus-visible,
.button:focus-visible,
a.btn:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 3px;
}

/* Buscar conserva el naranja */
button[onclick="searchProperties()"] {
  background: linear-gradient(135deg, #f07824, #e76519);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(231, 101, 25, 0.22);
}

/* ===== RESTAURAR ESTILO DEL MENU SUPERIOR ===== */

header nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  background: #12365a;
  border: 1px solid #38bdf8;
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(18, 54, 90, 0.18);
}

header nav a {
  display: inline-block;
  padding: 10px 14px;
  background: transparent;
  color: #ffffff;
  border: none;
  font-weight: 700;
  text-decoration: none;
  border-radius: 9px;
  white-space: nowrap;
  box-shadow: none;
  transform: none;
  transition: background-color 0.25s ease,
              color 0.25s ease,
              transform 0.25s ease;
}

header nav a:hover {
  background: #38bdf8;
  color: #12365a;
  transform: translateY(-2px);
  box-shadow: none;
}

/* RENTAPRO — Encabezado moderno */
header:first-of-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 28px;
  background: linear-gradient(135deg, #12365a, #1e5480);
  border-bottom: 4px solid #f59e0b;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 6px 18px rgba(18, 54, 90, 0.18);
}

/* Logo original: solo ajustamos su tamaño visual */
header:first-of-type .brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

header:first-of-type .brand img {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 64px;
  object-fit: contain;
}

/* Navegación */
header:first-of-type nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

header:first-of-type nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

header:first-of-type nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

/* Botón Publicar */
header:first-of-type nav a#publishMenuLink {
  background: #f59e0b;
  color: #12365a;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

header:first-of-type nav a#publishMenuLink:hover {
  background: #fbbf24;
}

/* Adaptación a pantallas pequeñas */
@media (max-width: 600px) {
  header:first-of-type {
    justify-content: center;
    padding: 16px;
    gap: 14px;
  }

  header:first-of-type nav {
    justify-content: center;
    width: 100%;
    gap: 6px;
  }

  header:first-of-type nav a {
    padding: 10px 12px;
  }

  header:first-of-type .brand img {
    max-width: 190px;
    max-height: 56px;
  }
}


/* RENTAPRO — Diseño moderno del panel de acceso */
#authPanel {
  box-sizing: border-box;
  width: min(100% - 32px, 480px);
  margin: 30px auto;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(18, 54, 90, 0.12);
  color: #12365a;
}

/* Títulos y textos */
#authPanel h1,
#authPanel h2,
#authPanel h3 {
  color: #12365a;
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.3;
}

#authPanel p {
  color: #64748b;
  line-height: 1.6;
}

/* Etiquetas y campos */
#authPanel label {
  display: block;
  margin: 16px 0 6px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

#authPanel input,
#authPanel select,
#authPanel textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #f8fafc;
  color: #12365a;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#authPanel input:focus,
#authPanel select:focus,
#authPanel textarea:focus {
  border-color: #2784c7;
  box-shadow: 0 0 0 3px rgba(39, 132, 199, 0.15);
  background: #ffffff;
}

/* Botones dentro del panel, sin afectar el encabezado */
#authPanel button,
#authPanel input[type="submit"],
#authPanel input[type="button"] {
  min-height: 44px;
  padding: 11px 18px;
  border: none;
  border-radius: 9px;
  background: #12365a;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

#authPanel button:hover,
#authPanel input[type="submit"]:hover,
#authPanel input[type="button"]:hover {
  background: #1e5480;
  transform: translateY(-1px);
}

/* Adaptación a móviles */
@media (max-width: 600px) {
  #authPanel {
    width: calc(100% - 24px);
    margin: 20px auto;
    padding: 22px 18px;
    border-radius: 14px;
  }
}