
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial;
}

body{
background:#e9ecef;
}

/* SOLO BLOQUEAR EN PANTALLAS GRANDES */

.pc{
display:none;
}

@media(min-width:900px){

.mobile{
display:none;
}

.pc{
display:flex;
height:100vh;
background:#0f766e;
color:white;
align-items:center;
justify-content:center;
text-align:center;
font-size:24px;
padding:40px;
}

}

/* CONTENEDOR */

.mobile{
max-width:420px;
margin:auto;
background:white;
min-height:100vh;
position:relative;
overflow:hidden;
}

.header{
width:100%;
}

/* IMAGEN CABECERA */

.header-image img{
width:100%;
height:210px;
object-fit:cover;
}

/* CONTENEDOR BUSCADOR */

.search-box{
display:flex;
align-items:center;
gap:12px;

background:white;

margin:0px 0px;
padding:12px 15px;

border-radius:15px;

box-shadow:0 4px 12px rgba(0,0,0,0.15);
}

/* LOGO */

.logo{
width:45px;
}

/* INPUT BUSQUEDA */

.search-box input{
flex:1;

border:2px solid #0f766e;
border-radius:25px;

padding:8px 12px;

outline:none;
font-size:14px;
}

/* BOTON BUSQUEDA */

.search-btn{
background:#0f766e;

border:none;
border-radius:50%;

width:36px;
height:36px;

display:flex;
align-items:center;
justify-content:center;

color:white;
font-size:15px;

cursor:pointer;
}

/* TITULOS */

.section-title{
text-align:center;
margin:40px 0 10px;
color:#0f766e;
font-weight:bold;
}

/* CARRUSEL */

.carousel{
display:flex;
overflow-x:auto;
gap:15px;
padding:10px 15px;
}

.card{
min-width:160px;
background:white;
border-radius:15px;
box-shadow:0 4px 10px rgba(0,0,0,0.2);
text-align:center;
padding-bottom:10px;
}

.card img{
width:100%;
height:110px;
object-fit:cover;
border-radius:15px 15px 0 0;
}

.card h4{
margin:8px 0;
}

.card button{
background:#0f766e;
color:white;
border:none;
border-radius:20px;
padding:6px 14px;
}

/* BOTON CENTRAL */

.center-buttons{
position:fixed;
bottom:55px;
left:50%;
transform:translateX(-50%);
display:flex;
align-items:center;
gap:15px;

}

.switch{
background:rgba(255, 255, 255, 0);
width:35px;
height:35px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
box-shadow:0 3px 8px #0f766e;
cursor:pointer;
}

.emergency{
width:60px;
height:60px;
background:red;
color:white;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:22px;
box-shadow:0 4px 10px rgba(0,0,0,0.4);
cursor:pointer;
}

.chat{
width:60px;
height:60px;
background:#2563eb;
color:white;
border-radius:50%;
display:none;
align-items:center;
justify-content:center;
font-size:22px;
box-shadow:0 4px 10px rgba(0,0,0,0.4);
cursor:pointer;
}

/* MENU INFERIOR */

.bottom-nav{
position:fixed;
bottom:0;
width:100%;
max-width:420px;
background:white;
border-top:3px solid #0f766e;
display:flex;
justify-content:space-around;
padding:10px 0;
}

.bottom-nav div{
text-align:center;
font-size:12px;
color:#0f766e;
}

.bottom-nav i{
font-size:18px;
}

.bottom-nav div a {
  text-decoration: none; /* quita la línea */
  color: #0f766e;        /* mismo color que usas */
  
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* MODAL */
.close-modal{
position:absolute;
top:10px;
right:10px;

background:red;
color:white;

border:none;
border-radius:50%;

width:20px;
height:20px;

display:flex;
align-items:center;
justify-content:center;

cursor:pointer;
font-size:14px;
box-shadow:0 2px 6px rgba(0,0,0,0.3);
}

/* FONDO DEL MODAL */

.modal{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.6);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
}

/* CAJA */

.modal-box{
position:relative;
background:white;
padding:25px;
border-radius:15px;
width:85%;
max-width:320px;
text-align:center;
box-shadow:0 10px 25px rgba(0,0,0,0.3);
animation:modalFade .3s ease;
}

.modal-box h2{
color:#0f766e;
margin-bottom:5px;
}

.modal-box p{
font-size:14px;
color:#555;
margin-bottom:15px;
}

/* BOTONES */

.emergency-btn{
display:block;
text-decoration:none;
color:white;
padding:12px;
border-radius:10px;
margin:10px 0;
font-weight:bold;
font-size:15px;
}

/* COLORES */

.police{
background:#2563eb;
}

.ambulance{
background:#16a34a;
}

.fire{
background:#dc2626;
}

/* BOTON CERRAR */

.close-btn{
margin-top:10px;
padding:8px 18px;
border:none;
background:#ddd;
border-radius:8px;
cursor:pointer;
}

/* ANIMACION */

@keyframes modalFade{
from{
opacity:0;
transform:scale(.8);
}
to{
opacity:1;
transform:scale(1);
}
}

/* CONTENEDOR */

.lugar-destacado{
padding:20px;
display:flex;
justify-content:center;
}

/* TARJETA */

.card-lugar{
background:#f7f7f7;
border-radius:18px;
padding:20px;
max-width:320px;
text-align:center;
border:10px solid #9fc8c1;
box-shadow:0 8px 20px rgba(0,0,0,0.2);
}

/* IMAGEN */

.card-lugar img{
width:100%;
height:170px;
object-fit:cover;
border-radius:10px;
margin-bottom:15px;
}

/* TITULO */

.card-lugar h2{
color:#1b7a6b;
font-size:20px;
margin-bottom:10px;
}

/* DESCRIPCION */

.card-lugar p{
font-size:14px;
color:#444;
line-height:1.5;
margin-bottom:18px;
}

/* BOTON */

.btn-mapa{
display:inline-block;
background:#1b7a6b;
color:white;
padding:10px 18px;
border-radius:10px;
text-decoration:none;
font-weight:bold;
box-shadow:0 4px 10px rgba(0,0,0,0.3);
}

.btn-mapa i{
margin-right:6px;
}

/* FOOTER 🔥 CORREGIDO */

.footer {
  background-color: #1b7a6b;
  color: white;
  text-align: center;
  padding: 15px;
  width: 100%;

    margin-top: 40px; /* 🔥 espacio arriba del footer */

  
  /* 🔥 espacio para que no lo tape el menú */
  margin-bottom: 40px;
}

/* CONTENEDOR GENERAL */
.cuento-destacado {
  padding: 25px 15px;
  display: flex;
  justify-content: center;
}

/* TARJETA PRINCIPAL */
.cuento-card-pro {
  background: #efefef;
  border-radius: 25px;
  padding: 20px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* MARCO DE IMAGEN */
.cuento-img-box {
  background: #ffffff;
  padding: 12px;
  border-radius: 20px;
  border: 10px solid #9fc8c1;

  /* 🔥 CLAVE: forma vertical tipo hoja */
  aspect-ratio: 3 / 4;

  margin-bottom: 18px;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* IMAGEN */
.cuento-img-box img {
  width: 100%;
  height: 100%;

  /* 🔥 IMPORTANTE */
  object-fit: contain; /* mantiene proporción tipo hoja */
}

/* TITULO */
.cuento-card-pro h2 {
  color: #1b7a6b;
  font-size: 20px;
  margin-bottom: 10px;
}

/* TEXTO */
.cuento-card-pro p {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 18px;
  text-align: justify;
}

/* BOTON */
.btn-leer {
  display: inline-block;
  background: #1b7a6b;
  color: white;
  text-decoration: none;
  border-radius: 14px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* EFECTO */
.btn-leer:active {
  transform: scale(0.95);
}

/* EFECTO AL TOCAR */
.btn-leer:active {
  transform: scale(0.95);
}

/* EFECTO HOVER (opcional en PC) */
.btn-leer:hover {
  background: #145c52;
}

/* CONTENEDOR */
.transporte-container {
  background: #8fb5b0;
  padding: 20px;
  border-radius: 20px;
  margin: 15px;
}

/* TARJETA PRINCIPAL */
.transporte-card {
  background: #f1f1f1;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
}

.transporte-img-box {
  background: #fff;
  padding: 15px;
  border-radius: 20px;

  border: none;

  margin-bottom: 15px;

  aspect-ratio: 1 / 1;

  display: flex;
  align-items: center;
  justify-content: center;
}

.transporte-img-box img {
  width: 100%;
  height: 100%;

  /* 🔥 mantiene proporción sin deformar */
  object-fit: contain;
} 

/* TITULO */
.transporte-card h2 {
  color: #1b7a6b;
  margin-bottom: 15px;
}

/* BOTON LLAMAR */
.btn-llamar {
  display: inline-block;
  background: #1b7a6b;
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 15px;
  font-size: 16px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

/* TITULO COMENTARIOS */
.comentarios-title {
  margin: 20px 0 10px;
  color: #0f766e;
}

/* CAJA COMENTAR */
.coment-box {
  display: flex;
  background: white;
  border-radius: 25px;
  padding: 5px;
  align-items: center;
  margin-bottom: 15px;
}

.coment-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px;
  border-radius: 25px;
}

.coment-box button {
  background: #1b7a6b;
  border: none;
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

/* COMENTARIO */
.comentario-card {
  background: #f1f1f1;
  border-radius: 15px;
  padding: 15px;
}

/* HEADER */
.coment-header {
  display: flex;
  gap: 10px;
  align-items: center;
}

.user-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* ESTRELLAS */
.stars {
  margin: 10px 0;
  color: gold;
}

/* RESPONDER */
.responder {
  color: #0f766e;
  font-size: 13px;
}

/* REACCIONES */
.reacciones {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.like {
  color: green;
}

.dislike {
  color: red;
}

body {
  background: #e9ecef;
  font-family: Arial;
}

/* CONTENEDOR */
.lugar-container {
  padding: 15px;
  display: flex;
  justify-content: center;
}

/* TARJETA */
.lugar-card {
  background: #f1f1f1;
  border-radius: 20px;
  padding: 15px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* =========================
   TARJETA GENERAL
========================= */
.map-card {
  background: #f1f1f1;
  padding: 15px;
  border-radius: 20px;
  max-width: 360px;
  margin: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* =========================
   HEADER
========================= */
.lugar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.lugar-logo {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: white;
  padding: 5px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.lugar-header h2 {
  color: #1b7a6b;
  font-size: 20px;
}

/* =========================
   CONTENEDOR MAPA
========================= */
.map-container {
  position: relative;
  background: white;
  padding: 8px; /* 🔥 menos padding = mapa más grande */
  border-radius: 15px;
}

/* =========================
   MAPA (TIPO HOJA)
========================= */
#map {
  width: 100%;
  height: 340px; /* 🔥 más alto */
  border-radius: 12px;
}

/* =========================
   LOADING
========================= */
.map-loading {
  position: absolute;
  top: 8px;
  left: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);

  background: rgba(0,0,0,0.6);
  color: white;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  z-index: 999;
}

/* SPINNER */
.loader {
  border: 5px solid #ccc;
  border-top: 5px solid #1b7a6b;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* =========================
   POPUP BONITO
========================= */
.leaflet-popup-content-wrapper {
  border-radius: 15px;
  padding: 8px; /* 🔥 un poco más de espacio general */
}

.popup-card {
  display: flex;
  gap: 12px; /* 🔥 más separación entre imagen y texto */
  align-items: center;
}

.popup-card img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

/* 🔥 CONTENEDOR DEL TEXTO */
.popup-card div {
  padding: 1px 0; /* espacio arriba y abajo */
}

/* TITULO */
.popup-card h3 {
  font-size: 14px;
  margin: 0 0 -20px 0; /* 🔥 espacio abajo */
}

/* TEXTO */
.popup-card p {
  font-size: -20px;
  margin: 0 0 1px 0; /* 🔥 separación */
}

/* ESTADO */
.abierto {
  color: green;
  font-size: 12px;
  font-weight: bold;
  display: block;
  margin-top: -20px; /* 🔥 separación final */
}

/* =========================
   ICONO USUARIO
========================= */
.custom-user-icon {
  border-radius: 50%;
  padding: 5px;
}

.custom-user-icon img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* =========================
   ICONO DESTINO (PIN)
========================= */
.custom-destino-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin {
  width: 20px;
  height: 20px;
  background: #1b7a6b;
  border-radius: 50%;
  position: relative;
}

.pin::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 5px;
  width: 10px;
  height: 10px;
  background: #1b7a6b;
  transform: rotate(45deg);
}

/* =========================
   OCULTAR PANEL DE RUTAS
========================= */
.leaflet-routing-container {
  display: none !important;
}

/* ICONO DESTINO REDONDO */
.custom-destino-img img {
  width: 55px;
  height: 55px;

  border-radius: 50%; /* 🔥 esto lo hace círculo */
  object-fit: cover;
}

.leaflet-control-attribution {
  font-size: 10px;
  opacity: 0.5;
}

/* CONTENEDOR */
.info-section {
  background: #8fb3ad;
  padding: 20px;
  border-radius: 20px;
  margin: 20px;
  color: #1f2937;
}

/* TEXTO */
.descripcion {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* CARRUSEL */
.carousel-img {
  text-align: center;
}

.imagenes {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  scroll-snap-type: x mandatory;
}

.imagenes img {
  min-width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  scroll-snap-align: center;
}

/* DOTS */
.dots {
  margin-top: 10px;
}

.dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 4px;
}

.dots .activo {
  background: #555;
}

/* COMENTARIOS */
.titulo-comentarios {
  margin-top: 15px;
  color: #0f766e;
}

.coment-box {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 30px;
  padding: 5px 10px;
  margin-top: 10px;
}

.coment-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px;
  border-radius: 30px;
}

.coment-box button {
  background: #0f766e;
  border: none;
  color: white;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
}

/* REDES SOCIALES */
.redes {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 10px 0 15px;
}

.redes a {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #0f766e;
  font-size: 18px;

  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  text-decoration: none;
  transition: 0.3s;
}

/* EFECTO HOVER */
.redes a:hover {
  transform: scale(1.1);
  background: #0f766e;
  color: white;
}

