/* ============================================================
   SALIMOS — Design System Global
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  --cream:    #FAF7F2;
  --warm:     #F5EFE4;
  --terracota:#C85A2A;
  --tc-light: #E8896A;
  --tc-dark:  #A84820;
  --dark:     #1A1208;
  --mid:      #4A3728;
  --muted:    #9C8474;
  --border:   #E8DDD0;
  --white:    #FFFFFF;
  --gold:     #D4A843;
  --green:    #4A7C59;
  --red:      #D64045;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;

  --shadow-sm:   0 2px 8px  rgba(26,18,8,0.07);
  --shadow-md:   0 4px 24px rgba(26,18,8,0.10);
  --shadow-lg:   0 8px 40px rgba(26,18,8,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  min-height: 100vh;
}

/* ---- Botones globales ---- */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px; border-radius: var(--r-sm); border: none; font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .18s; }
.btn-primary  { background: var(--terracota); color: #fff; }
.btn-primary:hover  { background: var(--tc-dark); }
.btn-outline  { background: transparent; color: var(--terracota); border: 1.5px solid var(--terracota); }
.btn-outline:hover  { background: var(--terracota); color: #fff; }
.btn-ghost    { background: var(--warm); color: var(--mid); }
.btn-ghost:hover    { background: var(--border); }
.btn-danger   { background: var(--red); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ---- Cards globales ---- */
.card { background: var(--white); border-radius: var(--r-md); padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }

/* ---- Formularios globales ---- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 11px 14px; font-size: 14px; font-family: var(--font-body);
  color: var(--dark); background: var(--white); outline: none;
  transition: border-color .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--terracota); }
.form-textarea { resize: vertical; min-height: 90px; }

/* ---- Badges ---- */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-terracota { background: #fdf0ea; color: var(--terracota); }
.badge-green     { background: #eaf4ee; color: var(--green); }
.badge-gold      { background: #fdf7e8; color: var(--gold); }

/* ---- Stars ---- */
.stars-display { color: var(--gold); font-size: 14px; display: flex; align-items: center; gap: 4px; }

/* ---- Avatar ---- */
.avatar { border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.avatar-sm  { width: 36px;  height: 36px; }
.avatar-md  { width: 52px;  height: 52px; }
.avatar-lg  { width: 80px;  height: 80px; }
.avatar-xl  { width: 120px; height: 120px; }

/* ---- Alerts ---- */
.alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 14px; }
.alert-error   { background: #fdf2f2; color: var(--red); border: 1px solid #f5c2c2; }
.alert-success { background: #eaf4ee; color: var(--green); border: 1px solid #b8ddc4; }

/* ---- Section title ---- */
.section-title { font-family: var(--font-display); font-size: 22px; font-weight: 900; color: var(--dark); margin-bottom: 20px; }

/* ---- Divider ---- */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 14px; }
.empty-state h3 { font-family: var(--font-display); font-size: 20px; color: var(--mid); margin-bottom: 8px; }
.empty-state p  { font-size: 14px; }

/* ---- Spinner ---- */
.spinner { width: 22px; height: 22px; border: 3px solid var(--border); border-top-color: var(--terracota); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Utility ---- */
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* ============================================================
   HEADER
   ============================================================ */
.main-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(250,247,242,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(26,18,8,0.05);
}

.header-inner{
  max-width: 1240px;
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 20px;
}

.logo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
  flex-shrink: 0;
}

.logo-icon{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--terracota), var(--tc-light));
  color: #fff;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
}

.logo-text{
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.4px;
  color: var(--dark);
}

.logo-text span{
  color: var(--terracota);
}

.hamburger{
  display: none;
  font-size: 28px;
  color: var(--dark);
  cursor: pointer;
  user-select: none;
}

.nav-menu{
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-menu > a,
.profile-links a{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--mid);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 12px;
  transition: all .18s ease;
}

.nav-menu > a:hover,
.profile-links a:hover{
  background: var(--warm);
  color: var(--dark);
}

.profile-links{
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--border);
}

.btn-logout{
  background: var(--dark);
  color: #fff !important;
}

.btn-logout:hover{
  background: var(--terracota) !important;
  color: #fff !important;
}

.nav-menu .badge{
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--cream);
}

/* avatar dentro del header */
.profile-links img{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px){
  .hamburger{
    display: block;
  }

  .nav-menu{
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav-menu.active{
    display: flex;
  }

  .nav-menu > a,
  .profile-links a{
    width: 100%;
    justify-content: flex-start;
  }

  .profile-links{
    border-left: 0;
    padding-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}

@media (max-width: 640px){
  .header-inner{
    padding: 0 14px;
    min-height: 68px;
  }

  .logo-text{
    font-size: 24px;
  }

  .logo-icon{
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .nav-menu{
    top: 68px;
  }
}.lugar-container{
  max-width:1100px;
  margin:30px auto;
  padding:0 16px;
}

.lugar-hero-pro{
  display:flex;
  gap:24px;
  margin-bottom:24px;
}

.hero-img{
  width:40%;
  height:280px;
  border-radius:16px;
  overflow:hidden;
  background:#eee;
}

.hero-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-info{
  flex:1;
}

.hero-info h1{
  font-size:28px;
  margin-bottom:10px;
}

.rating{
  font-size:16px;
  margin-bottom:10px;
}

.direccion{
  color:#666;
  margin-bottom:16px;
}

.acciones{
  display:flex;
  gap:10px;
}

.btn-main{
  background:#d65c2c;
  color:white;
  border:none;
  padding:10px 16px;
  border-radius:10px;
  cursor:pointer;
}

.btn-sec{
  border:1px solid #ccc;
  padding:10px 16px;
  border-radius:10px;
  background:white;
}

.lugar-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:20px;
}

.card{
  background:white;
  padding:20px;
  border-radius:16px;
  box-shadow:0 5px 15px rgba(0,0,0,0.05);
}

.map-card #lugar-map{
  height:300px;
  border-radius:12px;
}

.review{
  margin-bottom:15px;
}

.review-user{
  display:flex;
  align-items:center;
  gap:8px;
}

.review-user img{
  width:30px;
  height:30px;
  border-radius:50%;
}

.similares-grid{
  display:grid;
  gap:10px;
}

.sim-card{
  display:flex;
  gap:10px;
  padding:8px;
  border-radius:10px;
  text-decoration:none;
  color:#000;
}

.sim-card:hover{
  background:#f5f5f5;
}

.sim-img{
  width:50px;
  height:50px;
  border-radius:10px;
  overflow:hidden;
  background:#eee;
}

.sim-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.sim-info{
  display:flex;
  flex-direction:column;
}/* =========================
   CONTENEDOR GENERAL
========================= */
.lugar-container{
  max-width:1100px;
  margin:40px auto;
  padding:0 20px;
}

/* =========================
   HERO
========================= */
.lugar-hero{
  display:flex;
  gap:30px;
  margin-bottom:30px;
  align-items:center;
}

.hero-img{
  width:40%;
  height:300px;
  border-radius:18px;
  overflow:hidden;
  background:#f2f2f2;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:40px;
}

.hero-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-info{
  flex:1;
}

.hero-info h1{
  font-size:32px;
  font-weight:700;
  margin-bottom:10px;
}

.rating{
  font-size:18px;
  margin-bottom:10px;
}

.direccion{
  color:#666;
  margin-bottom:15px;
}

/* =========================
   BOTONES
========================= */
.btn{
  padding:10px 16px;
  border-radius:10px;
  border:none;
  cursor:pointer;
  font-weight:600;
  transition:all .2s ease;
}

.btn-main{
  background:#d65c2c;
  color:white;
}

.btn-main:hover{
  background:#c04d20;
}

.btn-sec{
  background:#f1f1f1;
}

.btn-sec:hover{
  background:#e4e4e4;
}

/* =========================
   GRID
========================= */
.lugar-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:20px;
}

/* =========================
   CARD
========================= */
.card{
  background:white;
  padding:20px;
  border-radius:16px;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
}

/* =========================
   MAPA
========================= */
#lugar-map{
  height:320px;
  border-radius:14px;
}

/* =========================
   FORM RESEÑA
========================= */
#formResena textarea{
  width:100%;
  height:80px;
  padding:10px;
  border-radius:10px;
  border:1px solid #ddd;
  resize:none;
  font-family:inherit;
}

#formResena input[type="file"]{
  margin-top:10px;
}

#formResena button{
  margin-top:10px;
}

/* =========================
   RESEÑAS
========================= */
.review{
  padding:10px 0;
  border-bottom:1px solid #eee;
}

.review:last-child{
  border-bottom:none;
}

.review strong{
  display:block;
  margin-bottom:5px;
}

/* =========================
   SIMILARES
========================= */
.similares{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.similares a{
  padding:10px;
  border-radius:10px;
  background:#fafafa;
  text-decoration:none;
  color:#000;
  transition:.2s;
}

.similares a:hover{
  background:#f0f0f0;
}

/* =========================
   DISTANCIA
========================= */
#distancia{
  font-size:14px;
  color:#888;
  margin-top:5px;
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:900px){

  .lugar-hero{
    flex-direction:column;
  }

  .hero-img{
    width:100%;
  }

  .lugar-grid{
    grid-template-columns:1fr;
  }

}.review-form-card{
  padding:24px;
}

.review-form-head h3{
  margin:0 0 6px 0;
  font-size:30px;
  line-height:1.1;
}

.review-form-head p{
  margin:0 0 22px 0;
  color:#7b6d60;
  font-size:14px;
}

.review-form-pro{
  display:flex;
  flex-direction:column;
  gap:22px;
}

.rating-block{
  background:#fff8f2;
  border:1px solid #f2d8c9;
  border-radius:16px;
  padding:18px;
}

.rating-label{
  font-weight:700;
  font-size:16px;
  margin-bottom:12px;
  color:#2a1e17;
}

.stars-input{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.star-btn{
  width:54px;
  height:54px;
  border:none;
  border-radius:14px;
  background:#fff;
  box-shadow:0 4px 10px rgba(0,0,0,.05);
  font-size:32px;
  line-height:1;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  color:#d8cfc7;
}

.star-btn:hover{
  transform:translateY(-2px) scale(1.03);
  color:#f4b400;
  box-shadow:0 10px 22px rgba(0,0,0,.08);
}

.star-btn.active{
  color:#f4b400;
  background:#fff;
  box-shadow:0 10px 22px rgba(212,168,67,.18);
}

.rating-helper{
  margin-top:12px;
  font-size:14px;
  color:#7b6d60;
}

.field-label{
  display:block;
  font-weight:700;
  margin-bottom:8px;
  color:#2a1e17;
}

.review-textarea{
  width:100%;
  min-height:120px;
  border:1.5px solid #e3d6ca;
  border-radius:14px;
  padding:14px 16px;
  font-family:inherit;
  font-size:15px;
  resize:vertical;
  background:#fff;
  transition:border-color .2s ease, box-shadow .2s ease;
}

.review-textarea:focus{
  outline:none;
  border-color:#d65c2c;
  box-shadow:0 0 0 4px rgba(214,92,44,.08);
}

.field-help{
  margin-top:8px;
  font-size:13px;
  color:#8a7c6f;
}

.media-block{
  border:1px dashed #e0cfc2;
  border-radius:16px;
  padding:18px;
  background:#fffdfb;
}

.media-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.media-picker{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:13px 16px;
  border-radius:14px;
  background:#d65c2c;
  color:#fff;
  font-weight:700;
  cursor:pointer;
  transition:transform .15s ease, opacity .15s ease;
}

.media-picker.secondary{
  background:#f3eee9;
  color:#3d3027;
}

.media-picker:hover{
  transform:translateY(-1px);
  opacity:.96;
}

.media-picker input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}

.media-picker-icon{
  font-size:18px;
}

.media-picker-text{
  font-size:14px;
}

.media-preview-wrap{
  margin-top:16px;
}

.media-preview-card{
  border:1px solid #eadfd7;
  border-radius:14px;
  background:#fff;
  padding:12px;
}

#mediaPreview{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:140px;
  border-radius:12px;
  overflow:hidden;
  background:#f8f5f1;
}

#mediaPreview img,
#mediaPreview video{
  max-width:100%;
  max-height:260px;
  display:block;
  border-radius:10px;
}

.remove-media-btn{
  margin-top:12px;
  border:none;
  background:#f3eee9;
  color:#3d3027;
  padding:10px 14px;
  border-radius:10px;
  cursor:pointer;
  font-weight:600;
}

.review-actions{
  display:flex;
  justify-content:flex-start;
}

.btn-publicar-review{
  min-width:210px;
  min-height:48px;
  font-size:15px;
}

.msg-box{
  margin-top:14px;
  font-size:14px;
}

.msg-ok{
  color:#1f7a33;
}

.msg-error{
  color:#b42318;
}

@media (max-width: 640px){
  .star-btn{
    width:48px;
    height:48px;
    font-size:28px;
  }

  .media-actions{
    flex-direction:column;
  }

  .media-picker{
    width:100%;
    justify-content:center;
  }

  .btn-publicar-review{
    width:100%;
  }
}/* ============================================================
   MOBILE FIX FINAL — SALIMOS
   PEGAR AL FINAL DE assets/salimos.css
   ============================================================ */

html, body {
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* ---------------- HEADER ---------------- */
@media (max-width: 900px) {
  .main-header {
    position: sticky;
    top: 0;
    z-index: 9999;
  }

  .header-inner {
    min-height: 64px;
    padding: 10px 14px;
    gap: 10px;
  }

  .logo-text {
    font-size: 22px;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 17px;
    border-radius: 10px;
  }

  .hamburger {
    display: block !important;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    z-index: 9998;
  }

  .nav-menu.active,
  .nav-menu.show {
    display: flex;
  }

  .nav-menu > a,
  .profile-links a {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .profile-links {
    width: 100%;
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .btn-logout {
    text-align: center;
    justify-content: center !important;
  }
}

/* ---------------- HOME / INDEX ---------------- */
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin: 16px auto !important;
    padding: 0 12px !important;
  }

  .feed-column,
  .sidebar-column {
    width: 100%;
    min-width: 0;
  }

  .sidebar-column {
    position: static !important;
    top: auto !important;
  }

  .hero-banner {
    padding: 22px 18px !important;
    border-radius: 18px !important;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-text h1 {
    font-size: 22px !important;
    line-height: 1.15;
  }

  .hero-text p {
    font-size: 14px !important;
    line-height: 1.45;
  }

  .hero-icon {
    font-size: 34px !important;
  }

  .categoria-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .cat-btn {
    min-height: 84px;
    padding: 10px 8px !important;
    font-size: 12px !important;
  }

  .cat-emoji {
    font-size: 20px !important;
  }

  .add-place-bar {
    padding: 12px !important;
    gap: 10px !important;
    flex-wrap: nowrap;
  }

  .avatar-placeholder {
    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0;
  }

  .add-place-prompt {
    min-width: 0;
    font-size: 13px !important;
    padding: 10px 14px !important;
  }

  .btn-checkin {
    padding: 10px 12px !important;
    font-size: 12px !important;
    flex-shrink: 0;
  }

  .widget-box {
    padding: 16px !important;
    border-radius: 16px !important;
  }

  .widget-title {
    font-size: 16px !important;
    margin-bottom: 12px !important;
  }

  #map {
    height: 220px !important;
  }

  .place-list {
    max-height: none !important;
    overflow: visible !important;
  }

  .p-item {
    padding: 10px 0 !important;
  }

  .p-img {
    width: 42px !important;
    height: 42px !important;
  }

  .p-name {
    font-size: 13px !important;
  }

  .p-btn {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }
}

/* ---------------- POSTS / FEED ---------------- */
@media (max-width: 900px) {
  .post-card {
    border-radius: 16px !important;
    overflow: hidden;
  }

  .post-header {
    padding: 12px 14px !important;
    gap: 10px !important;
    align-items: center;
  }

  .post-avatar {
    width: 42px !important;
    height: 42px !important;
  }

  .post-author {
    font-size: 14px !important;
  }

  .post-legend,
  .post-date {
    font-size: 11px !important;
  }

  .place-badge {
    font-size: 10px !important;
    padding: 4px 8px !important;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .post-image,
  .post-img {
    width: 100% !important;
    max-height: 360px !important;
    object-fit: cover;
    display: block;
  }

  .post-body {
    padding: 12px 14px !important;
  }

  .post-text {
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin-bottom: 12px !important;
  }

  .post-tags {
    gap: 6px !important;
  }

  .tag {
    font-size: 11px !important;
    padding: 4px 10px !important;
  }

  .stars,
  .stars-row {
    font-size: 13px !important;
    line-height: 1.3;
    flex-wrap: wrap;
  }

  .post-actions {
    gap: 6px !important;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 10px !important;
  }

  .action-btn,
  .share-btn {
    font-size: 12px !important;
    padding: 7px 8px !important;
  }
}

/* ---------------- COMENTARIOS ---------------- */
@media (max-width: 900px) {
  .comment-box {
    margin-top: 12px !important;
    padding-top: 12px !important;
  }

  .comment-form {
    flex-direction: column;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .comment-input {
    width: 100% !important;
    font-size: 14px !important;
    padding: 12px 14px !important;
  }

  .comment-submit {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 14px !important;
    border-radius: 12px !important;
  }

  .comment-item,
  .comentario-item {
    font-size: 13px !important;
    line-height: 1.45;
  }
}

/* ---------------- MODAL CHECK-IN ---------------- */
@media (max-width: 900px) {
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .modal {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 20px 16px 28px !important;
    max-height: 92vh;
    overflow-y: auto;
  }

  .modal-title {
    font-size: 20px !important;
  }

  .location-detect {
    padding: 14px !important;
    margin-bottom: 14px !important;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px !important; /* evita zoom en iPhone */
  }

  .star-rating {
    gap: 2px !important;
    justify-content: space-between;
  }

  .star-rating button {
    font-size: 28px !important;
  }

  .btn-submit-checkin {
    width: 100%;
    padding: 14px !important;
    font-size: 15px !important;
  }
}

/* ---------------- PERFIL ---------------- */
@media (max-width: 900px) {
  .profile-info-wrap,
  .profile-grid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .profile-info {
    gap: 14px !important;
    margin-top: -44px !important;
  }

  .profile-avatar {
    width: 88px !important;
    height: 88px !important;
  }

  .profile-name {
    font-size: 22px !important;
  }

  .profile-bio {
    font-size: 13px !important;
  }

  .profile-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .btn-follow,
  .btn-edit {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    text-align: center;
  }

  .stats-inner {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 14px 12px !important;
  }

  .stat-item {
    border-right: 0 !important;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 8px !important;
    background: var(--white);
  }

  .stat-num {
    font-size: 20px !important;
  }

  .stat-lbl {
    font-size: 11px !important;
  }

  .feed-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }

  .feed-tab {
    flex: 0 0 auto;
  }
}

/* ---------------- LUGAR / DETALLE ---------------- */
@media (max-width: 900px) {
  .lugar-container {
    margin: 20px auto !important;
    padding: 0 12px !important;
  }

  .lugar-hero,
  .lugar-hero-pro {
    flex-direction: column !important;
    gap: 16px !important;
    margin-bottom: 18px !important;
  }

  .hero-img {
    width: 100% !important;
    height: 220px !important;
    border-radius: 16px !important;
  }

  .hero-info h1 {
    font-size: 26px !important;
    line-height: 1.15;
  }

  .rating,
  .direccion,
  #distancia {
    font-size: 14px !important;
  }

  .acciones {
    flex-direction: column;
    width: 100%;
  }

  .acciones .btn,
  .acciones .btn-main,
  .acciones .btn-sec {
    width: 100%;
    justify-content: center;
  }

  .lugar-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  #lugar-map {
    height: 240px !important;
  }

  .review-form-card {
    padding: 18px !important;
  }

  .review-form-head h3 {
    font-size: 24px !important;
  }

  .review-form-head p {
    font-size: 13px !important;
    margin-bottom: 16px !important;
  }

  .review-form-pro {
    gap: 16px !important;
  }

  .rating-block,
  .media-block {
    padding: 14px !important;
  }

  .stars-input {
    gap: 8px !important;
    justify-content: space-between;
  }

  .star-btn {
    width: 46px !important;
    height: 46px !important;
    font-size: 26px !important;
  }

  .review-textarea {
    min-height: 100px !important;
    font-size: 15px !important;
  }

  .media-actions {
    flex-direction: column !important;
  }

  .media-picker {
    width: 100% !important;
    justify-content: center;
  }

  #mediaPreview {
    min-height: 120px !important;
  }

  .btn-publicar-review {
    width: 100% !important;
    min-width: 0 !important;
  }

  .similares-grid,
  .similares {
    gap: 8px !important;
  }

  .sim-card {
    padding: 8px !important;
  }
}

/* ---------------- EXTRA SMALL ---------------- */
@media (max-width: 480px) {
  .main-layout,
  .profile-grid,
  .lugar-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .hero-banner {
    padding: 18px 16px !important;
  }

  .hero-text h1 {
    font-size: 20px !important;
  }

  .widget-box,
  .card,
  .post-card {
    border-radius: 14px !important;
  }

  .post-header,
  .post-body {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .post-image,
  .post-img {
    max-height: 300px !important;
  }

  .hero-img {
    height: 200px !important;
  }

  .logo-text {
    font-size: 22px !important;
  }

  .btn-checkin {
    padding: 9px 10px !important;
    font-size: 11px !important;
  }
}/* BOTÓN INSTALAR PWA - Mejorado y más profesional */
.install-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--terracota);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 25px rgba(200, 90, 42, 0.35);
  display: none;
  align-items: center;
  gap: 10px;
  z-index: 99999;
  white-space: nowrap;
  transition: all 0.3s ease;
  text-decoration: none;
}

.install-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(200, 90, 42, 0.45);
  background: #A84820;
}

.install-btn:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .install-btn {
    bottom: 16px;
    right: 16px;
    padding: 13px 20px;
    font-size: 14.5px;
  }
}