/* ============================================================
   LOVDOG — assets/css/lovdog.css
   Estilos principales del sitio
   Tipografía: Fredoka (títulos) + Outfit (cuerpo)
   Paleta: verde salvia + menta + dorado suave
   ============================================================ */

/* ===== GOOGLE FONTS (importar aquí o en <head>) ===== */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ===== VARIABLES ===== */
:root {
  /* Color principal — verde salvia */
  --c-orange:      #4A9B6F;   /* verde bosque como acento principal */
  --c-orange-dk:   #357A54;   /* hover más oscuro */
  --c-orange-lt:   #E8F5EE;   /* fondo suave verde */

  /* Verde menta (secundario) */
  --c-green:       #6EC99A;
  --c-green-lt:    #F0FAF5;

  /* Dorado / amarillo suave */
  --c-yellow:      #F2C84B;
  --c-yellow-lt:   #FDF6DC;

  /* Azul cielo suave */
  --c-blue:        #6BB5D6;
  --c-blue-lt:     #EAF5FB;

  /* Lila suave */
  --c-purple:      #9B8DD4;
  --c-purple-lt:   #F2F0FA;

  /* Neutros fríos suaves — fondo general */
  --c-bg:          #F4FAF6;   /* verde blanquecino muy suave */
  --c-bg-2:        #EAF5EE;   /* un tono más */
  --c-card:        #FFFFFF;
  --c-ink:         #1C3529;   /* verde muy oscuro casi negro */
  --c-ink-soft:    #4A6B57;   /* verde medio para textos secundarios */
  --c-ink-xsoft:   #8AAD97;   /* verde claro para placeholders */
  --c-border:      #C8E6D3;   /* borde verde pastel */

  /* Tipografía */
  --f-head:        'Fredoka', sans-serif;
  --f-body:        'Outfit', sans-serif;

  /* Bordes */
  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-full: 999px;

  /* Sombras (tono verde en lugar de naranja) */
  --shadow-xs: 0 2px 8px rgba(28,53,41,0.06);
  --shadow-sm: 0 4px 16px rgba(28,53,41,0.08);
  --shadow-md: 0 8px 32px rgba(28,53,41,0.10);
  --shadow-lg: 0 16px 48px rgba(28,53,41,0.12);
  --shadow-orange: 0 8px 28px rgba(74,155,111,0.30); /* sombra verde */

  /* Categorías — colores por tipo */
  --cat-playa:        #6BB5D6;
  --cat-parque:       #4A9B6F;
  --cat-restaurante:  #E8834A;
  --cat-cafeteria:    #9B8DD4;
  --cat-area:         #7A9E8A;
  --cat-evento:       #F2C84B;
}

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
button, input, select, textarea {
  font-family: var(--f-body);
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25%       { transform: rotate(-4deg); }
  75%       { transform: rotate(4deg); }
}
@keyframes bounce-y {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(74,155,111,0.4); }
  70%  { box-shadow: 0 0 0 12px rgba(74,155,111,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,155,111,0); }
}

.anim-1 { animation: fadeInUp .6s ease both; }
.anim-2 { animation: fadeInUp .6s .1s ease both; }
.anim-3 { animation: fadeInUp .6s .2s ease both; }
.anim-4 { animation: fadeInUp .6s .3s ease both; }
.anim-5 { animation: fadeInUp .6s .4s ease both; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(244,250,246,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1.5px solid var(--c-border);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-logo svg {
  width: 36px; height: 36px;
  animation: float 3s ease-in-out infinite;
}
.navbar-logo-text .accent { color: var(--c-orange); }

.navbar-user-label {
  font-size: .85rem;
  color: var(--c-ink-soft);
}

@media (max-width: 767px) {
  .navbar-btn-entrar { display: none; }
  .navbar-user-label { display: none; }
}

.navbar-logo-text {
  font-family: var(--f-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: 0.01em;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--f-body);
  font-weight: 600;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all .22s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); }

.btn-xs  { font-size: .75rem;  padding: 5px 12px; }
.btn-sm  { font-size: .82rem;  padding: 8px 18px; }
.btn-md  { font-size: .92rem;  padding: 11px 22px; }
.btn-lg  { font-size: 1rem;    padding: 14px 28px; }
.btn-xl  { font-size: 1.05rem; padding: 16px 34px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--c-orange);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  background: var(--c-orange-dk);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 36px rgba(74,155,111,0.38);
}
.btn-secondary {
  background: var(--c-green);
  color: #fff;
}
.btn-secondary:hover { background: #3D9E6E; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--c-ink-soft);
  border: 1.5px solid var(--c-border);
}
.btn-ghost:hover { background: var(--c-bg-2); color: var(--c-ink); border-color: var(--c-ink-xsoft); }
.btn-soft {
  background: var(--c-orange-lt);
  color: var(--c-orange);
}
.btn-soft:hover { background: #FFE4D8; }

/* ===== HERO ===== */
.hero {
  padding: 72px 24px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--c-bg);
}

.hero-blob {
  position: absolute;
  border-radius: 60% 40% 50% 70% / 50% 60% 40% 50%;
  opacity: 0.45;
  pointer-events: none;
  filter: blur(2px);
}
.hero-blob-1 {
  width: 260px; height: 220px;
  background: var(--c-green-lt);
  top: 0; right: -4%;
  animation: float 6s ease-in-out infinite;
}
.hero-blob-2 {
  width: 180px; height: 160px;
  background: var(--c-blue-lt);
  bottom: 0; left: -3%;
  animation: float 8s ease-in-out infinite reverse;
}
.hero-blob-3 {
  width: 130px; height: 110px;
  background: var(--c-yellow-lt);
  top: 20%; left: 6%;
  animation: float 7s ease-in-out infinite;
  opacity: 0.5;
}

.hero-pattern { display: none; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-full);
  padding: 3px 12px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--c-ink-soft);
  margin-bottom: 8px;
  box-shadow: var(--shadow-xs);
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  animation: pulse-ring 2s infinite;
}

.hero-title {
  font-family: var(--f-head);
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-ink);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.hero-title .line-accent {
  color: var(--c-orange);
  position: relative;
  display: inline-block;
}
.hero-title .line-accent::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='6'%3E%3Cpath d='M0 3 Q10 0 20 3 Q30 6 40 3 Q50 0 60 3 Q70 6 80 3' stroke='%236EC99A' stroke-width='2.5' fill='none'/%3E%3C/svg%3E") repeat-x center;
  background-size: auto 5px;
}

/* ── Fila de botones: Añadir lugar + Ubicarme ── */
.map-action-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.map-action-row .btn-add-float {
  flex: 1;
}
.map-action-row .btn-geolocate {
  position: relative;
  bottom: auto; right: auto;
  flex-shrink: 0;
  width: 44px;
  height: auto;
  min-height: 44px;
  border-radius: var(--r-md);
  padding: 0;
}

.search-wrap { display: none; }

.cat-pills { display: none; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 2px solid var(--c-border);
  border-radius: var(--r-full);
  padding: 9px 18px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--c-ink-soft);
  cursor: pointer;
  transition: all .22s cubic-bezier(.34,1.56,.64,1);
  box-shadow: var(--shadow-xs);
  user-select: none;
}
.cat-pill:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--c-orange);
  color: var(--c-orange);
}
.cat-pill.active {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}
.cat-pill .pill-icon { font-size: 1.05rem; }

/* ===== STATS inline ===== */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  animation: fadeInUp .55s .25s ease both;
}
.stat-inline {
  font-size: .8rem;
  color: var(--c-ink-soft);
}
.stat-inline strong {
  font-weight: 700;
  color: var(--c-green);
}
.stat-inline-sep {
  color: var(--c-ink-xsoft);
  font-size: .75rem;
}
.stat-card { display: none; }
.stat-sep  { display: none; }
.stat-num  {}
.stat-label{}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--c-ink-xsoft);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  animation: bounce-y 2.5s ease-in-out infinite;
}

/* ===== SECCIÓN MAPA ===== */
#mapa-section {
  height: calc(100dvh - 64px);
  position: sticky;
  top: 64px;
}
#map {
  width: 100%;
  height: 100%;
}

.map-controls {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.map-search-bar {
  background: #fff;
  border: 2px solid var(--c-border);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  padding: 6px 6px 6px 16px;
  gap: 8px;
  max-width: 300px;
}
.map-search-bar input {
  border: none;
  outline: none;
  font-size: .88rem;
  color: var(--c-ink);
  background: transparent;
  width: 180px;
}
.map-search-bar input::placeholder { color: var(--c-ink-xsoft); }
.map-search-bar .btn { flex-shrink: 0; }

.map-filters {
  background: #fff;
  border: 2px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 300px;
}
.map-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: .78rem;
  font-weight: 600;
  border: 2px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-ink-soft);
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}
.map-filter-pill.active {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: #fff;
}
.map-filter-pill:hover:not(.active) {
  border-color: var(--c-orange);
  color: var(--c-orange);
}

.map-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-top-row .map-search-bar {
  flex: 1;
  max-width: none;
}

.btn-add-float {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 800;
  background: var(--c-orange);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  padding: 14px 22px;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-orange);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .22s cubic-bezier(.34,1.56,.64,1);
  font-family: var(--f-body);
  white-space: nowrap;
}
.btn-add-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 36px rgba(74,155,111,.42);
}

@keyframes geo-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(59,130,246,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(59,130,246,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}
@keyframes geo-ping {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3); opacity: 0; }
}

.btn-geolocate {
  position: absolute;
  bottom: 148px;
  right: 16px;
  z-index: 800;
  background: var(--c-orange);
  border: none;
  border-radius: var(--r-full);
  width: auto;
  height: 44px;
  padding: 0 18px;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(74,155,111,0.40);
  transition: all .22s cubic-bezier(.34,1.56,.64,1);
  color: #fff;
  font-family: var(--f-body);
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
}
.btn-geolocate:hover {
  background: var(--c-orange-dk);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(74,155,111,0.45);
}
.btn-geolocate:active { transform: scale(0.97); }

.geo-dot-wrap { position: relative; width: 20px; height: 20px; }
.geo-dot {
  width: 16px; height: 16px;
  background: #3B82F6;
  border: 3px solid #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(59,130,246,0.5);
  animation: geo-pulse 2s infinite;
}
.geo-dot-ring {
  width: 16px; height: 16px;
  background: rgba(59,130,246,0.35);
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: geo-ping 1.8s ease-out infinite;
}

/* ===== LEAFLET OVERRIDE ===== */
.leaflet-control-zoom        { display: none !important; }
.leaflet-control-attribution { display: none !important; }

/* ===== POPUP DEL MAPA ===== */
.leaflet-popup-content-wrapper {
  border-radius: var(--r-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 0 !important;
  overflow: hidden;
  border: 2px solid var(--c-border) !important;
}
.leaflet-popup-content { margin: 0 !important; width: 270px !important; }
.leaflet-popup-tip-container { display: none; }

/* ===== PANEL LATERAL DE LUGAR ===== */
.lugar-panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 850;
  pointer-events: none;
}
.lugar-panel-overlay.open { display: block; }

.lugar-panel-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: all;
  z-index: 851;
}

.lugar-panel {
  position: fixed;
  background: #fff;
  box-shadow: -8px 0 40px rgba(45,24,16,0.14);
  display: flex;
  flex-direction: column;
  z-index: 852;
  pointer-events: all;
  transition: transform .32s cubic-bezier(.32,0,.16,1), opacity .32s ease;
}

@media (min-width: 768px) {
  .lugar-panel {
    top: 64px; right: 0; bottom: 0;
    width: 400px;
    border-radius: var(--r-xl) 0 0 var(--r-xl);
    transform: translateX(100%);
    opacity: 0;
  }
  .lugar-panel-overlay.open .lugar-panel {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .lugar-panel-overlay.open .lugar-panel-bg { display: block; }
  .lugar-panel {
    bottom: 56px;
    left: 0; right: 0;
    height: 75dvh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    transform: translateY(100%);
    opacity: 0;
  }
  .lugar-panel-overlay.open .lugar-panel {
    transform: translateY(0);
    opacity: 1;
  }
}

.panel-rate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
  gap: 10px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--c-border);
}
.panel-rate-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-orange); color: #fff;
  border-radius: var(--r-full);
  padding: 8px 16px;
  font-size: .82rem; font-weight: 700;
  text-decoration: none;
  transition: all .18s;
  box-shadow: 0 2px 10px rgba(255,107,53,0.30);
  white-space: nowrap;
}
.panel-rate-btn:hover {
  background: var(--c-orange-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,107,53,0.40);
}
.panel-rate-btn svg { flex-shrink: 0; }

.panel-dir {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: .80rem; color: var(--c-ink-soft);
  margin-top: 5px; line-height: 1.45;
}
.panel-dir span:first-child { flex-shrink: 0; font-size: .85rem; }

.panel-handle {
  width: 40px; height: 4px;
  background: var(--c-border);
  border-radius: 2px;
  margin: 10px auto 4px;
  flex-shrink: 0;
  display: none;
}
@media (max-width: 767px) { .panel-handle { display: block; } }

.panel-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 16px;
}
.panel-scroll::-webkit-scrollbar { width: 4px; }
.panel-scroll::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }

.panel-header {
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
  position: relative;
}
.panel-close {
  position: absolute; top: 14px; right: 16px;
  width: 32px; height: 32px;
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--c-ink-soft);
  transition: all .15s;
}
.panel-close:hover { background: var(--c-orange-lt); border-color: var(--c-orange); color: var(--c-orange); }
.panel-cat {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px;
  border-radius: var(--r-full);
  font-size: .72rem; font-weight: 700;
  margin-bottom: 8px;
}
.panel-nombre {
  font-family: var(--f-head);
  font-size: 1.2rem; font-weight: 700;
  color: var(--c-ink); line-height: 1.25;
  margin-bottom: 8px; padding-right: 36px;
}
.panel-rating-row {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 6px; flex-wrap: wrap;
}
.panel-stars-filled { color: #F59E0B; font-size: .95rem; }
.panel-stars-empty  { color: #E5E7EB; font-size: .95rem; }
.panel-rating-num   { font-weight: 700; font-size: .9rem; color: var(--c-ink); }
.panel-rating-count { font-size: .76rem; color: var(--c-ink-xsoft); }
.panel-tel {
  display: flex; align-items: center; gap: 6px;
  font-size: .82rem; color: var(--c-ink-soft); margin-top: 4px;
}
.panel-tel a { color: var(--c-orange); font-weight: 600; text-decoration: none; }

.panel-desc {
  font-size: .84rem; color: var(--c-ink-soft);
  line-height: 1.58; padding: 14px 20px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.panel-opinions-title {
  padding: 16px 20px 10px;
  font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--c-ink-xsoft);
  display: flex; align-items: center; gap: 8px;
}
.panel-opinions-title::after {
  content: ''; flex: 1; height: 1px; background: var(--c-border);
}

.panel-opinion {
  padding: 12px 20px;
  border-bottom: 1px solid var(--c-border);
}
.panel-opinion:last-of-type { border-bottom: none; }
.panel-op-top {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
  margin-bottom: 6px;
}
.panel-op-author { display: flex; align-items: center; gap: 8px; }
.panel-op-avatar {
  width: 32px; height: 32px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--c-border); flex-shrink: 0;
}
.panel-op-avatar-ini {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .78rem; color: #fff;
  flex-shrink: 0;
}
.panel-op-name  { font-weight: 700; font-size: .82rem; color: var(--c-ink); }
.panel-op-date  { font-size: .7rem; color: var(--c-ink-xsoft); }
.panel-op-stars { font-size: .82rem; }
.panel-op-text  {
  font-size: .82rem; color: var(--c-ink-soft);
  line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 6px;
}
.panel-op-foto {
  width: 80px; height: 80px;
  object-fit: cover; border-radius: var(--r-md);
  border: 1.5px solid var(--c-border);
  cursor: pointer; transition: transform .15s;
}
.panel-op-foto:hover { transform: scale(1.05); }

.panel-skeleton {
  padding: 14px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.skel {
  background: linear-gradient(90deg, #f0e8e2 25%, #fffaf7 50%, #f0e8e2 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel-line   { height: 14px; }
.skel-short  { width: 55%; }
.skel-medium { width: 80%; }
.skel-full   { width: 100%; }

.panel-empty-ops {
  text-align: center; padding: 20px;
  font-size: .82rem; color: var(--c-ink-xsoft);
}

.panel-footer {
  padding: 14px 20px;
  border-top: 1.5px solid var(--c-border);
  flex-shrink: 0;
  background: #fff;
}
.panel-cta {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%;
  background: var(--c-orange); color: #fff;
  border: none; border-radius: var(--r-full);
  padding: 13px 20px; font-family: var(--f-body);
  font-size: .92rem; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: all .2s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 4px 16px rgba(255,107,53,0.35);
}
.panel-cta:hover {
  background: var(--c-orange-dk);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,107,53,0.4);
}
.panel-revision-badge {
  display: flex; align-items: center; gap: 6px;
  background: #FEF3C7; border-bottom: 1px solid #FDE68A;
  padding: 8px 20px; font-size: .76rem;
  font-weight: 700; color: #92400E;
}

/* ===== BOTTOM NAV — desactivado, se implementará más adelante ===== */
.bottom-nav { display: none !important; }

/* ===== MODALES ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45,24,16,0.45);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal-sheet {
  background: #fff;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 20px 24px calc(24px + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 480px;
  animation: fadeInUp .3s cubic-bezier(.34,1.56,.64,1) both;
  border-top: 2px solid var(--c-border);
}
.modal-handle {
  width: 44px; height: 5px;
  background: var(--c-border);
  border-radius: var(--r-full);
  margin: 0 auto 22px;
}
.modal-title {
  font-family: var(--f-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 6px;
}
.modal-subtitle {
  font-size: .88rem;
  color: var(--c-ink-soft);
  margin-bottom: 24px;
}

/* ===== FORMULARIOS ===== */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--c-ink-soft);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  background: var(--c-bg);
  border: 2px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: .95rem;
  color: var(--c-ink);
  outline: none;
  transition: border-color .2s, background .2s;
}
.form-input:focus {
  border-color: var(--c-orange);
  background: #fff;
}
.form-input::placeholder { color: var(--c-ink-xsoft); }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B89A8E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-ink-xsoft);
  font-size: .8rem;
  font-weight: 600;
  margin: 16px 0;
}
.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: var(--c-border);
  border-radius: 1px;
}

.form-footer {
  text-align: center;
  font-size: .85rem;
  color: var(--c-ink-soft);
  margin-top: 16px;
}
.form-footer a {
  color: var(--c-orange);
  font-weight: 700;
}

/* ── Botón Google OAuth ── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--r-md);
  font-family: var(--f-body);
  font-size: .95rem;
  font-weight: 600;
  color: #1E293B;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, border-color .15s;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.btn-google:hover {
  background: #F8FAFF;
  border-color: #4285F4;
  box-shadow: 0 2px 8px rgba(66,133,244,.15);
}

/* ── Divisor "o con tu email" ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--c-ink-xsoft);
  font-size: .78rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}


.form-error {
  background: #FEE2E2;
  border: 1.5px solid #FECACA;
  color: #991B1B;
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: .85rem;
  margin-bottom: 14px;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--c-ink);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-size: .88rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  z-index: 3000;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===================================================
   RESPONSIVE — SCROLL NATURAL
   Hero compacto arriba, mapa debajo, scroll libre.
   =================================================== */

/* ===== ESCRITORIO (≥ 768px) ===== */
@media (min-width: 768px) {
  .bottom-nav { display: none; }

  #mapa-section {
    position: sticky;
    top: 64px;
    height: calc(100dvh - 64px);
    display: flex;
    flex-direction: column;
  }
  #map { flex: 1; height: auto; min-height: unset; }

  /* Barra de controles horizontal encima del mapa */
  .map-controls {
    position: relative;
    top: auto; left: auto;
    width: 100%;
    background: #fff;
    border-bottom: 1.5px solid var(--c-border);
    box-shadow: 0 2px 8px rgba(45,24,16,0.06);
    padding: 10px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    z-index: 800;
  }
  .map-search-bar { max-width: 260px; flex-shrink: 0; }

  /* Filtros en la misma fila */
  .map-filters {
    flex: 1;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 6px;
    max-width: none;
  }
  .map-filters::-webkit-scrollbar { display: none; }

  /* Acciones al final de la barra */
  .map-action-row {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
    align-items: center;
  }
  .btn-add-float {
    position: relative;
    top: auto; right: auto;
    padding: 10px 18px;
    font-size: .86rem;
    box-shadow: var(--shadow-orange);
  }
  .btn-add-float:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(74,155,111,.38);
  }
  .map-action-row .btn-geolocate {
    position: relative;
    bottom: auto; right: auto;
    width: auto;
    min-height: 44px;
    height: 40px;
    padding: 0 16px;
    border-radius: var(--r-full);
    z-index: auto;
  }
  .geo-btn-label { display: inline; }

  .modal-sheet {
    max-width: 440px;
    border-radius: var(--r-xl);
    margin-bottom: 48px;
  }
}

/* ===== TABLET (768px – 1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero { padding: 80px 32px 24px; }
  .hero-title { font-size: 2rem; }
}

/* ===== MÓVIL (< 768px) — SCROLL NATURAL ===== */
@media (max-width: 767px) {

  .navbar { height: 56px; padding: 0 16px; }

  .hero {
    padding: 62px 16px 10px;
    text-align: center;
    position: relative;
    min-height: unset;
  }
  .hero-content { max-width: 100%; width: 100%; }
  .hero-badge { margin: 0 auto 6px; }
  .hero-title {
    font-size: clamp(1.15rem, 5.5vw, 1.5rem);
    margin-bottom: 6px;
  }
  .hero-blob-1 { width: 120px; height: 90px; opacity: 0.2; top: 0; }
  .hero-blob-2 { width: 80px;  height: 70px; opacity: 0.15; }

  .hero-stats { margin-top: 6px; }

  #mapa-section {
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: unset;
  }
  #map {
    flex: 1;
    min-height: 440px;
    height: calc(100dvh - 56px - 120px);
  }

  .map-controls {
    position: relative;
    top: auto; left: auto;
    width: 100%;
    background: #fff;
    border-bottom: 1.5px solid var(--c-border);
    padding: 8px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(45,24,16,0.06);
    z-index: 800;
  }
  .map-search-bar {
    max-width: none;
    padding: 5px 5px 5px 12px;
  }
  .map-search-bar input { flex: 1; width: auto; min-width: 0; }

  .map-action-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
  }
  .btn-add-float {
    position: relative;
    top: auto; right: auto;
    flex: 1;
    justify-content: center;
    padding: 11px 14px;
    font-size: .88rem;
    box-shadow: 0 2px 8px rgba(255,107,53,0.3);
  }
  .btn-add-float:hover { transform: none; }
  .map-action-row .btn-geolocate {
    position: relative;
    bottom: auto; right: auto;
    width: 48px;
    min-height: 44px;
    border-radius: var(--r-md);
    padding: 0;
    flex-shrink: 0;
    z-index: auto;
  }
  .geo-btn-label { display: none; }

  .map-filters {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 6px;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .map-filters::-webkit-scrollbar { display: none; }
  .map-filter-pill { flex-shrink: 0; font-size: .74rem; padding: 4px 10px; }

  .leaflet-control-zoom { display: none !important; }
  .bottom-nav { display: none; }

  .modal-sheet {
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: 18px 20px calc(20px + env(safe-area-inset-bottom));
  }
}

/* ===== EXTRA PEQUEÑO (≤ 380px) ===== */
@media (max-width: 380px) {
  .hero-title { font-size: 1.2rem; }
}