/* Estilos Mi Moto 506 - Tema inspirado en Airbnb */
:root {
  --azul-principal: #0F4C81;
  --rojo-accento: #E63946;
  --blanco: #FFFFFF;
  --gris-fondo: #F7F9FC;
  --gris-borde: #E2E8F0;
  --texto-oscuro: #1A202C;
  --dorado: #FFD700;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

body { background-color: var(--gris-fondo); color: var(--texto-oscuro); padding-bottom: 70px; }

/* Header y Navbar */
.top-banner { background: #0b3c66; color: white; text-align: center; padding: 8px 12px; font-size: 13px; }
.navbar { background: var(--blanco); border-bottom: 1px solid var(--gris-borde); padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; sticky: top; top: 0; z-index: 100; }
.logo { font-size: 22px; font-weight: 800; color: var(--azul-principal); text-decoration: none; }
.logo span { color: var(--rojo-accento); }

/* Filtros y Marcas */
.filter-bar { background: var(--blanco); padding: 15px 24px; border-bottom: 1px solid var(--gris-borde); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.brand-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; width: 100%; }
.pill { padding: 6px 16px; background: #EDF2F7; border-radius: 20px; font-size: 13px; cursor: pointer; white-space: nowrap; border: 1px solid transparent; }
.pill.active, .pill:hover { background: var(--azul-principal); color: white; }

/* Grid de Anuncios */
.container { max-width: 1200px; margin: 20px auto; padding: 0 16px; }
.grid-anuncios { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

/* Cards con estilo Airbnb */
.card { background: var(--blanco); border-radius: 12px; overflow: hidden; border: 1px solid var(--gris-borde); transition: transform 0.2s, box-shadow 0.2s; position: relative; cursor: pointer; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.card.destacado { border: 2px solid var(--dorado); }

.ribbon { position: absolute; top: 12px; left: -8px; background: var(--dorado); color: #000; font-weight: bold; font-size: 11px; padding: 4px 12px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); z-index: 2; border-radius: 0 4px 4px 0; }

.card-img { width: 100%; height: 180px; object-fit: cover; background: #e2e8f0; }
.card-body { padding: 14px; }
.card-title { font-size: 16px; font-weight: 700; color: var(--texto-oscuro); margin-bottom: 4px; }
.card-price { font-size: 18px; font-weight: 800; color: var(--rojo-accento); margin-bottom: 6px; }
.card-details { font-size: 12px; color: #718096; display: flex; justify-content: space-between; }

/* Modales */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: none; justify-content: center; align-items: center; z-index: 1000; padding: 15px; }
.modal-overlay.active { display: flex; }
.modal-card { background: white; width: 100%; max-width: 550px; border-radius: 16px; padding: 24px; max-height: 90vh; overflow-y: auto; position: relative; }
.close-btn { position: absolute; top: 15px; right: 15px; background: #EDF2F7; border: none; font-size: 18px; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; }

/* Botones Formulario */
.btn { width: 100%; padding: 12px; border-radius: 8px; border: none; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 10px; }
.btn-primary { background: var(--azul-principal); color: white; }
.btn-danger { background: var(--rojo-accento); color: white; }
.btn-success { background: #38A169; color: white; }

.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.form-control { width: 100%; padding: 10px; border: 1px solid var(--gris-borde); border-radius: 8px; font-size: 14px; }

/* Bottom Bar Mobile */
.bottom-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: white; border-top: 1px solid var(--gris-borde); display: flex; justify-content: space-around; padding: 10px 0; z-index: 90; }
.bottom-bar button { background: none; border: none; color: #718096; font-size: 11px; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.bottom-bar button.active { color: var(--azul-principal); font-weight: bold; }

/* Banner Publicitario Responsivo JPG */
#bannerHead {
  padding: 0 !important;
  line-height: 0 !important;
  background-color: #000 !important;
  width: 100% !important;
  overflow: hidden !important;
}

#bannerHead a {
  display: block !important;
  width: 100% !important;
}

#bannerHead img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 180px !important; /* Limita la altura en pantallas muy anchas */
  object-fit: cover !important;  /* Evita que la imagen se deforme */
  display: block !important;
  margin: 0 auto !important;
  border: none !important;
}


