@import url('https://fonts.googleapis.com/css2?family=Birthstone&display=swap');

body {
    background: #101010;
}

.row {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 1rem; 
}

.row div{
    width: 100%;
}

#inicio {
    border-bottom: none;
}

#inicio h1, #inicio #ruta a {
    color: var(--color_p);
}

#inicio h1 {
    margin-bottom: 1rem;
}

.a_post {
    color: var(--color_p);
    text-decoration: none;
    gap: 0.5rem;
    display: flex;
    flex-direction: row;
}

.post_column {
    width: 100%;
    color: var(--color_p);
    display: flex;
    flex-direction: column;
}

#tendencias {
    margin-top: 1rem;
    list-style: none;
    color: grey;
}

#tendencias li {
    padding: 0.5rem 0;
}

#comentar {
    flex-direction: column;
    position: relative;
    display: flex;
    gap: 0.5rem;
    
}

#perfil_row {
    gap: 0.5rem;
    align-items: center;
    display: flex;
    flex-direction: row;
}

#div_subir_post {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, rgba(50, 50, 50, 0.3) 0%, rgba(80, 80, 80, 0.2) 50%, rgba(100, 100, 100, 0.2) 100%);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 32px 16px, rgba(0, 0, 0, 0.1) 0px 16px 8px, rgba(0, 0, 0, 0.1) 0px 8px 4px, rgba(0, 0, 0, 0.1) 0px 4px 2px, rgba(0, 0, 0, 0.1) 0px 2px 1px;
}

#div_subir_post::after {
    z-index:  9999;
  content: "";
  position: absolute;
  inset: 0; /* ocupa todo el contenedor */
  border-radius: 16px;
  padding: 2px; /* grosor del borde difuminado */
  
  /* borde difuminado estilo gradiente gris */
  background: linear-gradient(180deg,
              rgba(140,140,140,0.5) 0%,
              rgba(128,128,128,0.4) 50%,
              rgba(110,110,110,0.4) 100%);
  -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none; /* para no interferir con clicks */
  box-sizing: border-box;
}


#subir_post {
    position: relative;
    background: transparent;
    border: 0;
    resize: vertical; 
    max-height: 15rem; 
    min-height: 8rem; 
    width: 100%;
    padding: 1rem;
}

#boton_post {
    justify-content: center;
    align-items: center;
    display: flex;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    font-weight: normal;
    cursor: pointer;
    width: 60px;
    padding: 0.5rem;
    border-radius: 10px;
    font-weight: 900;
    background: transparent;
    border: none;
    
    color: var(--color_p);
}

#row_botones {
    background: transparent;
    padding: 1rem;
    
    gap: 0.5rem;
    display: flex;
    flex-direction: row;
}

#div_previsualizar_imagen {
    position: relative;
}

#eliminar_imagen {
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(16px);
    position: absolute;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem;
    top: 1rem;
    right: 1rem;
    border: var(--border);
}

#eliminar_imagen i {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
}

#preview_imagen {
    border: var(--border);
    border-radius: 16px;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

#div_subir_imagen {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    overflow: hidden;
    
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: var(--border); 
    background: transparent;
    padding: 0.5rem;
    border-radius: 10px;
    color: var(--color_p);
}

#div_subir_imagen:hover {
    background: white;
    color: black;
}


#div_subir_ubicacion {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    text-decoration: none;
    cursor: pointer;
    border: var(--border); 
    background: transparent;
    padding: 0.5rem;
    border-radius: 10px;
    color: var(--color_p);
    
    position: relative;
}

#div_subir_ubicacion i, #div_subir_imagen i {
    display: flex;
    justify-content: center;
    align-items: center;
}

#post_foro_formulario {
    flex-direction: column;
    display: flex;
}

#div_subir_ubicacion:hover {
    background: white;
    color: black;
}

#boton_post:hover {
    background: white;
    color: black;
}

 #map_container {
     min-height: 10rem;
    border-radius: 16px;
    display: none;
    position: relative;
    width: 100%;
    height: 10rem;
    z-index: 1000;
    border: var(--border);
}

.post #a_sesion {
    border: var(--border);
    color: var(--color_p);
    margin-left: 45px;
}

/* responder */
    #sesion {
        margin-bottom: 2rem;
    }
    
    #chat  {
        width: 100%;
        height: auto;
    }
    

    #chat #perfil_comentar  {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        
        font-weight: 800;
        padding-bottom: 1rem;
        font-size: 1.2rem;
        color: orange;
    }

    #chat h2 {
        margin: 1rem 0;
        color: var(--color_p);
    }

    form#chat_form {
        margin-bottom: 2rem;
    }
    
    form#chat_form textarea {
        min-height: 5rem;
        max-height: 20rem;
        resize: vertical;
    }

    form#chat_form button{
        margin: 0.5rem 0;
        width: 100%;
        background-color: transparent;
        color: var(--color_p);
        border: var(--border); 
        padding: 0.5rem;
        border-radius: 16px;
        cursor: pointer;
        font-weight: 900;
    }
    
    form#chat_form button:hover  {
       background: white;
       color: black;
    }
    
    /* MENSAJES */
    #chat_mensajes  {
        padding-top: 1rem;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .mensaje {
        position: relative;

        gap: 1rem;
        border-radius: 16px;
        color: var(--color_p);
    }
    
    .mensaje_row {
        gap: 0.5rem;
        display: flex;
        flex-direction: row;
    }
    
    #respuestas {
        max-height: 15rem;
        overflow-y: auto;
    }
    
    .respuesta {
        position: relative;
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        border-radius: 16px;
        margin-top: 1rem;
    }
    
    .mensaje_opciones {
        color: grey;
        font-size: 1.3rem;
        cursor: pointer;
        position: absolute;
        top: 0;
        right: 0;
        background: transparent;
        border: none;
    }
    
    .desplegable_opciones {
        backdrop-filter: blur(50px);
        background: rgba(48, 48, 52, .7);
        box-shadow: rgba(0, 0, 0, 0.1) 0px 32px 16px, rgba(0, 0, 0, 0.1) 0px 16px 8px, rgba(0, 0, 0, 0.1) 0px 8px 4px, rgba(0, 0, 0, 0.1) 0px 4px 2px, rgba(0, 0, 0, 0.1) 0px 2px 1px;
        border: var(--border);
        
        display: none;
        border-radius: 16px;
        padding: 0.3rem;
        gap: 0.2rem;
        flex-direction: column;
        position: absolute;
        top: 0;
        right: 0;
    }
    
    .desplegable_opciones button {
        cursor: pointer;
        background: transparent;
        border: none;
        color: white;
        text-align: left;
        padding: 0.3rem;
        border-radius: 10px;
    }
    
    .desplegable_opciones button:hover {
        background: white;
        color: black;
    }

    .contenido_mensaje {
        flex: 1;
    }

    .cabecera {
        display: flex;
        flex-direction: column;
        text-decoration: none;
    }

    .cabecera strong {
        font-size: 1.2rem;
        color: var(--color_p);
    }

    .fecha {
        font-size: 0.9rem;
        color: #666;
    }

    .texto {
        font-size: 1.1rem;
    }

    .responder_form {
        margin-top: 0.5rem;
        display: flex;
        gap: 0.5rem;
    }

    .responder_form input {
        font-size: 1rem;
    }

    .responder_form button {
        background-color: transparent;
        color: var(--color_p);
        border: var(--border); 
        padding: 0.5rem;
        border-radius: 16px;
        cursor: pointer;
        font-weight: 900;
    }
    
    .responder_form button:hover {
        background: white;
        color: black;
    }
    
    #row_post {
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }
    
    #dron {
        border: var(--border);
        border-radius: 16px;
        background: var(--background_div);
        padding: 1rem;
        display: flex;
        align-items: center;
        flex-direction: column;
    }
    
    #dron h3 {
        margin-bottom: 1rem;
    }
    
    #dron a {
        display: flex;
        gap: 0.5rem;
        border-radius: 16px;
        padding: 0.5rem;
        border: var(--border);
        color: var(--color_p);
        text-decoration: none;
        margin-top: 1rem;
    }
    
    #dron a:hover {
        color: black;
        background: white;
    }
    
    #dron ul {
        list-style: none;
    }
    
    .imagen_ver_post {
        margin-top: 0.5rem;
        z-index: 11;
        position: relative;
        border-radius: 16px;
        box-sizing: border-box;
        border: var(--border); 
        position: relative;
        width: 100%;
        height: auto;
    }

    
#desplegable_buscador {
    background: var(--background_div);
    border: var(--border); 
    color: var(--color_p);
    border-radius: 16px;
    padding: 1rem;
    gap: 0.2rem;
    flex-direction: column;
    margin-top: 1rem;
    display: none;
}

#desplegable_buscador a {
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--color_p);
    padding: 0.3rem;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#desplegable_buscador a:hover {
    background: white;
    color: black;
}

#buscar_post {
    padding-bottom: 1rem;
    gap: 0.2rem;
    display: flex;
    flex-direction: column;
    border-bottom: var(--border);
}

#buscar_usuario {
    padding-top: 1rem;
    gap: 0.2rem;
    display: flex;
    flex-direction: column;
}

/* CONTENIDO */
#contenido {
    background: var(--fondo);
    position: relative;
}

#ruta,  #ruta a {
    color: var(--color_p) !important;
}

#destacados {
    border-bottom: var(--border);
    position: relative;
    overflow-x: auto;
    display: flex;
    grid-template-columns: repeat(3, 1fr); /* Tres columnas iguales */
    gap: 1rem; /* Opcional: Espacio entre las celdas */
    scrollbar-width: none;
    z-index: 99;
}

.a_destacado {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    backdrop-filter: blur(16px);
}

.destacado_texto {
    padding: 1rem;
    z-index: 99;
    color: var(--color_p_dos);
}

.destacado_texto h2 {
    font-size: 20px;
}

.destacado_texto i {
    font-size: 16px;
}





/* SECCION */
#crear {
    border-top: var(--border);
}

#seccion {
    display: flex;
    flex-direction: row;
    position: relative;
    color: var(--color_p);
    font-size: 1.3rem;
    
    max-width: 1200px;
    margin: 0 auto;
}

#todos_posts {
    width: 70%;
    padding: 0 4rem 4rem 0;
}

#titulo_form {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    width: 33%;
    position: relative;
}

.post {
    gap: 2rem;
    flex-direction: column;
    display: flex;
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
}

.post_datos {
    position: relative;
}

.post_datos::after {
z-index:  9999;
  content: "";
  position: absolute;
  inset: 0; /* ocupa todo el contenedor */
  border-radius: 16px;
  padding: 2px; /* grosor del borde difuminado */
  
  /* borde difuminado estilo gradiente gris */
  background: linear-gradient(180deg,
              rgba(140,140,140,0.5) 0%,
              rgba(128,128,128,0.4) 50%,
              rgba(110,110,110,0.4) 100%);
  -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none; /* para no interferir con clicks */
  box-sizing: border-box;
}

#info_texto {
    position: relative;
    display: block;
    width: 30%;
    border-left: var(--border);
    border-width: 0 0 0 1px;
    padding: 0 0 4rem 4rem;
}

#filtro_post {
    top: 8rem;
    position: sticky;
}

.post_contenido {
    gap: 0.5rem;
    flex: 1;
    display: flex;
    width: 100%;
}

.post_comentarios {
    width: 50%;
}

.categoria {
    position: relative;
    z-index: 11;
    margin-top: 0.5rem;
    border-radius: 16px 16px 0 0;
    padding: 1rem;
    display: flex;

    background: var(--background_div);
}

.row_categoria {
    width: 100%;
    gap: 1rem;
    display: flex;
    flex-direction: row;
    border-bottom: var(--border);
}

.categoria .boton_categoria {
    font-size: 1rem;
    text-decoration: none;
    font-weight: normal;
    cursor: pointer;
    width: 33%;
    border: none;
    background: transparent;
    padding: 0.5rem;
    color: var(--color_p);
    font-weight: 900;
    gap: 0.5rem;
    display: flex;
}

.categoria .boton_categoria i {
    display: flex;
    justify-content: center;
    align-items: center;
}

.actividad {
    padding-top: 0.5rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.actividad a, .actividad i {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--color_p);
}

.actividad i:hover {
    color: grey;
}

.mapa_ubicacion {
    border-radius: 0 0 16px 16px;
    width: 100%;
    height: 30rem;
    border: var(--border); 
}

.formulario_botones  {
    display: flex;
    flex-direction: row;
    gap: 1rem
}

.boton_like {
    color: var(--color_p);
    cursor: pointer;
    display: flex;
    flex-direction: row;
    background: none;
    border: none;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.media {
    display: flex;
    width: 100%;
    position: relative;
}

.imagen_noticia_fondo {
    opacity: 0.8;
    filter: blur(40px);
    position: absolute;
    width: 100%;
    z-index: 1;
}

.imagen_noticia {
    position: relative;
    z-index: 11;
    border: var(--border);
    border-radius: 16px;
    width: 100%;
}

    
.imagen_post {
    z-index: 11;
    position: relative;
    border-radius: 0 0 16px 16px;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    height: auto;
}

#difuminado_inicio {
    background: rgba(0,0,0,0.3);
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 0) 100%);
    backdrop-filter: blur(50px);
    padding-left: 15rem;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 20rem;
    z-index: 99;
    width: 70%;
    position: absolute;
}

.mapa_ubicacion_post {
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}







#crear_spot {
    display: none;
    z-index: 999999;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--header);
    width: 100%;
    height: 100%;
    
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#titulo_formulario {
    top: 0;
    left: 0;
    
    padding: 1rem;
    color: var(--color_p);
    background: var(--header);
    backdrop-filter: blur(18px);
    border-radius: 10px 0.5rem 0 0;
    border-bottom: var(--border);
    box-sizing: border-box;
    position: sticky;
    width: 100%;
    z-index: 9999;
    
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between
}

#cerrar_editor {
    background: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#cerrar_editor i {
    display: flex;
    justify-content: center;
    align-items: c;
    font-size: 1rem;
    color: var(--color_p);
}

#crear_spot form {
    position: relative;
    overflow-y: scroll;
    max-height: 40rem;
    color: var(--color_p);
    width: 40rem;
    background: var(--background_div);
    border: var(--border);
    border-radius: 10px;
}

#crear_spot form label {
    display: flex;
    margin-top: 1rem;
}

#crear_spot form textarea {
    resize: vertical;
    min-height: 10rem;
    max-height: 20rem;
}

#crear_spot form #actualizar_perfil {
    cursor: pointer;
    margin-top: 1rem;
    background: transparent;
    border: var(--border);
    width: 100%;
    padding: 0.5rem;
    color: var(--color_p);
    border-radius: 10px;
}

#div_crear_spot {
    padding: 5rem 1rem 1rem 1rem;
}









/* SPOTS */


#todos_spots {
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relaive;
    width: 100%;
}

#spots {
    width: 100%;
    padding-top: 5rem;
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

#difuminado_ubicaciones {
    z-index: 9999;
    position: sticky;
    top: 5rem;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 8rem;
    width: -webkit-fill-available;
}

.lugar {
    position: relative;
    overflow: hidden;
    background: var(--background_div);
    text-decoration: none;
    border: var(--border);
    border-radius: 16px;
}

.lugar h3 {
font-family: "Birthstone", cursive;
  font-weight: 900;
  font-style: normal;
  font-size: 2.2rem;
}

.imagen_lugar {
    z-index: 1;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lugar_texto {
    width: -webkit-fill-available;
    height: -webkit-fill-available;
    flex-direction: column;
    display: flex;
    margin-top: 10rem;
    position: relative;
    z-index: 11;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0) 100%);
    color: white;
    text-decoration: none;
    padding: 1rem;
}
     
.lugar_texto ul li {
    list-style: none;
}

.lugar_texto p {
    color: var(--color_p_dos);
    font-size: 1rem;
}

#buscador_ubicaciones {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 32px 16px, rgba(0, 0, 0, 0.1) 0px 16px 8px, rgba(0, 0, 0, 0.1) 0px 8px 4px, rgba(0, 0, 0, 0.1) 0px 4px 2px, rgba(0, 0, 0, 0.1) 0px 2px 1px;
    backdrop-filter: blur(50px);
    width: 45rem;
    color: var(--color_p);
    box-sizing: border-box;
    padding: 1rem;
    border-radius: 16px;
    font-size: 1.3rem;
    outline: none;
    border: var(--border);
    background: rgba(48, 48, 52, .7);   
    font-family: Trebuchet MS, Arial, Helvetica, sans-serif;
}

#buscador_ubicaciones input {
    backdrop-filter: none;
    background: transparent;
    border: none;
    margin-bottom: 1rem;
}

#filtros_ubicacion {
    display: flex;
    gap: 1rem;
    flex-direction: row;
}

#buscador_ubicaciones select {
    background: rgba(48, 48, 52, .3);
}

#crear_ubi {
    cursor: pointer;
    display: flex;
    gap: 0.5rem;
    width: 100%;
    color: var(--color_p);
    box-sizing: border-box;
    padding: 0.5rem;
    border-radius: 16px;
    font-size: 1.3rem;
    outline: none;
    border: var(--border);
    background: rgba(135, 255, 43, 0.3);
    font-family: Trebuchet MS, Arial, Helvetica, sans-serif;
}



/* RESPONSIVE */
@media (max-width: 800px) {
    #info_texto {
        display: none;
    }
    
    #todos_posts {
        width: 100%;
        padding: 4rem 0 4rem 0;
    }
    
    #seccion {
        padding: 1rem;
    }
    
    .post {
        flex-direction: column;
    }
    
    .post_contenido {
        width: 100%;
    }
    
    #chat {
        width: 100%;
    }
    
    .imagen_usuario {
        border: var(--border);
        width: 36px;
        height: 36px;
        border-radius: 50%;
    }
    
    .a_destacado {
        width: 100%;
    }
    
}